/* Wave 문의 대시보드 — the one list of design values (design B, Julian 2026-10-18: 화이트 + 오렌지, Pretendard).
   Light is the default look (below, :root[data-theme="light"]); these are dark mode's. Page stylesheets use these values
   only — a new colour, size or font goes here first (DESIGN-B-PLAN.md 「one change reaches every page」).
   Plain colours (no color-mix) in the shared values: iPhones on iOS 15 drop a color-mix value everywhere it is used. */
:root {
  --bg: #0e0e12;
  --surface: #16161c;
  --surface-2: #1d1d24;
  --line: #2a2a33;
  --line-strong: #3a3a44;
  --text: #ecebe8;
  --muted: #9a98a3;
  --side-bg: #121217;
  --side-hover: #1c1c24;
  --side-on: #262630;
  --side-text: #d6d5d2;
  --ink: #ecebe8;          /* main buttons: near-black on light, near-white on dark — the orange stays for what is lit */
  --on-ink: #14141b;
  --ink-hover: #ffffff;
  --orange-soft: #2a1a0e;
  --shadow-pop: 0 12px 32px #0000004d;
  --backdrop: #0000008c;   /* behind an open sheet or search */
  --badge-red: #d93a2b;    /* a red badge with white numbers (dark: a deeper red than --red, readable at 11 px) */
  --on-badge: #ffffff;     /* the number on a red / grey badge */
  --side-w: 212px;
  --side-rail: 64px;
  --top-row: 48px;
  --bottom-bar: calc(60px + env(safe-area-inset-bottom));   /* the phone's bottom bar (shell.css) — fixed bars sit above it */
  --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: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;   /* the website's own files (pretendard.css) */
  /* Numbers use the UI font with equal-width digits (font-variant-numeric on body), not a typewriter font.
     --code stays monospace for things people copy character by character (URN, temporary password). */
  --mono: var(--font);
  --code: 'IBM Plex Mono', ui-monospace, monospace;
  /* One type scale and one spacing scale (Pico-style: few sizes, used everywhere) */
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-base: 15px; --fs-lg: 17px; --fs-xl: 22px;
  --control-h: 40px;
  --control-h-sm: 32px;   /* small buttons, chips and button groups — side by side they line up (2026-10-20) */
  --card-line: var(--line);
  --shadow: 0 1px 2px color-mix(in srgb, #000 30%, transparent);
  --ring: 0 0 0 3px #e8731e59;   /* (a plain colour: iOS 15 drops color-mix values) */
  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); font-variant-numeric: tabular-nums; letter-spacing: -0.005em;
  word-break: keep-all; overflow-wrap: break-word; }   /* Korean breaks at spaces, not mid-word (익숙해져/요 ✗); a very long word still wraps */
h1, h2, h3 { text-wrap: balance; }
p, li, dd, .card__meta, .toast { text-wrap: pretty; }   /* no lone word on the last line where the browser can help */
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); }
.brand { font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.me { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 12px; max-width: 1100px; margin: 0 auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { text-decoration: none; flex: none; border: 0; border-bottom: 2px solid transparent; background: none; border-radius: 0; padding: 10px 12px; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: var(--fs-md); }
.tab:hover { color: var(--text); }
.tab[aria-current="page"] { border-bottom-color: var(--orange); color: var(--text); font-weight: 600; }
.count { font: 500 var(--fs-xs) var(--mono); color: var(--muted); }
.count--red { color: var(--red); font-weight: 700; }

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); border-radius: var(--radius-sm); padding: 8px 14px; min-height: var(--control-h); cursor: pointer; font-size: var(--fs-md); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn:hover { border-color: color-mix(in srgb, var(--orange) 60%, var(--line)); }
.btn--primary { background: var(--ink); border: 0; color: var(--on-ink); font-weight: 600; }
.btn--primary:hover { background: var(--ink-hover); }
.btn--ghost { background: none; }
.btn--sm { padding: 4px 10px; min-height: var(--control-h-sm); font-size: var(--fs-sm); }
.btn:disabled { opacity: .5; cursor: default; }
.input, select.input, textarea.input { width: 100%; min-height: var(--control-h); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; }
input.input { line-height: 20px; }   /* (one line: 20 + 9 + 9 + 2 = 40, the same as a button) */
/* A small button right after a text box or dropdown in one row takes its height (도움말 search · 「모두 펼치기」, 스팸 · 「차단 추가」) */
:is(input.input, select.input) ~ .btn--sm:not(.df__cal) { align-self: stretch; }
.input:focus, .btn:focus-visible { outline: none; border-color: var(--orange); box-shadow: var(--ring); }
.tab:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
textarea.input { min-height: 84px; resize: vertical; }
label.field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); align-content: start; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.toolbar:empty { display: none; }   /* (a toolbar whose title moved to the top row and that has no buttons for this login) */
.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; }
/* 🗑 deleted request, read only */
dialog.trash-preview { max-width: 720px; width: calc(100vw - 32px); }
.trash-notes { display: grid; gap: 8px; max-height: none; }
.trash-note { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; white-space: pre-wrap; }
/* 답변 대기 · 논의중 · 전체: sort buttons at the end of the summary line (전체's year buttons stay by the count) */
.summary .list-sort { margin-left: auto; }
/* A panel whose title folds it (the artist's 문의 내용) */
.fold-panel > h2, .fold-panel > .fold-head > h2 { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; user-select: none; }
.fold-panel > h2::after, .fold-panel > .fold-head > h2::after { content: '▾'; color: var(--muted); font-size: 14px; }
.fold-panel.is-folded > h2::after, .fold-panel.is-folded > .fold-head > h2::after { content: '▸'; }
.fold-panel.is-folded > :not(h2, .fold-head), .fold-panel.is-folded > .fold-head > :not(h2) { display: none; }
.fold-panel.is-folded > h2, .fold-panel.is-folded > .fold-head, .fold-panel.is-folded > .fold-head > h2 { margin-bottom: 0; }
.fold-panel > .fold-head > h2 { flex: 1; }
.fold-sum { display: none; }   /* (what a folded panel holds — foldPanel opts.sum) */
.fold-panel.is-folded .fold-sum { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: var(--fs-sm); font-weight: 400; }
.head__act-short { display: none; }
.qa-translate { margin: -4px 0 10px; font-size: var(--fs-md); }   /* 🌐 Translate on 문의 내용 (English screens, B2) */
.qa-translate a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
/* 📊 chart hover (charttip.js): the amount right away, the hovered bar or point bright and the others dimmed */
.charttip { position: fixed; z-index: 1000; pointer-events: none; max-width: 260px; padding: 7px 11px; border-radius: 8px;
  background: var(--text); color: var(--surface); font-size: 13px; line-height: 1.45; white-space: pre-line; font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 18px color-mix(in srgb, #000 22%, transparent); }
.tipchart [data-tip] { transition: opacity .12s ease; }
.tipchart.has-hot [data-tip]:not(.is-hot) { opacity: .35; }
/* 내 문의 / 전체: status tabs + 기간 */
.st-tabs { margin: 2px 0 10px; }
.st-tabs .count { margin-left: 4px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.list-range { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.list-range .input { width: auto; min-width: 0; }
.list-range__dates { display: inline-flex; gap: 6px; align-items: center; }
/* 📱 an artist's 내 문의 (app.js listRange fold · status tabs, B3): 기간 behind one chip; empty status tabs hidden */
/* (the chip only opens and closes on a phone: computers never show it — `.list-range >` outweighs button.chip's inline-flex) */
.list-range > .list-range__chip { display: none; }
@media (max-width: 600px) {
  .list-range--fold > .list-range__chip { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 13px; cursor: pointer; }
  .list-range--fold > .list-range__chip[aria-expanded="true"] { border-color: var(--orange); color: var(--text); }
  .list-range--fold > .list-range__label, .list-range--fold:not(.is-open) > :not(.list-range__chip) { display: none; }
  .st-tab--zero { display: none; }
}
@media (max-width: 600px) { .list-range__dates { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } .list-range__dates .input { flex: 1; } .list-range__dates .df, .list-range__dates .df__field { width: 100%; } .list-range__dates .df__in { min-width: 0; width: 100%; } }
.summary b { font-family: var(--mono); color: var(--text); }
.summary:has(> .seg) { align-items: center; }   /* 전체: year buttons next to the count */

/* Request list */
.list { display: grid; gap: 10px; }
.card { background: var(--surface); border: 1px solid var(--card-line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 14px 18px 14px 14px; display: grid; grid-template-columns: 56px 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-left: 3px solid currentColor; display: grid; align-content: center; font: 600 var(--fs-base) var(--font); line-height: 1.2; padding: 2px 0 2px 10px; }
.age small { display: block; font: 400 var(--fs-xs) var(--font); opacity: .8; }
/* 「111일째」 on one line (not 111일 ↵ 째) — UX Q */
.age { grid-auto-flow: column; justify-content: start; align-items: baseline; white-space: nowrap; }
.list > .card:not(.card--selecting) { grid-template-columns: 66px 1fr; }
@media (max-width: 560px) { .list > .card:not(.card--selecting) { grid-template-columns: 64px 1fr; } }
.age--green { color: var(--green); }
.age--orange { color: var(--amber); }
.age--red { color: var(--red); }
.card__title { font-weight: 600; font-size: var(--fs-lg); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.card__meta { color: var(--muted); font-size: var(--fs-md); margin-top: 2px; }
.card__row { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; align-items: center; font-size: var(--fs-sm); color: var(--muted); }
/* Plain inline labels, no pill shapes (Julian's rule for the site, kept here too) */
.chip { font-size: var(--fs-sm); white-space: nowrap; color: var(--text); }
.chip--가능 { color: var(--green); font-weight: 600; }
.chip--불가 { color: var(--red); font-weight: 600; }
.chip--q { color: var(--blue); font-weight: 600; }
.chip--warn { color: var(--red); font-weight: 600; }
.chip--test { color: var(--muted); text-decoration: underline dashed; }
.chip--en { font-weight: 700; letter-spacing: 0.04em; }   /* 「EN」: the request came from an English form (reply in English) */
button.chip { display: inline-flex; align-items: center; gap: 6px; min-height: var(--control-h-sm); padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: var(--fs-sm); color: var(--text); cursor: pointer; }
button.chip:hover { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); }
/* ⚠ 확인 필요 (checkmark.js): amber — a reminder, not something late (red) */
.ck { display: inline-flex; vertical-align: middle; }
.ck-auto, button.chip.ck-on { color: color-mix(in srgb, var(--amber) 80%, var(--text)); font-weight: 600; }
button.chip.ck-on { min-height: 26px; padding: 2px 8px; white-space: normal; text-align: left; border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); }
.ck-lbl { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.ck-note { font-weight: 400; color: var(--text); }
.ck-off { border: 0; background: none; padding: 2px 4px; min-height: 24px; cursor: pointer; color: var(--muted); opacity: .45; font: inherit; }
.ck-off:hover, .ck-off:focus-visible { opacity: 1; color: color-mix(in srgb, var(--amber) 80%, var(--text)); }
/* On a computer the empty ⚠ shows only on the row under the mouse or with focus (Julian 2026-10-10) — every money table (정산 · 지출 ·
   시트 · 통장 · 카드); a row with a mark shows its chip always (.ck-on); touch screens have no hover, so it stays there */
@media (hover: hover) { tr:not(:hover):not(:focus-within) .ck-off { opacity: 0; } }
/* ✓ 금액 확인 (a 총액 under 1만 원 checked): stays faintly in sight — who and when on hover, a click undoes it (2026-10-12) */
.ck-off.ck-done { font-size: var(--fs-xs); white-space: nowrap; }
@media (hover: hover) { tr:not(:hover):not(:focus-within) .ck-off.ck-done { opacity: .45; } }
.fin-e6ok { margin-left: 4px; white-space: nowrap; }
/* 💰 정산: a long ⚠ note (the server's KO · EN ones) flows under its label as text — not a narrow column beside it (2026-10-12) */
.fin-table td.fin-job button.chip.ck-on { display: inline-block; max-width: 34em; }
.fin-direct { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 400; }
.badge-hot { font-size: 12px; font-weight: 600; color: var(--red); }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; background: var(--surface); 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) {
  /* (rows: auto 1fr — a tall right column grows the 💬 row, never the head: no gap under the head, Julian 2026-10-06) */
  .detail { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto 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: calc(var(--top-h, 105px) + 5px); }   /* (under the header, however tall) */
  .detail__side.detail__side--flow { position: static; }   /* (taller than the screen: scrolls with the page) */
}
.panel { background: var(--surface); border: 1px solid var(--card-line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font: 600 var(--fs-base)/1.4 var(--font); color: var(--text); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.head h1 { font-size: var(--fs-xl); 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-x: auto; max-width: 100%; scrollbar-width: none; }
.seg button { border: 0; background: none; padding: 5px 10px; cursor: pointer; font-size: 13px; color: var(--muted); white-space: nowrap; }
.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 var(--fs-sm) var(--font); 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: var(--fs-sm); 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; }
.files__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.files__head h2 { margin-bottom: 8px; }
.files__delall { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }   /* (deletes for good: not like the other buttons) */
.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 var(--fs-sm) var(--font); 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); }
/* 📱 iOS 15.0–15.3 (no <dialog>: dialogs.js's stand-in) — hidden until opened, over a dimmed page, in the middle (phones' row panel:
   from the bottom). Rules of their own: a :modal in a selector list would drop the whole rule on those Safaris. */
dialog:not([open]) { display: none; }
dialog.dlg-poly[open] { display: block; position: fixed; z-index: 1001; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; max-height: calc(var(--vvh, 100vh) - 24px); overflow-y: auto; }
.dlg-poly-backdrop { position: fixed; inset: 0; z-index: 1000; background: var(--backdrop); }
/* 📱 The row panel (design B phones — 🏦 통장 · 💳 카드 rows; BUILDING-BLOCKS.md): <dialog class="psheet"> → .psheet__head (.psheet__title
   + .psheet__sub, .psheet__amt), .psheet__body (fields; it scrolls), .psheet__foot (.dialog-actions: 닫기 · 저장, always in sight).
   A plain dialog on a computer; on a phone it comes up from the bottom, the whole width. */
dialog.psheet { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
dialog.psheet:not([open]) { display: none; }
.psheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.psheet__title { display: block; font-size: var(--fs-lg); overflow-wrap: anywhere; }
.psheet__sub { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.psheet__amt { flex: none; text-align: right; white-space: nowrap; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.psheet__body { padding: 14px 20px; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 14px; min-height: 0; }
.psheet__body .field { display: grid; gap: 6px; margin: 0; }
.psheet__body .reasons { margin: 0; }
.psheet__label { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.psheet__toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.psheet__toggle[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-soft); font-weight: 600; }
.psheet__foot { margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface); }
/* 🧾 영수증 사진 (txfiles.js — 통장 · 카드 lines, the 세무사's 📒): thumbnails, a PDF as a line, 「📷 영수증 사진 찍기 · 올리기」 as a dashed
   button; 「📎 N」 on a row (.rc-clip) */
.rc { display: grid; gap: 8px; }
.rc__list { display: flex; flex-wrap: wrap; gap: 8px; }
.rc__list:empty { display: none; }
.rc__one { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.rc__thumb { display: block; width: 72px; height: 72px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.rc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc__file { max-width: 16em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc__one .rc__thumb + .rc__x { position: absolute; top: -6px; right: -6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rc__add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
  width: 100%; background: transparent; color: var(--text); cursor: pointer; font: inherit; font-weight: 500; }
.rc__add:hover, .rc__add:focus-visible { border-color: var(--orange); }
.rc__add[hidden] { display: none; }
.rc__none, .rc__status { color: var(--muted); font-size: var(--fs-sm); }
.rc-clip { margin-left: 6px; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font: inherit; font-size: var(--fs-xs); cursor: pointer; vertical-align: 1px; }
.rc-clip:hover { color: var(--text); border-color: var(--orange); }
/* 📱 Short rows by day (design B phones — 🏦 통장 · 💳 카드 lists): .plist > .prow__day + button.prow (.prow__main: .prow__name ·
   .prow__mark · .prow__sub; .prow__side: the amount + a .prow__sub). A tap opens the row's .psheet. */
.plist { padding: 0; overflow: hidden; }
.prow__day { margin: 0; padding: 8px 16px; background: var(--surface-2); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; border-bottom: 1px solid var(--line); }
.prow { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; border: 0;
  border-bottom: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.prow:last-child { border-bottom: 0; }
.prow:active { background: var(--side-hover); }
.prow__main { min-width: 0; }
.prow__name { overflow-wrap: anywhere; }
.prow__mark { margin-left: 4px; color: var(--orange); }
.prow__mark--ck { color: var(--amber); }
.prow__sub { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-sm); }
.prow__side { flex: none; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 📱 A request's head on a phone (design B — the example Julian OK'd 2026-10-18): 👉 다음 right under the name and the job, its
   button the whole width; 📋 문구로 답장 · ✉️ 이메일 · 📞 전화 as three equal buttons under it; 같은 날 · 연결 · 비슷한 문의 after them. */
@media (max-width: 600px) {
  .panel.head { display: flex; flex-direction: column; }
  .panel.head > .next-step { order: 1; flex-direction: column; align-items: stretch; }
  .panel.head > .next-step > * { flex: none; }   /* (the text grew into the height in a column) */
  .panel.head > .next-step .btn { justify-content: center; min-height: 48px; }
  .panel.head > .head__actions { order: 2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .panel.head > .head__actions .btn { flex-direction: column; justify-content: center; gap: 4px; min-height: 64px; text-align: center; }
  .panel.head > .head__actions .head__act-long { display: none; }
  .panel.head > .head__actions .head__act-short { display: inline; }
  .panel.head > .clash, .panel.head > .linked, .panel.head > .similar { order: 3; }
  .reg-where button { min-height: 44px; }   /* (an E6 artist's 🇰🇷 국내 · 🌍 해외) */
}
@media (max-width: 600px) {
  dialog.psheet:modal { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; border-width: 1px 0 0;
    max-height: calc(var(--vvh, 100dvh) - 40px - env(safe-area-inset-top)); }
  .psheet__foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .psheet__foot .btn--primary { flex: 1; }
  .psheet .reason, .psheet .btn, .psheet .ck-on { min-height: 44px; }   /* (every tap ≥ 44 px) */
  dialog.psheet.dlg-poly[open] { display: flex; top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; max-height: calc(var(--vvh, 100vh) - 40px); }
}
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; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }   /* (wrap: on a phone a 4th button ran off the left — 「구 관리」, Q7) */
.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(--text); color: var(--surface); border: 0; padding: 12px 18px; border-radius: 10px; font-size: 15px; font-weight: 600; z-index: 50; max-width: calc(100vw - 32px);
  box-shadow: 0 8px 24px color-mix(in srgb, #000 25%, transparent); animation: toast-in .18s ease-out; }
.toast--error { background: var(--red); color: #fff; }
.toast .btn { color: var(--text); flex: none; }   /* (a button in a toast took the toast's light text colour and looked empty — 통장 ⚡, link page 되돌리기) */
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* ✓ 저장했어요 right next to the button that was pressed (내 정보) */
.saved-mark { align-self: center; margin-right: auto; color: var(--green); font-weight: 700; }
.fab, .newreq-link { white-space: nowrap; flex: none; }   /* ＋ 문의 추가 (shell.js) */

@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; }
@media (min-width: 900px) { .kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }   /* (현황: 4 + 4, never one alone) */
.kpi { background: var(--surface); border: 1px solid var(--card-line); box-shadow: var(--shadow); 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; white-space: nowrap; overflow: hidden; }
.kpi__unit { font: 600 .55em var(--font); margin-left: 3px; color: var(--muted); }
.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: var(--fs-sm); 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: var(--fs-md); }
.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: var(--fs-sm); 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; }
.fees > .span2 { grid-column: 1 / -1; }   /* 제안 금액 (two boxes) gets its own row — 「(범위)」 was cut off (Q7) */
.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: var(--fs-md); padding: 8px 8px; }

/* Light mode — the default look (Julian 2026-10-01); 화이트 + 오렌지 (design B, 2026-10-18): white page, light grey menu,
   near-black main buttons, Wave orange only for what is lit (open tab, open menu item, focus). */
:root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f5;
  --line: #e4e4e2;
  --line-strong: #d4d4d2;
  --card-line: #e6e6e4;
  --shadow: 0 1px 2px #18181b0d;
  --shadow-pop: 0 12px 32px #0000002e;
  --text: #18181b;
  --muted: #63636b;
  --side-bg: #f8f8f7;
  --side-hover: #efefed;
  --side-on: #e8e8e5;
  --side-text: #3f3f46;
  --ink: #18181b;
  --on-ink: #ffffff;
  --ink-hover: #2d2d33;
  --orange-soft: #fdf1e7;
  --backdrop: #18181b59;
  --on-badge: #ffffff;
  --badge-red: #c62828;
  --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"] .tip { 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; }
/* Every page uses the same width (main's 1100px) — no narrower pages (Julian 2026-10-01). */
.narrow { 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: var(--fs-sm); color: var(--orange); font-weight: 600; }
.form-grid .checks { font-size: var(--fs-md); }
/* 📋 일정 정보: chip / date / read-only fields get the same small grey title as the label fields */
.job-info > div.field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); align-content: start; }
.job-info > div.field b { color: var(--text); font-weight: 500; }

/* 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); }
/* 📱 12 bars in a phone card (~320px): a long label can't push the chart wider than its card (월별 확정 금액 was 399px
   in 356 — UX sweep 2026-10-10). The labels sit centred on their bar; on a phone only the month (11, 12, 1 …) stays,
   with the year on the first bar and on January (overview.js col__label--yr). */
.cols, .col { min-width: 0; }
.col { grid-template-columns: minmax(0, 1fr); }
.col__value, .col__label { justify-self: center; }
@media (max-width: 560px) {
  .cols { gap: 3px; }
  .col__value, .col__label { font-size: 10px; }
  .col__label:not(.col__label--yr) .col__yr { display: none; }
}
.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 */
.search { flex: 0 1 320px; }
.search .input { padding: 7px 12px; font-size: 14px; }
.hello { color: var(--muted); font-size: var(--fs-md); 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; }
  .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); }
.tile__note--fee { display: flex; align-items: center; gap: 3px; width: 100%; }
.tile .tile__fee { position: static; opacity: 1; pointer-events: auto; min-height: 30px; padding: 4px 6px; font-size: 12px; min-width: 0; width: 100%; text-align: right; font-family: inherit; }   /* (a tile's checkbox is hidden; this box isn't) */
.tiles:has(.tile__fee) { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.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: 6px; 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: 6px; }
.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: 6px; 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; }
a.btn--primary, a.btn--primary:visited { color: var(--on-ink); }   /* (a link that looks like the main button: white on ink) */
.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: 6px; 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: var(--fs-md); 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; }
/* A field you can't change must not look changeable (Julian): no ▾ on a locked select, no example text
   ("예: Robin") that reads like a value, no resize corner. Editing (✏️ 수정) brings them all back. */
