/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --page: #f3f4f1;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --ink: #0f1720;
  --ink-2: #4b5160;
  --muted: #6b7080;
  --line: #e4e4df;
  --grid: #ecece7;
  --axis: #c9c8c0;
  --accent: #2a78d6;          /* seri data & aksi utama */
  --accent-ink: #1c5cab;      /* teks/link aksen, >= 4.5:1 */
  --accent-wash: rgba(42, 120, 214, .10);
  --accent-soft: #e8f1fc;
  --ref: #85837d;             /* garis target (netral) */
  --on-accent: #ffffff;
  --good: #0ca30c; --good-ink: #006300; --good-bg: #e7f6e7;
  --warn: #fab219; --warn-ink: #7a5200; --warn-bg: #fff4d9;
  --bad:  #d03b3b; --bad-ink: #a82727;  --bad-bg: #fbe9e9;
  --head: #0f1b2d; --head-ink: #ffffff; --head-muted: #a9b4c6;
  --shadow: 0 1px 2px rgba(15, 23, 32, .04), 0 1px 1px rgba(15, 23, 32, .03);
  --r: 14px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19; --surface-2: #222220;
    --ink: #f4f4f2; --ink-2: #c3c2b7; --muted: #9c9b93; --line: #2e2e2b; --grid: #262624; --axis: #3d3d39;
    --accent: #3987e5; --accent-ink: #7fb2ef; --accent-wash: rgba(57, 135, 229, .16); --accent-soft: #1b2a3d;
    --ref: #8a8983; --on-accent: #0b1220;
    --good-ink: #4cc34c; --good-bg: #16301a; --warn-ink: #f5c35a; --warn-bg: #33290f; --bad-ink: #ff8a80; --bad-bg: #3a1b1b;
    --head: #111a26; --head-muted: #8e9bb0;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #222220;
  --ink: #f4f4f2; --ink-2: #c3c2b7; --muted: #9c9b93; --line: #2e2e2b; --grid: #262624; --axis: #3d3d39;
  --accent: #3987e5; --accent-ink: #7fb2ef; --accent-wash: rgba(57, 135, 229, .16); --accent-soft: #1b2a3d;
  --ref: #8a8983; --on-accent: #0b1220;
  --good-ink: #4cc34c; --good-bg: #16301a; --warn-ink: #f5c35a; --warn-bg: #33290f; --bad-ink: #ff8a80; --bad-bg: #3a1b1b;
  --head: #111a26; --head-muted: #8e9bb0;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.5 var(--font); word-spacing: .07em; min-height: 100dvh; }
[hidden] { display: none !important; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 20px; padding-bottom: 64px; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- header ---------- */
.top { background: var(--head); color: var(--head-ink); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.logo svg { width: 20px; height: 20px; }
h1 { font-size: 17px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.brand-sub { font-size: 12px; color: var(--head-muted); }
.month { display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.08); border-radius: 12px; padding: 3px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: inherit; border-radius: 9px; transition: background .15s; }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.month-pick { position: relative; white-space: nowrap; min-width: 128px; text-align: center; font-weight: 700; font-size: 14px; padding: 0 6px; cursor: pointer; }
.month-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.month-pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.tabs { display: flex; gap: 2px; }
.tabs button { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--head-muted); padding: 10px 14px 12px; min-height: 46px; font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; transition: color .15s; }
.tabs button svg { width: 16px; height: 16px; }
.tabs button:hover { color: var(--head-ink); }
.tabs button[aria-selected="true"] { color: var(--head-ink); border-bottom-color: var(--accent); }

/* ---------- cards & layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head > div { display: grid; gap: 2px; }
.stack { display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 -4px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.hero-main { padding: 22px; }
.hero-lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-val { font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 4px; }
.hero-val small { font-size: 20px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.hero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--ink-2); font-size: 14px; }
.hero-sub b { color: var(--ink); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { padding: 16px; display: grid; gap: 2px; align-content: start; }
.tile .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tile .val { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.tile .sub { font-size: 12.5px; color: var(--ink-2); }
.tile.wide { grid-column: 1 / -1; }

/* meter: fill + penanda pace */
.meter { position: relative; height: 12px; background: var(--accent-soft); border-radius: 6px; margin: 16px 0 8px; }
.meter > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 6px; transition: width .4s ease-out; }
.meter .pace { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); border-radius: 1px; }
.meter-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.meter-legend .key { display: inline-flex; align-items: center; gap: 6px; }
.meter-legend .key::before { content: ""; width: 2px; height: 12px; background: var(--ink); border-radius: 1px; }

