/* SeatPing V2 — 매표소 현황판. Basis: Renew_Design/SeatPing/V2/DESIGN.md */
@font-face { font-family: 'Noto Sans KR'; src: url('/fonts/noto-sans-kr.woff?v=nsk2026') format('woff'); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #172033; --slate: #4b5565; --muted: #667085; --paper: #f4f6f9; --card: #fff; --line: #d9dfe7; --line-2: #e9edf2;
  --brand: #245da6; --brand-ink: #173f73; --brand-bg: #e8f0fa;
  --open: #0a7d55; --open-bg: #e4f4ec; --wait: #94580a; --wait-bg: #fdf1dc; --refused: #5a6474; --refused-bg: #eceff3; --stop: #b42318; --stop-bg: #fdecea;
  --r-ctl: 6px; --r-panel: 10px; --r-cell: 3px;
  --fs-min: 14px; --fs-body: 16px; --fs-lg: 18px; --fs-h3: 22px; --fs-h2: 28px; --fs-h1: 40px; --fs-hero: 52px;
  --rail: 232px; --focus: 0 0 0 3px rgba(36, 93, 166, .35);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-lg); font-weight: 700; }
p { margin: 0; }
small, .small { font-size: var(--fs-min); }
.muted { color: var(--slate); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-ctl); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-ctl); z-index: 100; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); color: var(--ink); font: 600 var(--fs-body)/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #b8c2cf; color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn.danger { color: var(--stop); border-color: #f1b8b2; }
.btn.danger.solid { background: var(--stop); color: #fff; border-color: var(--stop); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand); padding: 0 10px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: var(--fs-min); }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; }
.btn.is-busy::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; color: var(--ink); font: 400 var(--fs-body)/1.4 inherit; font-family: inherit; }
textarea.field { min-height: 96px; resize: vertical; }
.field:focus { border-color: var(--brand); box-shadow: var(--focus); outline: none; }
.field[aria-invalid="true"] { border-color: var(--stop); }
.label { display: block; margin-bottom: 6px; font-weight: 600; font-size: var(--fs-body); }
.label .req { color: var(--stop); margin-left: 2px; }
.help { margin-top: 6px; color: var(--slate); font-size: var(--fs-min); line-height: 1.55; }
.err { margin-top: 6px; color: var(--stop); font-size: var(--fs-min); font-weight: 600; }
.form-row { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 32px; font-size: var(--fs-body); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 500 var(--fs-min)/1 inherit; font-family: inherit; cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .price { color: inherit; opacity: .75; font-variant-numeric: tabular-nums; }
.switch { position: relative; width: 48px; height: 28px; flex: none; border: 0; border-radius: 999px; background: #c4ccd7; cursor: pointer; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.switch[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- status vocabulary ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 10px; border-radius: var(--r-ctl); font-size: var(--fs-min); font-weight: 700; line-height: 1.3; white-space: nowrap; }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.open { color: var(--open); background: var(--open-bg); }
.badge.wait { color: var(--wait); background: var(--wait-bg); }
.badge.refused { color: var(--refused); background: var(--refused-bg); }
.badge.stop { color: var(--stop); background: var(--stop-bg); }
.badge.brand { color: var(--brand-ink); background: var(--brand-bg); }
.badge.plain::before { display: none; }
.level { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-ctl); color: var(--slate); font-size: var(--fs-min); font-weight: 600; white-space: nowrap; }
.not-booked { color: var(--slate); font-size: var(--fs-min); }
.notice { padding: 14px 16px; border-radius: var(--r-ctl); background: var(--brand-bg); color: var(--brand-ink); font-size: var(--fs-body); line-height: 1.6; }
.notice.warn { background: var(--wait-bg); color: #6b3f05; }
.notice.stop { background: var(--stop-bg); color: #8a1b12; }
.notice.ok { background: var(--open-bg); color: #075c3f; }

/* ---------- public shell ---------- */
.pub-top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.pub-top-in { display: flex; align-items: center; gap: 28px; max-width: 1200px; height: 68px; margin: 0 auto; padding: 0 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.wordmark img { width: 30px; height: 30px; border-radius: 7px; }
.pub-nav { display: flex; gap: 4px; }
.pub-nav a { padding: 8px 12px; border-radius: var(--r-ctl); color: var(--slate); font-weight: 600; text-decoration: none; }
.pub-nav a:hover, .pub-nav a[aria-current="page"] { color: var(--ink); background: var(--paper); }
.pub-actions { display: flex; gap: 8px; margin-left: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pub-main { padding-bottom: 80px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; padding: 64px 0 56px; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.18; letter-spacing: -0.03em; }
.hero .lede { margin-top: 20px; max-width: 34em; color: var(--slate); font-size: var(--fs-lg); line-height: 1.7; }
.paste { margin-top: 32px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; }
.paste .row { display: flex; gap: 8px; }
.paste .row .field { flex: 1; }
.paste-out { margin-top: 14px; }
.hero-note { margin-top: 16px; color: var(--slate); font-size: var(--fs-min); }
.support-board { border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; overflow: hidden; }
.support-board header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.support-board header h2 { font-size: var(--fs-lg); }
.sb-table { width: 100%; border-collapse: collapse; }
.sb-table th, .sb-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; font-size: var(--fs-min); }
.sb-table th { color: var(--slate); font-weight: 600; background: #fafbfc; }
.sb-table td:first-child { font-weight: 700; font-size: var(--fs-body); }
.sb-table tr:last-child td { border-bottom: 0; }
.mark { display: inline-block; width: 22px; text-align: center; font-weight: 800; }
.mark.yes { color: var(--open); } .mark.part { color: var(--wait); } .mark.no { color: #6b7685; }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-head p { max-width: 40em; margin-top: 10px; color: var(--slate); }
.cat-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; }
.cat-col { padding: 22px; border-right: 1px solid var(--line); }
.cat-col:last-child { border-right: 0; }
.cat-col h3 { font-size: var(--fs-lg); }
.cat-col ul { margin: 12px 0 0; padding-left: 18px; color: var(--slate); }
.cat-col li { margin: 4px 0; }
.cat-col .ex { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: var(--fs-min); color: var(--slate); }
.truths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.truths h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.flow { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 0; list-style: none; }
.flow li { counter-increment: step; padding-top: 16px; border-top: 3px solid var(--ink); }
.flow li::before { content: counter(step); display: block; margin-bottom: 8px; color: var(--brand); font-weight: 800; font-size: var(--fs-h3); font-variant-numeric: tabular-nums; }
.flow h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.pub-foot { border-top: 1px solid var(--line); background: #fff; }
.pub-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 28px 24px 36px; color: var(--slate); font-size: var(--fs-min); }
.pub-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pub-foot a { color: var(--slate); }
.page-title { padding: 48px 0 28px; }
.page-title p { margin-top: 12px; max-width: 46em; color: var(--slate); font-size: var(--fs-lg); }

/* platform matrix page */
.pf-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.pf-table th, .pf-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.pf-table th { background: #fafbfc; color: var(--slate); font-size: var(--fs-min); font-weight: 600; }
.pf-table td ul { margin: 0; padding-left: 18px; }
.pf-table .pf-name { font-weight: 800; min-width: 150px; }
.pf-why { color: var(--slate); font-size: var(--fs-min); margin-top: 6px; }
.table-scroll { overflow-x: auto; border-radius: var(--r-panel); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; }
.plan { padding: 28px 26px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.plan:last-child { border-right: 0; }
.plan.current { box-shadow: inset 0 4px 0 var(--brand); }
.plan .price { font-size: var(--fs-h2); font-weight: 800; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: var(--fs-body); font-weight: 500; color: var(--slate); }
.plan ul { margin: 0; padding-left: 18px; color: var(--ink); }
.plan li { margin: 6px 0; }
.plan .btn { margin-top: auto; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 18px 4px; border: 0; background: none; color: var(--ink); font: 700 var(--fs-lg)/1.4 inherit; font-family: inherit; text-align: left; cursor: pointer; }
.faq-q::after { content: '+'; font-size: 24px; color: var(--slate); }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 4px 20px; color: var(--slate); max-width: 52em; }
.faq-item.open .faq-a { display: block; }
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.legal nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-min); }
.legal nav a { padding: 6px 8px; border-radius: var(--r-ctl); color: var(--slate); text-decoration: none; }
.legal article { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); line-height: 1.85; max-width: 820px; }
.legal article h2 { font-size: var(--fs-h3); margin: 28px 0 10px; }
.legal article h2:first-child { margin-top: 0; }

/* ---------- auth (P8 2026-10-21: concert banner side + ticket-stub card) ---------- */
.auth { --r-ctl: 4px; min-height: 100vh; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); background: var(--paper); }
.auth-side { padding: 36px 48px; background: #0f1729; color: #dfe5ef; display: flex; flex-direction: column; align-items: stretch; }
.auth-side > * { width: 100%; max-width: 560px; }
.auth-side .wordmark { color: #fff; }
.auth-photo { margin: auto 0 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 4px; overflow: hidden; background: #1a2440; }
.auth-photo img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; transform: scale(1.08); transform-origin: left bottom; } /* the source art has a white top band and a rounded top-right corner */
.auth-board { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); }
.auth-board h2 { font-size: var(--fs-h3); line-height: 1.4; color: #fff; text-wrap: balance; }
.auth-board ul { margin: 14px 0 0; padding: 0; list-style: none; }
.auth .auth-board li { display: grid; grid-template-columns: 14px minmax(0, 8.5em) minmax(0, 1fr); align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, .16); }
.auth .auth-board li::before { display: none; }
.auth-board li b { color: #fff; font-weight: 600; }
.auth-board li span:last-child { color: #b9c3d3; }
.led { width: 12px; height: 12px; border-radius: 50%; }
.led.on { background: #35d08f; }
.led.part { border: 2px solid #f2b544; }
.auth-board p { margin-top: 16px; color: #b9c3d3; font-size: var(--fs-min); }
.auth-board .auth-legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.auth-legend .led { flex: none; }
.auth-legend .led.part { margin-left: 12px; }
.auth-legal { margin-top: auto; padding-top: 28px; color: #8e9ab0; font-size: var(--fs-min); }

.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 32px; }
.auth-banner { display: none; }
.auth-box { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 4px; box-shadow: 0 24px 48px -32px rgba(15, 23, 41, .45); }
.auth-box-brand { display: none; padding: 18px 24px 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tabs a { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--slate); font-weight: 600; text-decoration: none; }
.auth-tabs a:hover { color: var(--ink); background: var(--paper); }
.auth-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
/* ticket stub: dashed tear line with a half-circle notch on each side */
.auth-stub { position: relative; padding: 26px 28px 22px; border-bottom: 2px dashed var(--line); }
.auth-stub::before, .auth-stub::after { content: ""; position: absolute; bottom: -12px; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); }
.auth-stub::before { left: -12px; clip-path: inset(0 0 0 50%); }
.auth-stub::after { right: -12px; clip-path: inset(0 50% 0 0); }
.auth-stub h1 { font-size: var(--fs-h2); line-height: 1.3; }
.auth-stub p { margin-top: 6px; color: var(--slate); text-wrap: pretty; }
.auth-body { padding: 24px 28px 28px; }
.auth-body .field { min-height: 48px; }
.auth .field[aria-invalid="true"] { border-color: var(--stop); background: #fffafa; box-shadow: 0 0 0 3px rgba(180, 35, 24, .14); }
.auth .form-row .err::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: var(--stop); color: #fff; font-size: 13px; font-weight: 800; vertical-align: -3px; }
.form-err { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f1b8b2; border-left: 4px solid var(--stop); border-radius: 2px; background: var(--stop-bg); color: #8a1b12; font-size: var(--fs-body); }
.pw-wrap { position: relative; }
.pw-wrap .field { padding-right: 76px; }
.pw-wrap .field::-ms-reveal, .pw-wrap .field::-ms-clear { display: none; }
.auth .wordmark { min-height: 44px; }
.pw-toggle { position: absolute; top: 1px; right: 1px; bottom: 1px; min-width: 64px; min-height: 44px; border: 0; border-left: 1px solid var(--line-2); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; background: transparent; color: var(--brand); font: 600 var(--fs-min)/1 inherit; font-family: inherit; cursor: pointer; }
.pw-toggle:hover { background: var(--paper); }
.pw-toggle:active { background: var(--line-2); }
.pw-toggle[aria-pressed="true"] { color: var(--ink); }
.pw-rules { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.pw-rules li { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 2px; color: var(--slate); font-size: var(--fs-min); }
.pw-rules li::before { content: "○"; font-size: 13px; }
.pw-rules li.ok { border-color: #9fd6bd; background: var(--open-bg); color: var(--open); }
.pw-rules li.ok::before { content: "✓"; font-weight: 800; }
.caps { margin-top: 6px; color: var(--wait); font-size: var(--fs-min); font-weight: 600; }
.pw-match { margin: -8px 0 16px; color: var(--wait); font-size: var(--fs-min); font-weight: 600; }
.pw-match::before { content: "! "; }
.pw-match.ok { color: var(--open); }
.pw-match.ok::before { content: "✓ "; }
.auth .check { min-height: 44px; align-items: center; }
.auth .check input { margin-top: 0; }
.auth-agree { align-items: flex-start !important; margin: 0 0 20px; }
.auth-agree input { margin-top: 3px !important; }
.auth-agree a { display: inline-block; padding: 2px 0; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.auth-row a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-min); font-weight: 600; }
.auth-box .btn.primary { width: 100%; min-height: 56px; font-size: var(--fs-body); font-weight: 600; }
.auth-box .btn.primary:active { background: #10305a; border-color: #10305a; transform: translateY(1px); }
.auth-alt { margin-top: 16px; color: var(--slate); font-size: var(--fs-min); text-align: center; }
.auth-alt a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .auth-main { justify-content: flex-start; padding: 0 16px 32px; }
  .auth-banner { display: block; width: calc(100% + 32px); height: 184px; margin: 0 -16px; overflow: hidden; background: #1a2440; }
  .auth-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 60%; transform: scale(1.08); transform-origin: left bottom; }
  .auth-box { position: relative; max-width: 520px; margin-top: -14px; }
  .auth-box-brand { display: block; }
  .auth-stub { padding: 18px 20px 18px; }
  .auth-body { padding: 20px 20px 24px; }
}
@media (min-width: 1800px) {
  .auth-box { max-width: 480px; }
  .auth-side { padding: 48px 72px; }
}

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 20px 14px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.rail .wordmark { padding: 4px 8px 20px; }
.rail a.nav { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-ctl); color: var(--slate); font-weight: 600; text-decoration: none; }
.rail a.nav svg { width: 20px; height: 20px; flex: none; }
.rail a.nav:hover { background: var(--paper); color: var(--ink); }
.rail a.nav[aria-current="page"] { background: var(--ink); color: #fff; }
.rail a.nav .count { margin-left: auto; min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--stop); color: #fff; font-size: var(--fs-min); text-align: center; font-variant-numeric: tabular-nums; }
.rail .rail-plan { margin-top: auto; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-panel); font-size: var(--fs-min); }
.rail .rail-plan b { display: block; font-size: var(--fs-body); }
.meter { height: 6px; margin: 10px 0; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); }
.meter.full i { background: var(--stop); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; background: rgba(244, 246, 249, .95); border-bottom: 1px solid var(--line); }
.topbar form { flex: 1; max-width: 520px; }
.topbar .field { min-height: 42px; background: #fff; }
.topbar .spacer { flex: 1; }
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 var(--fs-min)/1 inherit; font-family: inherit; color: var(--ink); cursor: pointer; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-bg); color: var(--brand-ink); font-weight: 800; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: 0 12px 32px rgba(23, 32, 51, .14); display: none; z-index: 30; }
.menu.open { display: block; }
.menu a, .menu button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-ctl); background: none; color: var(--ink); font: 500 var(--fs-body)/1.4 inherit; font-family: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--paper); }
.content { width: 100%; max-width: 1180px; padding: 28px 28px 64px; }
.app-foot { margin-top: auto; padding: 20px 28px; border-top: 1px solid var(--line); color: var(--slate); font-size: var(--fs-min); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.app-foot a { color: var(--slate); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: var(--fs-h2); }
.page-head p { margin-top: 6px; color: var(--slate); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: var(--fs-lg); margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.kv { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.kv dt { color: var(--slate); font-size: var(--fs-min); padding-top: 2px; }
.kv dd { margin: 0; }
.tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; margin-bottom: 20px; }
.tally a { display: block; padding: 16px 18px; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tally a:last-child { border-right: 0; }
.tally a:hover { background: var(--paper); }
.tally b { display: block; font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tally span { color: var(--slate); font-size: var(--fs-min); }
.tally .open b { color: var(--open); }
.tally .wait b { color: var(--wait); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.empty { padding: 48px 24px; text-align: center; }
.empty h2 { font-size: var(--fs-h3); margin-bottom: 8px; }
.empty p { color: var(--slate); max-width: 34em; margin: 0 auto 20px; }

/* watch list */
.wlist { background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.wrow { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; align-items: stretch; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.wrow:last-child { border-bottom: 0; }
.wrow:hover { background: #fafbfd; }
.wrow .edge { background: #c4ccd7; }
.wrow.s-open .edge { background: var(--open); }
.wrow.s-wait .edge { background: #e3a03a; }
.wrow.s-stop .edge { background: var(--stop); }
.wrow.s-refused .edge { background: #9aa3b0; }
.wrow .body { padding: 14px 18px; min-width: 0; }
.wrow .title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-lg); }
.wrow .title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrow .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--slate); font-size: var(--fs-min); }
.wrow .summary { margin-top: 6px; font-size: var(--fs-min); color: var(--ink); }
.wrow .side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; padding: 14px 18px; }
.fav { color: #c2410c; }

/* the board */
.board { width: 100%; border-collapse: separate; border-spacing: 4px; }
.board th { padding: 6px 8px; color: var(--slate); font-size: var(--fs-min); font-weight: 600; text-align: center; }
.board th.rowh { text-align: left; white-space: nowrap; color: var(--ink); font-weight: 700; font-size: var(--fs-body); }
.board th .price { display: block; font-weight: 500; font-variant-numeric: tabular-nums; }
.board td { min-width: 76px; height: 58px; padding: 6px; border-radius: var(--r-cell); background: var(--paper); text-align: center; vertical-align: middle; font-variant-numeric: tabular-nums; }
.board td b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.board td small { color: var(--slate); }
.board td.zero b { color: #a3acb9; }
.board td.ok { background: var(--open-bg); }
.board td.ok b { color: var(--open); }
.board td.hidden b { color: var(--slate); font-size: var(--fs-min); font-weight: 600; }
.board td.unread { background: transparent; border: 1px dashed var(--line); }
.board td.off { opacity: .45; }
.board td.new { box-shadow: inset 0 0 0 2px var(--open); }
.board .weekday { color: var(--slate); font-weight: 500; font-size: var(--fs-min); margin-left: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; color: var(--slate); font-size: var(--fs-min); }
.legend i { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border-radius: 3px; vertical-align: -2px; background: var(--paper); }
.legend i.ok { background: var(--open-bg); box-shadow: inset 0 0 0 1px var(--open); }
.legend i.unread { background: transparent; border: 1px dashed var(--line); }
.datestrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.day { padding: 10px 8px; border-radius: var(--r-cell); background: var(--paper); text-align: center; }
.day .d { font-weight: 800; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.day .w { color: var(--slate); font-size: var(--fs-min); }
.day .s { margin-top: 4px; font-size: var(--fs-min); font-weight: 700; color: #8a94a3; }
.day.ok { background: var(--open-bg); } .day.ok .s { color: var(--open); }
.day.closed .s { color: #8a94a3; }
.day.unknown { background: transparent; border: 1px dashed var(--line); }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 18px; border-radius: var(--r-panel); border: 1px solid var(--line); background: #fff; margin-bottom: 16px; }
.status-line p { flex-basis: 100%; }
.status-line.open { border-color: #9fd7bf; background: var(--open-bg); }
.status-line.wait { border-color: #f0cf96; background: #fffaf0; }
.status-line.stop { border-color: #f1b8b2; background: #fff8f7; }
.detail-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.detail-head img { width: 96px; height: 128px; object-fit: cover; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--paper); flex: none; }
.detail-head h1 { font-size: var(--fs-h2); }
.detail-head .meta { margin-top: 6px; color: var(--slate); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.detail-head .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 12px 14px; color: var(--slate); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--slate); font-size: var(--fs-min); font-variant-numeric: tabular-nums; }
.note-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); }
.note-list li { border-bottom: 1px solid var(--line-2); }
.note-list li:last-child { border-bottom: 0; }
.note-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 18px; color: var(--ink); text-decoration: none; }
.note-list a:hover { background: #fafbfd; }
.note-list .unread-dot { width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--brand); }
.note-list .read .unread-dot { background: transparent; }
.note-list time { color: var(--slate); font-size: var(--fs-min); white-space: nowrap; }

/* add flow */
.steps { display: flex; gap: 8px; margin-bottom: 22px; padding: 0; list-style: none; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-ctl); background: #fff; border: 1px solid var(--line); color: var(--slate); font-size: var(--fs-min); font-weight: 600; }
.steps li b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: var(--fs-min); }
.steps li[aria-current="step"] { color: var(--ink); border-color: var(--ink); }
.steps li[aria-current="step"] b { background: var(--ink); color: #fff; }
.steps li.done b { background: var(--open); color: #fff; }
.cat-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cat-pick button { display: block; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.cat-pick button b { display: block; font-size: var(--fs-lg); }
.cat-pick button span { color: var(--slate); font-size: var(--fs-min); }
.cat-pick button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cat-pick button[disabled] { opacity: .45; cursor: not-allowed; }
.source-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; margin-bottom: 18px; }
.source-card img { width: 72px; height: 96px; object-fit: cover; border-radius: var(--r-ctl); }
.sess-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 320px; overflow: auto; padding: 2px; }
.sess-pick button { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; color: var(--ink); font: 600 var(--fs-min)/1.4 inherit; font-family: inherit; text-align: left; cursor: pointer; }
.sess-pick button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* overlays */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(23, 32, 51, .45); }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; background: #fff; border-radius: var(--r-panel); box-shadow: 0 24px 60px rgba(23, 32, 51, .25); }
.modal h2 { font-size: var(--fs-h3); }
.modal .sub { margin-top: 6px; color: var(--slate); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.x { float: right; width: 40px; height: 40px; margin: -8px -8px 0 0; border: 0; border-radius: var(--r-ctl); background: none; font-size: 26px; color: var(--slate); cursor: pointer; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 40px)); }
.toast { padding: 14px 16px; border-radius: var(--r-ctl); background: var(--ink); color: #fff; font-size: var(--fs-body); box-shadow: 0 10px 30px rgba(23, 32, 51, .25); }
.toast.error { background: var(--stop); }
.skeleton { height: 18px; margin: 10px 0; border-radius: 4px; background: linear-gradient(90deg, #e7ebf0, #f3f5f8, #e7ebf0); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.tabbar { display: none; }
.m-brand { display: none; }
.dt { font-variant-numeric: tabular-nums; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.table th { color: var(--slate); font-size: var(--fs-min); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cat-cols, .plans { grid-template-columns: minmax(0, 1fr); }
  .cat-col, .plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .cat-col:last-child, .plan:last-child { border-bottom: 0; }
}
@media (max-width: 860px) {
  .pub-nav { display: none; }
  .pub-top-in { gap: 12px; padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 36px; }
  .flow, .truths { grid-template-columns: minmax(0, 1fr); }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .pub-mnav { display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; border-top: 1px solid var(--line-2); }
  .pub-mnav a { padding: 8px 12px; border-radius: var(--r-ctl); color: var(--slate); font-weight: 600; text-decoration: none; white-space: nowrap; font-size: var(--fs-min); }
  .pub-mnav a[aria-current="page"] { background: var(--paper); color: var(--ink); }
}
@media (min-width: 861px) { .pub-mnav { display: none; } }
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: var(--slate); font-size: var(--fs-min); font-weight: 600; text-decoration: none; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar .count { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--stop); color: #fff; font-size: var(--fs-min); line-height: 20px; }
  .topbar { padding: 0 16px; }
  .topbar form { display: none; }
  .m-brand { display: inline-flex; }
  .m-brand.wordmark { font-size: 20px; }
  .content { padding: 20px 16px 96px; }
  .app-foot { padding: 16px 16px 84px; }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tally a:nth-child(2) { border-right: 0; }
  .tally a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-pick { grid-template-columns: minmax(0, 1fr); }
  .wrow { grid-template-columns: 6px minmax(0, 1fr); }
  .wrow .side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; padding: 0 18px 14px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .detail-head img { width: 64px; height: 86px; }
  .paste .row { flex-direction: column; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .page-head h1 { font-size: 24px; }
  .modal { padding: 20px; }
  .pf-table .pf-name { min-width: 110px; }
}
@media (min-width: 1800px) {
  :root { --fs-body: 17px; --fs-min: 15px; }
  .content { max-width: 1320px; }
  .wrap, .pub-top-in, .pub-foot-in { max-width: 1320px; }
}
@media (min-width: 1800px) { .content { margin-inline: auto; } }
@media (min-width: 2200px) {
  :root { --fs-body: 18px; --fs-min: 16px; --fs-lg: 20px; --rail: 260px; }
  .content { max-width: 1680px; }
  .wrap, .pub-top-in, .pub-foot-in { max-width: 1640px; }
  .board td { min-width: 96px; height: 66px; }
  .board td b { font-size: 28px; }
}
/* B76C conversation-style bank transfer */
.pay-chat{display:grid;gap:10px;margin-top:14px}
.pay-bubble{margin:0;max-width:560px;padding:12px 14px;border-radius:14px;line-height:1.6;word-break:keep-all}
.pay-bubble.bot{margin-right:28px;border-top-left-radius:5px;background:#f2f5f9}
.pay-bubble.user{margin-left:auto;border-top-right-radius:5px;background:var(--brand);color:#fff;font-weight:700}
.pay-bubble.done{background:#ecfdf3;color:#05603a;font-weight:700}.pay-bubble.warn{color:#b42318}
.pay-summary,.pay-account{display:grid;gap:3px}.pay-summary span,.pay-account span{font-size:13px;font-weight:800;color:var(--slate)}.pay-summary strong{font-size:20px}.pay-account b{font-size:16px}.pay-account small{font-weight:600;opacity:.7}.pay-account p,.pay-summary p{margin:0;font-size:14px;color:var(--slate)}
.pay-periods{display:flex;gap:8px;flex-wrap:wrap}.pay-period{padding:7px 12px;border:1px solid #e4e7ec;border-radius:999px;font-weight:700}.pay-period.active{border-color:#2563eb;color:#2563eb}
.pay-depositor{display:flex;gap:8px;max-width:560px}.pay-depositor .field{flex:1;min-width:0}
.pay-cancel{justify-self:start;background:none;border:0;padding:4px 0;color:#667085;text-decoration:underline;cursor:pointer}
@media(max-width:760px){.pay-bubble.bot{margin-right:0}.pay-depositor{flex-direction:column}}

/* QA 2026-10-18: in-app help — per-예약처 cards for the user's own watches */
.help-pf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.help-pf { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.help-pf-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.help-pf-head .num { margin-left: auto; }
.help-pf p { margin: 0; font-size: 14px; }
.panel-subtitle { font-size: 17px; margin: 18px 0 8px; }
.help-fail { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.help-fail li { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }

/* QA 2026-10-18: one list style instead of browser default bullets — dot markers sit on the text's left edge */
.cat-col ul, .pf-table td ul, .plan ul, .auth-side ul, .panel ul:not([class]), .panel ul.small { list-style: none; padding-left: 0; }
.cat-col li, .pf-table td li, .plan li, .auth-side li, .panel ul:not([class]) > li, .panel ul.small > li { position: relative; padding-left: 16px; }
.cat-col li::before, .pf-table td li::before, .plan li::before, .auth-side li::before, .panel ul:not([class]) > li::before, .panel ul.small > li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.auth-side li::before { background: currentColor; }
.sp-num { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; gap: 12px; }
.sp-num > li { counter-increment: n; position: relative; padding-left: 38px; line-height: 1.7; }
.sp-num > li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .status-table tr, .status-table th[scope="row"], .status-table td { display: block; width: auto !important; } .status-table th[scope="row"] { padding-bottom: 4px; border-bottom: 0; } .status-table td { padding-top: 0; } }
.report-export-row { display: flex; flex-wrap: wrap; gap: 8px; }
.report-export-row select { flex: 1; min-width: 140px; }