select:disabled { appearance: none; -webkit-appearance: none; background-image: none; cursor: default; }
.input:disabled:not([data-masked])::placeholder { color: transparent; }   /* ([data-masked]: 계좌번호 · 주민번호 show the saved number, masked, as their placeholder) */
textarea:disabled { resize: none; }
.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: var(--fs-md); 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; }
.info-status { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
/* 📝 정보 saved by someone else meanwhile: what I typed waits here (never lost) until I choose. */
.info-clash { margin: 8px 0; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--amber) 60%, var(--line)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--amber) 10%, var(--surface)); display: grid; gap: 6px; }
.info-clash p { margin: 0; }
.info-clash__label { font-size: 13px; font-weight: 600; }
.info-clash__mine { margin: 0; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); max-height: none; }
.info-clash__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.info-version { display: grid; gap: 4px; justify-items: start; padding-top: 6px; border-top: 1px solid var(--line); }
.info-version .info-text { margin: 0; }
.temp-pw { font: 600 22px var(--code); 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; }
.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: var(--fs-md); }
.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: var(--fs-xs); 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; }
/* 📅 dateField (datefield.js): THE date field — a typed YYYY-MM-DD box + the calendar above (.dt__pop look) with year · month jumps */
.df { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 100%; min-width: 0; vertical-align: middle; }
.df__field { position: relative; display: inline-flex; flex: 0 1 auto; max-width: 100%; min-width: 0; }
.df__in { width: 10.5em; min-width: 9.6em; padding-right: 38px; font-variant-numeric: tabular-nums; }
.df--month .df__in { width: 8.6em; min-width: 7.8em; }
.df__in.is-bad { border-color: var(--red); box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 20%, transparent); }
.df__cal { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); padding: 2px 7px; min-height: 30px; border-color: transparent; background: transparent; }
.df__wd { flex: none; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.df__wd--bad { color: var(--red); font-weight: 600; }
.df__wd--fix { cursor: pointer; text-decoration: underline; }   /* (round 24, E: a day-first date — tap the year-month-day one) */
.dt__pop.df__pop { position: fixed; top: 0; left: 0; width: 296px; max-width: calc(100vw - 16px); text-align: left; font-weight: 400; }
.df__head { gap: 4px; }
.df__step { flex: none; min-width: 32px; padding: 4px 8px; }
.df__step:disabled { opacity: .35; cursor: default; }
.df__sel { width: auto; min-width: 0; flex: 1 1 0; min-height: var(--control-h-sm); padding: 4px 6px; font-size: var(--fs-sm); }
.df__months { grid-template-columns: repeat(3, 1fr); gap: 4px; }
.df__months .dt__day { padding: 12px 0; font-family: var(--font); }
.dt__day:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.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-row__right { display: inline-flex; align-items: center; gap: 4px; }
.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; }
/* 🔒 내 정보 → 로그인 기기 (devices.js) */
.dev-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.dev-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.dev-row--current { border-color: color-mix(in srgb, var(--orange) 45%, var(--line)); }
.dev-row__main { min-width: 0; flex: 1; }
.dev-row__here { color: var(--muted); font-weight: 400; }
.dev-row__bits span { white-space: nowrap; }
/* 🔒 개인정보 안내 on the 「새 비밀번호를 정해 주세요」 screens (privacynotice.js) — like the sign-up page's */
.privacy-box { font-size: var(--fs-sm); color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; display: grid; gap: 6px; }
.privacy-box ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.privacy-agree { display: flex; gap: 8px; align-items: flex-start; color: var(--text); font-size: var(--fs-md); cursor: pointer; }
.privacy-agree input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.dev-row__acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .dev-row { flex-direction: column; align-items: stretch; } .dev-row__acts { justify-content: flex-start; } }

/* 사유 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: 6px; 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: var(--fs-md); }
.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); }
html.shell-phonebar .bulk { bottom: calc(var(--bottom-bar) + 10px); }   /* (phones: above the bottom bar, not behind it — 2026-10-12; shell.js) */
.bulk .input { width: auto; min-width: 0; padding: 6px 8px; font-size: 13px; }
.bulk input.input { width: 110px; }
/* ☑ 여러 개 선택 · 담당자 by face (K7): the bar sits at the bottom of the screen — its list opens upwards */
.bulk .people-pick__panel { top: auto; bottom: calc(100% + 4px); }
.bulk .person-chip { font-size: 13px; }
/* Wide screens: tabs wrap to a second line (⭐ saved tabs) instead of hiding off the edge. */
.urn { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); min-width: 0; }
.urn code { font-family: var(--code); 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: 6px; 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 { 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; }
@media (max-width: 600px) { .preview-bar { padding: 6px 12px; gap: 6px 10px; font-size: 13px; } }   /* (phones: it stays on top with the header — kept short) */
/* 🗂 대화 마무리 */
.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: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: var(--fs-md); }
.ep--done { opacity: .8; }
.ep--cancel { opacity: .6; }
.ep--cancel .ep__date, .ep--cancel .ep__n, .ep--cancel .ep__money { 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, .ep-add .df { 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; }
/* An other-month day dims its number and events, not the whole cell — at opacity .55 its 공휴일 name was 2.4:1 in dark mode
   (UX sweep 2026-10-10) and under 4.5:1 in light mode (2026-10-10 night); it now reads at full red in both themes.
   Same look as .55 otherwise (the colours mixed with the grid line). */
.cal-day--out { background: color-mix(in srgb, var(--surface-2) 55%, var(--line)); }
.cal-day--out .cal-day__n { color: color-mix(in srgb, var(--muted) 55%, var(--line)); }
.cal-day--out.cal-day--sun .cal-day__n, .cal-day--out.cal-day--holiday .cal-day__n { color: color-mix(in srgb, var(--red) 55%, var(--line)); }
.cal-day--out > :not(.cal-day__n) { opacity: .55; }
/* 🗂 Folder tabs on top of 🎤 아티스트 · 📊 현황 (app.js workHubTabs; worktabs.js puts them above /usage · /forms) */
.hub-wrap { max-width: 1100px; margin: 0 auto; padding: 16px 16px 0; }
.hub-wrap .notes-tabs { margin-bottom: 0; }
.hub-wrap + main { padding-top: 12px; }
.ov-money { margin-left: auto; font-size: var(--fs-sm); color: var(--muted); }   /* 현황 → 📈 분석 (관리자) */
.owner-faces { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 34px; }   /* 🎤 담당 매니저 by face */
/* .seg radios on a narrow phone: whole buttons go to the next line (「💬 + 📧 둘 다」 broke inside its button), as .seg--wrap */
.seg--radio { flex-wrap: wrap; overflow: hidden; }
.seg--radio span { white-space: nowrap; }
.seg--radio label { flex: 1 1 auto; justify-content: center; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 -1px -1px; }
/* a count inside a 더보기 menu sits after its word (the phone bar's corner badge is for the bar's own tabs) */
.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: var(--fs-xs); 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--shoot { background: color-mix(in srgb, var(--green) 18%, transparent); border-color: color-mix(in srgb, var(--green) 50%, transparent); }   /* 📺 녹화 일정 (lib/showshoots.js) */
.ev--muted { background: var(--surface-2); color: var(--muted); }
.ev--done { opacity: .6; }
.cal-legend .ev { display: inline-block; }
.cal-agenda { display: none; }
.cal-undated { margin-top: 16px; }
.cal-undated > summary { cursor: pointer; }
.cal-undated > summary h2 { display: inline; margin: 0; }
.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__day.cal-day--today { padding-inline: 10px; border-radius: var(--radius-sm); }   /* (the date sat on the orange line) */
.cal-agenda .ev { white-space: normal; font-size: var(--fs-md); padding: 6px 8px; }
@media (max-width: 760px) {
  .cal-grid { display: none; }
  .cal-agenda { display: block; }
  .cal-legend { margin-left: 0; }
  .cal--list .cal-month-only { display: none; }   /* 📱 an artist's 60-day list (calendar.js, B3) */
  .cal--list .cal-list-only { display: inline; }
}
.cal-list-only { display: none; }
/* 확정 · 가일정 · 회차: a key, not chips that look like buttons (B3) */
.cal-legend { gap: 12px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); }
.cal-legend__item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cal-legend__key { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.cal-legend__key:not(.ev--tentative) { border-style: solid; border-width: 1px; }   /* (the colours: .ev--confirmed · .ev--tentative · .ev--episode) */
.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; }
/* (the name opens the artist's own 정산 page — 💰 정산 · 지출 자세히, 2026-10-12) */
.fin-card__name { color: inherit; text-decoration: none; }
.fin-card__name:hover, .fin-card__name:focus-visible { text-decoration: underline; }
.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); }
/* 「일정 날짜 기준」 · 「지급일 기준」: what a block counts by (💰 정산 — Julian 2026-10-10) */
.fin-basis { color: var(--muted); font-size: var(--fs-xs); font-weight: 400; }
.st-sum { margin: 0 0 6px; font-size: var(--fs-md); }   /* 「10월 지급 2장 · 합계 …」 on top of the 📄 정산서 list */
.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-warn { color: var(--red); }
.fin-bank { margin-left: 4px; color: var(--blue); text-decoration: none; vertical-align: middle; }
/* 🗓 이번 주 on 💰 정산: one line of links (wraps on a phone, never scrolls sideways) */
.week-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: var(--fs-sm); }
.week-strip__title { color: var(--muted); }
.week-strip__item { padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; }
.week-strip__item:hover { text-decoration-color: currentColor; }
.week-strip__item--late { color: var(--red); }
.fin-preview { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: var(--fs-md); }
.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: var(--fs-md); }
.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; }
.fin-table td.fin-job { min-width: 160px; }
.fin-table td.fin-job a { white-space: normal; }   /* (a long 일정 name wraps — on 정산 · 연간 it slid the table sideways to 2,000px) */
.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: var(--fs-md); }
.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: var(--fs-sm); 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: 6px; 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); }
/* 📅 the 재무 period bar (periodbar.js): year buttons, then 연간 · 1월–12월 — the same on every 재무 page */
.period-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 12px; }
.period-bar .fin-months { margin: 0; }
.toolbar > .period-bar, .inv-page > div > .period-bar, .pt > .period-bar { margin: 0; }
.toolbar > .period-bar { display: contents; }   /* (beside a picker, e.g. 통장: the years and months join that row and wrap with it) */   /* (inside a row or a gapped column: the container spaces it) */
.period-bar__years button .count { margin-left: 4px; }
.period-bar__older { border: 0; border-left: 1px solid var(--line); background: none; padding: 5px 10px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }   /* 「이전 연도」 ▾ (periodbar.js — its own list, not a <select>, 2026-10-11) */
.period-bar__older--on { background: var(--surface-2); color: var(--text); font-weight: 600; }
.period-bar__caret { margin-left: 4px; font-size: 11px; }
.period-bar__menu { position: absolute; z-index: 60; display: grid; min-width: 9em; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 16%, transparent); }
.period-bar__menu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 6px 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.period-bar__menu button:hover, .period-bar__menu button:focus-visible { background: var(--surface-2); }
.period-bar__menu button[aria-current="true"] { font-weight: 600; background: color-mix(in srgb, var(--orange) 10%, var(--surface)); }
@media (max-width: 600px) {   /* phones: 전체 · the 3 years · 이전 연도 go on two lines instead of widening the page (2026-10-11) */
  .period-bar__years { flex-wrap: wrap; overflow: hidden; }
  .period-bar__years > button { flex: 1 1 auto; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 -1px -1px; }
  /* (design B phones: the 12 months are one row you swipe — not three — and the open one is brought into sight: periodbar.js) */
  .period-bar { min-width: 0; max-width: 100%; }   /* (a grid page — 💳 카드 — let the one row widen the page by 256 px) */
  .period-bar__months { flex: 1 1 100%; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .period-bar__months::-webkit-scrollbar { display: none; }
  .period-bar__months > .fin-month { flex: none; }
}
.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; }
.fin-table--months th:nth-child(n+3) { text-align: right; }   /* (over the right-aligned amounts) */

.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; flex-wrap: wrap; padding: 10px 0 2px; }   /* (wrap, never slide sideways) */
.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; } }

/* 📺 simpler lines: ✓ 완료 / ✕ 취소 toggles, − N회 + for 월별 횟수, three mode cards */
.ep .ep__date { flex: 1 1 180px; min-width: 0; }
.ep--count .ep__date { flex: 1 1 110px; }
.ep__money { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); min-width: 84px; text-align: right; }
.ep-toggles { display: inline-flex; gap: 4px; }
.ep-tog { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 6px; padding: 4px 10px; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.ep-tog:disabled { cursor: default; }
.ep-tog--done { background: color-mix(in srgb, var(--green) 20%, var(--surface)); border-color: color-mix(in srgb, var(--green) 55%, var(--line)); color: var(--text); font-weight: 700; }
.ep-tog--cancel { background: color-mix(in srgb, var(--red) 14%, var(--surface)); border-color: color-mix(in srgb, var(--red) 45%, var(--line)); color: var(--text); font-weight: 700; }
.ep--cancel .ep-toggles, .ep--cancel .ep-tog { text-decoration: none; }
.ep-step { display: inline-flex; align-items: center; gap: 4px; }
.ep-step b { min-width: 34px; text-align: center; font-family: var(--mono); }
.ep-adddetails { margin-top: 8px; }
.ep-adddetails > summary { cursor: pointer; font-size: var(--fs-md); color: var(--muted); }
.mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-bottom: 14px; }
.mode-card { display: grid; gap: 4px; text-align: left; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: var(--radius); padding: 12px; font: inherit; cursor: pointer; }
.mode-card small { color: var(--muted); font-size: var(--fs-sm); line-height: 1.4; }
.mode-card--on { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, var(--surface)); }
.date-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 0 0 4px; font: inherit; }

