/* Wave 문의 대시보드 — internal tool, dark mode (CLAUDE.md design rules) */
:root {
  --bg: #0a0a0f;
  --surface: #14141b;
  --surface-2: #1c1c25;
  --line: #2a2a36;
  --text: #ecebe8;
  --muted: #9a98a3;
  --orange: #e8731e;
  --gold: #f0a500;
  --green: #3fb950;
  --amber: #f0a500;
  --red: #f25a4a;
  --blue: #5b9cf5;
  --grad: linear-gradient(135deg, var(--orange), var(--gold));
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  /* 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;
  --card-line: var(--line);
  --shadow: 0 1px 2px color-mix(in srgb, #000 30%, transparent);
  --ring: 0 0 0 3px color-mix(in srgb, var(--orange) 35%, transparent);
  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;
  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); }
.top__bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: 1100px; margin: 0 auto; }
.brand { font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.brand__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--grad); display: grid; place-items: center; color: #1a1008; font: 700 14px var(--mono); }
.top__spacer { flex: 1; }
.me { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 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(--grad); border: 0; color: #1a1008; font-weight: 600; }
.btn--ghost { background: none; }
.btn--sm { padding: 4px 10px; min-height: 32px; 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: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); }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.toolbar .input { width: auto; min-width: 120px; flex: 1 1 140px; }
.toolbar .input[type="search"] { flex: 3 1 220px; }
.summary { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.summary b { font-family: var(--mono); color: var(--text); }
.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; margin-top: 2px; }
.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; }
button.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; 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)); }
.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) {
  .detail { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "head side" "main side"; align-items: start; }
  .detail__head { grid-area: head; }
  .detail__main { grid-area: main; }
  .detail__side { grid-area: side; position: sticky; top: 110px; }
}
.panel { background: var(--surface); border: 1px solid var(--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; }
.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); }
dialog h2 { margin: 0 0 14px; font-size: 18px; }
.form-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.form-grid .span2 { grid-column: 1 / -1; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--text); }

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

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

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

/* 개요 */
:root { --s1: #dc6a1c; --s2: #3987e5; }   /* validated for #14141b (dataviz validator, dark) */
.overview { display: grid; gap: 16px; }
.overview .panel + .panel { margin-top: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--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; }
.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); dark is the option in the header */
:root[data-theme="light"] {
  --bg: #f5f2ed;
  --surface: #ffffff;
  --surface-2: #f4f1ec;
  --line: #e2ddd4;
  --card-line: color-mix(in srgb, #e2ddd4 55%, transparent);
  --shadow: 0 1px 2px color-mix(in srgb, #1a1008 6%, transparent), 0 6px 18px -10px color-mix(in srgb, #1a1008 22%, transparent);
  --text: #1a1008;
  --muted: #6b645c;
  --gold: #8a5a00;
  --green: #1e7f3a;
  --amber: #9a5d00;
  --red: #c62828;
  --blue: #2a78d6;
  --s1: #c85a12;   /* validated on #ffffff (dataviz validator, light) */
  --s2: #2a78d6;
  --grad: linear-gradient(135deg, #e8731e, #f0a500);   /* Wave gradient; --gold above is only for text */
  color-scheme: light;
}
:root[data-theme="light"] .btn--primary, :root[data-theme="light"] .brand__mark { color: #1a1008; }
:root[data-theme="light"] .tip, :root[data-theme="light"] .fab { box-shadow: 0 6px 20px color-mix(in srgb, #000 14%, transparent); }
:root[data-theme="light"] .card:hover { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); }
.logo--on-light { display: none; }
:root[data-theme="light"] .logo--on-light { display: block; }
:root[data-theme="light"] .logo--on-dark { display: none; }
.login h1 .logo--on-light { height: 36px; width: auto; }

/* 🔔, 비슷한 문의, 아티스트, 확정 처리 */
.bell { position: relative; font-size: 15px; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 600 11px/18px var(--mono); text-align: center; }
.me { text-decoration: none; }
.bell-panel { position: fixed; top: 56px; right: max(16px, calc((100vw - 1100px) / 2 + 16px)); width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px color-mix(in srgb, #000 35%, transparent); }
.bell-panel__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.bell-item { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 10px 12px; text-decoration: none; color: var(--muted); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: 14px; }
.bell-item small { display: block; font-size: 12px; margin-top: 2px; }
.bell-item--unread { color: var(--text); background: color-mix(in srgb, var(--orange) 7%, transparent); }
.similar { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--amber) 12%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 35%, var(--line)); display: grid; gap: 4px; font-size: 14px; }
.similar a { color: var(--text); }
.mention { width: auto !important; flex: 0 0 auto !important; }
/* 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); }
.bars--wide .bar { grid-template-columns: 110px 1fr 44px 50px; }
.bar__note { font: 12px var(--mono); color: var(--muted); text-align: right; }
.dumbbells { display: grid; gap: 10px; }
.db { display: grid; grid-template-columns: 110px 1fr 56px; gap: 10px; align-items: center; }
.db__track { position: relative; height: 18px; background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
.db__line { position: absolute; top: 8px; height: 2px; background: color-mix(in srgb, var(--text) 30%, transparent); }
.db__dot { position: absolute; top: 3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--surface); }
.db__dot.s1, .dot-sw.s1 { background: var(--s1); }
.db__dot.s2, .dot-sw.s2 { background: var(--s2); }
.dot-sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

/* Header: 🔔 next to the logo, search, greeting */
.top__bar { gap: 10px; }
.search { flex: 0 1 320px; }
.search .input { padding: 7px 12px; font-size: 14px; }
.hello { color: var(--muted); font-size: 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; }
  .top__bar { flex-wrap: wrap; }
  .search { order: 10; flex: 1 1 100%; }
}

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

/* Reactions */
.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.react { border: 1px solid var(--line); background: var(--surface); border-radius: 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; }
@media (max-width: 760px) { .top__bar > #logout, .brand__name { display: none; } }   /* (only a header-bar 로그아웃 — the one in the person's menu always shows) */
.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; }
.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; }

/* 사유 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); }
.bulk .input { width: auto; min-width: 0; padding: 6px 8px; font-size: 13px; }
.bulk input.input { width: 110px; }
/* Wide screens: tabs wrap to a second line (⭐ saved tabs) instead of hiding off the edge. */
.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 { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 8px 12px; background: var(--grad); color: #1a1008; font-weight: 700; font-size: 14px; }
.preview-bar .btn { background: #fff; color: #1a1008; border-color: transparent; }
/* 🗂 대화 마무리 */
.notes-fold { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--surface-2); }
.notes-fold > summary { cursor: pointer; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notes-fold[open] > summary { margin-bottom: 8px; }
.notes-close { display: flex; justify-content: flex-end; }

/* 📺 회차 */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-head h2 { margin: 0; }
.eps { display: grid; gap: 4px; }
.ep { display: 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 { flex-basis: 100%; } }

/* 📅 일정 */
.cal-bar { align-items: center; }
.cal-title { font-size: 18px; min-width: 110px; text-align: center; }
.cal-legend { display: flex; gap: 6px; margin-left: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal-wd { background: var(--surface-2); padding: 6px; font-size: 12px; font-weight: 600; text-align: center; color: var(--muted); }
.cal-wd--sun, .cal-day--sun .cal-day__n { color: var(--red); }
.cal-day { background: var(--surface); min-height: 104px; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day--out { background: var(--surface-2); opacity: .55; }
.cal-day--today { box-shadow: inset 0 0 0 2px var(--orange); }
.cal-day__n { font-size: 12px; font-weight: 600; color: var(--muted); }
.cal-more { font-size: 11px; color: var(--muted); }
.ev { display: block; font-size: 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--muted { background: var(--surface-2); color: var(--muted); }
.ev--done { opacity: .6; }
.cal-legend .ev { display: inline-block; }
.cal-agenda { display: none; }
.cal-agenda__day { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.cal-agenda__date { font-weight: 700; font-size: 14px; }
.cal-agenda .ev { white-space: normal; font-size: var(--fs-md); padding: 6px 8px; }
@media (max-width: 760px) {
  .cal-grid { display: none; }
  .cal-agenda { display: block; }
  .cal-legend { margin-left: 0; }
}
.cal-bar .input { width: auto; flex: 0 1 200px; }

/* 💰 정산 */
:root { --series1: #dc6a1c; }
:root[data-theme="light"] { --series1: #c85a12; }
.sync-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13px; }
.sync-line--err { box-shadow: inset 3px 0 0 var(--red); }
.fin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fin-card { display: grid; gap: 8px; align-content: start; }
.fin-card__head { display: flex; align-items: center; gap: 8px; }
.fin-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 13px; }
.fin-dl dt { color: var(--muted); }
.fin-dl dd { margin: 0; text-align: right; font-family: var(--mono); }
.fin-ready { font-weight: 700; color: var(--text); }
.fin-table-wrap { overflow-x: auto; }
.fin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fin-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fin-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fin-table .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.fin-net { font-weight: 700; }
.fin-job a { color: var(--text); }
.fin-job small, .fin-table small { color: var(--muted); }
.fin-row--cancel td { opacity: .5; text-decoration: line-through; }
.fin-err { cursor: help; }
.fin-preview { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 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; }
.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); }
.fin-month-row { cursor: pointer; }
.fin-month-row:hover td { background: var(--surface-2); }
.fin-month-row--on td { background: color-mix(in srgb, var(--orange) 12%, transparent); }
.fin-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.fin-table--months { min-width: 480px; }

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

/* 📺 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; }
.tabs--sub .tab { font-size: var(--fs-sm); padding: 6px 10px 8px; }
.tab-more { position: relative; flex: none; }
.tab-more > summary { list-style: none; }
.tab-more > summary::-webkit-details-marker { display: none; }
.tab-more__menu { position: fixed; z-index: 60; min-width: 150px; 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); }
.tab-more__menu a { padding: 8px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.tab-more__menu a:hover { background: var(--surface-2); }
@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); }
.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); }
/* ✅ 확정 체크리스트 */
.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; }
.check--done label { color: var(--muted); text-decoration: line-through; }
.check small { white-space: nowrap; }
/* 📋 문구 */
.tpl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.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; }
.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-job h2 { margin: 22px 0 10px; font-size: 16px; }
.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; }
.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); }
}
.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: 4px; width: 100%; max-width: 180px; font-size: 13px; }
.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%; }
.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)); } }
@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 .chip { flex: none; }
.fb-next { display: grid; gap: 8px; border-color: var(--orange); }
.fb-next__label { font-weight: 700; color: 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: auto; max-height: calc(100vh - 260px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.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: 30px; }
.sheet__cal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: 14px; padding: 2px 4px; opacity: .7; }
.sheet__cal:hover { opacity: 1; }
.sheet__picker { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.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; } }

