:root {
  --bg: #faf8f7;
  --surface: #ffffff;
  --ink: #1d1a1b;
  --muted: #6b6466;
  --faint: #9c9597;
  --line: #ece7e6;
  --line-2: #f3efee;
  --brand: #7a2e46;
  --brand-2: #8e3a55;
  --brand-soft: #f6ecef;
  --brand-ink: #5e2034;
  --danger: #b3261e;
  --danger-soft: #fbeceb;
  --ok: #2f6b4f;
  --ok-soft: #e9f2ed;
  --ca: #7a2e46; --ca-soft: #f6ecef;
  --cb: #46586b; --cb-soft: #eaeff4;
  --cc: #866f3f; --cc-soft: #f4efe4;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.sample-bar { background: #1f1b1c; color: #ddd6d8; font-size: 12px; padding: 7px 16px; display: flex; align-items: center; justify-content: center; gap: 6px 14px; flex-wrap: wrap; text-align: center; }
.sample-nav { display: inline-flex; gap: 2px; background: #2f292b; border-radius: 99px; padding: 2px; }
.sample-nav a { text-decoration: none; padding: 3px 10px; border-radius: 99px; color: #bdb4b7; }
.sample-nav a.on { background: #fff; color: #1f1b1c; font-weight: 600; }
.tag-sample { font-size: 11px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 2px 8px; border-radius: 99px; margin-left: 4px; letter-spacing: 0; vertical-align: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .18s, border-color .18s, transform .15s var(--ease), opacity .18s; }
.btn:hover { border-color: #d9d2d1; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary:disabled { background: #d9d3d4; border-color: #d9d3d4; color: #fff; opacity: 1; }
.btn.small { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.ghost-danger { color: var(--danger); }
.link { border: 0; background: none; padding: 6px 2px; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #d4cccd; }
.link.small { font-size: 13px; }
.link.danger { color: var(--danger); }

/* ───────── 손님 화면 ───────── */
.book { max-width: 1120px; margin: 0 auto; padding: 28px 20px 140px; }
.shop { margin-bottom: 28px; }
.shop-kicker { margin: 0 0 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.shop-name { font-size: 40px; line-height: 1.1; letter-spacing: -0.04em; margin: 0 0 10px; font-weight: 800; }
.shop-line { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.hours { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; font-size: 14px; }
.hours div { display: flex; gap: 8px; }
.hours dt { color: var(--faint); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.shop-call { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.shop-call a { color: var(--ink); font-weight: 600; text-decoration: none; margin-left: 6px; }

.flow { position: relative; }
.flow-top { display: flex; align-items: center; gap: 12px; min-height: 36px; margin-bottom: 18px; }
.back { border: 0; background: none; padding: 6px 8px 6px 0; color: var(--muted); font-weight: 600; font-size: 15px; }
.steps { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 6px; }
.steps li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); }
.steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--faint); }
.steps li.did span { background: var(--brand-soft); color: var(--brand); }
.steps li.on { color: var(--ink); font-weight: 600; }
.steps li.on span { background: var(--brand); color: #fff; }
.steps li:not(.on) { font-size: 0; gap: 0; }
.steps li:not(.on) span { font-size: 12px; }

.step h2 { font-size: 28px; letter-spacing: -0.035em; line-height: 1.25; margin: 0 0 6px; }
.step-sub { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.step { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }

.choices { display: grid; gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s; }
.choice:hover { border-color: #d9cfd1; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--brand); background: #fffdfd; box-shadow: 0 0 0 3px var(--brand-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice.off { opacity: .45; cursor: not-allowed; }
.c-main { flex: 1; min-width: 0; }
.c-main b { display: block; font-size: 17px; }
.c-main small, .c-side small { color: var(--muted); font-size: 14px; }
.c-side { text-align: right; flex: none; }
.c-side b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.mono { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; }
.mono.any { background: var(--ink); color: #fff; font-size: 15px; }
.mono.c-a { background: var(--ca-soft); color: var(--ca); }
.mono.c-b { background: var(--cb-soft); color: var(--cb); }
.mono.c-c { background: var(--cc-soft); color: var(--cc); }

.notice { background: var(--danger-soft); color: var(--danger); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 15px; margin: 0 0 16px; }

.cal { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 12px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; }
.cal-head b { font-size: 17px; }
.cal-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 20px; line-height: 1; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font-size: 12px; color: var(--faint); padding-bottom: 6px; }
.cal-week span:first-child { color: #b5545f; }
.day { aspect-ratio: 1 / 1.05; border: 0; border-radius: 12px; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; position: relative; padding: 0; }
.day small { font-size: 10px; font-weight: 500; line-height: 1.1; color: var(--faint); }
.day.open:hover { background: var(--brand-soft); }
.day.past, .day.beyond { color: #cfc8ca; font-weight: 400; cursor: default; }
.day.closed { color: #c9bfc2; cursor: default; background: repeating-linear-gradient(135deg, transparent 0 5px, #f4f0f0 5px 6px); }
.day.closed small { color: #b9aeb1; }
.day.full { color: #b4abad; cursor: default; text-decoration: line-through; text-decoration-color: #d6cdcf; }
.day.full small { text-decoration: none; }
.day.today:not(.on) span { box-shadow: inset 0 -2px 0 var(--brand); }
.day.on { background: var(--brand); color: #fff; }
.day.on small { color: #f0d9e0; }
.cal-legend { margin: 10px 4px 0; font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg.closed { background: repeating-linear-gradient(135deg, #fff 0 3px, #e9e2e3 3px 4px); border: 1px solid var(--line); }
.lg.full { background: #f1eded; margin-left: 8px; }

.slots { margin-top: 22px; min-height: 60px; }
.slots-date { font-weight: 700; margin: 0 0 12px; font-size: 17px; }
.slots-empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 18px; margin: 0; text-align: center; }
.slot-group { margin-bottom: 16px; }
.slot-group h3 { font-size: 13px; color: var(--faint); margin: 0 0 8px; font-weight: 600; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 16px; transition: border-color .15s, background .15s; }
.slot:hover { border-color: var(--brand); }
.slot.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.summary dl { margin: 0 0 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 18px; }
.summary dl div, .info div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.summary dl div:first-child, .info div:first-child { border-top: 0; }
.summary dt, .info dt { color: var(--muted); flex: none; font-size: 15px; }
.summary dd, .info dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.summary dd small, .info dd small { color: var(--faint); font-weight: 500; margin-left: 4px; }
.code { letter-spacing: .08em; font-size: 18px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field > span small { color: var(--faint); font-weight: 500; margin-left: 4px; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { width: 100%; height: 52px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; font-size: 16px; transition: border-color .15s; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.hint { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.err { display: block; color: var(--danger); font-style: normal; font-size: 13px; margin-top: 5px; font-weight: 600; }
.err:empty { display: none; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); margin: 2px 0 0; flex: none; }
.check i { font-style: normal; color: var(--brand); font-size: 12px; margin-left: 4px; }
.check.small { font-size: 14px; font-weight: 500; color: var(--muted); }
.consent { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.consent-detail { list-style: none; margin: 10px 0 0 30px; padding: 0; font-size: 13px; color: var(--muted); }
.consent-detail li { padding: 2px 0; }
.consent-detail b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.done { text-align: left; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); margin-bottom: 18px; position: relative; }
.done-mark::after { content: ''; position: absolute; left: 20px; top: 15px; width: 12px; height: 21px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.sample-note { font-size: 13px; color: var(--faint); margin: -8px 0 0; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; vertical-align: 3px; letter-spacing: 0; }
.pill[data-s='대기'] { background: #fff4e0; color: #8a5a00; }
.pill[data-s='확정'] { background: var(--ok-soft); color: var(--ok); }
.pill[data-s='취소'] { background: #efeded; color: #77706f; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.bar-info { flex: 1; min-width: 0; }
.bar-info b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-info small { color: var(--muted); font-size: 13px; }
.bar .btn { height: 52px; min-width: 140px; font-size: 16px; border-radius: 14px; }
.bar.done .bar-info { display: none; }
.bar.done .btn { flex: 1; }

@media (max-width: 899px) {
  .book:not([data-step='1']) { padding-top: 18px; }
  .book:not([data-step='1']) .shop { margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; }
  .book:not([data-step='1']) .shop > :not(.shop-name) { display: none; }
  .book:not([data-step='1']) .shop-name { font-size: 22px; margin: 0; }
}
@media (min-width: 900px) {
  .p-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .p-list li:nth-child(2) { border-top: 0; }
  .book { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 72px; padding: 64px 32px 80px; align-items: start; }
  .shop { position: sticky; top: 48px; margin: 0; }
  .shop-name { font-size: 56px; margin-bottom: 18px; }
  .hours { display: block; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
  .hours div { justify-content: space-between; padding: 3px 0; }
  .flow { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px 40px 0; box-shadow: 0 20px 60px -40px rgba(60, 20, 35, .25); }
  .step h2 { font-size: 32px; }
  .steps li:not(.on) { font-size: 13px; gap: 6px; }
  .steps { gap: 14px; }
  .choice { background: #fff; }
  .slot-grid { grid-template-columns: repeat(6, 1fr); }
  .cal { border: 1px solid var(--line); }
  .day { aspect-ratio: auto; height: 54px; }
  .bar { position: sticky; bottom: 0; margin: 28px -40px 0; padding: 18px 40px; border-radius: 0 0 28px 28px; background: rgba(255, 255, 255, .96); }
  .bar .btn { min-width: 200px; }
}

/* ───────── 사장님 화면 ───────── */
.admin { max-width: 1240px; margin: 0 auto; padding: 0 16px 60px; }
.login-note { margin: 14px 0 0; background: #fff8ea; color: #7a5300; border: 1px solid #f1e2bf; border-radius: 12px; padding: 9px 14px; font-size: 13px; font-weight: 600; }
.a-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 14px; flex-wrap: wrap; }
.a-title b { font-size: 22px; letter-spacing: -0.03em; display: block; }
.a-title small { color: var(--muted); font-size: 14px; }
.a-actions { display: flex; align-items: center; gap: 8px; }

.pending { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 8px; margin-bottom: 18px; }
.pending h2 { font-size: 16px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.badge { background: var(--brand); color: #fff; font-size: 12px; min-width: 22px; height: 22px; border-radius: 99px; display: inline-grid; place-items: center; padding: 0 7px; }
.p-list { list-style: none; margin: 0; padding: 0; }
.p-list li { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line-2); padding: 4px 0; }
.p-list li:first-child { border-top: 0; }
.p-row { flex: 1; min-width: 0; display: flex; gap: 14px; align-items: center; border: 0; background: none; text-align: left; padding: 8px 4px; border-radius: 10px; }
.p-row:hover { background: var(--bg); }
.p-when { width: 120px; flex: none; }
.p-when b, .p-who b { display: block; font-size: 15px; }
.p-when small, .p-who small { color: var(--muted); font-size: 13px; }
.p-who { min-width: 0; }
.p-who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-none { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.pending:has(.p-none) { padding-bottom: 10px; }

.a-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.seg { display: inline-flex; background: #efebea; border-radius: 12px; padding: 3px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); }
.seg.wide { display: flex; }
.seg.wide label { flex: 1; text-align: center; }
.date-nav { display: flex; align-items: center; gap: 4px; }
.icon { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1; }
.date-label { border: 0; background: none; font-weight: 700; font-size: 16px; padding: 6px 6px; }
#a-date { height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; background: #fff; font-size: 14px; width: 42px; color: transparent; }
#a-date::-webkit-datetime-edit { display: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--muted); }
.chips input:checked + span { border-color: var(--ink); color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--brand); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.c-a { background: var(--ca); } .dot.c-b { background: var(--cb); } .dot.c-c { background: var(--cc); }
.a-note { margin: 0 0 10px; font-size: 14px; color: var(--muted); }

.a-board { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.day-grid { display: grid; grid-template-columns: 46px repeat(var(--cols), minmax(0, 1fr)); }
.col-head { height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; border-bottom: 1px solid var(--line); font-size: 14px; position: sticky; top: 0; background: #fff; z-index: 2; }
.col-head small { color: var(--faint); font-size: 12px; }
.col { border-left: 1px solid var(--line-2); min-width: 0; }
.axis-body, .col-body { position: relative; margin: 10px 0; }
.axis-body span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.col-body { background-image: linear-gradient(var(--line-2) 1px, transparent 1px); background-size: 100% calc(60px * var(--px, 1.3)); }
.col-body.rest { background: repeating-linear-gradient(135deg, transparent 0 7px, #f5f1f1 7px 8px); }
.rest-label { position: absolute; top: 40%; left: 0; right: 0; text-align: center; color: var(--faint); font-size: 13px; }
.bk { position: absolute; left: 4px; right: 4px; border: 0; border-radius: 9px; padding: 5px 8px; text-align: left; overflow: hidden; display: flex; flex-direction: column; gap: 0; border-left: 3px solid; font-size: 13px; line-height: 1.3; transition: transform .15s var(--ease), box-shadow .15s; }
.bk:hover { box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .25); z-index: 3; }
.bk b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk em { font-style: normal; font-size: 11px; font-weight: 700; position: absolute; right: 6px; top: 5px; padding: 0 5px; border-radius: 6px; background: #fff4e0; color: #8a5a00; }
.bk.c-a { background: var(--ca-soft); border-color: var(--ca); }
.bk.c-b { background: var(--cb-soft); border-color: var(--cb); }
.bk.c-c { background: var(--cc-soft); border-color: var(--cc); }
.bk.s-wait { background: #fff; outline: 1.5px dashed currentColor; outline-offset: -1.5px; color: #c9a25b; }
.bk.s-wait b { color: var(--ink); }
.bk.s-cancel { opacity: .5; background: #f6f4f4; border-color: #bbb; }
.bk.s-cancel b { text-decoration: line-through; }
.bk.s-cancel em { background: #ececec; color: #666; }
.blk { position: absolute; left: 4px; right: 4px; border: 1px dashed #cfc6c8; border-radius: 9px; background: repeating-linear-gradient(135deg, #faf7f7 0 6px, #f1eced 6px 7px); padding: 4px 8px; text-align: left; overflow: hidden; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.blk b { font-size: 12px; color: var(--muted); }
.blk small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk:hover { border-color: var(--muted); }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 4; pointer-events: none; }
.closed-day { padding: 56px 20px; text-align: center; }
.closed-day b { font-size: 20px; }
.closed-day p { color: var(--muted); margin: 6px 0 18px; }
.row-actions { display: flex; justify-content: center; align-items: center; gap: 12px; }

.week { display: grid; grid-template-columns: 1fr; }
.wday { border-top: 1px solid var(--line); padding: 10px 12px 12px; min-width: 0; }
.wday:first-child { border-top: 0; }
.wday.today .wday-head b { color: var(--brand); }
.wday.closed { background: repeating-linear-gradient(135deg, transparent 0 7px, #f8f5f5 7px 8px); }
.wday-head { display: flex; align-items: baseline; justify-content: space-between; width: 100%; border: 0; background: none; padding: 4px 2px 6px; text-align: left; }
.wday-head b { font-size: 15px; }
.wday-head small { color: var(--faint); font-size: 12px; }
.wday ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bk.w, .blk.w { position: static; flex-direction: row; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border-left-width: 3px; }
.bk.w span, .blk.w span { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; flex: none; }
.bk.w b, .blk.w b { flex: 1; min-width: 0; }
.bk.w em { position: static; }
.blk.w { border-left: 1px dashed #cfc6c8; }

.a-show-cancel { margin-top: 12px; }
.bk.short { justify-content: center; padding: 2px 8px; }
.bk.short b span { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-list:not(.all) li:nth-child(n+5) { display: none; }
.p-more { margin: 4px 0 4px 4px; }
.dlg .check { margin: 0 0 16px; }

@media (min-width: 900px) {
  .admin { padding: 0 32px 60px; }
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .wday { border-top: 0; border-left: 1px solid var(--line-2); min-height: 360px; }
  .wday:first-child { border-left: 0; }
  .bk.w { flex-wrap: wrap; row-gap: 0; }
  .bk.w .dot { display: none; }
}
@media (max-width: 640px) {
  .a-actions { width: 100%; }
  .a-actions .link { order: 3; font-size: 13px; }
  .bk em { display: none; }
  .bk.s-wait b::after { content: ' · 대기'; color: #8a5a00; font-weight: 600; font-size: 11px; }
  .a-actions .btn { flex: 1; }
  .chips { margin-left: 0; }
  .p-when { width: 96px; }
}

/* ───────── 창 ───────── */
.dlg { border: 0; padding: 0; border-radius: 22px; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(40, 10, 20, .45); }
.dlg::backdrop { background: rgba(29, 26, 27, .42); }
.dlg[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg form { display: contents; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 6px; }
.dlg-head h2 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.dlg-sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.x { border: 0; background: none; font-size: 26px; line-height: 1; width: 36px; height: 36px; color: var(--muted); }
.dlg-body { padding: 10px 22px 8px; overflow: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 20px; }
.dlg.small { width: min(400px, calc(100vw - 24px)); }
.dlg.small h2 { font-size: 18px; margin: 10px 0 8px; }
.dlg.small p { color: var(--muted); margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.warn-box { background: #fff8ea; color: #7a5300; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 4px 0 8px; }
.err-box { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin: 8px 0; }
.info { margin: 0; }
.tel { border: 0; background: none; padding: 0; font-weight: 600; text-decoration: none; color: var(--ink); }
.tel small { color: var(--brand); margin-left: 4px; }
.guide h3 { font-size: 15px; margin: 18px 0 4px; }
.guide h3:first-child { margin-top: 4px; }
.guide h3.accent { color: var(--brand); border-top: 1px solid var(--line); padding-top: 18px; }
.guide p { margin: 0 0 8px; color: #3e393a; font-size: 15px; }
.guide-foot { color: var(--faint) !important; font-size: 13px !important; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: #1f1b1c; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); z-index: 50; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: none; color: #f2c6d3; font-weight: 700; padding: 0; }

.shop-links { display: flex; gap: 14px; }
.done-help { font-size: 14px; color: var(--muted); margin: -8px 0 14px; }
.done-help .link { padding: 0; font-size: 14px; color: var(--ink); }
.lookup-card dl { margin: 6px 0 0; }
.lookup-none { color: var(--danger); font-weight: 600; font-size: 14px; margin: 4px 0 0; }
.pill[data-s='노쇼'] { background: #f3e6e9; color: #8a3550; }
.bk.s-noshow { opacity: .6; background: #f6f4f4; border-color: #8a3550; }
.history { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.history li { display: flex; gap: 10px; padding: 2px 0; }
.history time { color: var(--faint); flex: none; font-variant-numeric: tabular-nums; }
.dlg-foot.wrap { flex-wrap: wrap; }
.bk.new::before { content: ''; position: absolute; right: 6px; bottom: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.nw { white-space: nowrap; }