/* Navigation: short main row + the request lists in a second row */
.tabs--sub { padding-top: 0; }
@media (max-width: 600px) { .tabs--sub { flex-wrap: wrap; overflow: visible; row-gap: 0; } }   /* (phone: 고정 · 전체 · 보드 stay visible) */
.tabs--sub .tab { font-size: var(--fs-sm); padding: 6px 10px 8px; }
@media (min-width: 900px) { .tabs { flex-wrap: nowrap; } }
/* Filter row: short, with 필터 ▾ and ⋯ */
.filters { align-items: center; }
.filters > .input { width: auto; flex: 0 1 190px; }
.filters > input[type="search"] { flex: 1 1 220px; }
.filters__more, .filters__menu { position: relative; }
.filters__more > summary, .filters__menu > summary { list-style: none; cursor: pointer; }
.filters__more > summary::-webkit-details-marker, .filters__menu > summary::-webkit-details-marker { display: none; }
.filters__more[open] { flex-basis: 100%; order: 10; }
.filters__panel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.filters__panel .input { width: auto; flex: 0 1 190px; }
.filters__menu { margin-left: auto; }
.filters__menupanel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 210px; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
.filters__menupanel button, .filters__menupanel a { text-align: left; border: 0; background: none; color: var(--text); padding: 8px 10px; border-radius: 6px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.filters__menupanel button:hover { background: var(--surface-2); }
@media (max-width: 560px) { .filters > .input { flex: 1 1 140px; } }
.similar--fold { padding: 8px 12px; }
.similar--fold > summary { cursor: pointer; list-style: none; }
.similar--fold > summary::-webkit-details-marker { display: none; }
.similar--fold > summary::after { content: ' ▾'; color: var(--muted); }
.similar--fold[open] > summary { margin-bottom: 6px; }
.participants__add { width: auto !important; flex: none; max-width: 110px; padding: 3px 6px; }
.participants__mute { margin-left: auto; }
.participants__mute.is-muted { color: var(--text); border-color: var(--line); }
/* small ⋯ menus */
.mini-menu { position: relative; display: inline-block; }
.mini-menu > summary { list-style: none; cursor: pointer; }
.mini-menu > summary::-webkit-details-marker { display: none; }
.mini-menu__panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 190px; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
.mini-menu__panel button { text-align: left; border: 0; background: none; color: var(--text); padding: 8px 10px; border-radius: 6px; font: inherit; font-size: 14px; cursor: pointer; }
.mini-menu__panel button:hover { background: var(--surface-2); }
.more-actions { margin-top: 12px; }
.more-actions > summary { cursor: pointer; font-size: var(--fs-md); color: var(--muted); list-style: none; }
.more-actions > summary::-webkit-details-marker { display: none; }
.more-actions[open] > summary { margin-bottom: 8px; }
/* Long amounts (29,329,110원) fit a phone-width tile */
.kpi { min-width: 0; }
@media (max-width: 560px) { .kpi__value { font-size: 22px; } }
/* 🔔 filters */
.bell-filters { display: flex; flex-wrap: wrap; gap: 4px; overflow-x: auto; padding: 6px 10px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.bell-filter { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 6px; padding: 3px 9px; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.bell-filter--on { border-color: var(--orange); color: var(--text); font-weight: 600; background: color-mix(in srgb, var(--orange) 12%, var(--surface)); }
/* 🔔 알림 · 모든 활동 tabs, and the activity lines grouped by day */
.bell-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.bell-panel__head--tabs { padding: 0 8px 0 4px; align-items: stretch; }
.bell-panel__head--tabs .bell-tabs { padding: 0; border-bottom: 0; }
.bell-panel__head--tabs > .btn { align-self: center; }
.bell-panel__head--tabs .bell-tab { padding: 12px 8px 10px; }
.bell-tab__wrap { display: inline-flex; align-items: center; gap: 2px; }
.bell-tab { text-decoration: none; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-size: var(--fs-sm); font-weight: 600; padding: 8px 8px 6px; cursor: pointer; }
.bell-tab--on { color: var(--text); border-bottom-color: var(--orange); }
.act__head { margin: 0; padding: 8px 12px 4px; font-size: 12px; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--line) 25%, var(--surface)); position: sticky; top: 0; z-index: 1; }
.act-item { color: var(--text); }
.act-item small { color: var(--muted); overflow-wrap: anywhere; }
.act__foot { padding: 8px 12px; margin: 0; text-align: center; }
/* 🔔 알림 tab (bellinbox.js): 안 읽음 · 전체 · 보관함, a row = the line (opens it) + time · ● · ⋯ on the right */
.bell-seg-row { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.bell-seg button { display: inline-flex; align-items: center; gap: 4px; }
.bell-empty { padding: 12px; margin: 0; }
.bell-row { position: relative; display: flex; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.bell-row > .bell-item { flex: 1; min-width: 0; border-bottom: 0; padding-right: 4px; background: none; }
.bell-row--unread { background: color-mix(in srgb, var(--orange) 7%, transparent); }
/* 🎤 「🏢 업무 알림 N개」 (bellinbox.js, B5): the company lines folded into one, at the end of the artist's own */
.bell-company { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: var(--fs-md); text-align: left; cursor: pointer; }
.bell-company:hover { background: color-mix(in srgb, var(--orange) 10%, var(--surface-2)); }
.bell-company:focus-visible { outline: none; box-shadow: var(--ring); }
.bell-company__text { flex: 1; font-weight: 600; }
.bell-company small { color: var(--muted); white-space: nowrap; }
.bell-item__text { min-width: 0; overflow-wrap: anywhere; }
.bell-side { position: relative; flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 4px; padding: 10px 8px 6px 0; }
.bell-time { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.bell-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.bell-more { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.bell-more:hover, .bell-more[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.bell-more:focus-visible, .bell-menu button:focus-visible, .bell-restore:focus-visible { outline: none; box-shadow: var(--ring); }
.bell-restore { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; padding: 3px 8px; cursor: pointer; white-space: nowrap; }
.bell-restore .ic, .bell-menu .ic { width: 15px; height: 15px; }
.bell-headmenu { position: relative; align-self: center; }
.bell-menu { position: absolute; right: 0; top: calc(100% + 2px); z-index: 5; min-width: 210px; display: flex; flex-direction: column; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px color-mix(in srgb, #000 22%, transparent); }
.bell-side > .bell-menu { top: 100%; right: 6px; }
.bell-menu--up, .bell-side > .bell-menu--up { top: auto; bottom: 100%; }
.bell-menu button { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; font-size: var(--fs-md); text-align: left; padding: 8px 10px; cursor: pointer; white-space: nowrap; }
.bell-menu button:hover { background: var(--surface-2); }
.act-item { grid-template-columns: 24px 1fr auto; }
.act-item > .bell-time { align-self: start; padding-top: 2px; }
/* 「로빈 · 강연 · 기후 특강 · 10/6 (화)」: one line on a wide screen (only the job name shortens), wraps on a phone */
.job-line { display: flex; align-items: baseline; gap: 0 5px; min-width: 0; white-space: nowrap; }
.job-line__fix { flex: none; }
.job-line__name, .job-line__who { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.job-line__who { flex-shrink: 3; }   /* a long name gives way first, the job name keeps more */
.job-line__sep { flex: none; opacity: .7; }
@media (max-width: 640px) {
  .job-line { flex-wrap: wrap; white-space: normal; }
  .job-line__name, .job-line__who { overflow: visible; overflow-wrap: anywhere; }
  .bell-more { width: 36px; height: 32px; }
}
.leave-confirmed__what { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 4px; font-size: var(--fs-sm); }
/* ✅ 확정 window: what it fixes in place (schedule.js confirmFixes) */
.cf-fix { display: grid; gap: 12px; margin: 0 0 12px; }
.cf-sub { display: block; margin: 0 0 6px; font-size: var(--fs-sm); }
.cf-yeses { display: grid; gap: 2px; }
.cf-yes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 14px; }
.cf-yes > input { flex: none; width: 18px; height: 18px; margin: 0; }
.cf-yes small { flex-basis: 100%; padding-left: 26px; }
.cf-gaps { margin: 0; color: var(--text); }
/* 📅 일정 on the side: one line (Q3) */
.sched-line { padding: 4px 0; font-size: 14px; line-height: 1.6; }   /* (text flow: on a phone it wraps like a sentence, not in boxes) */
.sched-line__place { color: var(--muted); margin-left: 6px; }
/* 🔄 New content on an open request while typing or with a window open (Q4): one tap to show it */
.live-bar { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--orange); box-shadow: 0 6px 20px color-mix(in srgb, #000 18%, transparent); font-size: 14px; font-weight: 600; white-space: nowrap; }
/* ✅ 확정 체크리스트 */
.detail__side > .check-card + .panel { margin-top: 12px; }
.checklist { display: grid; gap: 2px; margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 6px; padding: 5px 2px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.check label { flex: 1; cursor: pointer; display: flex; align-items: flex-start; gap: 6px; min-width: 0; }   /* (the box stays on its label's line when a long label wraps) */
.check label > input { flex: none; margin-top: 4px; }
.check--done label { color: var(--muted); text-decoration: line-through; }
.check small { white-space: nowrap; }
.check small.en { white-space: normal; }   /* (a long English twin wraps — the E6 job form was 36 px too wide on phones) */
/* 📱 「항목 지우기」 × : a finger-sized tap area on phones, like the other ×'s (it was 12×22px) */
@media (max-width: 760px), (pointer: coarse) {
  .check .chip-x { min-width: 40px; min-height: 40px; display: inline-grid; place-items: center; padding: 0; margin: -8px -2px -8px 0; font-size: 18px; border-radius: var(--radius-sm); }
}
/* 📋 문구 */
.tpl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tpl-title { display: flex; align-items: center; gap: 8px; }
.tpl-title__icon { flex: none; display: inline-flex; color: var(--muted); }
textarea.input--grow { overflow-y: hidden; resize: none; }
.tpl > summary { cursor: pointer; list-style: none; }
.tpl > summary::-webkit-details-marker { display: none; }
.tpl[open] > summary { margin-bottom: 12px; }
.narrow > .tpl + .tpl, .narrow > .panel + .tpl { margin-top: 10px; }
/* 🗂 보드 */
.board-help { margin: 0 0 8px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.bcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-height: 120px; }
.bcol--over { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 8%, var(--surface-2)); }
.bcol--closed { opacity: .8; }
.bcol__head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; }
.bcol__body { display: grid; gap: 6px; }
.bcol__empty { text-align: center; padding: 12px 0; }
.bcard { display: grid; gap: 4px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; cursor: grab; overflow-wrap: anywhere; }
.age--done { visibility: hidden; }
/* 🎤 An artist's own request card: no 매니저 waiting-days column — their state is the first chip (app.js artistCardState) */
.card.card--mine, .list > .card.card--mine:not(.card--selecting) { grid-template-columns: minmax(0, 1fr); }
.kpi--link { color: inherit; text-decoration: none; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.kpi-btn { all: unset; display: block; cursor: pointer; }
.kpi-btn > .kpi { height: 100%; box-sizing: border-box; }
.kpi-btn:hover > .kpi, .kpi-btn[aria-pressed="true"] > .kpi { border-color: var(--orange); }
.kpi-btn:focus-visible > .kpi { outline: 2px solid var(--orange); }
.kpi--link:hover { border-color: var(--orange); box-shadow: 0 2px 10px color-mix(in srgb, var(--orange) 15%, transparent); }
.file-seen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
/* 🙂 face picker (아티스트 filter) */
.face-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.face-pick button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.face-pick .face-pick__all { padding: 6px 12px; }
/* A square face pokes out of the round pill — round it, cropped from the top so hair stays in. */
.face-pick button .av, .clients__artist .av { border-radius: 50%; }
.face-pick button .av img, .clients__artist .av img { object-position: center 20%; }
.face-pick button[aria-pressed="true"] { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, var(--surface)); font-weight: 700; }
@media (max-width: 600px) { .face-pick .face-pick__name { display: none; } .face-pick .face-pick__one { padding: 3px; } }
/* In a form (app.js artistFaceChoice): names stay on phones too; one that can't be picked is dimmed. */
@media (max-width: 600px) { .face-pick--form .face-pick__name { display: inline; } .face-pick--form .face-pick__one { padding: 3px 10px 3px 3px; } }
.face-pick button:disabled { opacity: .45; cursor: not-allowed; }
.todo-form > .face-pick { margin: 2px 0; }
/* Phones: a small name under each face (a row of faces alone can't be told apart) */
@media (max-width: 600px) {
  .face-pick:not(.face-pick--form) .face-pick__one { flex-direction: column; gap: 1px; padding: 3px 4px 2px; border-radius: var(--radius-sm); }
  .face-pick:not(.face-pick--form) .face-pick__one .face-pick__name { display: block; max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; line-height: 1.2; }
}
.status-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bcard--urgent { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); }
.bcard--drag { opacity: .5; }
.bcard__title { font-weight: 700; font-size: 14px; }
.bcard__row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bcard__avs { display: inline-flex; gap: 2px; }
.bcard__age { margin-left: auto; font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 6px; }
.bcard__owner { font-size: 12px; }
.bcard__move { display: none; padding: 4px 6px; font-size: var(--fs-sm); }
@media (hover: none), (max-width: 760px) { .bcard__move { display: block; } .bcard { cursor: pointer; } }
/* 🧾 세금계산서 */
.detail__side > .inv-card { margin-top: 12px; }
.detail__side > .inv-card + .panel { margin-top: 12px; }
.inv-card .kv { align-items: baseline; }
.inv-card .kv > span:first-child { white-space: nowrap; }
.inv-card .kv > span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.inv-missing { margin: 8px 0 0; padding: 6px 10px; border-radius: var(--radius-sm); font-size: 13px; background: color-mix(in srgb, var(--orange) 12%, var(--surface)); }
.inv-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.inv-actions:empty { display: none; }
.inv-clients { display: grid; gap: 4px; margin-top: 4px; }
.inv-client { display: grid; text-align: left; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.inv-client:hover { border-color: var(--orange); }
.inv-row__chips { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.inv-page .panel-head { flex-wrap: wrap; gap: 8px; }
dialog.dialog--wide { width: min(760px, calc(100vw - 32px)); }
.en { color: var(--muted); font-weight: 400; font-size: .85em; }
.reg-job h1 { margin: 0 0 6px; font-size: 22px; }
.reg-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 4px; }
.reg-head > p { flex: 1 1 320px; margin: 0; }
.reg-head > .reg-where { flex: none; }
.reg-managed { margin: 0 0 8px; font-weight: 600; }   /* a fully managed artist's 정산 요청 (invoices.js renderRegisterJob) */
.nld-which { margin: 8px 0 4px; }   /* 받은 문의 알리기: 새 문의 · 이미 한 일 (newlead.js) */
.nld-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }   /* (the phone field needs its room: 2 a row) */
.nld-contact .field { margin: 0; }
@media (max-width: 600px) { .nld-contact { grid-template-columns: 1fr; } }
.reg-tbd { margin-top: 6px; font-size: var(--fs-sm); }   /* 📄 견적 먼저: 「날짜 미정」 under the date (invoices.js renderRegisterJob) */
.reg-tbd[hidden] { display: none; }
.reg-job h2 { margin: 22px 0 10px; font-size: 16px; }
/* 💸 지출 등록 (expenses.js, B6): who pays, right under the choice · the 📷 receipt button with the file's name */
.exp-split-line { margin: 8px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--orange) 10%, var(--surface)); font-size: var(--fs-md); }
.exp-receipt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.exp-receipt__name { min-width: 0; overflow-wrap: anywhere; }
.reg-bank { display: grid; gap: 2px; margin: 12px 0 6px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.reg-ctas { margin-left: auto; display: grid; gap: 6px; }
.reg-cta { white-space: nowrap; text-align: center; }
@media (max-width: 560px) {
  .inv-row { grid-template-columns: minmax(0, 1fr) auto; }
  .inv-row .up__date { grid-column: 1 / -1; }
  .artist-hello { flex-wrap: wrap; }
  .reg-ctas { margin-left: 0; width: 100%; }
}
.inv-more { margin: 10px 0 4px; }
.inv-more > summary { cursor: pointer; padding: 6px 0; font-size: 14px; }
.inv-more[open] > summary { margin-bottom: 8px; }
.inv-history { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 4px; }
/* 🧾 form (2026-10-11): a saved 거래처 found from a typed 사업자등록번호 · 상호 (which empty fields it filled) · its 입금자명 list */
.inv-known { margin: -2px 0 4px; padding: 6px 10px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.inv-payer-box { display: grid; gap: 6px; }
.inv-payers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.inv-payer { display: inline-flex; align-items: center; gap: 4px; }
.reg-cta .en { color: inherit; opacity: .85; }
.inv-fields--intl .kr-only, .inv-fields:not(.inv-fields--intl) .intl-only { display: none; }
.intl-only { margin-top: 10px; }
.inv-lines { display: grid; gap: 6px; margin: 4px 0 8px; }
.inv-line { display: grid; grid-template-columns: minmax(0, 1fr) 70px 120px auto; gap: 6px; align-items: center; }
@media (max-width: 560px) { .inv-line { grid-template-columns: minmax(0, 1fr) 56px 96px auto; } }
/* 📅 월별 정산 on phones: fits the screen (건수 hidden, tighter cells) instead of being cut off. */
@media (max-width: 560px) {
  .fin-table--months { min-width: 0; font-size: 12px; }
  .fin-table--months th:nth-child(2), .fin-table--months td:nth-child(2) { display: none; }
  .fin-table--months th, .fin-table--months td { padding: 6px 4px; }
  .fin-table--months .chip { padding: 1px 5px; font-size: var(--fs-xs); }
  /* (English 「Upcoming ₩2,610,900」 ran 18px past the box at 390px: the last cell's chips may wrap — 2026-10-11) */
  .fin-table--months td:last-child { white-space: normal; }
  .fin-table--months td:last-child .chip { display: inline-block; white-space: normal; }
}
/* 🏦 통장 입금액 (부가세 포함) in the 정산 항목 window: a helper, so blue (amber = warnings, orange = 💱 fx) */
.fin-vatbox { padding: 10px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line)); }
.fin-vatbox__title { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); }
.fin-vatbox__out:empty { display: none; }
.fin-vatbox__out { font-weight: 600; font-variant-numeric: tabular-nums; }
.fin-fx { margin: 0 0 4px; padding: 8px 10px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--orange) 12%, var(--surface)); font-size: var(--fs-md); }
.users__en { display: block; margin-top: 2px; width: 100%; max-width: 180px; font-size: 13px; }
.users__en-label { display: block; margin-top: 6px; font-size: 12px; }
.users__levels { margin: -4px 0 0; padding-left: 18px; display: grid; gap: 2px; }   /* 관리자 · 매니저 · 문의 매니저, under the 권한 picker */
/* 💬 빠른 답변 */
.reply-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.reply-grid > .card__meta { width: 100%; }
/* 확정 job: the quick answers fold behind 「바꿀 게 있나요?」 */
.reply-fold { margin: 6px 0 10px; }
.reply-fold > summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.reply-fold[open] > summary { margin-bottom: 6px; }
.reply-fold > .btn { margin: 2px 0 10px; }
.reply-btn--on { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 16%, var(--surface)); font-weight: 600; }
.reply-line { margin: 4px 0 6px; padding: 6px 10px; border-radius: var(--radius-sm); font-size: var(--fs-md); background: var(--surface-2); }
.reply-line--fee, .reply-line--date { background: color-mix(in srgb, var(--orange) 12%, var(--surface)); }
.reply-line--no { background: color-mix(in srgb, var(--red) 10%, var(--surface)); }
.reply-line--yes { background: color-mix(in srgb, var(--green) 12%, var(--surface)); }
.ask-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

/* 💸 부담 구분 radio list (staff expense dialog) */
.exp-split { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.exp-split legend { padding: 0; margin-bottom: 4px; }
.exp-split__opt { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.exp-split__opt:has(input:checked) { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, transparent); }
.exp-split__opt input { margin-top: 3px; }
.exp-split__opt small { display: block; color: var(--muted); font-weight: 400; }
/* 🔔 remind-later / done read as small buttons, not loose text */
.bell-act { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; margin: 4px 6px 0 0; color: var(--text); }
.bell-act:hover { border-color: var(--gold); color: var(--gold); }
/* 👁 Preview: the controls that would change something look (and are) switched off. */
.is-preview #view :is(.composer, .reply-grid, .inv-actions, .upload, .note__tools, .reactions, .st-actions .btn, form) { opacity: .45; pointer-events: none; }
/* 💰 정산 tables on phones: each row becomes a card, each cell shows its column name (data-label, set
   by labelFinTable in app.js). The job spans the whole card; the ticks stay tappable. */
@media (max-width: 700px) {
  .fin-table:not(.fin-table--months) { min-width: 0; }
  .fin-table:not(.fin-table--months) thead { display: none; }
  .fin-table:not(.fin-table--months) tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .fin-table:not(.fin-table--months) td { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 0; padding: 2px 0; white-space: normal; text-align: right; min-width: 0; }
  .fin-table:not(.fin-table--months) td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; font-family: var(--font); font-weight: 400; }
  .fin-table:not(.fin-table--months) td:not([data-label])::before, .fin-table:not(.fin-table--months) td[data-label=""]::before { content: none; }
  .fin-table:not(.fin-table--months) td.fin-job { grid-column: 1 / -1; justify-content: flex-start; text-align: left; font-weight: 600; }
  .fin-table:not(.fin-table--months) td.fin-job::before { content: none; }
  .fin-table:not(.fin-table--months) td.fin-net { grid-column: 1 / -1; font-size: 15px; }
  .fin-table:not(.fin-table--months) tfoot tr { background: var(--surface-2); border-radius: var(--radius-sm); }
}

/* 🗂 내 일 focus board: four lanes (지금 · 이번 주 · 기다리는 중 · 나중에), 👉 next task on top */
.artist-hello .seg { align-self: flex-start; margin-left: auto; flex: none; }
.fb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
@media (max-width: 1100px) { .fb { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 🗂 내 업무 보드 (K6, 2026-10-10): the four lanes use the whole window on a wide screen — at 1360 they sat in 1,100 px with
   ~290 px empty on each side and cut titles. (The header row stays as it is.) */
@media (min-width: 1101px) { main:has(> .mywork--board) { max-width: 1760px; } }
/* 🙋 an artist's answer chip in a small card (face + 👍 가능 …) */
.chip--xs.chip--av { padding-left: 2px; gap: 3px; }
.chip--xs.chip--av .av { width: 14px; height: 14px; font-size: 8px; border-radius: 3px; }
@media (max-width: 640px) { .fb { grid-template-columns: 1fr; } }
.fb-lane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-width: 0; }
.fb-lane--now { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.fb-lane--waiting, .fb-lane--later { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.fb-lane summary { list-style: none; cursor: pointer; }
.fb-lane summary::-webkit-details-marker { display: none; }
.fb-lane__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; }
.fb-hint { margin: 2px 0 8px; font-size: 12px; }
.fb-empty { margin: 4px 0; }
.fb-list { display: grid; gap: 6px; }
.fb-card { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); text-decoration: none; min-width: 0; }
.fb-card:hover { border-color: var(--orange); }
.fb-card__icon { flex: none; width: 20px; text-align: center; }
.fb-card__text { flex: 1; min-width: 0; display: grid; }
.fb-card__text b { font-weight: 600; font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-card__text small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-card__text small:has(> .mw-nologin) { white-space: normal; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 0; }   /* 🔑 the artists without a login: every name shows (pages.js) */
.fb-card .chip { flex: none; }
.fb-next { display: grid; gap: 8px; border-color: var(--orange); }
.fb-next__label { font-weight: 700; color: var(--orange); }
.fb-next-in { display: grid; gap: 4px; }
.fb-next-in .fb-card { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.fb-card--big { padding: 12px 14px; }
.fb-card--big .fb-card__text b { font-size: 16px; white-space: normal; }

/* 📊 시트: a spreadsheet-like table; cells are inputs that look like cells */
.sheet-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.sheet-bar .input[type=search] { flex: 1; min-width: 180px; }
.field--inline { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.sheet-wrap { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scrollbar-width: none; }   /* sideways only: the page is the one up-down scroll (sheet.js sheetGrid) */
.sheet { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.sheet th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); color: var(--muted); font-weight: 600; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet td { border-bottom: 1px solid var(--line); border-right: 1px solid color-mix(in srgb, var(--line) 50%, transparent); padding: 0; white-space: nowrap; vertical-align: middle; }
.sheet td.num { text-align: right; font-family: var(--mono); padding: 0 8px; }
.sheet td:not(:has(.sheet__in)):not(.num) { padding: 0 8px; }
.sheet .sheet__stick { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.sheet th.sheet__stick { z-index: 3; background: var(--surface-2); }
.sheet__in { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; padding: 7px 8px; border-radius: 0; }
.sheet__in.input--money { text-align: right; font-family: var(--mono); }
.sheet__in:focus { outline: 2px solid var(--orange); outline-offset: -2px; background: var(--surface-2); }
.sheet__in:disabled { color: var(--muted); }
.sheet td:has(input[type=checkbox]) { text-align: center; }
.sheet tfoot td { position: sticky; bottom: 0; background: var(--surface-2); font-weight: 700; padding: 6px 8px; }
.sheet__note { display: block; padding: 0 8px 4px; color: var(--muted); font-size: 11px; text-align: right; }
.sheet__cancel td { opacity: .45; }
.sheet__done td { color: var(--muted); }
.sheet__saving { opacity: .5; }
.sheet__saved td { background: color-mix(in srgb, var(--green) 14%, transparent); transition: background .8s; }
.sheet .av { vertical-align: middle; margin-right: 4px; }
.chip--xs { font-size: 11px; padding: 0 6px; line-height: 17px; margin-right: 2px; }
/* the sheet uses the whole screen width, not the page column */
.sheet-page { width: min(calc(100vw - 32px), 1800px); margin-left: calc(50% - min(calc(50vw - 16px), 900px)); }
.sheet th.sheet__sort { cursor: pointer; user-select: none; }
.sheet th.sheet__sort:hover { color: var(--text); }
.sheet__datecell { position: relative; }
.sheet__datecell .sheet__in { padding-right: 26px; }
.sheet__cal { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: 14px; padding: 2px 3px; opacity: .7; }
.sheet__cal:hover { opacity: 1; }
.sheet__late .sheet__in { color: var(--red); font-weight: 600; }

/* 📅 by-month table on phones: fits the screen (smaller type, tighter cells) instead of cutting 미지급 off */
@media (max-width: 700px) {
  .fin-table--months { min-width: 0; font-size: 12px; }
  .fin-table--months th, .fin-table--months td { padding: 5px 3px; }
  .fin-table--months .chip { padding: 0 4px; font-size: var(--fs-xs); }
  /* 정산 완료 (= payout − 미정산) is left out on phones so the unpaid column fits */
  .fin-table--months th:nth-child(4), .fin-table--months td:nth-child(4) { display: none; }
}
.fin-table--months th:last-child { text-align: right; }
.sheet__ins { border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 6px; font-size: 11px; padding: 0 6px; margin-left: 4px; cursor: pointer; }
.sheet__ins--on { border-color: var(--gold); color: var(--gold); }
/* 🐞 bug reports */
.toast__bug { margin-left: 10px; border: 1px solid currentColor; background: none; color: inherit; border-radius: 6px; font-size: 12px; padding: 1px 8px; cursor: pointer; }
.bug--fixed { opacity: .6; }
.bug__shot { max-width: 100%; max-height: 260px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.bug__ctx { white-space: pre-wrap; font-size: var(--fs-xs); color: var(--muted); margin: 6px 0 0; }
.logout-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.sheet td.sheet__err .sheet__in { color: var(--red); text-decoration: underline wavy var(--red); }
/* 🆕 version + change log */
.app-version { text-align: right; margin: 12px 0 0; display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.changelog h3 { margin: 14px 0 4px; } .changelog h4 { margin: 10px 0 2px; color: var(--muted); } .changelog__item { margin: 2px 0; }
/* 제안 금액 range: the two boxes share the width (7,000,000 fits) */
.money .input { flex: 1 1 0; min-width: 0; }
/* 📊 시트 on phones: a narrower fixed date column */
@media (max-width: 640px) { .sheet th.sheet__stick { min-width: 104px !important; } .sheet td.sheet__stick .sheet__in { font-size: 12px; }
  .sheet td.sheet__datecell .sheet__in { padding-left: 6px; padding-right: 22px; } .sheet td.sheet__datecell .sheet__cal { right: 1px; padding: 2px 3px; } }   /* (the 📅 covered the date's end in 104 px — Julian 2026-10-11) */
/* 📊 시트 (review 2026-10-10): 날짜 · 아티스트 · 일정 이름 frozen (left edges from sheet.js fitSheet), rows ~27 px (Sheets-dense:
   15+ rows at 1024×768), and the filters in two short lines — title · period · 맞추기 / faces (one row, 「＋N」) · 보기 */
.sheet .sheet__stick--1 { left: var(--sl1, 120px); }
.sheet .sheet__stick--2 { left: var(--sl2, 178px); }
.sheet .sheet__stick--3 { left: var(--sl3); } .sheet .sheet__stick--4 { left: var(--sl4); } .sheet .sheet__stick--5 { left: var(--sl5); } .sheet .sheet__stick--6 { left: var(--sl6); } .sheet .sheet__stick--7 { left: var(--sl7); } .sheet .sheet__stick--8 { left: var(--sl8); } .sheet .sheet__stick--9 { left: var(--sl9); } .sheet .sheet__stick--10 { left: var(--sl10); } .sheet .sheet__stick--11 { left: var(--sl11); } .sheet .sheet__stick--12 { left: var(--sl12); } .sheet .sheet__stick--13 { left: var(--sl13); } .sheet .sheet__stick--14 { left: var(--sl14); } .sheet .sheet__stick--15 { left: var(--sl15); } .sheet .sheet__stick--16 { left: var(--sl16); } .sheet .sheet__stick--17 { left: var(--sl17); } .sheet .sheet__stick--18 { left: var(--sl18); } .sheet .sheet__stick--19 { left: var(--sl19); } .sheet .sheet__stick--20 { left: var(--sl20); }
.sheet .sheet__stick--last { box-shadow: 4px 0 6px -4px color-mix(in srgb, #000 22%, transparent); }   /* (the last frozen column — ▾ 「여기까지 고정」, sheet.js) */
.sheet tfoot td { z-index: 2; }
.sheet tfoot td.sheet__stick { z-index: 3; }
@media (max-width: 640px) { .sheet .sheet__stick:not(.sheet__stick--0) { left: auto; box-shadow: none; } .sheet__colmenu { display: none; } }   /* (phones: only 날짜 stays — no freeze menu) */
.sheet th { padding: 5px 8px; line-height: 18px; }
.sheet__in { padding: 4px 8px; line-height: 18px; }
.sheet select.sheet__in { padding-block: 2px; }
.sheet td .btn--sm { min-height: 24px; padding: 1px 8px; font-size: 12px; }
.sheet td .ck-off { min-height: 0; }
.sheet td .chip { line-height: 18px; }
.sheet-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 16px; }
.sheet-top > * { min-width: 0; }
.sheet-top .sheet-head { flex-wrap: wrap; justify-content: flex-start; gap: 8px 14px; margin: 0; }
.sheet-top .sheet-head h2 { margin: 0; }
.sheet-top .sheet-head > .period-bar { margin: 0; min-width: 0; }
.sheet-top .sheet-head .st-actions { margin-left: auto; }
.sheet-top .sheet-bar { align-items: center; flex-wrap: nowrap; }
.sheet-bar .face-pick--row { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow: hidden; }
.sheet-bar .face-pick--row.face-pick--open { flex-wrap: wrap; }
.sheet-bar .face-pick--row > .seg, .sheet-bar > .seg { flex: none; }
.face-pick--row .face-pick__one { padding: 2px; }
.face-pick--row .face-pick__one .face-pick__name { display: none; }
.face-pick--row .face-pick__one[aria-pressed="true"] { padding-right: 10px; }
.face-pick--row .face-pick__one[aria-pressed="true"] .face-pick__name { display: inline; }
.face-pick--row .av--md { width: 30px; height: 30px; }
.face-pick--row.face-pick--open .face-pick__one .face-pick__name { display: inline; }
.face-pick--row.face-pick--open .face-pick__one { padding: 2px 10px 2px 2px; }
.face-pick .face-pick__more { flex: none; padding: 6px 10px; color: var(--muted); font-weight: 600; }
.face-pick .face-pick__more[hidden] { display: none; }
@media (max-width: 900px) { .sheet-top .sheet-bar { flex-wrap: wrap; } .sheet-bar .face-pick--row { flex-basis: 100%; } }
/* 📊 시트: one page, one up-down scroll (Julian 2026-10-11 — sheet.js sheetGrid). The table goes sideways in .sheet-wrap; its titles
   are a copy (.sheet-float) stuck under the page header, laid over the table's own (kept for the widths); a slim scrollbar
   (.sheet-hbar) sticks to the bottom of the screen (above the phone bar). Both stop at the table's end. */
.sheet-wrap::-webkit-scrollbar { display: none; }
.sheet-wrap > .sheet > thead { visibility: hidden; }
.sheet-float { position: sticky; top: var(--sheet-top, 0px); z-index: 6; overflow: hidden; height: calc(var(--sheet-head-h, 29px) + 1px); margin-bottom: calc(-1px - var(--sheet-head-h, 29px));
  border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); }
.sheet--float { table-layout: fixed; min-width: 0; }
.sheet__in { scroll-margin: calc(var(--sheet-top, 0px) + var(--sheet-head-h, 29px) + 4px) 0 calc(var(--sheet-bottom, 0px) + 20px); }   /* (Tab / Enter to a cell: never under the titles or the bar) */
.sheet-hbar { position: sticky; bottom: var(--sheet-bottom, 0px); z-index: 6; overflow-x: auto; overflow-y: hidden; height: 14px; margin: 0 1px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.sheet-hbar > div { height: 1px; }
.sheet-hbar::-webkit-scrollbar { height: 12px; }   /* (styled = always drawn, also where the system hides scrollbars until you scroll) */
.sheet-hbar::-webkit-scrollbar-track { background: transparent; }
.sheet-hbar::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 50%, transparent); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
.sheet-hbar::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }
@supports not selector(::-webkit-scrollbar) { .sheet-hbar { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 50%, transparent) transparent; } }
/* ▾ 열 고정 on each title (sheet.js sheetColMenu); the panel floats (position: fixed, placed by sheet.js) */
.sheet__colmenu { vertical-align: middle; margin-left: 2px; }
.sheet__colmenu > summary { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; color: var(--muted); opacity: .55; }
.sheet__colmenu > summary .ic { width: 13px; height: 13px; }
.sheet th:hover .sheet__colmenu > summary, .sheet__colmenu[open] > summary, .sheet__colmenu > summary:focus-visible { opacity: 1; background: var(--surface); }
.sheet__colpanel { min-width: 200px; font-weight: 400; color: var(--text); }
.sheet__colpanel button[aria-pressed="true"] { font-weight: 600; }
/* 🙈 a hidden column (sheet.js sheetHidden): its cells stay in every row, unseen — the 합계, frozen edges and title copy follow;
   「숨긴 열 N개 보기」 sits by 맞추기 (none hidden: gone) */
.sheet .sheet__off { display: none; }
.sheet__hidemenu[hidden] { display: none; }
/* a master-sheet line (no dashboard row): read only — the same look as every line (no tint, no mark: Julian 2026-10-21) */
.sheet tr.sheet__master td { height: 27px; }
.sheet__clip { display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }   /* (📊 시트 일정 이름: a long master line's name no longer widens the frozen column; whole name on hover) */
.sheet__src { color: var(--muted); font-size: 12px; white-space: nowrap; }
/* 📐 Lined up like a spreadsheet (Julian 2026-10-11): an amount ends at one x whether its cell is a box you type in or plain text
   (the box carries the 8 px, the cell none), ticks sit in the middle, a title sits like its column (over numbers: right, the ▾
   before it); a 📊 시트 line is one line high — a long word in a box ends in … (whole text on hover: sheet.js sheetGrid), nothing under a cell. */
.sheet th.num, .fin-table th.num, .grid-table th.num, .grid-table td.num { text-align: right; }
.grid-table td.num + td:not(.num), .grid-table th.num + th:not(.num) { padding-left: 12px; }   /* (words right after an amount: not glued to it) */
.bar__value .count { margin-left: 6px; }   /* (💳 연간: 「1,346만 6」, not 「1,346만6」) */
.sheet .ctr, .fin-table .ctr { text-align: center; }
:where(td.ctr) { position: relative; }   /* (no weight: a frozen column stays sticky) */
.sheet td.ctr > .fin-bank { position: absolute; }   /* (🏦 hangs beside the tick, so the tick stays in the middle) */
@media (min-width: 701px) { .fin-table td.ctr > .fin-bank { position: absolute; } }
.sheet td.num:has(> .sheet__in) { padding: 0; }
.sheet td.num > .sheet__in { text-align: right; }
.sheet__in { text-overflow: ellipsis; }
.sheet__in.input--date::placeholder { font-size: 11px; }   /* (YYYY-MM-DD fits the 120 px date column — 108 cut the date after design B's Pretendard, Julian 2026-10-21) */
.sheet th.num .sheet__colmenu { margin: 0 2px 0 0; }
@media (min-width: 641px) { .sheet th.ctr { padding-inline: 20px; } .sheet th.ctr .sheet__colmenu { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); margin: 0; } }
.sheet__flag { font-size: 11.5px; }
.sheet__shortcell { position: relative; }
.sheet__shortcell .sheet__in { padding-left: 38px; }
.sheet__sub { font-size: 11px; font-weight: 500; }
/* a menu in a cell: its words start where a cell's words do (the system's own menu drew them 4 px further in) — its own ⌄ */
@media (min-width: 761px) { .sheet select.sheet__in:not(:disabled) { appearance: none; -webkit-appearance: none; padding-right: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23948b80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; background-size: 14px; } }   /* (phones keep their own menus) */
.sheet__short { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 6px; font: inherit; font-size: 11px; line-height: 16px; padding: 0 5px; cursor: pointer; }
.sheet__short--on { border-color: var(--gold); color: var(--gold); }
.sheet__short .ic { width: 12px; height: 12px; vertical-align: -2px; }
.sheet-wrap td .btn--sm { min-height: 22px; padding-block: 0; vertical-align: middle; }   /* (#12 · ✏️ 정정 fit a 27 px line) */
.sheet-wrap td button.chip.ck-on { min-height: 0; padding: 0 8px; white-space: nowrap; display: inline-block; max-width: 12em; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.sheet th { border-right: 1px solid transparent; }   /* (as wide as a cell's line: a title ends where its numbers do, to the pixel) */
.sheet__cancel td.sheet__stick { opacity: 1; color: color-mix(in srgb, var(--text) 45%, var(--surface)); }   /* (a frozen cell of a 취소 line stays solid —
   at .45 the cells sliding under it showed through) */
.sheet__cancel td.sheet__stick > * { opacity: .45; }
/* 📊 시트 › 한눈에 (sheet.js sheetOverview, 2026-10-12): tiles, 아티스트별 (a table on the page — no box of its own) and 월별 총액
   bars; blue = 입금 확인, orange = 입금 대기 (the validated --s2 / --s1 pair, as every chart here) */
.sheet-ov { display: grid; gap: 14px; margin-top: 14px; }
.sheet-ov > * { min-width: 0; margin: 0; }
.sheet-ov > .panel + .panel { margin-top: 0; }
.sheet-ov__cap { margin: 2px 0 -6px; }
.kpi__note .sheet-ov__sub { display: block; }
@media (min-width: 900px) { .sheet-ov__kpis3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sheet-ov__table th, .sheet-ov__table td { padding-right: 18px; }
.sheet-ov__table th:last-child, .sheet-ov__table td:last-child { padding-right: 0; }
.sheet-ov__row { cursor: pointer; }
.sheet-ov__row:hover td { background: color-mix(in srgb, var(--orange) 6%, transparent); }
.sheet-ov__who { display: inline-flex; align-items: center; gap: 8px; }
.sheet-ov__who .av { flex: none; }
.sheet-ov__barcell { width: 20%; min-width: 80px; }
.sheet-ov__bar { width: 100%; }
.sheet-ov__table tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.sheet-ov__note { margin: 10px 0 0; }
.sheet-ov__cols { display: grid; gap: 6px; height: 200px; margin: 4px 0 10px; }
.sheet-ov__col { display: grid; grid-template-rows: 18px minmax(0, 1fr) 20px; grid-template-columns: minmax(0, 1fr); min-width: 0; text-decoration: none; color: var(--muted); border-radius: 6px; }
.sheet-ov__col:hover, .sheet-ov__col:focus-visible { color: var(--text); }
.sheet-ov__col--empty { opacity: .45; }
.sheet-ov__stack { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; height: 100%; }
.sheet-ov__bar2 { display: flex; flex-direction: column; width: 62%; max-width: 64px; margin: 0 auto; border-radius: 4px 4px 0 0; overflow: hidden; }
.sheet-ov__bar2 > span { display: block; flex-basis: 0; min-height: 0; }
.sheet-ov__paid { background: var(--s2); }
.sheet-ov__wait { background: var(--s1); }
.sheet-ov__col:hover .sheet-ov__bar2 { filter: brightness(1.08); }
.sheet-ov__peak { font: 600 11px var(--mono); color: var(--text); text-align: center; white-space: nowrap; align-self: end; justify-self: center; }   /* (wider than its bar on a phone: it overflows, centred — never widens the column) */
.sheet-ov__lbl { font-size: 12px; text-align: center; white-space: nowrap; align-self: end; justify-self: center; }
.sw.sheet-ov__sw { height: 10px; width: 10px; border-radius: 2px; }
@media (max-width: 700px) { .sheet-ov__barcell { display: none !important; } .sheet-ov__table tfoot tr { grid-template-columns: minmax(0, 1fr); background: var(--surface-2); border-radius: var(--radius-sm); border-bottom: 0; padding-inline: 10px; } .sheet-ov__table tfoot td { border-top: 0; }
  .sheet-ov__table td.num { white-space: nowrap; overflow-wrap: normal; } }   /* (phones: the 합계 card, like 💰 정산's — one total per line, 10-digit sums never squeezed) */
@media (max-width: 420px) { .sheet-ov__table tbody tr { column-gap: 10px; } .sheet-ov__table tbody td.num { font-size: 13px; } }   /* (전체: a 10-digit 정산 금액 fits its half of a 390 px card) */
@media (max-width: 560px) { .sheet-ov__cols { gap: 3px; height: 150px; } .sheet-ov__unit { display: none; } .sheet-ov__peak { font-size: 10px; } .sheet-ov__lbl { font-size: 11px; } }

/* 📊 실적 (/stats, stats.js — Julian 2026-10-12): the 시트's 한눈에 as its own page; .sheet-ov* above + these */
@media (min-width: 700px) { .sheet-ov__kpis6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sheet-ov__vs { display: block; margin-top: 2px; }
.sheet-ov__vs.is-up, .sheet-ov__ch.is-up { color: color-mix(in srgb, var(--green) 80%, var(--text)); }
.sheet-ov__vs.is-down, .sheet-ov__ch.is-down { color: color-mix(in srgb, var(--red) 85%, var(--text)); }
.sheet-ov__ch { font-size: var(--fs-sm); white-space: nowrap; }
.sheet-ov__group td { font-weight: 600; color: var(--muted); border-top: 2px solid var(--line); background: color-mix(in srgb, var(--text) 3%, transparent); }
.sheet-ov__row--other td { color: var(--muted); }
.sheet-ov__row--other .sheet-ov__who { padding-left: 14px; }
.sheet-ov__two { display: grid; gap: 14px; }
.sheet-ov__two > .panel { margin: 0; min-width: 0; }
@media (min-width: 900px) { .sheet-ov__two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sheet-ov__bars { display: grid; gap: 6px; margin: 8px 0; }
.sheet-ov__barline { display: grid; grid-template-columns: minmax(5em, 9em) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.sheet-ov__barname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-ov__barval { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.sheet-ov__stackbar { display: block; min-width: 0; }
.sheet-ov__stackfill { display: flex; height: 10px; border-radius: 3px; overflow: hidden; }
.sheet-ov__seg { display: block; min-width: 2px; }
.sheet-ov__seg--done { background: var(--s2); }
.sheet-ov__seg--open { background: var(--s1); }
.sheet-ov__seg--lost { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.sheet-ov__stack { position: relative; }
.sheet-ov__prev { position: absolute; left: 12%; right: 12%; height: 0; border-top: 2px dashed color-mix(in srgb, var(--muted) 75%, transparent); z-index: 1; pointer-events: none; }
.sw.sheet-ov__prevsw { background: none; height: 0; border-top: 2px dashed color-mix(in srgb, var(--muted) 75%, transparent); border-radius: 0; align-self: center; }
@media (max-width: 560px) { .sheet-ov__barline { grid-template-columns: minmax(4em, 6em) minmax(0, 1fr) auto; gap: 6px; } }
/* (아티스트별: the title with its 정산 · 단가 · 회차 buttons on one line — 📈 분석's columns, 2026-10-12) */
.sheet-ov__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 6px; }
.sheet-ov__head > h2 { margin: 0; }

/* ❓ 사용법 (/help) */
.help__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.help__tools { display: flex; gap: 8px; align-items: center; }
.help__tools .input { flex: 1 1 auto; min-width: 0; }
.help__tools .btn { flex: none; }
.help__count { color: var(--muted); font-weight: 500; font-size: 13px; }
/* ❓ from a screen: its part is open, the item marked, with a way back */
.help__item, .help__here-spot { scroll-margin-top: 120px; }
div.help__here-spot { border-left: 3px solid var(--orange); padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--orange) 7%, var(--surface)); }
.help__here { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.help__here b { color: var(--text); }
.help__sec > .help__here { margin-top: 10px; }
/* 「사용법」 tab on a page with its own help (help.js usageTabs; 통장's tab row too): the last tab, at the right end */
.usage-tabs { display: flex; }
.usage-tab { margin-left: auto; }
.usage-tab .ic { width: 15px; height: 15px; }
.usage-top { display: grid; gap: 14px; }
.usage-top .usage-tabs { margin: 0; }
.sheet-help p { max-width: 75ch; margin: 0; }
.help__sec > summary { cursor: pointer; font-weight: 600; font-size: var(--fs-lg); list-style: none; display: flex; gap: 8px; align-items: center; }
.help__sec > summary > span[aria-hidden] { color: var(--muted); }
.help__sec > summary::-webkit-details-marker { display: none; }
.help__sec > summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .15s; }
.help__sec:not([open]) > summary::after { transform: rotate(-90deg); }
/* (min-width: a part is a grid item of .help-main — without it the 4-column 「누가 무엇을 보는지」 table widened the whole page on a phone) */
.help__sec { scroll-margin-top: 120px; min-width: 0; }
/* 사용법 for reading (design B, Julian 2026-10-18 「not very readable, the weight isn't what we need」): questions in the text colour and
   a normal weight (the open one semibold), answers ~70 characters wide with room between lines, only the quoted button names bold */
.help__items { display: grid; gap: 2px; margin-top: 10px; }
.help__item { border-radius: var(--radius-sm); }
.help__item h3 { font-size: var(--fs-base); font-weight: 500; margin: 0; color: var(--text); line-height: 1.5; }
.help__item[open] h3 { font-weight: 600; }
.help__item > summary { padding: 8px 10px; border-radius: var(--radius-sm); }
.help__item > summary:hover { background: var(--side-hover); }
.help__item[open] { background: var(--side-bg); padding-bottom: 12px; }
.help__item > summary { cursor: pointer; list-style: none; display: flex; gap: 6px; align-items: baseline; }
.help__item > summary::-webkit-details-marker { display: none; }
.help__item > summary::before { content: '▸'; color: var(--muted); flex: none; width: 10px; font-size: var(--fs-sm); }
.help__item[open] > summary::before { content: '▾'; }
.help__item:not([open]) h3 { margin: 0; }
.help__items .help__item > ul { margin-left: 26px; }
.help__item ul { margin: 2px 0 0; padding-left: 20px; display: grid; gap: 8px; max-width: 70ch; font-size: var(--fs-base); line-height: 1.75; color: var(--text); }
.help__item li::marker { color: var(--muted); }
.help__item li b { font-weight: 600; }
.help__table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.help__table th, .help__table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.help__table thead th { color: var(--muted); font-weight: 600; font-size: 13px; }
.help__table td { white-space: nowrap; }
.help-see { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 28px; margin-top: 8px; }
.help-see h3 { font-size: 14px; margin: 8px 0 4px; }
.help-see ul { margin: 0; padding-left: 18px; }
.help-see li { margin: 4px 0; }
.help__foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* 🎮 연습 모드 (/start) */
.tour { display: grid; gap: 14px; }
.tour__welcome { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 28px 20px; }
.tour__welcome h1 { margin: 0; font-size: 22px; }
.tour__welcome p { margin: 0; max-width: 520px; }
.tour__wave { font-size: 44px; line-height: 1; }
.tour__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.tour__lang { margin-top: 4px; }
@keyframes tour-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 0%, transparent); } }
.tour__confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 60; }
.tour__confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: tour-fall linear 1 forwards; }
@keyframes tour-fall { to { transform: translateY(105vh) rotate(540deg); opacity: .2; } }
/* 🎮 the practice offer (tour.js): a card at the page's own edges (same margins as .wip-banner in shell.css) */
.tour__offer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 12px 28px 0; padding: 12px 12px 12px 14px; background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--shadow); font-size: var(--fs-md); }
.tour__offer-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--orange-soft); color: var(--orange); }
.tour__offer-ic .ic { width: 20px; height: 20px; }
.tour__offer-text { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.tour__offer-text b { font-weight: 600; color: var(--text); }
.tour__offer-text span { color: var(--muted); font-size: var(--fs-sm); }
.tour__offer-x { color: var(--muted); }
.tour__offer-x .ic { width: 16px; height: 16px; }
@media (max-width: 1279px) { .tour__offer { margin-inline: 20px; } }
@media (max-width: 600px) {   /* phones: ✕ stays top right, 연습하기 goes under the words */
  .tour__offer { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: start; gap: 10px 12px; margin: 10px 12px 0; }
  .tour__offer > .btn--primary { grid-column: 2; grid-row: 2; justify-self: start; }
  .tour__offer-x { grid-column: 3; grid-row: 1; }
}
.note--staff { border-left-color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .tour__confetti { display: none; }
}
/* ❓ on phones: beside the search box, so the header keeps its two rows */
/* 📱 Artists on a phone: the search row folds into 🔍 in the top bar (app.js foldSearch); open = the row under the bar */
.chip--wrap { white-space: normal; height: auto; line-height: 1.35; padding-top: 3px; padding-bottom: 3px; max-width: 100%; }

/* 🚀 시작하기 + 🔗 내 섭외 링크 (artist 내 홈) */
.start { border-color: color-mix(in srgb, var(--orange) 45%, var(--line)); }
.start__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.start__head h2 { margin: 0; }
.start__bar { flex: 1 1 120px; max-width: 220px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.start__bar span { display: block; height: 100%; background: linear-gradient(135deg, #e8731e, #f0a500); }
.start__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.start__item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); }
.start__item.is-done { background: none; color: var(--muted); padding: 6px 12px; }
.start__title { display: flex; align-items: center; gap: 8px; cursor: pointer; word-break: keep-all; }
.start__item.is-done .start__title { cursor: default; }
.start__undo { margin-left: auto; }
.start__body { display: grid; gap: 8px; justify-items: start; padding: 8px 0 2px 26px; }
.start__body p { margin: 0; }
.start__more > summary { cursor: pointer; text-decoration: underline; }   /* 📺 재방송료 「자세히」 (Julian 2026-10-10) */
.start__more-body { display: grid; gap: 8px; justify-items: start; margin-top: 8px; }
.start__fold > summary { list-style: none; cursor: pointer; }
.start__fold > summary::-webkit-details-marker { display: none; }
.start__fold > summary .start__head::after { content: '▸'; color: var(--muted); margin-left: auto; }
.start__fold[open] > summary .start__head::after { content: '▾'; }
/* folded: one line — the ▸ sat alone on an empty second row on phones (the bar gives way instead) */
.start__fold > summary .start__head { flex-wrap: nowrap; }
.start__fold > summary .start__head > * { flex-shrink: 0; }
.start__fold > summary .start__head > .start__bar { flex: 1 1 40px; min-width: 24px; }
.start__fold:not([open]) > summary .start__head { margin-bottom: 0; }
.start__sub { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.start__sub .is-done { color: var(--green); }
.start__answers { display: flex; flex-wrap: wrap; gap: 6px; }
.link-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; margin-top: 8px; width: 100%; }
.link-row__label { font-size: 13px; color: var(--muted); }
.link-row__url { font: 13px var(--mono); background: var(--surface-2); border-radius: var(--radius-sm); padding: 5px 8px; min-width: 0; overflow-wrap: anywhere; }
.link-row__btns { display: flex; gap: 6px; }
@media (max-width: 640px) { .link-row { grid-template-columns: minmax(0, 1fr) auto; } .link-row__label { grid-column: 1 / -1; margin-bottom: -2px; } }
@media (max-width: 640px) { .start__body { padding-left: 0; } }
/* ⋯ on the request box: top right */
.head .card__row .head-more { margin-left: auto; }
.head-more .mini-menu__panel { min-width: 250px; } .head-more .mini-menu__panel button { white-space: nowrap; }

/* Icons (icons.js — Lucide line icons in place of emoji) */
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic--sm { width: .95em; height: .95em; }
.panel h2 > .ic { color: var(--muted); }
.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .35em; vertical-align: .02em; }
.dot--red { background: var(--red); } .dot--orange { background: var(--orange); } .dot--green { background: var(--green); }
.dot--yellow { background: #f5c518; }   /* 🟡 (as the 🏦 통장 yellow dot) */
.btn--icon { padding-inline: 10px; }
.bell .ic { width: 18px; height: 18px; }

/* The person's menu (top right) */
.usermenu { position: relative; }
.usermenu > summary { list-style: none; }
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu .hello { color: var(--text); font-size: var(--fs-md); }
.usermenu__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 180px; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
.usermenu__menu > * { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; background: none; border-radius: 6px; color: var(--text); text-decoration: none; font: inherit; font-size: var(--fs-md); text-align: left; cursor: pointer; }
.usermenu__menu > *:hover { background: var(--surface-2); }
.usermenu__menu .ic { color: var(--muted); }
#logout, #usermenu-logout { border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; margin-top: 4px; }   /* (#usermenu-logout: the separate pages' menu, pageheader.js) */
@media (max-width: 760px) { .usermenu .hello { display: none; } }

/* Phones: bottom bar of five */
@media (max-width: 600px) {
  .top { backdrop-filter: none; background: var(--bg); }   /* a blurred header would trap the fixed bar inside it */
  /* (off the request lists: in the top bar, beside the logo — floating, it covered rows; 2026-10-12) */
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  main { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
}

/* Request page: compact answers (label | value), folded history, forms behind a button */
@media (min-width: 600px) {
  .qa { gap: 0; }
  .qa > div:not(.qa__section) { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
  .qa > .qa__section + div { border-top: 0; }
  .qa dd { margin: 0; }
  .qa__section { margin: 14px 0 4px; }
  .qa__section:first-child { margin-top: 0; }
}
.panel--fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 8px; }
.panel--fold > summary::-webkit-details-marker { display: none; }
.panel--fold > summary h2 { margin: 0; }
.panel--fold > summary::after { content: "▾"; color: var(--muted); margin-left: auto; }
.panel--fold[open] > summary { margin-bottom: 12px; }
.panel--fold[open] > summary::after { content: "▴"; }
.reveal { margin-top: 12px; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
label.field > .ic { display: none; }   /* a grid label would put the icon on its own line */
@media (max-width: 600px) { .toolbar .input { min-width: 0; flex: 1 1 0; } }

.kv > :first-child { flex: none; white-space: nowrap; }   /* a long answer must not squeeze its label to one letter per line */
/* 🚀 시작하기 (/artists/:code): a long 「빠짐: …」 or Naver chip wraps instead of pushing the page wider than a phone */
.kv-panel .kv > :last-child { min-width: 0; text-align: right; }
.kv-panel .chip { white-space: normal; overflow-wrap: anywhere; }
.head__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.head__actions a.btn { color: var(--text); }
/* Urgent requests: the age edge turns red too */
.card--urgent .age { color: var(--red); }
/* Request lists on wide screens: one block per request, the labels on the right — about half the height */
@media (min-width: 900px) {
  .list:not(.list--compact) > .card { padding-block: 12px; align-items: center; }
  .list:not(.list--compact) > .card > div:last-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; }
  .list:not(.list--compact) > .card .card__title, .list:not(.list--compact) > .card .card__title ~ .card__meta { grid-column: 1; }
  .list:not(.list--compact) > .card .card__row { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; justify-content: flex-end; max-width: 460px; }
}

/* 👉 다음 단계 (top of a request) */
.next-step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--orange) 9%, var(--surface)); border-left: 3px solid var(--orange); }
.next-step__label { font-weight: 700; color: var(--orange); white-space: nowrap; }
.next-step__text { flex: 1 1 220px; }
/* Read first, edit on purpose (side card) */
.editable { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.editable__toggle { min-height: 28px; padding: 2px 8px; color: var(--muted); }
.editable--on { padding: 10px; margin: 4px -10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.editable .kv:first-child { border-top: 0; }
.editable .kv { padding: 5px 0; }
.fee-sum { display: grid; }

/* 표 view of a request list */
.list-mode { margin-left: auto; }
.list-mode + .filters__menu { margin-left: 0; }
@media (max-width: 899px) { .list-mode { display: none; } }
.req-table-wrap { padding: 4px 16px; }
.req-table td { white-space: normal; vertical-align: middle; }
.req-table tbody tr { cursor: pointer; }
.req-table tbody tr:hover { background: var(--surface-2); }
.req-table__urgent td:first-child { box-shadow: inset 3px 0 var(--red); }
.req-table .age { font-size: var(--fs-sm); padding: 0 0 0 8px; }
.req-table .age small { display: inline; margin: 0; }
.req-table__client a { color: var(--text); font-weight: 600; text-decoration: none; }
.req-table__client small { color: var(--muted); font-weight: 400; }
.req-table__age, .req-table__status, .req-table__owner { white-space: nowrap !important; }
/* 표: words stay whole (램프커뮤/니케이션 ✗, 크리스티/나 ✗) so the free width goes to the names; a long date in the
   client's own words wraps in its own, narrower column (UX Q). */
.req-table.grid-table td { overflow-wrap: break-word; }
.req-table__date { width: 12em; }
.req-table__flags .chip + .chip { margin-left: 8px; }
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.th-sort:hover { color: var(--text); }
/* the whole header cell sorts, not only its word (고객 · 문의 표): the button's tap area covers the cell */
.grid-table th:has(> .th-sort) { position: relative; cursor: pointer; }
.grid-table th > .th-sort::after { content: ''; position: absolute; inset: 0; }
.grid-table th:has(> .th-sort):hover > .th-sort { color: var(--text); }

/* 🔀 View switcher (views.js): next to the logo, one per space someone can work in. */
.wip-banner { display: flex; align-items: center; gap: 8px; width: calc(100% - 32px); max-width: calc(1100px - 32px); margin: 12px auto 0; padding: 10px 14px; border: 1px dashed color-mix(in srgb, var(--orange) 55%, var(--line)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--orange) 7%, var(--surface)); font-size: var(--fs-sm); }
.wip-banner .ic { flex: none; color: var(--orange); }
/* With the switcher, the page's own "which page am I on" bits are redundant. */
@media (max-width: 760px) {
}

/* 🕘 Seoul clock (views.js): only for someone whose computer is set to another time zone. */
.seoulclock { position: relative; }
.seoulclock > summary { list-style: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.seoulclock > summary::-webkit-details-marker { display: none; }
.seoulclock__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: min(300px, calc(100vw - 32px)); padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgb(0 0 0 / .18); font-size: var(--fs-md); }
.seoulclock__menu p { margin: 0 0 6px; }
.seoulclock__menu .muted { color: var(--muted); font-size: var(--fs-sm); }
.seoulclock__team { display: grid; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.seoulclock__team > div { display: flex; justify-content: space-between; gap: 8px; align-items: center; }

/* 🎮 연습 on the real screens (tour.js): a dimmed sheet with a hole over the thing to press, and a bubble. */
.tspot { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; pointer-events: none; z-index: 2147483000; color: var(--text); }
.tspot__dim { position: fixed; inset: 0; width: 100%; height: 100%; }
.tspot__dim > rect { fill: rgb(10 10 15 / .42); }
.tspot--nohole .tspot__dim > rect { fill: rgb(10 10 15 / .18); }
.tspot__ring { position: fixed; border: 2px solid var(--gold); border-radius: 10px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); animation: tour-pulse 1.4s ease-in-out infinite; }
.tspot__bubble { position: fixed; pointer-events: auto; width: min(380px, calc(100vw - 24px)); display: grid; gap: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--gold) 60%, var(--line)); border-radius: var(--radius); box-shadow: 0 12px 32px rgb(0 0 0 / .28); font-size: var(--fs-md); }
.tspot__bubble--free { left: 50% !important; top: auto !important; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); }
.tspot__head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.tspot__head > span:first-child { flex: 1; min-width: 0; }
.tspot__dots { display: flex; gap: 3px; }
.tspot__dots i { width: 14px; height: 5px; border-radius: 3px; background: var(--line); }
.tspot__dots i.on { background: var(--green); }
.tspot__dots i.now { background: var(--gold); }
.tspot__say { margin: 0; font-size: var(--fs-base); line-height: 1.5; color: var(--text); white-space: pre-line; }   /* (numbered steps = one per line) */
.tspot__say--win { font-weight: 700; color: var(--green); }
.tspot__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tspot__todo { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 640px) { .tspot__bubble--free { bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .tspot__ring { animation: none; } }

/* 📈 분석 (재무 · 세무) */
.an-tools { align-items: center; }
.an-who { width: auto; min-width: 160px; flex: 0 1 200px; }
.an-source { margin: -6px 0 0; }
.an-table th, .an-table td { white-space: nowrap; }
.an-table .num { text-align: right; padding-left: 14px; }
.an-table tfoot th, .an-table tfoot td { font-weight: 700; border-top: 1px solid var(--line); }
.an-barcell { width: 120px; }
.an-bar { width: 100%; }
.an-empty td, .an-empty th { color: var(--muted); }
.an-up { color: var(--green); font-weight: 600; }
.an-down { color: var(--red); font-weight: 600; }
.an-click { cursor: pointer; }
.an-click:hover { background: var(--surface-2); }
.an-on { background: color-mix(in srgb, var(--orange) 10%, var(--surface)); }
.an-cats .bar { grid-template-columns: 110px minmax(0, 1fr) auto 48px; }
.an-cats .bar__value { white-space: nowrap; }
.an-cat--none .bar__value { color: var(--muted); font-weight: 400; }   /* 금액 없음: jobs without a 총액 yet */
.an-cat__note { margin: 10px 0 0; }
.an-none { color: var(--muted); }
@media (max-width: 600px) {
  .an-kpis { grid-template-columns: 1fr; }   /* one total per line: full amounts in won don't fit half a phone */
  .an-tools .an-who { flex: 1 1 100%; min-width: 0; }
  .an-cats .bar { grid-template-columns: 84px minmax(0, 1fr) auto 40px; }
}
/* Narrow phones: the header keeps one line — 사용법 moves into the person's menu */

/* 🔎 Header search (topsearch.js): rows that don't match, and a page's own search field the header box replaces. */
.ts-hide, .ts-dup { display: none !important; }

/* 🧾 세금계산서 page as a sheet (invoices.js renderInvoices): the 세금계산서 sheet's columns, read-only; a line opens the job. */
.inv-page { display: grid; gap: 12px; }
.inv-page > * { min-width: 0; }   /* the table scrolls inside its box, never the page */
/* 🧾 the whole screen width like 🏦 통장 · 💳 카드 · 📊 시트 (.sheet-page — Julian 2026-10-11: the table ran out of the page column), folder
   tabs on top (usageTabs), no page title; a tab without tiles or filters leaves no gap */
.inv-page > :empty { display: none; }
.inv-page .usage-tabs { margin: 0; }
.inv-sums .fin-table { min-width: 0; }
.inv-sum td:first-child { overflow-wrap: anywhere; }
.inv-sums > .panel { margin: 0; }
.inv-help { display: grid; gap: 8px; }
/* a narrower window (the 표 shows from 1000px — invoices.js sheetFits): faces without names (the name on hover), tighter cells, titles and
   state words may wrap — the table stays inside its box */
@media (max-width: 1199px) {
  .inv-sheet .inv-sheet__who:has(.av) .inv-sheet__name { display: none; }
  .inv-sheet td, .inv-sheet th { padding-inline: 5px !important; }
  .inv-sheet th, .inv-sheet .chip { white-space: normal; }
  .inv-sheet .inv-sheet__reg .mono { white-space: nowrap; }   /* (a 사업자등록번호 stays whole) */
}
.inv-bar { margin: 0; }
.inv-bar .input { width: auto; flex: 0 1 170px; min-width: 0; }
.inv-bar .seg .count { margin-left: 4px; }
.inv-sheet tbody tr { cursor: pointer; }
.inv-sheet tbody tr:hover td { background: color-mix(in srgb, var(--orange) 6%, var(--surface)); }
.inv-sheet td { padding: 6px 8px !important; }
.inv-sheet td small { font-size: 11.5px; }
.inv-sheet__open { text-decoration: none; }
.inv-sheet .inv-sheet__skip { display: flex; width: max-content; margin-top: 4px; color: var(--muted); }   /* 「발행 안 함으로」: a small button under the state chip, not a second status (Julian 2026-10-10) */
.inv-sheet__wide { white-space: normal !important; min-width: 170px; max-width: 280px; }
.inv-sheet__who { display: inline-flex; align-items: center; gap: 2px; margin-right: 8px; }
.inv-sheet__total { font-weight: 700; }
.inv-sheet__yes { color: var(--green); font-weight: 600; }
.inv-sheet__late, .inv-sheet__late .mono { color: var(--red); font-weight: 600; }
.inv-sheet__missing { color: var(--red); white-space: normal !important; min-width: 140px; font-size: 12px; }
.inv-sheet .chip { white-space: nowrap; }
.inv-note { margin: 0; }
.inv-sheet__reg { white-space: nowrap; }
.inv-sheet__reg a { margin-right: 6px; }
.inv-sheet__up { padding: 2px 8px; font-size: 12px; }
.inv-sheet__drop--over { outline: 2px dashed var(--orange); outline-offset: -3px; background: color-mix(in srgb, var(--orange) 8%, var(--surface)) !important; }
/* 📊 표 in the page column: no box of its own, no sideways sliding — cells wrap, the titles stay under the page header */
.inv-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.inv-sheet { width: 100%; }
.inv-sheet th { top: var(--top-h, 0px); z-index: 4; }
.inv-sheet td { white-space: nowrap; vertical-align: top; }
.inv-sheet .inv-sheet__wide, .inv-sheet .inv-sheet__reg { white-space: normal; overflow-wrap: anywhere; min-width: 0; max-width: none; width: 30%; }
.inv-sheet .inv-sheet__reg { width: 17%; }
.inv-sheet__wide .inv-sheet__line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }   /* (a long 일정 이름: two lines; the page has it all) */
.inv-sheet__line { display: block; margin-top: 2px; }
.inv-sheet__line > * + * { margin-left: 6px; }
.inv-sheet .inv-sheet__missing { min-width: 0; }