/* ❓ 사용법 (/help) */
.help__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.help__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.help__chips .chip { text-decoration: none; color: var(--text); font-size: 13px; padding: 4px 10px; }
.help__chips .chip:hover { border-color: var(--orange); }
.help__sec > summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; gap: 8px; align-items: center; }
.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); }
.help__sec { scroll-margin-top: 120px; }
.help__items { display: grid; gap: 14px; margin-top: 12px; }
.help__item h3 { font-size: 15px; margin: 0 0 4px; color: var(--orange); }
.help__item ul { margin: 0; padding-left: 20px; display: grid; gap: 3px; }
.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__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; } }
.tour__offer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px; background: color-mix(in srgb, var(--gold) 12%, var(--surface)); border-top: 1px solid var(--line); font-size: var(--fs-md); }
.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 */
@media (max-width: 760px) { .top__bar .search { flex: 1 1 100%; } }
.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__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 */
  .tabs--bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; max-width: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 0 4px env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); overflow: visible; }
  .tabs--bottom > .tab, .tabs--bottom > .tab-more > .tab { position: relative; flex-direction: column; gap: 2px; padding: 8px 2px 7px; font-size: 11px; border-bottom: 0; border-top: 2px solid transparent; justify-content: center; width: 100%; }
  .tabs--bottom .tab[aria-current="page"] { border-top-color: var(--orange); color: var(--text); }
  .tabs--bottom .tab .ic { width: 22px; height: 22px; }
  .tabs--bottom .count { position: absolute; top: 4px; left: calc(50% + 8px); font-size: 10px; }
  .tabs--bottom .tab-more { display: flex; }
  .fab { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .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__date, .req-table__status, .req-table__owner { white-space: nowrap !important; }
.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); }

