/* DKS Marketing Studio: admin shell in the DKS logo blue, matching the channel report. */
:root {
  --brand: #0d4992; --brand-mid: #2f6fcf; --brand-soft: #6f9fe3; --tint: #eaf1fb; --tint-2: #dbe7f8;
  --bg: #ffffff; --panel: #f3f6fa; --card: #ffffff; --fg: #18202b; --muted: #6b7686; --faint: #9aa4b2; --line: #e6eaf0;
  --ok: #1f9d74; --ok-soft: #e7f6f0; --bad: #e5484d; --bad-soft: #fdecec; --warn: #d9822b; --warn-soft: #fdf3e7;
  --violet: #7a5ad1; --violet-soft: #f1edfb;
  --shadow: 0 1px 2px rgba(16,38,74,.05), 0 4px 14px rgba(16,38,74,.04); --shadow-lg: 0 12px 40px rgba(16,38,74,.16);
  --sans: "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --logo-light: block; --logo-dark: none; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --brand: #8fb4ef; --brand-mid: #5d92e6; --brand-soft: #3d6fb8; --tint: #172a45; --tint-2: #1d3557;
  --bg: #0f141b; --panel: #151c25; --card: #1b2430; --fg: #e8edf3; --muted: #9aa6b5; --faint: #6f7b8b; --line: #263140;
  --ok: #4fcf9f; --ok-soft: #15302a; --bad: #ff7b7f; --bad-soft: #3a1c1e; --warn: #f0a85a; --warn-soft: #2b2116;
  --violet: #a78bfa; --violet-soft: #261f3d; --shadow: none; --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
  --logo-light: none; --logo-dark: block; color-scheme: dark; } }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 14px; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.muted { color: var(--muted); } .small { font-size: 12px; }
