/* Wave 문의 대시보드 — internal tool, dark mode (CLAUDE.md design rules) */
:root {
  --bg: #0a0a0f;
  --surface: #14141b;
  --surface-2: #1c1c25;
  --line: #2a2a36;
  --text: #ecebe8;
  --muted: #9a98a3;
  --orange: #e8731e;
  --gold: #f0a500;
  --green: #3fb950;
  --amber: #f0a500;
  --red: #f25a4a;
  --blue: #5b9cf5;
  --grad: linear-gradient(135deg, var(--orange), var(--gold));
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); }
a { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Header + tabs */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top__bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: 1100px; margin: 0 auto; }
.brand { font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.brand__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--grad); display: grid; place-items: center; color: #1a1008; font: 700 14px var(--mono); }
.top__spacer { flex: 1; }
.me { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px 8px; max-width: 1100px; margin: 0 auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { text-decoration: none; flex: none; border: 1px solid transparent; background: none; border-radius: 999px; padding: 6px 12px; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.tab[aria-current="page"] { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.count { font: 500 12px var(--mono); padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.count--red { background: color-mix(in srgb, var(--red) 22%, transparent); color: var(--red); }

main { max-width: 1100px; margin: 0 auto; padding: 16px 16px calc(80px + env(safe-area-inset-bottom)); }

/* Buttons + inputs */
.btn { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 14px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.btn:hover { border-color: color-mix(in srgb, var(--orange) 60%, var(--line)); }
.btn--primary { background: var(--grad); border: 0; color: #1a1008; font-weight: 600; }
.btn--ghost { background: none; }
.btn--sm { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.input, select.input, textarea.input { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; }
.input:focus, .btn:focus-visible, .tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
textarea.input { min-height: 84px; resize: vertical; }
label.field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.toolbar .input { width: auto; min-width: 120px; flex: 1 1 140px; }
.toolbar .input[type="search"] { flex: 3 1 220px; }
.summary { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.summary b { font-family: var(--mono); color: var(--text); }

/* Request list */
.list { display: grid; gap: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: 64px 1fr; gap: 14px; text-decoration: none; color: inherit; }
.card:hover { border-color: color-mix(in srgb, var(--orange) 45%, var(--line)); }
.card--urgent { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); }
.age { border-radius: var(--radius-sm); display: grid; place-content: center; text-align: center; font: 600 17px var(--mono); line-height: 1.1; padding: 8px 0; }
.age small { display: block; font: 400 11px var(--font); opacity: .8; margin-top: 2px; }
.age--green { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.age--orange { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.age--red { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.card__title { font-weight: 600; font-size: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.card__meta { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.card__row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.chip { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.chip--가능 { border-color: color-mix(in srgb, var(--green) 50%, var(--line)); color: var(--green); }
.chip--불가 { border-color: color-mix(in srgb, var(--red) 50%, var(--line)); color: var(--red); }
.chip--q { border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); color: var(--blue); }
.chip--warn { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); color: var(--red); }
.chip--test { border-style: dashed; color: var(--muted); }
.badge-hot { font-size: 12px; font-weight: 600; color: var(--red); }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Detail */
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; margin-bottom: 12px; font-size: 14px; }
.detail { display: grid; gap: 16px; }
.detail__main { display: grid; gap: 16px; }
.detail__main .panel + .panel { margin-top: 0; }
@media (min-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "head side" "main side"; align-items: start; }
  .detail__head { grid-area: head; }
  .detail__main { grid-area: main; }
  .detail__side { grid-area: side; position: sticky; top: 110px; }
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 600; font-family: var(--mono); }
.head h1 { font-size: 21px; margin: 0 0 4px; line-height: 1.3; }
.head .card__meta { font-size: 14px; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.contact { display: grid; gap: 4px; font-size: 14px; margin-top: 12px; }
.contact a { text-decoration: none; }
.artist-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.artist-row:first-of-type { border-top: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.seg button { border: 0; background: none; padding: 5px 10px; cursor: pointer; font-size: 13px; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); font-weight: 600; }
.qa { display: grid; gap: 10px; }
.qa__section { font: 600 12px var(--mono); color: var(--orange); margin-top: 8px; }
.qa dt { color: var(--muted); font-size: 13px; }
.qa dd { margin: 0 0 4px; white-space: pre-wrap; word-break: break-word; }
.notes { display: grid; gap: 10px; margin-bottom: 12px; }
.note { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; border-left: 3px solid var(--line); }
.note--q { border-left-color: var(--blue); }
.note--q.note--answered { border-left-color: var(--green); }
.note__head { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.note__body { white-space: pre-wrap; word-break: break-word; }
.composer { display: grid; gap: 8px; }
.composer__row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.composer__row .input { width: auto; flex: 1 1 160px; }
.files { display: grid; gap: 8px; }
.file { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.file img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.file__icon { width: 56px; height: 56px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; font: 600 11px var(--mono); color: var(--muted); }
.file small { color: var(--muted); display: block; }
.upload { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.todos { display: grid; gap: 8px; }
.todo { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.todo input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); }
.todo--done { opacity: .55; }
.todo--done .todo__title { text-decoration: line-through; }
.todo__title { font-weight: 600; }
.todo__meta { font-size: 13px; color: var(--muted); }
.todo__due--late { color: var(--red); font-weight: 600; }
.todo-form { display: grid; gap: 8px; margin-top: 12px; }
.todo-form .composer__row .input { flex: 1 1 140px; }
.history { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.group-title { font: 600 13px var(--mono); color: var(--muted); margin: 18px 0 8px; }

/* Dialog */
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; width: min(560px, calc(100vw - 32px)); }
dialog::backdrop { background: color-mix(in srgb, #000 65%, transparent); }
dialog h2 { margin: 0 0 14px; font-size: 18px; }
.form-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.form-grid .span2 { grid-column: 1 / -1; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--text); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--line); padding: 10px 16px; border-radius: var(--radius-sm); font-size: 14px; z-index: 50; max-width: calc(100vw - 32px); }
.toast--error { border-color: var(--red); color: var(--red); }
.fab { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); border-radius: 999px; padding: 12px 18px; box-shadow: 0 6px 24px color-mix(in srgb, #000 50%, transparent); }

@media (max-width: 560px) {
  .card { grid-template-columns: 54px 1fr; padding: 12px; gap: 12px; }
  .controls, .form-grid { grid-template-columns: 1fr; }
  .me { display: none; }
}
@media (prefers-reduced-motion: no-preference) { .card, .btn, .tab { transition: border-color .15s, background .15s; } }

/* Logo */
.brand__logo { height: 24px; width: auto; display: block; }
.brand__name { font-weight: 600; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.login h1 .brand__name { font-size: 18px; }
.login h1 img { height: 36px; width: auto; }

/* 개요 */
:root { --s1: #dc6a1c; --s2: #3987e5; }   /* validated for #14141b (dataviz validator, dark) */
.overview { display: grid; gap: 16px; }
.overview .panel + .panel { margin-top: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi__label { font-size: 13px; color: var(--muted); }
.kpi__value { font: 600 30px/1.15 var(--mono); margin-top: 4px; }
.kpi__note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi--bad { border-color: color-mix(in srgb, var(--red) 50%, var(--line)); }
.kpi--bad .kpi__value::before { content: "● "; color: var(--red); font-size: 18px; vertical-align: middle; }
.kpi--warn .kpi__value::before { content: "● "; color: var(--amber); font-size: 18px; vertical-align: middle; }
.kpi--good .kpi__value::before { content: "✓ "; color: var(--green); font-size: 18px; vertical-align: middle; }
.two-col { display: grid; gap: 16px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.seg--scope button { padding: 6px 14px; font-size: 14px; }

/* Line chart */
.chart-wrap { display: grid; gap: 8px; }
.chart-box { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: color-mix(in srgb, var(--text) 8%, transparent); stroke-width: 1; }
.chart .axis { stroke: color-mix(in srgb, var(--text) 25%, transparent); stroke-width: 1; }
.chart .tick { fill: var(--muted); font: 11px var(--mono); }
.chart .endlabel { fill: var(--text); font: 600 12px var(--mono); }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.s1, .chart .dot.s1 { stroke: var(--s1); }
.chart .line.s2, .chart .dot.s2 { stroke: var(--s2); }
.chart .dot { fill: var(--surface); stroke-width: 2.5; }
.chart .cross { stroke: color-mix(in srgb, var(--text) 35%, transparent); stroke-dasharray: 3 3; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.sw.s1 { background: var(--s1); }
.sw.s2 { background: var(--s2); }
.tip { position: absolute; top: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13px; pointer-events: none; min-width: 130px; box-shadow: 0 6px 20px color-mix(in srgb, #000 40%, transparent); }
.tip b { font-family: var(--mono); }
.chart-table summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.chart-table table { font-size: 13px; margin-top: 6px; border-collapse: collapse; }
.chart-table th, .chart-table td { padding: 3px 12px 3px 0; text-align: left; font-family: var(--mono); }

/* Bars (one series) */
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 70px 1fr 36px; gap: 10px; align-items: center; text-decoration: none; color: var(--text); padding: 3px 0; border-radius: 6px; }
.bar:hover .bar__fill { background: color-mix(in srgb, var(--s1) 80%, #fff); }
.bar__label { font-size: 13.5px; }
.bar__track { height: 14px; }
.bar__fill { display: block; height: 100%; background: var(--s1); border-radius: 0 4px 4px 0; }
.bar__value { font: 600 13px var(--mono); text-align: right; }

/* Tables */
.table-scroll { overflow-x: auto; }
.grid-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 6px 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); white-space: nowrap; }
.grid-table a { color: var(--text); font-weight: 600; text-decoration: none; }
.grid-table .muted { color: var(--muted); }
.grid-table .late { color: var(--red); font-weight: 600; }
.inline-bar { display: inline-block; width: 60px; height: 8px; background: var(--surface-2); border-radius: 4px; vertical-align: middle; overflow: hidden; }
.inline-bar span { display: block; height: 100%; background: var(--s1); }
.list--compact { gap: 8px; }
.list--compact .card { padding: 10px 12px; grid-template-columns: 54px 1fr; }
.assign-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.assign-row:first-child { border-top: 0; }
.assign-row a { color: var(--text); font-weight: 600; text-decoration: none; }
.assign-row > a, .assign-row > span { grid-column: 1; }
.assign-row select { grid-column: 2; grid-row: 1 / span 2; width: 150px; }
.upcoming { display: grid; gap: 8px; }
.up { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; text-decoration: none; color: var(--text); padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.up:first-child { border-top: 0; }
.up__date { font: 500 13px var(--mono); color: var(--gold); }
.checks--col { flex-direction: column; gap: 8px; }

/* Request page: fees + confirmed details */
.artist-block { border-top: 1px solid var(--line); padding: 6px 0 10px; }
.artist-block:first-child { border-top: 0; }
.artist-block .artist-row { border-top: 0; }
.fees { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field--money { font-size: 12px; }
.money { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.input--money { font-family: var(--mono); text-align: right; padding: 7px 10px; }
@media (max-width: 560px) { .up { grid-template-columns: 1fr auto; } .up__date { grid-column: 1 / -1; } .assign-row select { width: 120px; } }
.controls > *, .fees > * { min-width: 0; }
.controls .input, .fees .input { min-width: 0; }
.confirmed input[type="datetime-local"] { font-size: 13.5px; padding: 8px 8px; }

/* Light mode (toggle in the header; dark stays the default for this internal tool) */
:root[data-theme="light"] {
  --bg: #f5f2ed;
  --surface: #ffffff;
  --surface-2: #f1eee8;
  --line: #e2ddd4;
  --text: #1a1008;
  --muted: #6b645c;
  --gold: #8a5a00;
  --green: #1e7f3a;
  --amber: #9a5d00;
  --red: #c62828;
  --blue: #2a78d6;
  --s1: #c85a12;   /* validated on #ffffff (dataviz validator, light) */
  --s2: #2a78d6;
  --grad: linear-gradient(135deg, #e8731e, #f0a500);   /* Wave gradient; --gold above is only for text */
  color-scheme: light;
}
:root[data-theme="light"] .btn--primary, :root[data-theme="light"] .brand__mark { color: #1a1008; }
:root[data-theme="light"] .tip, :root[data-theme="light"] .fab { box-shadow: 0 6px 20px color-mix(in srgb, #000 14%, transparent); }
:root[data-theme="light"] .card:hover { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); }
.logo--on-light { display: none; }
:root[data-theme="light"] .logo--on-light { display: block; }
:root[data-theme="light"] .logo--on-dark { display: none; }
.login h1 .logo--on-light { height: 36px; width: auto; }

/* 🔔, 비슷한 문의, 아티스트, 확정 처리 */
.bell { position: relative; font-size: 15px; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 600 11px/18px var(--mono); text-align: center; }
.me { text-decoration: none; }
.bell-panel { position: fixed; top: 56px; right: max(16px, calc((100vw - 1100px) / 2 + 16px)); width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px color-mix(in srgb, #000 35%, transparent); }
.bell-panel__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.bell-item { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 10px 12px; text-decoration: none; color: var(--muted); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: 14px; }
.bell-item small { display: block; font-size: 12px; margin-top: 2px; }
.bell-item--unread { color: var(--text); background: color-mix(in srgb, var(--orange) 7%, transparent); }
.similar { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--amber) 12%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 35%, var(--line)); display: grid; gap: 4px; font-size: 14px; }
.similar a { color: var(--text); }
.mention { width: auto !important; flex: 0 0 auto !important; }
.narrow { max-width: 720px; display: grid; gap: 16px; }
.narrow .panel + .panel { margin-top: 0; }
.artist-card summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; }
.artist-card summary::-webkit-details-marker { display: none; }
.artist-card[open] summary { margin-bottom: 14px; }
.dlg-wide { width: min(820px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
.dlg-sub { margin: 12px 0 0; font-size: 13px; font-family: var(--mono); color: var(--orange); font-weight: 600; }
.form-grid .checks { font-size: 13.5px; }

/* more charts */
.cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 180px; align-items: end; }
.col { display: grid; grid-template-rows: 18px 1fr 18px; height: 100%; align-items: end; text-align: center; }
.col__bar { display: block; background: var(--s1); border-radius: 4px 4px 0 0; width: 70%; margin: 0 auto; align-self: end; }
.col:hover .col__bar { background: color-mix(in srgb, var(--s1) 75%, var(--text)); }
.col__value { font: 600 11px var(--mono); color: var(--text); white-space: nowrap; }
.col__label { font: 11px var(--mono); color: var(--muted); }
.bars--wide .bar { grid-template-columns: 110px 1fr 44px 50px; }
.bar__note { font: 12px var(--mono); color: var(--muted); text-align: right; }
.dumbbells { display: grid; gap: 10px; }
.db { display: grid; grid-template-columns: 110px 1fr 56px; gap: 10px; align-items: center; }
.db__track { position: relative; height: 18px; background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
.db__line { position: absolute; top: 8px; height: 2px; background: color-mix(in srgb, var(--text) 30%, transparent); }
.db__dot { position: absolute; top: 3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--surface); }
.db__dot.s1, .dot-sw.s1 { background: var(--s1); }
.db__dot.s2, .dot-sw.s2 { background: var(--s2); }
.dot-sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

/* Header: 🔔 next to the logo, search, greeting */
.top__bar { gap: 10px; }
.search { flex: 0 1 320px; }
.search .input { padding: 7px 12px; font-size: 14px; }
.hello { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.bell-panel { left: max(16px, calc((100vw - 1100px) / 2 + 16px)); right: auto; }
.bell-unread { border: 0; background: none; color: var(--gold); font-size: 12px; cursor: pointer; padding: 0 0 0 8px; }
@media (max-width: 760px) {
  .hello { display: none; }
  .top__bar { flex-wrap: wrap; }
  .search { order: 10; flex: 1 1 100%; }
}

/* Artist photos */
.av { position: relative; display: inline-grid; place-items: center; overflow: hidden; flex: none; background: var(--surface-2); color: var(--muted); font-weight: 600; border-radius: 6px; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av--sm { width: 18px; height: 18px; font-size: 10px; border-radius: 4px; }
.av--md { width: 40px; height: 40px; font-size: 16px; }
.chip--av { display: inline-flex; align-items: center; gap: 5px; padding-left: 3px; }
.artist-id { display: inline-flex; align-items: center; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.tile { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; text-align: center; font: inherit; color: var(--text); }
.tile:hover { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile:has(input:checked) { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, var(--surface)); }
.tile:has(input:checked)::after { content: "✓"; position: absolute; top: 4px; right: 6px; color: var(--orange); font-weight: 700; font-size: 13px; }
.tile:has(input:focus-visible) { outline: 2px solid var(--orange); }
.tile__name { font-size: 13px; font-weight: 600; }
.tile__note { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.add-artist { margin-top: 8px; }
.add-artist summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
.add-artist .tiles { margin-top: 8px; }

/* Reactions */
.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.react { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 1px 8px; font-size: 13px; cursor: pointer; color: var(--text); }
.react--mine { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, var(--surface)); }
.react-pick { position: relative; }
.react-pick summary { list-style: none; cursor: pointer; color: var(--muted); font-size: 13px; padding: 1px 6px; border-radius: 999px; }
.react-pick summary::-webkit-details-marker { display: none; }
.react-pick summary:hover { color: var(--text); background: var(--surface); }
.react-pick__menu { position: absolute; bottom: 100%; left: 0; display: flex; gap: 4px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 20px color-mix(in srgb, #000 30%, transparent); z-index: 5; }
.react-pick__menu .react { border: 0; font-size: 17px; padding: 2px 4px; background: none; }
a.btn { text-decoration: none; color: var(--text); display: inline-flex; align-items: center; }
@media (max-width: 760px) { #logout, .brand__name { display: none; } }
.logout-row { display: flex; justify-content: flex-end; }

/* Tags */
.tag-editor { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; padding: 6px 8px; border: 1px dashed var(--line); border-radius: var(--radius-sm); cursor: text; }
.tag-editor:focus-within { border-style: solid; border-color: color-mix(in srgb, var(--orange) 60%, var(--line)); }
.tag-chips { display: contents; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--text); font-size: 13px; }
.tag button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 0 0 2px; font-size: 14px; line-height: 1; }
.tag--sm { font-size: 12px; padding: 1px 7px; }
.tag-input { flex: 1 1 120px; min-width: 80px; border: 0; background: none; padding: 4px 2px; font-size: 13.5px; color: var(--text); outline: none; }

/* 아티스트 grid + detail */
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.artist-tile { display: grid; justify-items: center; gap: 6px; padding: 18px 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); text-align: center; }
.artist-tile:hover { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); }
.artist-tile--off { opacity: .55; }
.artist-tile__chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.av--lg { width: 96px; height: 96px; font-size: 32px; border-radius: 12px; }
.av--xl { width: 88px; height: 88px; font-size: 30px; border-radius: 12px; }
.artist-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.artist-head h1 { margin: 0 0 4px; font-size: 22px; }
.artist-head__actions { display: flex; gap: 8px; }
.form--editing { outline: 2px dashed color-mix(in srgb, var(--orange) 50%, transparent); outline-offset: 8px; border-radius: 4px; }
.form-grid .input:disabled { opacity: 1; background: var(--surface-2); color: var(--text); border-color: transparent; }
.versions { display: grid; gap: 10px; }
.version { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; display: grid; gap: 6px; justify-items: start; }
.version__changes { font-size: 13.5px; display: grid; gap: 2px; word-break: break-all; }
@media (max-width: 560px) { .artist-head { grid-template-columns: auto 1fr; } .artist-head__actions { grid-column: 1 / -1; } }
.participants { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.input--inline { width: auto; padding: 3px 8px; font-size: 13px; }
.info-edit { min-height: 120px; }
.info-text { white-space: pre-wrap; word-break: break-word; margin-bottom: 6px; }
.temp-pw { font: 600 22px var(--mono); letter-spacing: .06em; background: var(--surface-2); padding: 12px; border-radius: var(--radius-sm); text-align: center; user-select: all; }
.row--off td { opacity: .5; }
.artist-home { display: grid; gap: 16px; max-width: 900px; }
.artist-home .panel + .panel { margin-top: 0; }
.artist-hello { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 16%, var(--surface)), var(--surface)); }
.artist-hello h1 { margin: 0 0 4px; font-size: 22px; }

/* Korean date picker (datetime.js) */
.dt { position: relative; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; }
.dt__btn { text-align: left; cursor: pointer; flex: 1 1 150px; min-width: 0; white-space: nowrap; font-family: var(--mono); font-size: 14px; }
.dt__btn--empty { color: var(--muted); font-family: var(--font); }
.dt__btn:disabled { cursor: default; background: var(--surface-2); border-color: transparent; }
.dt__time { display: flex; gap: 4px; flex: 0 0 auto; }
.dt__time .input { width: auto; padding: 8px 6px; font-size: 13.5px; }
.dt__pop { position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; width: 272px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 36px color-mix(in srgb, #000 35%, transparent); }
.dt__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dt__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dt__wd { font-size: 11.5px; color: var(--muted); padding: 4px 0; }
.dt__wd--sun { color: var(--red); }
.dt__day { border: 0; background: none; color: var(--text); padding: 7px 0; border-radius: 6px; cursor: pointer; font: 13px var(--mono); }
.dt__day:hover { background: var(--surface-2); }
.dt__day:disabled { opacity: .3; cursor: default; }
.dt__day--today { box-shadow: inset 0 0 0 1px var(--orange); }
.dt__day--on { background: var(--orange); color: #1a1008; font-weight: 700; }
.dt__foot { display: flex; justify-content: space-between; margin-top: 8px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.kv:first-of-type { border-top: 0; }
.chip-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 0 0 4px; font-size: 14px; line-height: 1; }
.bell-item small .bell-unread { margin-top: 4px; }
.artist-actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 6px 50px; }
.tile--on { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, var(--surface)); }

/* 📱 push */
.bell-push { display: block; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--orange); text-decoration: none; }
.device-list { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.device-list li { margin: 4px 0; }

/* 사유 chips (바꾸기 · 빼기 · 복사) */
.reasons { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.reason { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.reason:hover { border-color: var(--orange); }
.reason--on { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 18%, transparent); font-weight: 600; }
.linked { display: grid; gap: 4px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13.5px; }
.linked a { color: var(--text); }

/* 여러 개 선택 · 일괄 변경 */
.card--selecting { cursor: pointer; }
.pick { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; color: #fff; align-self: center; justify-self: center; }
.card--picked { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 8%, var(--surface)); }
.card--picked .pick { background: var(--orange); border-color: var(--orange); }
.bulk { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--orange); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 24px rgb(0 0 0 / .25); }
.bulk .input { width: auto; min-width: 0; padding: 6px 8px; font-size: 13px; }
.bulk input.input { width: 110px; }
/* Wide screens: tabs wrap to a second line (⭐ saved tabs) instead of hiding off the edge. */
@media (min-width: 900px) { .tabs { flex-wrap: wrap; row-gap: 6px; } }
.urn { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.urn code { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.urn .btn { padding: 2px 6px; }

/* ⏱ 길이 · 🔗 링크 */
.chip--dur { font-weight: 600; }
.dur-big { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 15px; background: color-mix(in srgb, var(--orange) 16%, transparent); border: 1px solid color-mix(in srgb, var(--orange) 45%, transparent); }
.links-block { margin-top: 14px; }
.links-block h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.links { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.links li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.links a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.link-form { display: grid; grid-template-columns: 2fr 1fr auto; gap: 6px; }
@media (max-width: 560px) { .link-form { grid-template-columns: 1fr; } }
/* 👁 artist preview */
.preview-bar { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 8px 12px; background: var(--grad); color: #1a1008; font-weight: 700; font-size: 14px; }
.preview-bar .btn { background: #fff; color: #1a1008; border-color: transparent; }
/* 🗂 대화 마무리 */
.notes-fold { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--surface-2); }
.notes-fold > summary { cursor: pointer; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notes-fold[open] > summary { margin-bottom: 8px; }
.notes-close { display: flex; justify-content: flex-end; }

/* 📺 회차 */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-head h2 { margin: 0; }
.eps { display: grid; gap: 4px; }
.ep { display: grid; grid-template-columns: auto 38px minmax(0, 1fr) 62px 74px 92px auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13.5px; }
.ep--done { opacity: .8; }
.ep--done .ep__n::after { content: ' ✓'; color: var(--green); }
.ep--cancel { opacity: .5; text-decoration: line-through; }
.ep--cancel .ep__status { text-decoration: none; }
.ep .input { padding: 5px 6px; font-size: 13px; min-width: 0; }
.ep__flags { display: flex; gap: 4px; }
.ep__date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ep__date small { color: var(--muted); }
.ep-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.ep-add .input { width: auto; }
.ep-add .input--money { width: 110px; }
.ep-more { display: inline-flex; gap: 4px; align-items: center; }
.ep-more .input { width: auto; padding: 5px 6px; }
@media (max-width: 640px) {
  .ep { grid-template-columns: auto 34px minmax(0, 1fr) auto; }
  .ep__flags:empty { display: none; }
  .ep__date { grid-column: 3 / 5; }
  .ep__fee { grid-column: 3 / 4; }
}
/* Grid items never grow past the screen because of a wide child (phones). */
.detail > *, .detail__main > * { min-width: 0; }
@media (max-width: 640px) { .ep-add > * { flex: 1 1 110px; } .ep-add .dt { flex-basis: 100%; } }

/* 📅 일정 */
.cal-bar { align-items: center; }
.cal-title { font-size: 18px; min-width: 110px; text-align: center; }
.cal-legend { display: flex; gap: 6px; margin-left: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal-wd { background: var(--surface-2); padding: 6px; font-size: 12px; font-weight: 600; text-align: center; color: var(--muted); }
.cal-wd--sun, .cal-day--sun .cal-day__n { color: var(--red); }
.cal-day { background: var(--surface); min-height: 104px; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day--out { background: var(--surface-2); opacity: .55; }
.cal-day--today { box-shadow: inset 0 0 0 2px var(--orange); }
.cal-day__n { font-size: 12px; font-weight: 600; color: var(--muted); }
.cal-more { font-size: 11px; color: var(--muted); }
.ev { display: block; font-size: 11.5px; line-height: 1.3; padding: 2px 5px; border-radius: 5px; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid transparent; }
.ev b { font-family: var(--mono); font-weight: 600; }
.ev--confirmed { background: color-mix(in srgb, var(--orange) 22%, transparent); border-color: color-mix(in srgb, var(--orange) 55%, transparent); }
.ev--tentative { border: 1px dashed color-mix(in srgb, var(--orange) 70%, transparent); background: transparent; }
.ev--episode { background: color-mix(in srgb, var(--blue) 18%, transparent); border-color: color-mix(in srgb, var(--blue) 50%, transparent); }
.ev--muted { background: var(--surface-2); color: var(--muted); }
.ev--done { opacity: .6; }
.cal-legend .ev { display: inline-block; }
.cal-agenda { display: none; }
.cal-agenda__day { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.cal-agenda__date { font-weight: 700; font-size: 14px; }
.cal-agenda .ev { white-space: normal; font-size: 13.5px; padding: 6px 8px; }
@media (max-width: 760px) {
  .cal-grid { display: none; }
  .cal-agenda { display: block; }
  .cal-legend { margin-left: 0; }
}
.cal-bar .input { width: auto; flex: 0 1 200px; }

/* 💰 정산 */
:root { --series1: #dc6a1c; }
:root[data-theme="light"] { --series1: #c85a12; }
.sync-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13px; }
.sync-line--err { box-shadow: inset 3px 0 0 var(--red); }
.fin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fin-card { display: grid; gap: 8px; align-content: start; }
.fin-card__head { display: flex; align-items: center; gap: 8px; }
.fin-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 13px; }
.fin-dl dt { color: var(--muted); }
.fin-dl dd { margin: 0; text-align: right; font-family: var(--mono); }
.fin-ready { font-weight: 700; color: var(--text); }
.fin-table-wrap { overflow-x: auto; }
.fin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fin-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fin-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fin-table .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.fin-net { font-weight: 700; }
.fin-job a { color: var(--text); }
.fin-job small, .fin-table small { color: var(--muted); }
.fin-row--cancel td { opacity: .5; text-decoration: line-through; }
.fin-err { cursor: help; }
.fin-preview { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13.5px; }
.st-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.settle-list { display: grid; gap: 4px; max-height: 300px; overflow: auto; }
.settle-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13.5px; }
.dlg-wide { max-width: 760px; }
.kpi-link { text-decoration: none; color: inherit; display: block; }
.kpi-link:hover .kpi { border-color: var(--orange); }
.money-chart-wrap { overflow-x: auto; }
.money-chart { width: 100%; min-width: 420px; height: auto; display: block; }
.money-chart__bar { fill: var(--series1); }
.money-chart__base { stroke: var(--line); stroke-width: 1; }
.money-chart__lbl { fill: var(--muted); font-size: 11px; text-anchor: middle; font-family: var(--font); }
.money-chart__val { fill: var(--text); font-size: 11px; text-anchor: middle; font-family: var(--mono); font-weight: 600; }
.money-page { display: grid; gap: 16px; }
.money-page .kpi__value { font-size: 21px; }
.fin-cards > .panel { margin-top: 0; }
.money-page > .panel { margin-top: 0; }
.money-page > * { min-width: 0; }
.money-chart { max-width: 860px; }
.fin-table { min-width: 640px; }
.fin-table td a { white-space: nowrap; }
.overview > * { min-width: 0; }
.overview .panel { overflow-x: auto; }
.fee-total { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.fee-total b { color: var(--text); font-family: var(--mono); }
.sessions-field { margin-bottom: 10px; }
.ep-month { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 2px; padding: 0 4px; font-size: 13.5px; }
.ep-month:first-child { margin-top: 0; }
/* ✏️ 수정 · 🗑 삭제 in 소통 */
.note__tools { margin-left: auto; display: inline-flex; gap: 2px; align-items: center; opacity: .75; }
.note:hover .note__tools { opacity: 1; }
.note-edited { font-size: 12px; color: var(--muted); background: none; border: 0; padding: 0 4px; cursor: pointer; font: inherit; font-size: 12px; }
button.note-edited { text-decoration: underline dotted; }
.note--deleted { opacity: .75; background: transparent; border: 1px dashed var(--line); }
.note--deleted .note__head { font-size: 12.5px; color: var(--muted); gap: 6px; }
.note__body--deleted { text-decoration: line-through; color: var(--muted); }
.note-edit__actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.note-versions { margin-top: 6px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13px; display: grid; gap: 6px; }
.fin-bar { align-items: center; }
.fin-bar .input { width: auto; flex: 0 1 180px; }
.fin-months { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 10px; }
.fin-month { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.fin-month--on { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, var(--surface)); font-weight: 700; }
.fin-month--empty { color: var(--muted); }
.fin-month-row { cursor: pointer; }
.fin-month-row:hover td { background: var(--surface-2); }
.fin-month-row--on td { background: color-mix(in srgb, var(--orange) 12%, transparent); }
.fin-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.fin-table--months { min-width: 480px; }

.ep__times-wrap { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; white-space: nowrap; }
.ep__times { width: 42px !important; text-align: center; padding: 5px 4px !important; }
/* Request page: jump row on phones, 📺 card on the right */
.detail__jump { display: none; gap: 6px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.detail__jump::-webkit-scrollbar { display: none; }
.detail__jump .chip { flex: none; cursor: pointer; font: inherit; font-size: 13px; }
@media (max-width: 899px) { .detail__jump { display: flex; } }
.detail__main > .panel, .detail__side > .panel { scroll-margin-top: 120px; }
.detail__side > .panel + .panel { margin-top: 12px; }
.eps-card__big { margin: 2px 0 4px; font: 700 22px/1.2 var(--mono); }
.eps-card__big small { font-size: 14px; color: var(--muted); font-weight: 500; }
@media (max-width: 899px) { .detail__main > .panel, .detail__side > .panel, .detail__side { scroll-margin-top: 165px; } }