/* status: ikon + label, warna tidak berdiri sendiri */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 3px 9px 3px 7px; border-radius: 999px; white-space: nowrap; }
.status svg { width: 14px; height: 14px; stroke-width: 2.5; }
.status.good { background: var(--good-bg); color: var(--good-ink); }
.status.warn { background: var(--warn-bg); color: var(--warn-ink); }
.status.bad  { background: var(--bad-bg);  color: var(--bad-ink); }
.status.none { background: var(--surface-2); color: var(--muted); }
.delta { font-weight: 700; white-space: nowrap; }
.delta.good { color: var(--good-ink); } .delta.bad { color: var(--bad-ink); } .delta.warn { color: var(--warn-ink); }

/* ---------- chart ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; stroke: none; fill: none; }
.chart text { font: 11px var(--font); fill: var(--muted); font-variant-numeric: tabular-nums; }
/* halo warna surface supaya label tetap terbaca di atas bar/garis */
.chart text.end, .chart text.end-ref { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.chart text.end { font-size: 12px; font-weight: 700; fill: var(--ink); }
.chart text.end-ref { font-size: 11.5px; font-weight: 600; fill: var(--ink-2); }
.chart .gridl { stroke: var(--grid); stroke-width: 1; }
.chart .base { stroke: var(--axis); stroke-width: 1; }
.chart .ref { stroke: var(--ref); stroke-width: 1.5; }
.chart .line { stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent-wash); }
.chart .bar { fill: var(--accent); transition: opacity .12s; }
.chart .bar.dim { opacity: .45; }
.chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .dot.ref { fill: var(--ref); }
.chart .xhair { stroke: var(--ink-2); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart svg:focus { outline: none; }
.chart svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--accent); }
.legend i.ref { background: var(--ref); height: 2px; }
.legend i.box { height: 10px; width: 10px; border-radius: 3px; }
.empty-chart { display: grid; place-items: center; text-align: center; min-height: 180px; color: var(--muted); font-size: 13px; background: var(--surface-2); border-radius: 10px; padding: 20px; }