[hidden] { display: none !important; }
body:not(.is-agency) .agency-only { display: none !important; }
body:not(.is-doctor) .doctor-only { display: none !important; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
textarea { resize: vertical; line-height: 1.7; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--brand-mid); outline-offset: 2px; }
label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin: 14px 0 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 16px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--panel); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0f141b; } }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.warn { background: var(--card); border-color: var(--warn); color: var(--warn); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger:hover { filter: brightness(1.06); background: var(--bad); }
.btn.block { width: 100%; margin-top: 20px; padding: 12px; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { border: 0; background: none; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--panel); color: var(--fg); }
.err { color: var(--bad); font-size: 13px; margin: 10px 0 0; }
.logo { height: 28px; width: auto; }
.logo.l { display: var(--logo-light); } .logo.d { display: var(--logo-dark); }
.studio { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--brand); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; line-height: 20px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; background: var(--panel); padding: 24px max(16px, env(safe-area-inset-left)); }
.login-card { width: min(400px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 36px 32px; box-shadow: var(--shadow); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.login-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.login-card p { margin: 0; }

/* shell */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 6px; min-width: 0; }
.top-right { display: flex; align-items: center; gap: 10px; }
.pick { position: relative; }
.pick select { appearance: none; -webkit-appearance: none; font-weight: 700; background: var(--panel); padding: 8px 36px 8px 14px; min-width: 150px; cursor: pointer; }
.pick svg { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.menu { position: relative; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--tint-2); color: var(--brand); font-weight: 800; cursor: pointer; }
.menu-pop { position: absolute; right: 0; top: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 190px; display: grid; }
.menu-who { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 2px; }
.menu-who span { color: var(--muted); font-size: 12px; }
.menu-pop button { border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.menu-pop button:hover { background: var(--panel); }

.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.side { border-right: 1px solid var(--line); padding: 20px 12px; display: grid; gap: 4px; align-content: start; position: sticky; top: 64px; height: max-content; }
.nav { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; }
.nav:hover { background: var(--panel); color: var(--fg); }
.nav.on { background: var(--tint); color: var(--brand); font-weight: 700; }
.view { padding: 28px max(20px, env(safe-area-inset-right)) 56px max(20px, env(safe-area-inset-left)); min-width: 0; display: grid; gap: 20px; align-content: start; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.page-head p { margin: 0; max-width: 70ch; line-height: 1.6; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; }
.card.pad { padding: 20px 22px; }
.card h2 { margin: 0; font-size: 16px; font-weight: 700; }
.card .btn { margin-top: 16px; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.note { background: var(--tint); color: var(--brand); border-radius: 10px; padding: 12px 14px; margin: 14px 0 0; line-height: 1.6; user-select: all; }

/* todo strip */
.todo { display: flex; gap: 10px; flex-wrap: wrap; }
.todo button { display: flex; align-items: center; gap: 10px; border: 1px solid var(--warn); background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-weight: 700; cursor: pointer; text-align: left; }
.todo button small { font-weight: 500; color: var(--fg); }

/* board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: stretch; }
.col { background: var(--panel); border-radius: 14px; padding: 12px; display: grid; gap: 10px; align-content: start; min-height: 240px; margin: 0; transition: background .15s; }
.col.over { background: var(--tint); outline: 2px dashed var(--brand-soft); outline-offset: -2px; }
.col-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px; height: 24px; font-weight: 700; font-size: 13px; }
.col-h .n { background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 500; font-size: 12px; border-radius: 999px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.col-doc { background: var(--warn-soft); } .col-doc .col-h { color: var(--warn); }
.done .col-h { color: var(--brand); }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; display: grid; gap: 8px; cursor: pointer; text-align: left; width: 100%; }
.vcard:hover { border-color: var(--brand-soft); box-shadow: var(--shadow); }
.vcard.dragging { opacity: .4; }
.vcard .t { font-weight: 500; line-height: 1.45; font-size: 13px; }
.vcard .m { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.vcard .m svg { width: 13px; height: 13px; }
.vcard .ic { display: inline-flex; align-items: center; gap: 3px; }
.pill { border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 500; background: var(--tint); color: var(--brand); white-space: nowrap; }
.pill.s { background: var(--violet-soft); color: var(--violet); }
.pill.warn { background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.pill.bad { background: var(--bad-soft); color: var(--bad); font-weight: 700; }
.pill.ok { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.late { color: var(--bad); font-weight: 700; }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(10,20,40,.28); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--bg); z-index: 50; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
.drawer > * { flex-shrink: 0; }
.dr-head { display: flex; gap: 12px; align-items: flex-start; padding: 22px 24px 8px; position: sticky; top: 0; background: var(--bg); z-index: 2; }
.dr-title-wrap { flex: 1; min-width: 0; display: grid; gap: 8px; }
.dr-title { font-size: 20px; font-weight: 800; border-color: transparent; padding: 4px 6px; margin-left: -6px; background: none; }
.dr-title:hover:not([readonly]) { border-color: var(--line); }
.stage-pill { justify-self: start; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 9px; background: var(--tint); color: var(--brand); }
.review { margin: 8px 24px 0; border-radius: 12px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--warn-soft); }
.review.ok { background: var(--ok-soft); } .review.bad { background: var(--bad-soft); } .review.plain { background: var(--panel); }
.review p { margin: 0; line-height: 1.55; } .review b { display: block; }
.review .acts { display: flex; gap: 8px; }
.props { display: grid; gap: 2px; padding: 12px 24px 4px; }
.prop { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: start; gap: 8px; min-height: 38px; }
.prop-k { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.prop-k svg { width: 17px; height: 17px; }
.prop-v { border: 1px solid transparent; background: none; border-radius: 8px; padding: 8px 10px; font-size: 14px; line-height: 1.5; min-height: 38px; }
input.prop-v, textarea.prop-v { width: 100%; }
.prop-v:hover { background: var(--panel); }
.prop-v:focus { background: var(--card); border-color: var(--line); }
div.prop-v:hover { background: none; } a.prop-v { color: var(--brand); word-break: break-all; }
.prop-v.empty { color: var(--faint); }
textarea.prop-v { resize: vertical; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 24px; margin-top: 14px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 12px 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.tabs span { font-size: 12px; color: var(--faint); }
.tab { padding: 18px 24px 24px; display: grid; gap: 12px; }
.script-edit textarea { min-height: 420px; font-size: 15px; }
.row-end { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 10px; }
.script-read { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; font-size: 15.5px; line-height: 1.9; }
.script-read p { margin: 0 0 1em; } .script-read p:last-child { margin: 0; }
.script-read .empty { color: var(--faint); }
.quote-btn { position: fixed; z-index: 60; box-shadow: var(--shadow-lg); background: var(--brand); color: #fff; border-color: var(--brand); }
.comments { display: grid; gap: 10px; }
.cmt { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); display: grid; gap: 6px; }
.cmt.resolved { opacity: .55; }
.cmt.approve { border-color: var(--ok); } .cmt.changes { border-color: var(--warn); }
.cmt-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.cmt-h b { color: var(--fg); font-size: 13px; }
.cmt-h .sp { flex: 1; }
.cmt-h button { border: 0; background: none; color: var(--brand); cursor: pointer; font-size: 12px; padding: 2px 4px; }
.cmt-h button.del { color: var(--bad); }
.cmt .body { white-space: pre-wrap; line-height: 1.6; }
.quote { border-left: 3px solid var(--brand-soft); padding: 4px 10px; color: var(--muted); font-size: 13px; line-height: 1.6; background: var(--panel); border-radius: 0 8px 8px 0; white-space: pre-wrap; }
.composer { display: grid; gap: 8px; margin-top: 8px; }
.composer textarea { min-height: 90px; }
.drop { display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px; cursor: pointer; color: var(--muted); margin: 0; font-size: 14px; }
.drop:hover, .drop.over { border-color: var(--brand-soft); background: var(--tint); color: var(--brand); }
.drop input { display: none; }
.drop svg { width: 26px; height: 26px; }
.progress { height: 30px; border-radius: 8px; background: var(--panel); position: relative; overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; background: var(--tint-2); width: 0; transition: width .2s; }
.progress span { position: relative; font-size: 12px; line-height: 30px; padding: 0 12px; }
.files { display: grid; gap: 8px; }
.file { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.file .thumb { width: 48px; height: 48px; border-radius: 8px; background: var(--panel); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--muted); }
.file .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file .info { flex: 1; min-width: 0; }
.file .info a { font-weight: 500; color: var(--fg); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .info a:hover { color: var(--brand); text-decoration: underline; }
.file .info small { color: var(--muted); }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.log li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.log li time { color: var(--faint); font-variant-numeric: tabular-nums; }
.dr-foot { padding: 8px 24px 28px; margin-top: auto; }

.dlg { border: 0; border-radius: 16px; padding: 26px 26px 22px; width: min(480px, calc(100% - 32px)); background: var(--bg); color: var(--fg); box-shadow: var(--shadow-lg); }
.dlg::backdrop { background: rgba(10,20,40,.35); }
.dlg h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .btn { padding: 6px 10px; font-size: 12px; font-weight: 500; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 10px; font-weight: 500; z-index: 100; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 64px; z-index: 10; background: var(--bg); border-right: 0; border-bottom: 1px solid var(--line); display: flex; gap: 6px; padding: 8px max(16px, env(safe-area-inset-left)); overflow-x: auto; height: auto; }
  .nav { padding: 8px 12px; white-space: nowrap; }
  .board { grid-auto-columns: minmax(250px, 82vw); scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .dr-head, .tab { padding-left: 16px; padding-right: 16px; }
  .props, .tabs { padding-left: 16px; padding-right: 16px; }
  .prop { grid-template-columns: 128px minmax(0, 1fr); }
  .opt { display: none; }
  .mini-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review { margin-left: 16px; margin-right: 16px; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 480px) {
  .logo { height: 22px; } .studio { font-size: 9px; letter-spacing: .12em; padding-left: 8px; } .brand { gap: 8px; }
  .pick select { min-width: 0; padding: 7px 30px 7px 10px; font-size: 13px; }
  .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } .drawer { animation: slide .22s ease-out; } @keyframes slide { from { transform: translateX(24px); opacity: .6; } } }

/* login extras, accounts */
.check { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--fg); cursor: pointer; font-weight: 500; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.check.spaced { margin-top: 42px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 6px 20px; }
.card-h .btn { margin: 0; }
.acts-cell { text-align: right; white-space: nowrap; }
.acts-cell .btn { margin: 0 0 0 6px; }
.card > .note { margin: 0 16px 16px; }
.link { color: var(--brand); font-size: 13px; font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* report */
.asof-line { color: var(--brand); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
#view-report { gap: 36px; max-width: 1240px; }
.sec { display: grid; gap: 14px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sec-h h2 { margin: 0; font-size: 16px; font-weight: 700; }
.sec-h span { color: var(--faint); font-size: 12px; }
.tray { background: var(--panel); border-radius: 16px; padding: 18px; }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.kpi { padding: 20px 22px; display: grid; gap: 14px; }
.kpi-top { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.chip { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.chip svg { width: 17px; height: 17px; }
.c1 { background: var(--tint); color: var(--brand-mid); } .c2 { background: var(--ok-soft); color: var(--ok); }
.c3 { background: var(--violet-soft); color: var(--violet); } .c4 { background: var(--warn-soft); color: var(--warn); }
.kpi-val { text-align: right; font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-val small { font-size: 16px; font-weight: 700; margin-left: 2px; }
.kpi-chg { text-align: right; font-size: 12px; font-weight: 500; display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; min-height: 16px; color: var(--muted); }
.kpi-chg svg { width: 14px; height: 14px; }
.kpi-chg.up { color: var(--brand-mid); } .kpi-chg.down { color: var(--bad); }
.charts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.chart-card { padding: 20px 22px; display: grid; gap: 4px; }
.chart-card h3 { margin: 0; font-size: 15px; font-weight: 700; }
.chart-card p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.chart { position: relative; min-height: 220px; }
.chart svg { display: block; width: 100%; height: 220px; fill: initial; stroke: none; }
.tip { position: absolute; pointer-events: none; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 6px 10px; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tip .d { color: var(--muted); }
.alert { display: flex; gap: 10px; align-items: center; background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 500; }
.alert svg { width: 16px; height: 16px; }
.mini-board { display: grid; gap: 10px; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: stretch; }
.mcol { background: var(--panel); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 150px; }
.mitem { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 8px 10px; text-align: left; cursor: pointer; display: grid; gap: 4px; font-size: 12.5px; font-weight: 500; line-height: 1.45; }
.mitem:hover { border-color: var(--brand-soft); }
.mitem small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.more { color: var(--faint); font-size: 12px; padding: 0 4px; }
.tbl th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.tbl th[aria-sort="ascending"] button::after { content: "▲"; font-size: 9px; color: var(--brand); }
.tbl th[aria-sort="descending"] button::after { content: "▼"; font-size: 9px; color: var(--brand); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; } .tbl th.num button { justify-content: flex-end; }
.tbl td.ttl { min-width: 15rem; font-weight: 500; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--panel); }
.vbar { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.vbar i { display: block; height: 6px; border-radius: 3px; background: var(--brand-soft); }
.foot { color: var(--muted); font-size: 12px; padding: 10px 16px 12px; margin: 0; border-top: 1px solid var(--line); }
@media (min-width: 861px) and (max-width: 1100px) { .mini-board { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .mini-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl td.ttl { min-width: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 16px; } .kpi-val { font-size: 22px; }
}