/* 🔀 View switcher (views.js): next to the logo, one per space someone can work in. */
.viewswitch { position: relative; }
.viewswitch > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; border: 1px solid var(--line); }
.viewswitch > summary::-webkit-details-marker { display: none; }
.viewswitch--artist > summary { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); color: var(--orange); }
.viewswitch__menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; 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); }
.viewswitch__item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; background: none; border-radius: 6px; color: var(--text); font: inherit; font-size: var(--fs-md); text-align: left; cursor: pointer; }
.viewswitch__item:hover { background: var(--surface-2); }
.viewswitch__item[aria-checked="true"] { background: var(--surface-2); font-weight: 600; }
.viewswitch__item .ic { color: var(--muted); }
.viewswitch__text { display: grid; gap: 1px; }
.viewswitch__wip { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.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. */
.has-views .brand__name, .has-views #show-switch-wrap, .has-views #back-dashboard { display: none !important; }
@media (max-width: 760px) {
  .viewswitch__label { max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .viewswitch > summary > .ic--sm, .viewswitch > summary > span:last-child:not(.viewswitch__label) { display: none; }   /* no ▾ on phones: room for the bell and menu */
  .has-views .top__bar { gap: 6px; }
  .has-views .brand__logo { height: 20px; }
}

/* 🕘 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 > summary::before { content: '🕘 '; }
.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; }
@media (max-width: 760px) { .seoulclock > summary::before { content: ''; } .seoulclock > summary { padding-inline: 8px; font-size: var(--fs-sm); } .has-clock .top__spacer { display: none; } .has-clock .seoulclock { margin-left: auto; position: static; } .seoulclock__menu { position: fixed; left: 16px; right: 16px; top: calc(56px + env(safe-area-inset-top)); width: auto; } }
@media (max-width: 480px) { .has-clock .top__bar > .brand { display: none; } }   /* phones: room for the clock (the view button says where you are) */

/* 🎮 연습 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; }
@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 */
.usermenu__help { display: none !important; }
@media (max-width: 420px) { #help-btn { display: none; } .usermenu__help { display: flex !important; } }
@media (max-width: 420px) { .top__bar:has(.viewswitch) #back-dashboard { display: none; } }   /* the view switcher already leads back */

/* 🔎 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 */
.inv-head { align-items: baseline; justify-content: flex-start; gap: 4px 12px; flex-wrap: wrap; }
.inv-head h2 { font: 600 var(--fs-xl)/1.3 var(--font); }
.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__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; }

/* --- 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; } }
.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; } }

/* 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%; }
}

/* 더보기 menu: small group headings (명단 · 도구 · 팀 · 관리). */
.tab-more__group { font-size: 11px; font-weight: 600; color: var(--muted); padding: 8px 10px 2px; letter-spacing: .02em; }
.tab-more__group:first-child { padding-top: 2px; }

/* 확정 without 확정 처리: the date is known, the time isn't yet. */
.ev--needs { border-style: dashed; }
.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; }
/* 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; }
.tab-more__menu a .ic { color: var(--muted); }
.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 */
.phone { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.phone > .phone__pre { width: auto; flex: 0 0 auto; max-width: 11em; }
.phone > .phone__num { width: auto; flex: 1 1 7em; min-width: 0; font-variant-numeric: tabular-nums; }
.phone__dash { color: var(--muted); }
.phone__msg { flex-basis: 100%; color: var(--red); font-size: var(--fs-xs); }
.phone--bad > .phone__num { border-color: var(--red); }
.form-grid:has(.phone--bad) > label.field { align-content: start; }   /* (the message mustn't stretch the field beside it) */
/* 🔗 관련 문의 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; }
.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; }

/* © 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)); }
.tag-pick__input { width: 11em; min-height: 32px; 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)); }
/* round 3 (Julian 2026-10-03 17:30) */
/* 💬 tabs like folder tabs: the open one is white and joins the panel, an orange edge on top */
.notes-tabs { gap: 4px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.notes-tabs .tab { border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--surface-2); color: var(--muted); padding: 7px 14px; margin-bottom: -1px; }
.notes-tabs .tab:hover { color: var(--text); }
.notes-tabs .notes-tab[aria-current="true"] { background: var(--surface); color: var(--text); font-weight: 700; border-top: 3px solid var(--orange); padding-top: 5px; border-bottom: 1px solid var(--surface); }
.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: 34px; }
.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; } }
/* 🎮 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: 6px; align-content: start; }
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-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; } }

/* 🧮 정산 기록 (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; }
/* 「불러오는 중…」 while a page's data comes (as 🏦 통장's) */
.page-loading { opacity: .55; pointer-events: none; transition: opacity .15s; cursor: progress; }
.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; }