/* --- Review fixes (2026-10-02) ------------------------------------------------------------------- */
/* One long word with no spaces (a pasted URL, an e-mail, 「가가가…」) wraps inside its box instead of making
   the page tens of thousands of pixels wide: grid/flex children may shrink, the text breaks anywhere. */
.card > div, .up > *, .bcol, .bcard, .fb-card__text, .assign-row > * { min-width: 0; }
.up { grid-template-columns: 130px minmax(0, 1fr) auto; }
@media (max-width: 560px) { .up { grid-template-columns: minmax(0, 1fr) auto; } }
/* 📄 정산서 list on 💰 정산 (phone): its 4 buttons go under the text, not beside it squeezing it to ~150 px (review 2026-10-10) */
@media (max-width: 560px) { .st-list .up { grid-template-columns: minmax(0, 1fr); } .st-list .st-actions { justify-content: flex-start; } }
.card__title, .card__meta, .bcard__title, .up b, .up > span, .assign-row a, .head h1, .head .card__meta, .grid-table td { overflow-wrap: anywhere; }
.grid-table td a, .grid-table td b { white-space: normal; }
/* A request card's second line (분야 · 일정 이름 · 날짜) stays two lines at most; the date never breaks. */
.card > div > div.card__meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nowrap { white-space: nowrap; }