.tooltip { position: fixed; z-index: 50; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 10px 12px; font-size: 12.5px; min-width: 170px; max-width: 260px; }
.tooltip .t-h { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.tooltip .t-r { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 1px 0; }
.tooltip .t-r span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.tooltip .t-r b { font-variant-numeric: tabular-nums; }
.tooltip .t-r i { width: 12px; height: 2px; border-radius: 1px; background: var(--accent); }
.tooltip .t-r i.ref { background: var(--ref); }
.tooltip .t-sep { border-top: 1px solid var(--line); margin: 6px 0; }

/* ---------- leaderboard ---------- */
.board { display: grid; }
.board-row { display: grid; grid-template-columns: 28px minmax(120px, 1.1fr) minmax(160px, 2fr) 150px 120px; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.board-row:first-child { border-top: 0; }
.board-head { font-size: 12px; color: var(--muted); font-weight: 600; padding-top: 0; }
.rank { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.rank.top { background: var(--accent-soft); color: var(--accent-ink); }
.who b { display: block; font-weight: 700; }
.who span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bullet { position: relative; height: 10px; background: var(--accent-soft); border-radius: 5px; }
.bullet > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 5px; }
.bullet .pace { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 1px; }
.bullet-cell { display: grid; gap: 6px; }
.bullet-cell .cap { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bullet-cell .cap b { color: var(--ink); }
.cr-cell { font-size: 13px; font-variant-numeric: tabular-nums; }
.cr-cell b { font-size: 15px; }
.cr-cell .muted { font-size: 12px; }
.st-cell { justify-self: end; }

/* ---------- table ---------- */
details.tbl-wrap { margin-top: 4px; }
details.tbl-wrap summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--accent-ink); padding: 8px 0; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.tbl-wrap summary::-webkit-details-marker { display: none; }
details.tbl-wrap summary svg { width: 16px; height: 16px; transition: transform .2s; }
details[open].tbl-wrap summary svg { transform: rotate(180deg); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl thead th { font-size: 12px; font-weight: 600; color: var(--muted); }
.tbl tbody tr:last-child td { border-bottom: 0; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field-lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
input, select { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--axis); border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover { border-color: var(--muted); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
input::placeholder { color: var(--muted); opacity: .7; }
input[aria-invalid="true"] { border-color: var(--bad); }
.select { position: relative; display: block; }
.select select { appearance: none; padding-right: 40px; cursor: pointer; }
.select svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.affix { display: flex; align-items: stretch; border: 1px solid var(--axis); border-radius: 10px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.affix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.affix input { border: 0; box-shadow: none !important; min-width: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.affix .pre, .affix .post { display: grid; place-items: center; padding: 0 12px; color: var(--muted); font-weight: 700; font-size: 14px; background: var(--surface-2); }
.affix .pre { border-right: 1px solid var(--line); border-radius: 10px 0 0 10px; }
.affix .post { border-left: 1px solid var(--line); border-radius: 0 10px 10px 0; }
.hint { font-size: 12.5px; color: var(--muted); min-height: 18px; font-variant-numeric: tabular-nums; }
.hint b { color: var(--ink); }
.date-row { display: flex; gap: 8px; flex-wrap: wrap; }
.date-row input { flex: 1 1 160px; width: auto; }
.chips { display: flex; gap: 6px; }
.chip { border: 1px solid var(--axis); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 0 14px; min-height: 46px; font-size: 13.5px; font-weight: 600; transition: background .15s, border-color .15s; }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.form-isi { display: grid; gap: 14px; align-content: start; }
.form-isi .card-head { margin-bottom: 0; display: grid; gap: 2px; }
.exists { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--warn-ink); background: var(--warn-bg); padding: 10px 12px; border-radius: 10px; }
.exists svg { width: 16px; height: 16px; margin-top: 2px; }
.form-err { color: var(--bad-ink); font-size: 13px; font-weight: 600; min-height: 0; }
.form-err:empty { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; min-height: 46px; padding: 0 18px; font-weight: 700; font-size: 14.5px; border: 1px solid transparent; transition: background .15s, transform .1s, opacity .15s; }
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--axis); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.ghost { background: none; color: var(--accent-ink); padding: 0 10px; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.loading { opacity: .7; pointer-events: none; }

.isi-grid { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 16px; align-items: start; }
#isi-side { display: grid; gap: 16px; }
#isi-bawah { display: grid; gap: 16px; margin-top: 16px; }

/* riwayat */
.hist { display: grid; }
.hist-row { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hist-row:first-child { border-top: 0; }
.hist-row .d { font-weight: 700; }
.hist-row .d small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.hist-row .v b { font-size: 15px; }
.hist-row .v .muted { display: block; }
.hist-row .acts { display: flex; gap: 2px; }
.hist-row .acts .btn { min-height: 38px; font-size: 13px; padding: 0 10px; }
.hist-row .acts .del { color: var(--bad-ink); }
.hist-row .acts .del:hover { background: var(--bad-bg); }

/* ---------- target ---------- */
.t-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.t-rows { display: grid; }
.t-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(200px, 1.4fr) 110px minmax(120px, .7fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.t-row:first-child { border-top: 0; }
.t-row.head { font-size: 12px; color: var(--muted); font-weight: 600; padding-top: 0; }
.t-row .name { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.t-row .name .tag { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 1px 6px; }
.t-row .per { font-variant-numeric: tabular-nums; font-weight: 700; }
.t-row .per small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.t-row.total { font-weight: 800; border-top: 2px solid var(--line); }
.t-row .lbl-m { display: none; }
.t-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 16px; }
.t-actions .left { display: flex; gap: 8px; flex-wrap: wrap; }
.dirty { font-size: 13px; color: var(--warn-ink); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.dirty::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }

.sales-add { display: flex; gap: 8px; flex-wrap: wrap; }
.sales-add input { flex: 1 1 220px; width: auto; }
.people { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.people li { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 4px 4px 4px 12px; font-weight: 600; font-size: 14px; }
.people li svg { width: 15px; height: 15px; color: var(--muted); }
.people li.off { opacity: .6; text-decoration: line-through; text-decoration-color: var(--muted); }
.people li .btn { min-height: 34px; font-size: 12.5px; padding: 0 10px; text-decoration: none; }

/* ---------- empty / onboarding ---------- */
.empty { text-align: center; padding: 40px 20px; }
.empty .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); display: inline-grid; place-items: center; margin-bottom: 12px; }
.empty .ic svg { width: 26px; height: 26px; }
.empty h2 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--ink-2); max-width: 440px; margin: 0 auto; }
.steps { list-style: none; padding: 0; margin: 22px auto 22px; display: grid; gap: 10px; max-width: 420px; text-align: left; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 12.5px; color: var(--ink); }
.steps li.done::before { content: "✓"; background: var(--good-bg); color: var(--good-ink); border-color: transparent; }
.steps b { color: var(--ink); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--surface); border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: toast-in .2s ease-out; max-width: calc(100vw - 32px); }
.toast svg { color: var(--good); stroke-width: 3; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

.loading-frame { opacity: .55; transition: opacity .2s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .isi-grid { grid-template-columns: 1fr; }
  .board-row { grid-template-columns: 28px 1fr 1fr; gap: 10px 12px; }
  .board-row .bullet-cell { grid-column: 2 / -1; grid-row: 2; }
  .board-row .cr-cell { grid-column: 3; grid-row: 1; text-align: right; }
  .board-row .st-cell { display: none; }
  .board-row .who .st-inline { display: inline-flex; margin-top: 4px; }
  .board-head { display: none; }
}
.who .st-inline { display: none; }
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .t-summary { grid-template-columns: 1fr 1fr; }
  .t-summary .tile:first-child { grid-column: 1 / -1; }
  .t-row.head { display: none; }
  .t-row { grid-template-columns: 1fr 112px; gap: 8px 12px; }
  .t-row .name { grid-column: 1 / -1; }
  .t-row .lbl-m { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
  .t-row .per { grid-column: 1 / -1; grid-row: 3; font-size: 13px; }
  .t-row .per small { display: inline; margin-left: 6px; }
  .t-row.total { grid-template-columns: 1fr auto; }
  .t-row.total > :nth-child(n+3) { display: none; }
}
@media (max-width: 560px) {
  .top-in { padding-top: 10px; padding-bottom: 8px; }
  .brand-sub { display: none; }
  .month-pick { min-width: 84px; font-size: 13.5px; }
  .month-pick .long { display: none; }
  .month-pick .short { display: inline; }
  .icon-btn { width: 36px; height: 40px; }
  .tabs button { flex: 1; justify-content: center; padding: 8px 6px 10px; font-size: 13.5px; }
  .hero-val { font-size: 40px; }
  .tiles { gap: 10px; }
  .tile { padding: 14px; }
  .tile .val { font-size: 21px; }
  .card { padding: 16px; }
  .two { grid-template-columns: 1fr; }
  .hist-row { grid-template-columns: 58px 1fr auto; }
  .hist-row .cr { display: none; }
  .t-actions { flex-direction: column-reverse; align-items: stretch; }
  .t-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (min-width: 561px) { .month-pick .short { display: none; } }
.hist-more { margin-top: 8px; }