/* 🗂 보드: five columns that fit the page (no sideways box); phones stack them, one status under another. */
.board { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
@media (max-width: 600px) { .board { grid-template-columns: minmax(0, 1fr); } .bcol { min-height: 0; } }
/* 🗂 보드 on phones: one column at a time under folder tabs (board.js) — UX Y */
.board-tabs { display: none; }
.board-tabs .count { margin-left: 4px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .board-tabs { display: flex; }
  .board > .bcol:not(.is-on) { display: none; }
  .board > .bcol { background: none; border: 0; padding: 0; }
  .board > .bcol > .bcol__head { display: none; }
}
/* 🔎 「전체에서 찾기 →」 under a search on one tab */
.search-all { margin: 6px 0 0; text-align: center; }
.search-all a { font-weight: 600; }

/* Checkboxes and radios in the brand colour everywhere (dark mode too). */
input[type="checkbox"], input[type="radio"] { accent-color: var(--orange); }

/* Phones: a filter select gets its own line (「모든 아티스트」 isn't cut to 「모든 아티스!」); segmented rows wrap. */
@media (max-width: 600px) {
  .cal-bar > select.input, .fin-bar > select.input, .inv-bar > select.input { flex: 1 1 100%; }
  .inv-bar .seg { flex-wrap: wrap; overflow: visible; }
  .inv-bar .seg button { flex: 1 1 auto; border-bottom: 1px solid var(--line); }
}

/* 💰 Artist money chart: fits the phone (no sideways box). */
.money-chart-wrap { overflow: visible; }
.money-chart { min-width: 0; }
@media (max-width: 600px) { .money-chart__lbl, .money-chart__val { font-size: 22px; } }

/* 📱 Tables that read as cards on phones (현황 · 사용자 · 고객), like the 💰 정산 tables. */
@media (max-width: 700px) {
  .grid-table--cards thead { display: none; }
  .grid-table--cards, .grid-table--cards tbody { display: block; }
  .grid-table--cards tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 14px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .grid-table--cards td { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 0; padding: 2px 0; white-space: normal; text-align: right; min-width: 0; }
  .grid-table--cards td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; flex: none; white-space: nowrap; }
  .grid-table--cards td > select, .grid-table--cards td > input { min-width: 0; flex: 0 1 auto; max-width: 70%; }
  .grid-table--cards td[data-label=""]::before, .grid-table--cards td:not([data-label])::before { content: none; }
  .grid-table--cards td:first-child { grid-column: 1 / -1; justify-content: flex-start; text-align: left; font-weight: 600; }
  .grid-table--cards td:first-child::before { content: none; }
  .grid-table--cards td.gt-wide { grid-column: 1 / -1; }
  /* 사용자: photo · name · 대표 on one line, the 영문 이름 box on its own line under them (the name never wraps letter by letter) */
  .grid-table--cards td:first-child { flex-wrap: wrap; }
  .grid-table--cards td:first-child > b { white-space: nowrap; }
  .grid-table--cards td:first-child > .users__en { flex: 1 0 100%; max-width: 100%; }
}

/* 📈 분석 (and other card tables whose rows start with a <th>): the row's name on top, full width; the 합계 row too. */
@media (max-width: 700px) {
  .grid-table--cards tfoot { display: block; }
  .grid-table--cards th[scope="row"] { display: block; grid-column: 1 / -1; text-align: left; font-weight: 600; padding: 2px 0; border: 0; white-space: normal; }
  .an-table tr { grid-template-columns: minmax(0, 1fr); }   /* (one value per line: 38,970,135원 never breaks) */
  .an-table td { white-space: nowrap; }
  .an-table td.num { padding-left: 0; }
  .an-table td.an-barcell { grid-column: 1 / -1; }
  .an-table tr.an-empty td:not(:nth-child(2)) { display: none; }   /* (a month with no jobs: one short line) */
  .an-table tfoot th, .an-table tfoot td { border-top: 0; }
}
/* 🗑 휴지통 (pages.js trashSection): 「완전히 지우기」 reads as destructive, apart from 「↩︎ 되살리기」; restored ones folded. */
.trash-purge { margin-left: auto; color: var(--red); }
.trash-purge:hover { background: color-mix(in srgb, var(--red) 10%, transparent); }
.trash-restored { margin-top: 12px; }
.trash-restored > summary { cursor: pointer; color: var(--muted); padding: 6px 4px; }
/* 🚫 권한이 없어요 (app.js renderNoAccess) */
.no-access h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--text); }
.no-access__actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* 더보기 menu: small group headings (명단 · 도구 · 팀 · 관리). */

/* 확정 without 확정 처리: the date is known, the time isn't yet. */
.ev--needs { border-style: solid; box-shadow: inset 3px 0 0 var(--amber); }   /* (not dashed: that's 가일정 in the legend) */
/* 「캘린더에 보낸 뒤 바뀐 내용이 있어요」 + 📅 캘린더 업데이트 on one line (wraps on phones) */
.cal-outdated { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cal-failed { color: var(--red); font-weight: 600; }   /* 「보내지 못했습니다 — 다시 보내 주세요」 (the last send failed, review 2026-10-12) */
.ev__nc { font-weight: 600; color: color-mix(in srgb, var(--amber) 72%, var(--text)); }
/* 공휴일 in 📅 일정 */
.cal-day--holiday .cal-day__n, .cal-agenda__day--holiday .cal-agenda__date { color: var(--red); }
.cal-day__hol { font-size: 10.5px; color: var(--red); font-weight: 500; margin-left: 4px; }
/* An artist's open question, shown above the quick answers */
.reply-q { margin: 0; padding: 8px 10px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); border-left: 3px solid var(--blue); font-size: var(--fs-md); white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-q__reply { margin-top: 4px; white-space: nowrap; }
/* Menu items: the icon and its word always keep the same gap (⋯ menus too). */
.filters__menupanel button, .filters__menupanel a, .mini-menu__panel button { display: flex; align-items: center; gap: 8px; }
.toast__link { color: var(--orange); font-weight: 600; margin-left: 4px; white-space: nowrap; }
.head .head__wish { font-size: 12px; margin-top: 0; }
/* A normal "next step" state (💰 정산 예정): amber, readable on light and dark */
.chip--amber { color: color-mix(in srgb, var(--amber) 72%, var(--text)); font-weight: 600; }
/* ❓ 사용법 dialog for the show partner and the 세무사 (pageheader.js) */
.howto__list { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.6; }
/* ☎️ Phone field (phone.js): prefix · 「-」 · number; the message under it once the person leaves the field */
/* ☎️ Always one line (Julian 2026-10-12: 「전화번호 칸이 두 줄」 in a two-column form): prefix · - · number side by side. The prefix
   list narrows (to 5em) before the number does (it keeps 6em); only the message goes under them. */
.phone { display: grid; grid-template-columns: minmax(5em, max-content) auto minmax(6em, 1fr); align-items: center; row-gap: 4px; min-width: 0; }
.phone > .phone__pre { grid-column: 1; width: 100%; min-width: 0; max-width: 11em; }
.phone > .phone__dash { grid-column: 2; padding: 0 6px; }
.phone > .phone__num { grid-column: 3; width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.phone > .phone__dash[hidden] + .phone__num { margin-left: 6px; }   /* (+ 해외 · 대표번호 · 직접 입력: no dash) */
.phone.phone--off { grid-template-columns: minmax(0, 1fr); }   /* locked: the whole number as one text */
.phone.phone--off > .phone__num { grid-column: 1; margin-left: 0; }
.phone__dash { color: var(--muted); }
.phone__msg { grid-column: 1 / -1; color: var(--red); font-size: var(--fs-xs); }
.phone--bad > .phone__num { border-color: var(--red); }
/* 🔗 관련 문의 picker on a to-do (todos.js tdxJobPicker): the list opens in the page flow under the box, wraps long names */
.jp { flex: 2 1 260px; min-width: 0; display: grid; gap: 4px; }
.jp .input { width: 100%; }
.jp .input:disabled::placeholder { color: var(--muted); }   /* 「아티스트를 먼저 골라 주세요」 is a hint, not example text — keep it visible (the rule above hides disabled placeholders) */
.composer__row:has(> .jp) { align-items: flex-start; }   /* the artist menu stays next to the box while the list is open */
.jp__list { display: grid; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.jp__head { font-size: 12px; color: var(--muted); padding: 4px 8px; }
.jp__opt { display: block; padding: 7px 10px; border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.jp__opt small { display: block; }
.jp__opt:hover, .jp__opt--on { background: color-mix(in srgb, var(--orange) 12%, transparent); }
.jp__opt--on { outline: 1px solid var(--orange); }
.jp__chip { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border: 1px solid var(--orange); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--orange) 9%, var(--surface)); }
.jp__chip-text { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.jp__x { flex: none; border: 0; background: none; color: var(--muted); font: inherit; font-size: 16px; line-height: 1; padding: 4px 6px; cursor: pointer; border-radius: 6px; }
.jp__x:hover { color: var(--text); background: var(--surface-2); }
.jp-dlg { width: min(560px, calc(100vw - 32px)); }
/* ✅ 끝났나요? (jobdone.js): two answers on their own line under the card text; the 문제가 있었어요 choices */
.fb-card--ask { flex-wrap: wrap; }
.fb-card__acts { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding-left: 28px; }
/* a card with a link AND buttons (pages.js task): the link is the text part, the buttons beside it — never inside the <a> */
.fb-card__link { flex: 1 1 0; display: flex; align-items: center; gap: 8px; min-width: 0; color: inherit; text-decoration: none; }
.fb-card--ask > .fb-card__link { flex-basis: 100%; }
.fb-card--acts:has(> .fb-card__link:focus-visible) { border-color: var(--orange); }
.jd-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.jd-choices { display: grid; gap: 8px; }
.jd-choice { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.jd-choice:hover { border-color: var(--orange); }
.jd-other { margin-top: 12px; }
/* 💰 끝났어요 without a 확정 금액: one row per artist — name, the amount, 무료 (0원) */
.jd-fees { display: grid; gap: 8px; margin: 4px 0 8px; }
.jd-fee { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: end; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.jd-fee .artist-id { grid-column: 1 / -1; }
.jd-fee__free button { padding: 8px 12px; }
.jd-fee__hint { color: var(--red); margin: 6px 0 0; }

/* © footer (views.js): small, under the page, above the phone bottom bar */
/* (no negative margin: the separate pages end their main differently, and a pulled-up footer landed on their content) */
.app-foot { max-width: 1100px; margin: 0 auto; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: var(--fs-xs); }
main:has(+ .app-foot) { padding-bottom: 24px; }   /* the footer gives the space at the bottom instead */
.app-foot a { color: inherit; text-decoration: none; }
.app-foot a:hover { text-decoration: underline; }
@media (max-width: 600px) { .app-foot { padding-bottom: calc(150px + env(safe-area-inset-bottom)); } }   /* room for the bottom bar + the ＋ button (main's own 150px moves here) */

/* 태그 on the request page: the 주제 list + the team's tags as chips to tick; 「＋ 새 태그」 at the end */
.tag-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag-pick__chip { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.tag-pick__chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--orange) 45%, var(--line)); }
.tag-pick__chip[aria-pressed="true"] { color: var(--text); font-weight: 600; border-color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, var(--surface)); }
/* 🏷 tagPicker (2026-10-12): chosen · 🔎 · the next 10 in use order · a line saying what the order is */
.tagp { display: grid; gap: 8px; width: 100%; }
.tagp__on { display: flex; flex-wrap: wrap; gap: 6px; }
.tagp__on[hidden] { display: none; }
.tagp__search { max-width: 360px; }
.tagp__list { min-height: 30px; }
.tag-pick__chip.tagp__mine { border-color: color-mix(in srgb, var(--orange) 70%, var(--line)); color: var(--text); }
.tag-pick__chip.tagp__new { border-style: dashed; color: var(--text); }
.tagp__note { margin: 0; }
.tag-pick--open { display: grid; gap: 8px; justify-items: start; }
.tag-pick__input { width: 11em; min-height: var(--control-h-sm); padding: 4px 10px; }

/* 🙂 Faces (faces.js): a 내 정보 photo, an artist photo, or initials on a soft colour (same colours as 🟢 presence.css) */
.face { position: relative; flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  background: var(--surface-2); color: var(--text); font: 600 12px/1 var(--font); letter-spacing: -.03em; vertical-align: middle; }
.face img, .usermenu__face img { width: 100%; height: 100%; object-fit: cover; }
.face--sm { width: 24px; height: 24px; font-size: 10px; }
.face--lg { width: 96px; height: 96px; font-size: 30px; }
.face--c0 { background: color-mix(in srgb, #e8731e 26%, var(--surface)); }
.face--c1 { background: color-mix(in srgb, #f0a500 30%, var(--surface)); }
.face--c2 { background: color-mix(in srgb, #3987e5 24%, var(--surface)); }
.face--c3 { background: color-mix(in srgb, #1f9e89 26%, var(--surface)); }
.face--c4 { background: color-mix(in srgb, #8b6cd9 24%, var(--surface)); }
.face--c5 { background: color-mix(in srgb, #d9577a 22%, var(--surface)); }
.usermenu__face { flex: none; display: inline-block; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: var(--surface-2); }
/* 내 정보 → 사진: round preview + 사진 올리기 / 바꾸기 / 지우기; the whole box takes a dropped file */
.photo-pick { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px; border: 1.5px dashed transparent; border-radius: var(--radius); }
.photo-pick.is-drag { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 8%, var(--surface)); }
.photo-pick__side { display: grid; gap: 8px; min-width: 0; flex: 1 1 150px; }   /* (phones: still beside the photo) */
.photo-pick__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-pick__err { color: var(--red); }
.users__face { margin-right: 8px; }
/* 💬 대화: 「아티스트와 대화」 · 「🔒 내부 대화」 tabs (매니저), 2026-10-03 */
.notes-tabs { padding: 0; margin: 0 0 10px; max-width: none; border-bottom: 1px solid var(--line); }
.notes-tabs .tab { padding: 6px 12px 8px; }
.notes-tabs { flex-wrap: wrap; overflow: visible; }   /* (several artists: tabs wrap, never slide sideways) */
.notes-tab[aria-current="true"] { border-bottom-color: var(--orange); color: var(--text); font-weight: 600; }
.notes-hint { margin: 0 0 8px; }
.notes--internal .composer--internal textarea { background: color-mix(in srgb, var(--blue) 5%, var(--surface)); }
/* ONE tab style (Julian 2026-10-17): every tab row inside a page (`tabs tabs--sub notes-tabs`) looks like the header's tabs —
   an orange line under the open one, on the row's grey line. (The white folder tabs of 2026-10-03 floated over the cream page.) */
.notes-tabs { gap: 4px; padding: 0; border-bottom: 1px solid var(--line); }
.notes-tabs .tab { margin-bottom: -1px; }   /* (the orange line lies on the grey one) */
.notes-tabs .notes-tab[aria-current="true"] .count { color: var(--orange); }
/* buttons that wrap (드레스 코드, 결제 받는 곳) · a number box (참석 인원) */
.seg--wrap { flex-wrap: wrap; overflow: visible; }
.seg--wrap button { border-bottom: 1px solid var(--line); }
.seg button { min-height: calc(var(--control-h-sm) - 2px); }   /* (+ the group's own 1 px lines = 32) */
/* A wrapping button group (상태, 드레스 코드 …): every row fills the width, lines only between buttons — no half-empty box
   (UX 2026-10-08). Each button draws its left + bottom line and sits 1px over the box's own edge, which hides the outer ones. */
.seg--wrap { overflow: hidden; }
.seg--wrap button, .seg--wrap button + button { flex: 1 1 auto; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 -1px -1px; }
.seg--wrap button { min-height: calc(var(--control-h-sm) - 1px); }   /* (its bottom line sits 1 px under the box's edge: one row = 32, as .seg) */
/* 상태: the four buttons + 「기타」 on one line; 「기타」 opens the other five as a second row */
#p-state .controls > .field--status { grid-column: 1 / -1; }
.status-quick__more { flex-basis: 100%; }
.status-quick__toggle { align-self: stretch; }   /* (as tall as the four buttons beside it — top and bottom lines meet) */
.status-quick__toggle.is-on { border-color: var(--orange); color: var(--text); font-weight: 600; }
.status-quick__arrow { display: inline-block; margin-left: 4px; }
.status-quick__toggle[aria-expanded="true"] .status-quick__arrow { transform: rotate(180deg); }
.confirm-note { margin: 12px 0 0; }
.arrival-pick { display: block; }
.tag-pick__done { margin-left: auto; }
/* 📱 Phones: the small ×, 👁 and 「← 목록」 get a finger-sized tap area, and 👁 sits apart from × (UX 2026-10-08) */
@media (max-width: 760px), (pointer: coarse) {
  .file-wrap .file__seen, .file-wrap .file__del { min-width: 40px; min-height: 40px; display: inline-grid; place-items: center; padding: 0; font-size: 18px; border-radius: var(--radius-sm); }
  .file-wrap .file__seen + .file__del { margin-left: 8px; }
  .owners .chip-x { min-width: 40px; min-height: 40px; display: inline-grid; place-items: center; padding: 0; margin: -8px -10px -8px -4px; font-size: 18px; }
  .back { min-height: 40px; padding: 8px 14px 8px 0; margin-bottom: 4px; }
}
/* 📱 Finger-sized tap targets on touch phones (B1 2026-10-10 — Apple's 44 px): the artist's quick answers, 빠른 답장, the jump
   chips, calendar ‹ ›, 🔍 · 🔕 (and the 🔔 · 내 메뉴 beside 🔍), 지금 접속 중, the 1–10 rating, month chips, ☺＋, fold titles;
   ticks 22 px with the whole label as the target; ⚠ 확인 필요 32 px. One block, touch phones only: computers keep their
   layout, and the 📊 시트 · 통장 · 카드 tables (ticks inside a table) are left as they are. */
@media (pointer: coarse) and (max-width: 600px) {
  :root { --control-h-sm: 36px; }   /* (small buttons, chips and button groups a little bigger to tap — still all one height) */
  .reply-grid .btn, .reply-fold .btn, .ask-row .chip, .detail__jump .chip, .cal-bar > .btn, .fin-month, button.list-range__chip { min-height: 44px; }
  .usermenu > summary, details.presence > summary { min-height: 44px; }   /* (taller only: wider pushed 내 메뉴 off the header row with 🎤) */
  .participants__mute, .cal-bar > .btn { min-height: 44px; min-width: 44px; }
  div.jf-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); }   /* (10 in a row were 29 px wide) */
  button.jf-n { min-height: 44px; min-width: 40px; }   /* (button.: jobfeedback.css loads after this file) */
  .react-pick > summary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .fold-panel > h2, .fold-panel > .fold-head > h2, .start__title { min-height: 44px; }
  .fb-lane > summary, .reply-fold > summary, details.panel > summary, .cal-undated > summary { min-height: 44px; padding-block: 10px; box-sizing: border-box; }
  input:is([type="checkbox"], [type="radio"]):not(table *) { width: 22px; height: 22px; flex: none; }
  label:has(> input:is([type="checkbox"], [type="radio"])):not(table *):not(.seg--radio > label) { min-height: 44px; align-items: center; }
  .ck-off, button.chip.ck-on { min-height: 32px; min-width: 32px; }
  /* the team (fixes 2026-10-11 I3): 웨이브 업무 ⇄ 재무 switch, every ⋯ / ＋ menu and its lines, 🔔's kind filters and ⋯, the 💬 · 📝
     folder tabs, the request head's buttons (문구로 답장 · 메일 · 전화) and 내 메뉴's lines */
  .usermenu__menu button { min-height: 44px; }
  .mini-menu > summary, .filters__menu > summary, .filters__more > summary, button.bell-more { min-height: 44px; min-width: 44px; }
  .mini-menu__panel button, .filters__menupanel button, .bell-filter, .notes-tabs .tab, .head__actions .btn { min-height: 44px; }
}
/* 📱 The request page on a phone (desktop keeps its two columns): head → 📋 문의 내용 (first visit only, app.js
   answersOnTop) → 💬 대화 → 📝 메모 → 진행 상황 and the rest of the right column → the rest (Julian 2026-10-09).
   An artist who still has to answer (.detail--answer) gets 진행 상황 with the quick answers right under the head. */
@media (max-width: 899px) {
  .detail--req .detail__main { display: contents; }
  .detail--req > .detail__head { order: -2; }
  .detail--req #p-answers { order: -1; }
  .detail--req.detail--answer .detail__side { order: 0; }
  .detail--req #p-notes { order: 1; }
  .detail--req #p-memo, .detail--req #p-info { order: 2; }
  .detail--req .detail__side { order: 3; }
  .detail--req .detail__main > :not(#p-notes, #p-memo, #p-info, #p-answers) { order: 4; }
}
/* 🎤 An artist on a phone (Julian 2026-10-10): 📋 확정 정보 and 진행 상황 first, then 💬 대화 — 문의 내용 still on top the
   first time (it comes first in the list). After the rule above: same weight, so it wins by coming later. */
@media (max-width: 899px) {
  .detail--req:not(.detail--staff) #p-confirm { order: -1; }
  .detail--req:not(.detail--staff) .detail__side { order: 0; }
}
/* 🎤 empty blocks on an artist's request page (artistreq.js): 📝 메모 as its title line, 📎 as one small button */
.art-fold > h2 small { font-weight: 400; margin-right: auto; }
.art-mini { display: flex; justify-content: flex-start; }
.next-step--artist .keep-emoji { font-size: 1.1em; }
/* 📋 확정 정보 for an artist: 도착 시간 first and bold, 주소 with 네이버 지도 · 카카오맵 under it */
.confirm-arrival { font-size: 16px; }
.qa dd .addr-maps { display: flex; margin-top: 4px; white-space: normal; }
.input--num { width: 110px; text-align: right; }
/* 👥 people with photos: 담당자 · 📌 할 일 · 🔔 ＋ 추가 */
.owners { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: var(--control-h); }
.person-chip { gap: 4px; }
.people-pick { display: inline-block; }
.people-pick .people-pick__panel { left: 0; right: auto; max-height: 320px; overflow-y: auto; }
.people-pick__panel button { display: flex; align-items: center; gap: 8px; }
.composer__kind button { white-space: nowrap; }
.composer__hint { display: block; margin-top: -2px; }
.assign-pick { display: inline-flex; align-items: center; }
/* ✅ 체크리스트: a line takes you where it's done */
.check__go { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline dotted color-mix(in srgb, var(--text) 35%, transparent); text-underline-offset: 3px; }
.check__go:hover { color: var(--orange); }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 60%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
/* 🎯 a table row (정산 · 📺 쇼 · 사용자 — jump.js): Safari draws no ring around a <tr>, so its cells light up instead */
tr.flash { animation: none; }
tr.flash > td { animation: flash-cell 1.6s ease-out; }
@keyframes flash-cell { 0%, 30% { background-color: color-mix(in srgb, var(--gold) 30%, transparent); } }
/* 🎮 bubble: Korean words don't break, 「…」 stays on one line; drag it by its top line */
.tspot__say { word-break: keep-all; overflow-wrap: anywhere; }
.tspot__q { white-space: nowrap; }
.tspot__head { cursor: grab; touch-action: none; user-select: none; }
.tspot__head:active { cursor: grabbing; }
/* radios that look like the seg buttons (artist page: 정산서 받는 곳 · 드레스 코드 목록) */
.seg--radio label { display: inline-flex; align-items: center; cursor: pointer; }
.seg--radio label + label { border-left: 1px solid var(--line); }
.seg--radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg--radio span { padding: 6px 12px; font-size: 13px; color: var(--muted); }
.seg--radio label:has(input:checked) { background: var(--surface-2); }
.seg--radio label:has(input:checked) span { color: var(--text); font-weight: 600; }
.seg--radio label:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: -2px; }
.payday .panel-head { margin-bottom: 6px; }
.payday-row { display: flex; align-items: center; gap: 10px; }
.payday-row > span:first-child { flex: 1; }
.people-pick__empty { margin: 4px 6px 8px; max-width: 240px; white-space: normal; }   /* (no other 매니저 yet) */
/* round 5 (Julian 2026-10-03 19:00) */
/* 🧾 세금계산서 dialog: 「누구에게 발행해요?」 block stands apart from the fields under it */
.inv-bill { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); row-gap: 12px; }
.inv-bill .seg { margin-top: 6px; }
/* 담당자: 「주 담당으로」 as words; what 주 담당 / 함께 담당 mean */
.btn--xs { min-height: 0; padding: 2px 8px; font-size: 12px; border-radius: 6px; }
.owners__hint { flex-basis: 100%; margin-top: 2px; }
/* 📎 files: each with its × (who uploaded it, or a 매니저); 강연 자료 · 대본 in 📋 일정 정보 */
.file-wrap { display: flex; align-items: center; gap: 6px; }
.file-wrap .file { flex: 1; min-width: 0; }
.file__kind { margin-left: 6px; font-size: 11px; }
.files--compact .file img, .files--compact .file__icon { width: 36px; height: 36px; }
.materials { display: grid; gap: 6px; }
.materials__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.materials__row .input { flex: 1 1 220px; }
.note__file { text-decoration: underline; text-underline-offset: 3px; }
.file-ref .people-pick__panel { right: 0; left: auto; }
/* 🎮 start page: one card per practice */
.tour__demos { display: grid; gap: 10px; margin: 12px 0; text-align: left; }
.tour__demo { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tour__demo--on { border-color: var(--orange); }
.tour__demo .tour__actions { justify-content: flex-start; }
#p-side .controls { align-items: start; }   /* (a long 담당자 list doesn't stretch the 상태 box) */

/* 📅 일정 겹침 (clash.js): a calm note on a request page — information, not an error. */
.clash { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--amber) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--line)); display: grid; gap: 6px; font-size: var(--fs-md); }
.clash ul { margin: 0; padding-left: 18px; }
.clash li a { color: var(--text); }
.clash__who { font-weight: 600; }
.clash__place { display: block; color: var(--muted); font-size: var(--fs-sm); }
.clash__here { font-size: var(--fs-sm); }
/* 📅 여러 회차 in 「일정」 (2026-10-03) */
.sessions { margin-top: 10px; display: grid; gap: 8px; }
.sessions__list { display: grid; gap: 6px; }
.sess { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.sess__n { min-width: 48px; }
.sess__when { flex: 1; min-width: 0; }
.sess--cancel { opacity: .55; text-decoration: line-through; }
.sessions__actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* round 8 (Julian 2026-10-04): every field stacks its title above its control — div fields too (「누구에게 발행해요?」, 「끝나는 시간」, 「정산서 받는 곳」 …) */
div.field { display: grid; gap: 4px; align-content: start; font-size: var(--fs-sm); color: var(--muted); }   /* (its title as label.field's — 「대시보드 화면 언어」 sat 4 px lower than 전화번호; 12 screens had each done it alone) */
/* … and what's inside keeps the page's size and colour: weightless (all of it inside :where), so any rule of the control wins. A <span> title
   (「받은 곳」 · 「분야」) stays small and grey; 일정 정보 keeps its own small grey values. */
:where(div.field:not(.job-info > div.field) > :not(span:first-child)) { font-size: var(--fs-base); color: var(--text); }
div.field > .seg, div.field > .owners { justify-self: start; }   /* (buttons keep their size, like before) */
div.field > .ic { display: none; }   /* (as label.field: an icon would take its own line) */
.file-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 💳 내 정산 정보: 예금주 = 성명 unless 「다른 경우」 (pages.js payoutPanel) */
.holder-field { font-size: 13px; color: var(--muted); }
.holder-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.holder-row > .input { flex: 1 1 220px; }
.holder-same { min-height: 32px; display: flex; align-items: center; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }   /* (plain weight: it's the answer, not a title) */

/* 💰 아티스트 정산: 「⏳ 아직 받지 않은 금액」 sub-headings (finance.js moneyPendingPanel) */
.fin-sub { font-size: 14px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }

/* 💰 내 단가 (feetargets.js): money boxes in the table, ＋ 분야 추가 buttons */
.fee-table td.fee-in { width: 150px; }
.fee-table td.fee-in .input { width: 100%; min-width: 110px; text-align: right; }
.fee-table td { vertical-align: middle; }
.fee-table .input.fee-auto { color: var(--muted); font-style: italic; border-style: dashed; }
.fee-auto-note { margin: 0 0 8px; }
.fee-auto-sample { color: var(--muted); font-style: italic; border-bottom: 1px dashed var(--line); }
.fee-add { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
@media (max-width: 700px) { .fee-table td.fee-in { width: auto; } .fee-table td.fee-in .input { max-width: 170px; } .fee-table td.fee-common { grid-column: 1 / -1; } }
/* 📱 내 단가: 「최근 1년 평균」 · 「전체 평균」 get a whole line each, and no label breaks over 2–3 lines */
@media (max-width: 700px) { .fee-table td:nth-child(4), .fee-table td:nth-child(5) { grid-column: 1 / -1; } .fee-table td::before { white-space: nowrap; } }
/* Phones: 목표 단가 and 최소 each on their own line (side by side the 최소 box went off-screen); a long job title
   (「하우스오브신세계(@houseofshinsegae) *인스타그램 …」) wraps instead of pushing the page sideways. */
@media (max-width: 700px) {
  .fee-table td.fee-in { grid-column: 1 / -1; }
  .fin-table .fin-job, .fin-table .fin-job a { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
}

/* 정산 항목: 「09-01」 on one line (it broke into 「09-」/「01」); on phones the job and 「· 주최자」 flow as one text
   (as flex items 「· 이그니스」 shrank to one syllable per line) */
.fin-table td.fin-date { white-space: nowrap; }
@media (max-width: 700px) { .fin-table:not(.fin-table--months) td.fin-job { display: block; } }

/* 🧮 정산 기록 (settlecheck.js): days that don't add up */
.sck-table tr.sck-off { background: color-mix(in srgb, var(--red) 7%, transparent); }
.sck-panel .panel-head { flex-wrap: wrap; gap: 8px; }
.sck-diff { color: var(--red); }
.sck-kpis { margin: 8px 0 12px; }
/* round 9 (2026-10-04) */
#p-pay .up small { white-space: nowrap; }   /* 「(사업소득 · 시트 ✓)」 moves to the next line whole, never split */
body.tour-dragging, body.tour-dragging * { user-select: none !important; }   /* dragging the 🎮 bubble doesn't select page text */
/* 🎮 start page: ✓ 완료 / 진행 중 per practice */
.tour__demo-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tour__demo--done { border-color: color-mix(in srgb, var(--green) 50%, var(--line)); }
/* 🎮 a dialog never sits under the practice bubble: beside it (wide) or above it (--tour-bub = bubble + its bottom gap) */
body.tour-side dialog[open]:not(.tour-ask) { margin-left: 16px; width: min(760px, calc(100vw - 440px)); }
body.tour-lift dialog[open]:not(.tour-ask) { margin: 8px auto auto; max-height: calc(100dvh - var(--tour-bub, 0px) - 24px - env(safe-area-inset-bottom)); }
/* 💰 내 정산: period buttons for the whole page, folder tabs (finance.js renderMoney) */
.money-period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.money-tabs { margin: 16px 0 12px; }
.money-tabs__link { margin-left: auto; align-self: center; font-size: var(--fs-sm); padding: 6px 4px; }   /* 「내 단가는 내 정보에서 봅니다 →」 (artist, 2026-10-10) */
/* 「불러오는 중…」 while a page's data comes — every page (pageload.js: waveLoading); a popup opened meanwhile stays usable */
.page-loading { opacity: .55; pointer-events: none; transition: opacity .15s; cursor: progress; }
.page-loading dialog { pointer-events: auto; }
.page-spin { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 30px color-mix(in srgb, #000 18%, transparent); font-weight: 600; }
.page-spin__wheel { width: 18px; height: 18px; border: 3px solid color-mix(in srgb, var(--orange) 25%, transparent); border-top-color: var(--orange); border-radius: 50%; animation: page-spin .8s linear infinite; }
@keyframes page-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .page-spin__wheel { animation-duration: 2.4s; } }
#job-prep .holder-row > .input { flex: 0 1 220px; }

/* 💳 카드 목록: ＋ 카드 추가 · 홈택스 column; 📅 연간: month bars you can click (cards.js) */
.cd-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cd-add > summary { list-style: none; cursor: pointer; }
.cd-add > summary::-webkit-details-marker { display: none; }
.cd-add[open] { flex-basis: 100%; }
.cd-add__form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.cd-add__form .input--inline[size] { width: 6.5em; }
.cd-hometax { white-space: nowrap; }
.cd-bar-btn { width: 100%; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cd-bar-btn:disabled { cursor: default; opacity: .55; }
.cd-bar-btn:not(:disabled):hover .bar__label { color: var(--orange); text-decoration: underline; }
/* 📤 내역서 올리기 title · 🔗 거래처 ↔ 아티스트 (bank.js) */
.bk-h1 { font-size: 20px; margin: 0; }
.bk-person { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bk-people-sec { min-width: 0; }   /* (a grid item: its wide table scrolls inside instead of widening the page) */

/* 내 정보 tabs (pages.js renderProfile) */
.profile-tabs { margin-bottom: 4px; }

/* 📎 파일 · 링크 (UX 2026-10-08): only the name looks like a link; 🔗 rows; 👁 opens the choices under its file */
.file { color: var(--text); text-decoration: none; }
.file__name { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.file:hover .file__name { text-decoration-thickness: 2px; }
.file img, .file__icon { flex-shrink: 0; }   /* (a long name wraps instead of squeezing the picture) */
.file-wrap--link .file__icon { color: var(--gold); }
.file-wrap--link .file__icon .ic { width: 22px; height: 22px; }
.file-seen-pick { justify-self: start; margin: -2px 0 4px 66px; }
.files-panel .file-seen { margin-top: 12px; }
.files-panel .link-form { margin-top: 8px; }
.link-form__hint { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) { .file-seen-pick { margin-left: 0; } }

/* 📨 일정 정보 보내기: what 보내기 does (ticks), set apart from the form above */
.send-what { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.send-what .checks { margin: 0; flex-wrap: nowrap; align-items: flex-start; gap: 6px; }

/* 📱 Popups on phones (dialogs.js, Julian 2026-10-09 on an iPhone): the page behind holds still while one is open,
   the popup scrolls by itself (never the page behind it) and fits the screen above the keyboard */
html.dlg-locked, html.dlg-locked body { overflow: hidden; }
html.dlg-locked body { position: fixed; left: 0; right: 0; }
dialog:modal { max-height: calc(var(--vvh, 100dvh) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
html.kb-open dialog:modal { margin: calc(var(--vvt, 0px) + 8px) auto auto; max-height: calc(var(--vvh, 100dvh) - 16px); }

/* ⬆ 맨 위로 (totop.js): bottom right, above the phone bottom bar, the ＋ button and the 🔗 저장 bar */
.totop { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 28; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 4px 14px color-mix(in srgb, #000 18%, transparent); }
.totop:hover { border-color: var(--orange); }
.totop[hidden], body:has(#tour-spot) .totop, html.dlg-locked .totop { display: none; }
body:has(.lk-bar) .totop { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (max-width: 600px) {
  html.shell-phonebar .totop { bottom: calc(var(--bottom-bar) + 12px); }
}
@media print { .totop { display: none; } }

/* 🗂 문의 페이지 「탭」 보기 (reqtabs.js, Julian 2026-10-09): 진행 | 🧾 tabs on the right (computer); on a phone a bar of
   💬 대화 · 진행 · 🧾 that stays under the header (--top-h = the header's real height, headerheight.js) */
.reqtabs__side, .reqtabs__main { display: grid; gap: 16px; min-width: 0; }
.detail--tabs .detail__side { display: grid; gap: 12px; align-content: start; }
.detail--tabs .detail__side > .panel + .panel { margin-top: 0; }
.reqtabs__bar { margin: 4px 0 0; }
.reqtabs__bar .tab { white-space: nowrap; }
.reqtabs__badge { font: 500 var(--fs-xs) var(--font); color: var(--muted); margin-left: 5px; }
.reqtabs__bar--sticky { position: sticky; top: var(--top-h, 0px); z-index: 6; background: var(--bg); flex-wrap: nowrap; margin: 0; }
.reqtabs__bar--sticky .tab { flex: 1 1 0; justify-content: center; padding-inline: 4px; }
.detail--tabs-phone .reqtabs__pane { scroll-margin-top: calc(var(--top-h, 0px) + 48px); }
.detail--tabs-phone .panel { scroll-margin-top: calc(var(--top-h, 0px) + 56px); }
.reqtabs__switch { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin: 4px 0 0; }
/* ↔ 📊 시트 column widths (sheet.js sheetGrip — Julian 2026-10-12, like Google Sheets): a title's right edge drags its column; a double
   click = automatic. The 📚 cut (.sheet__clip--cap) gets its width from sheet.js (SHEET_CAP). Not on phones (no freeze menu there either). */
.sheet th .sheet__grip { position: absolute; top: 0; right: 0; bottom: 0; width: 6px; cursor: col-resize; z-index: 4; touch-action: none; }
.sheet th .sheet__grip:hover, body.sheet-resizing .sheet th .sheet__grip:active { background: color-mix(in srgb, var(--orange) 55%, transparent); }
body.sheet-resizing, body.sheet-resizing * { cursor: col-resize !important; user-select: none !important; }
@media (min-width: 641px) { .sheet th.ctr .sheet__colmenu { right: 8px; } }   /* (the ▾ clear of the edge you drag) */
@media (max-width: 640px) { .sheet th .sheet__grip { display: none; } }

/* 📞 연락했습니다 (2026-10-12): 진행 상황's row — 방법 (선택): 전화 · 이메일 · 카카오톡 · 문자, then the button, wrapping on a phone */
.contacted { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.contacted__row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.contacted__how { font-size: 12px; color: var(--muted); }
/* 📞 on a 보류: 「다음에는 언제 연락하시겠습니까?」 — three wide choices, one tap saves (2026-10-12) */
.next-contact__seg { display: flex; width: 100%; margin: 4px 0 16px; }
.next-contact__seg button { flex: 1 1 0; min-height: 44px; font-size: 15px; color: var(--text); }
.mw-contact { flex: none; }
/* 📞 in 내 업무's 📋 목록 (review 2026-10-12): the button beside the row's link, not inside it; on a phone, under it */
.mw-contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.mw-contact-wrap > .card:not(.card--selecting) { grid-template-columns: 66px 1fr; }
.mw-contact-wrap--up { border-top: 1px solid var(--line); }
.mw-contact-wrap--up:first-child { border-top: 0; }
.mw-contact-wrap--up > .up { border-top: 0; }
@media (max-width: 560px) {
  .mw-contact-wrap { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .mw-contact-wrap > .card:not(.card--selecting) { grid-template-columns: 64px 1fr; }
  .mw-contact-wrap > .mw-contact { justify-self: start; }
  .mw-contact-wrap--up > .mw-contact { margin-bottom: 8px; }
}

/* One plain line under the top row: what the page is for (help.js pageIntro — design B, the page's name is in the top row) */
.page-intro { display: grid; gap: 6px; margin: 0 0 16px; color: var(--muted); font-size: var(--fs-md); }
.page-intro > p { margin: 0; max-width: 72ch; }
.page-intro--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }

/* 🎨 /style (stylepage.js): the shared values and pieces on one page */
.st-page { display: grid; gap: 14px; }
.st-sec h2 { margin: 0 0 4px; font-size: var(--fs-lg); }
.st-sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 10px; }
.st-sw { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.st-sw__c { grid-row: 1 / 3; width: 28px; height: 28px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.st-sw small { color: var(--muted); }
.st-sizes { display: grid; gap: 6px; margin-top: 8px; }
.st-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.st-tabs { margin: 6px 0 0; padding: 0; }

/* 사용법: on a wide page, the parts as a list on the left (it stays while scrolling) and the text column on the right */
.help-layout { display: grid; gap: 18px; }
.help-toc { display: none; }
@media (min-width: 1180px) {
  html.shell .help-layout { grid-template-columns: 220px minmax(0, 860px); align-items: start; }
  html.shell .help-toc { display: grid; gap: 2px; position: sticky; top: calc(var(--top-h, 48px) + 16px); max-height: calc(100vh - var(--top-h, 48px) - 32px); overflow-y: auto; overscroll-behavior: contain; }   /* (51 parts since the 2026-10-23 rework) */
  .help-toc a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--side-text); text-decoration: none; font-size: var(--fs-md); }
  .help-toc a:hover { background: var(--side-hover); color: var(--text); }
  .help-toc a span { margin-left: auto; color: var(--muted); font-size: var(--fs-xs); }
  .help-toc__group { margin: 12px 10px 2px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
  .help-toc__group:first-child { margin-top: 0; }
}
/* 사용법: the side menu's group titles (업무 · 사람 · 재무 …) between the parts, and a part's link to its page's own 사용법 tab */
.help__group { margin: 10px 0 -6px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.help__page { margin: 10px 0 0; }
/* ❓ this page's 사용법: a panel from the right, the page stays in view (help.js openHelpPanel) */
.help-drawer, .help-drawer__back { display: none; }
html.help-open .help-drawer:not([hidden]) { display: flex; }
html.help-open .help-drawer__back:not([hidden]) { display: block; }
.help-drawer__back { position: fixed; inset: 0; z-index: 85; background: var(--backdrop); }
.help-drawer { position: fixed; z-index: 86; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.help-drawer__head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.help-drawer__head h2 { margin: 0; font-size: var(--fs-lg); flex: 1 1 auto; }
.help-drawer__body { flex: 1 1 auto; overflow: auto; padding: 8px 12px 16px; overscroll-behavior: contain; }
.help-drawer__body .help__sec { border: 0; box-shadow: none; padding: 0; background: none; }
.help-drawer__body .help__sec > summary { display: none; }
.help-drawer__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.help-main { display: grid; gap: 16px; min-width: 0; }
/* 📱 the keyboard up: the phone's bottom bar steps aside (on iOS it floated in the middle of the screen while typing) */
html.kb-open .shell-bottom { display: none; }
html.kb-open { --bottom-bar: 0px; }
