/* page basics */
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: app shell. Header band, totals strip, toolbar, then a virtual-scrolled ledger grid in the Excel's three blocks (CTC / Booked / Balance); project detail slides in from the right. */
:root {
  --bg: #F3F5F8; --surface: #FFFFFF; --surface-2: #EDF0F4; --ink: #14202F; --muted: #5A6677;
  --line: #DCE1E8; --line-strong: #C2CAD6;
  --accent: #0B5D7A; --accent-ink: #FFFFFF; --accent-soft: #E1EEF3; --accent-2: #5A3E9E; --accent-2-ink: #FFFFFF;
  --g-ctc: #EAF0FA; --g-ctc-ink: #274C8E;
  --g-bk: #FFF6D8; --g-bk-ink: #735500;
  --g-bal: #E6F3EA; --g-bal-ink: #1C6A3F;
  --neg: #B42318; --neg-soft: #FDEDEB; --warn: #8F5500; --warn-soft: #FFF0D6; --ok: #1C6A3F;
  --c-mat: #2a78d6; --c-sub: #eb6834; --c-lab: #1baf7a; --c-soh: #eda100;
  --st-critical: #d03b3b; --st-good: #0ca30c; --st-none: #C2CAD6;
  --seq-1: #86b6ef; --seq-2: #6da7ec; --seq-3: #5598e7; --seq-4: #3987e5; --seq-5: #256abf; --seq-6: #184f95;
  --note: #C8302C; --sub-soft: #F1EBFB; --sub-ink: #5A3A9E;
  --scrim: rgba(14, 22, 33, .38); --shadow: 0 16px 40px rgba(20, 32, 47, .18);
  --f-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-cond: "IBM Plex Sans Condensed", "Arial Narrow", "IBM Plex Sans", system-ui, sans-serif;
  --row-h: 34px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0E141C; --surface: #151D28; --surface-2: #1B2431; --ink: #E5EAF1; --muted: #97A2B2;
  --line: #253141; --line-strong: #344459;
  --accent: #5CB3D2; --accent-ink: #052230; --accent-soft: #12303D; --accent-2: #A88BEB; --accent-2-ink: #1A1030;
  --g-ctc: #16233A; --g-ctc-ink: #A3BDEE;
  --g-bk: #2A2311; --g-bk-ink: #EBCB6E;
  --g-bal: #12291D; --g-bal-ink: #8AD5A8;
  --neg: #FF8B7B; --neg-soft: #3A1916; --warn: #F2B55C; --warn-soft: #33260E; --ok: #8AD5A8;
  --c-mat: #3987e5; --c-sub: #d95926; --c-lab: #199e70; --c-soh: #c98500;
  --st-critical: #d03b3b; --st-good: #0ca30c; --st-none: #3A4A60;
  --seq-1: #184f95; --seq-2: #1c5cab; --seq-3: #256abf; --seq-4: #2a78d6; --seq-5: #5598e7; --seq-6: #86b6ef;
  --note: #FF7B72; --sub-soft: #261D3B; --sub-ink: #C9B6F3;
  --scrim: rgba(0, 0, 0, .55); --shadow: 0 16px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0E141C; --surface: #151D28; --surface-2: #1B2431; --ink: #E5EAF1; --muted: #97A2B2;
  --line: #253141; --line-strong: #344459;
  --accent: #5CB3D2; --accent-ink: #052230; --accent-soft: #12303D; --accent-2: #A88BEB; --accent-2-ink: #1A1030;
  --g-ctc: #16233A; --g-ctc-ink: #A3BDEE;
  --g-bk: #2A2311; --g-bk-ink: #EBCB6E;
  --g-bal: #12291D; --g-bal-ink: #8AD5A8;
  --neg: #FF8B7B; --neg-soft: #3A1916; --warn: #F2B55C; --warn-soft: #33260E; --ok: #8AD5A8;
  --c-mat: #3987e5; --c-sub: #d95926; --c-lab: #199e70; --c-soh: #c98500;
  --st-critical: #d03b3b; --st-good: #0ca30c; --st-none: #3A4A60;
  --seq-1: #184f95; --seq-2: #1c5cab; --seq-3: #256abf; --seq-4: #2a78d6; --seq-5: #5598e7; --seq-6: #86b6ef;
  --note: #FF7B72; --sub-soft: #261D3B; --sub-ink: #C9B6F3;
  --scrim: rgba(0, 0, 0, .55); --shadow: 0 16px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 14px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app { height: 100%; display: flex; flex-direction: column; min-height: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 14px 12px; gap: 12px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mark { width: 36px; height: 36px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 600 13px/1 var(--f-cond); letter-spacing: .04em; flex: none; }
.eyebrow { font: 500 11.5px/1.2 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 2px 0 0; font-size: 19px; line-height: 1.2; font-weight: 600; text-wrap: balance; }
.top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.me { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding-right: 4px; }
.me img { width: 24px; height: 24px; border-radius: 50%; }
.chip-ro { font: 500 11.5px/1 var(--f-cond); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; background: var(--surface-2); color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.primary.alt { background: var(--accent-2); color: var(--accent-2-ink); border-color: var(--accent-2); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--neg); border-color: var(--neg); background: transparent; }
.btn.danger.solid { background: var(--neg); color: var(--surface); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 16px; height: 16px; }

/* totals strip */
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi .k-label { font: 500 12px/1.2 var(--f-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi .k-label i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.kpi .k-val { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .k-val small { font-size: 12px; font-weight: 500; color: var(--muted); margin-right: 4px; letter-spacing: 0; }
.k-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; font: 400 12.5px/1.45 var(--f-cond); color: var(--muted); font-variant-numeric: tabular-nums; }
.k-split span { display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; }
.k-split b { font-weight: 500; color: var(--ink); }
.k-split .neg b { color: var(--neg); }
.meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; display: flex; }
.meter > span { display: block; height: 100%; }
.k-foot { font-size: 12.5px; color: var(--muted); }
.k-foot b { color: var(--ink); font-weight: 600; }
.k-foot .neg { color: var(--neg); font-weight: 600; }
.k-foot .warn { color: var(--warn); font-weight: 600; }

/* toolbar */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 220px; max-width: 420px; min-width: 0; }
.search input { width: 100%; height: 36px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 12px 0 34px; box-sizing: border-box; }
.search svg { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fchip .n { font: 500 11.5px/1 var(--f-cond); color: var(--muted); font-variant-numeric: tabular-nums; }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fchip[aria-pressed="true"] .n { color: inherit; opacity: .75; }
.spacer { flex: 1 1 0; }
.tb-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg button { height: 30px; padding: 0 10px; border: 0; background: transparent; cursor: pointer; font-size: 12.5px; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.scope { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* grid */
.grid-wrap { flex: 1 1 auto; min-height: 280px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; position: relative; overscroll-behavior: contain; }
table.grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-variant-numeric: tabular-nums; }
.grid th, .grid td { box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--line); }
.grid thead th { position: sticky; z-index: 3; background: var(--surface); font: 500 12px/1.2 var(--f-cond); letter-spacing: .02em; color: var(--muted); text-align: right; padding: 0 10px; user-select: none; }
.grid thead tr.g1 th { top: 0; height: 30px; text-transform: uppercase; letter-spacing: .07em; font-size: 11.5px; text-align: center; border-bottom: 1px solid var(--line-strong); }
.grid thead tr.g2 th { top: 30px; height: 32px; cursor: pointer; border-bottom: 1px solid var(--line-strong); }
.grid thead tr.g2 th:hover { color: var(--ink); }
.grid thead th.l { text-align: left; }
.grid thead tr.g1 th[rowspan] { top: 0; text-align: left; text-transform: none; letter-spacing: .02em; font-size: 12px; height: 62px; cursor: pointer; vertical-align: bottom; padding-bottom: 9px; border-bottom: 1px solid var(--line-strong); }
.grid th.sorted { color: var(--ink); }
.grid th .arr { font-size: 10px; margin-left: 3px; color: var(--accent); }
.grid .gc { background: var(--g-ctc) !important; color: var(--g-ctc-ink) !important; }
.grid .gb { background: var(--g-bk) !important; color: var(--g-bk-ink) !important; }
.grid .gl { background: var(--g-bal) !important; color: var(--g-bal-ink) !important; }
.grid .blk { border-left: 1px solid var(--line-strong); }
.grid td { height: var(--row-h); padding: 0 10px; text-align: right; font: 400 13px/1 var(--f-cond); }
.grid td.tot { font-weight: 600; }
.grid td.neg { color: var(--neg); }
.grid td.zero { color: var(--muted); }
.grid .stk { position: sticky; z-index: 2; background: var(--surface); }
.grid thead .stk { z-index: 4; }
.grid .c-job { left: 0; text-align: left !important; }
.grid .c-name { left: var(--job-w); text-align: left !important; border-right: 1px solid var(--line-strong); }
.grid td.c-job { font: 500 12.5px/1 var(--f-cond); color: var(--muted); }
.grid td.c-name { font: 400 13.5px/1 var(--f-ui); }
.grid td.c-name .badge { margin-left: 6px; }
.grid tbody tr.r { cursor: pointer; }
.grid tbody tr.r:hover td { background: var(--surface-2); }
.grid tbody tr.r.open td { background: var(--accent-soft); }
.grid tbody tr.r.over td.c-job { box-shadow: inset 3px 0 0 var(--neg); }
.grid tbody tr.r.review td.c-job { box-shadow: inset 3px 0 0 var(--warn); }
.grid tbody tr.sp td { height: auto; padding: 0; border: 0; }
.grid tbody tr.msg td { text-align: left; padding: 40px 20px; height: auto; white-space: normal; color: var(--muted); font: 400 14px/1.5 var(--f-ui); }
.grid tbody tr.msg b { color: var(--ink); display: block; font-size: 15px; margin-bottom: 4px; font-weight: 600; }
.grid tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--surface-2); font-weight: 600; font-size: 12.5px; padding: 0 6px; border-top: 1px solid var(--line-strong); border-bottom: 0; height: 36px; }
.grid tfoot td.stk { z-index: 4; }
.pct { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.pct .bar { width: 70px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; flex: none; }
.pct .bar span { display: block; height: 100%; background: var(--accent); }
.pct .bar span.over { background: var(--neg); }
.grid td.nt:not(.stk) { position: relative; }
.grid td.nt::after { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; border-top: 7px solid var(--note); border-left: 7px solid transparent; }
.grid thead tr.n1 th { top: 0; height: 40px; text-align: left; cursor: pointer; border-bottom: 1px solid var(--line-strong); }
.grid td.l { text-align: left; }
.grid td.n-ref { font: 500 13px/1 var(--f-cond); }
.grid td.n-rm { color: var(--muted); font: 400 12.5px/1 var(--f-ui); }
.grid td.n-name { font: 400 13px/1 var(--f-ui); }
.grid tbody tr.r.cx td.n-ref span { text-decoration: line-through; color: var(--muted); }
.grid tfoot td.n-sum { text-align: left; font-weight: 500; color: var(--muted); }
.grid tfoot td.n-sum b { color: var(--ink); font-weight: 600; }
.refchips { display: flex; flex-wrap: wrap; gap: 4px; }
.rc { font: 500 12px/1 var(--f-cond); padding: 4px 6px; border-radius: 4px; background: var(--surface-2); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc.t-MR { background: var(--g-ctc); color: var(--g-ctc-ink); }
.rc.t-SCR { background: var(--sub-soft); color: var(--sub-ink); }
.rc.t-PO { background: var(--g-bal); color: var(--g-bal-ink); }
.rc.t-FA { background: var(--g-bk); color: var(--g-bk-ink); }
.rc.st { background: var(--neg-soft); color: var(--neg); }
.note-cell { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.note-cell .nh { display: flex; justify-content: space-between; gap: 8px; font: 500 12px/1.2 var(--f-cond); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ne { display: flex; flex-direction: column; gap: 6px; }
.ne + .ne { border-top: 1px dashed var(--line); padding-top: 8px; }
.ne .by { font-size: 12.5px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.ne .by span { font-weight: 400; color: var(--muted); font-size: 12px; }
.ne .rm { font-size: 12.5px; color: var(--ink); background: var(--warn-soft); border-radius: 4px; padding: 5px 8px; overflow-wrap: anywhere; }
details.orig summary { cursor: pointer; font-size: 12.5px; color: var(--accent); font-weight: 500; }
details.orig[open] summary { margin-bottom: 8px; }
.badge { display: inline-block; font: 600 10.5px/1 var(--f-cond); letter-spacing: .06em; text-transform: uppercase; padding: 3px 5px; border-radius: 3px; vertical-align: 1px; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.neg { background: var(--neg-soft); color: var(--neg); }
.badge.mute { background: var(--surface-2); color: var(--muted); }

/* projects page */
.pgrid .c-pn { left: 0; text-align: left !important; border-right: 1px solid var(--line-strong); }
.pgrid thead th.num { text-align: right !important; }
.pgrid thead th { text-align: left; }
.pgrid td.l { text-align: left; }
.pgrid td .mut, .pgrid td.l .mut { color: var(--muted); font: 500 12px/1 var(--f-cond); }
.pgrid tr.grp td.c-pn { font: 400 13.5px/1 var(--f-ui); }
.pgrid tr.grp td.c-pn b { font-weight: 600; }
.pgrid tr.grp td.c-pn .badge { margin-left: 8px; }
.pgrid tr.grp td.c-pn .linkbtn { margin-left: 10px; }
.pgrid tr.grp.over td.c-pn { box-shadow: inset 3px 0 0 var(--neg); }
.pgrid tr.mem td { background: var(--surface-2); font-size: 12.5px; }
.pgrid tr.mem td.c-pn { padding-left: 40px; font: 400 13px/1 var(--f-ui); }
.pgrid tr.mem.over td.c-pn { box-shadow: inset 3px 0 0 var(--neg); }
.pgrid tr.mem:hover td { background: var(--accent-soft); }
.chev { width: 22px; height: 22px; border: 0; background: none; padding: 0; margin: 0 6px 0 -4px; cursor: pointer; color: var(--muted); display: inline-grid; place-items: center; vertical-align: middle; transition: transform .15s; }
.chev svg { width: 14px; height: 14px; }
.chev[aria-expanded="true"] { transform: rotate(90deg); color: var(--ink); }
.prename { display: inline-flex; gap: 6px; align-items: center; width: 100%; }
.prename input { flex: 1; min-width: 0; height: 28px; border: 1px solid var(--accent); border-radius: 6px; padding: 0 8px; background: var(--surface); }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }

/* page tabs + dashboard */
.pagetabs { display: inline-flex; gap: 2px; background: var(--surface-2); border-radius: 8px; padding: 3px; margin-left: 10px; }
.pagetabs button { border: 0; background: transparent; height: 30px; padding: 0 14px; border-radius: 6px; font-weight: 500; font-size: 13.5px; cursor: pointer; color: var(--muted); }
.pagetabs button:hover { color: var(--ink); }
.pagetabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 32, 47, .12); }
.dash { flex: 1 1 auto; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; padding-bottom: 6px; overscroll-behavior: contain; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.wide { grid-column: 1 / -1; }
.card-h h2 { margin: 0; font-size: 14.5px; font-weight: 600; text-wrap: balance; }
.card-h p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); max-width: 70ch; }
.card .empty { padding: 18px 0; }
/* meters */
.meters { display: flex; flex-direction: column; gap: 10px; }
.mrow { display: grid; grid-template-columns: 170px minmax(0, 1fr) 150px; gap: 12px; align-items: center; }
.mrow .ml { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mrow .ml b { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.mrow .ml span, .mrow .mv span { font: 400 12px/1.25 var(--f-cond); color: var(--muted); font-variant-numeric: tabular-nums; }
.mrow .mv { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.mrow .mv b { font-weight: 600; font-size: 13.5px; }
.mrow .mv b.neg { color: var(--neg); }
.mrow.cat { padding-left: 16px; }
.mrow.cat .ml b { font-weight: 500; font-size: 13px; }
.mrow.cat .mtrack { height: 8px; }
.mtrack { position: relative; height: 12px; border-radius: 4px; overflow: hidden; display: flex; gap: 2px; }
.mtrack > span { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.mtrack > span.over { background: var(--st-critical); border-radius: 0 4px 4px 0; }
.mgroup { display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mgroup:last-child { border-bottom: 0; padding-bottom: 0; }
/* status bar */
.sbar { display: flex; gap: 2px; height: 22px; }
.sbar > span { display: block; height: 100%; min-width: 3px; }
.sbar > span:first-child { border-radius: 4px 0 0 4px; }
.sbar > span:last-child { border-radius: 0 4px 4px 0; }
.sbar > span:only-child { border-radius: 4px; }
.slegend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.slegend button, .slegend div.li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; text-align: left; border: 0; background: none; padding: 6px 8px; margin: -6px -8px; border-radius: 6px; color: inherit; }
.slegend button { cursor: pointer; }
.slegend button:hover { background: var(--surface-2); }
.slegend .sw { width: 10px; height: 10px; border-radius: 2px; margin: 0; align-self: center; }
.slegend .lt { font-size: 13px; }
.slegend .lv { font-weight: 600; font-size: 15px; }
.slegend .ls { grid-column: 2 / -1; font: 400 12px/1.2 var(--f-cond); color: var(--muted); font-variant-numeric: tabular-nums; }
/* columns */
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 6px; height: 190px; padding-top: 18px; border-bottom: 1px solid var(--line-strong); position: relative; }
.cols .c { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; position: relative; cursor: default; }
.cols .c .v { font: 500 12px/1 var(--f-cond); color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 5px; white-space: nowrap; }
.cols .c .b { width: min(24px, 70%); border-radius: 4px 4px 0 0; min-height: 0; }
.cols .c:hover .b, .cols .c:focus-visible .b { filter: brightness(1.12); }
.cols .grid-y { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); pointer-events: none; }
.cols .grid-y span { position: absolute; left: 0; top: -15px; font: 400 11px/1 var(--f-cond); color: var(--muted); font-variant-numeric: tabular-nums; }
.xlabels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-top: 6px; }
.xlabels span { text-align: center; font: 400 11.5px/1.2 var(--f-cond); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cols.withaxis { padding-left: 0; }
details.vals summary { cursor: pointer; font-size: 12.5px; color: var(--accent); font-weight: 500; }
details.vals table { margin-top: 8px; }
/* horizontal bars (top lists) */
.hbars { display: flex; flex-direction: column; gap: 2px; }
.hrow { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: 5px 6px; margin: 0 -6px; border-radius: 6px; cursor: pointer; color: inherit; }
.hrow:hover, .hrow:focus-visible { background: var(--surface-2); }
.hrow .hl { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hrow .hl b { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow .hl span { font: 400 11.5px/1.2 var(--f-cond); color: var(--muted); font-variant-numeric: tabular-nums; }
.hrow .hb { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hrow .hb i { display: block; height: 14px; border-radius: 0 4px 4px 0; flex: none; min-width: 2px; }
.hrow .hb em { font-style: normal; font: 500 12.5px/1 var(--f-cond); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--surface); color: inherit; min-width: 0; }
button.tile { cursor: pointer; }
button.tile:hover { border-color: var(--accent); }
.tile .tl { font-size: 12.5px; color: var(--muted); }
.tile .tv { font-size: 22px; font-weight: 600; }
.tile .tv.neg { color: var(--neg); }
.tile .tv.warn { color: var(--warn); }
.tile .ts { font-size: 12px; color: var(--muted); }
.recon.latest td:nth-child(2), .recon.latest td:nth-child(3) { text-align: left; }
.recon.latest th:nth-child(2), .recon.latest th:nth-child(3) { text-align: left; }
.recon.latest tbody tr:hover td { background: var(--surface-2); }
.vtip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--bg); padding: 7px 10px; border-radius: 6px; font-size: 12.5px; line-height: 1.4; white-space: pre-line; max-width: 320px; box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .dash { grid-template-columns: minmax(0, 1fr); } .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .dash { overflow: visible; flex: none; }
  .mrow { grid-template-columns: minmax(0, 1fr) auto; }
  .mrow .mtrack { grid-column: 1 / -1; grid-row: 2; }
  .mrow.cat { padding-left: 8px; }
  .hrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .slegend { grid-template-columns: minmax(0, 1fr); }
  .pagetabs { margin-left: 0; }
}

/* add booking popup */
.mscrim { position: fixed; inset: 0; background: var(--scrim); z-index: 30; }
.modal { position: fixed; z-index: 31; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(700px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.m-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.m-head h2 { margin: 3px 0 0; font-size: 18px; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px 20px 14px; border-bottom: 1px solid var(--line); }
.steps button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; border: 0; border-top: 3px solid var(--line); background: none; padding: 8px 0 0; cursor: pointer; text-align: left; color: var(--muted); min-width: 0; }
.steps button .n { font: 600 11px/1.2 var(--f-cond); letter-spacing: .07em; text-transform: uppercase; }
.steps button .l { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.steps button .v { font: 400 12px/1.2 var(--f-cond); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 14px; }
.steps button.done { border-top-color: var(--accent-soft); }
.steps button.done .n { color: var(--accent); }
.steps button[aria-selected="true"] { border-top-color: var(--accent); color: var(--ink); }
.steps button:disabled { cursor: default; opacity: .55; }
.m-body { padding: 18px 20px; overflow: auto; flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.m-err { background: var(--neg-soft); color: var(--neg); border-radius: 6px; padding: 8px 12px; font-size: 13px; font-weight: 500; }
.m-foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.m-foot .spacer { flex: 1 1 auto; }
.joblist { border: 1px solid var(--line); border-radius: 8px; max-height: 290px; overflow: auto; }
.jobopt { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; }
.jobopt:last-child { border-bottom: 0; }
.jobopt:hover { background: var(--surface-2); }
.jobopt[aria-selected="true"] { background: var(--accent-soft); }
.jobopt .j { font: 500 12.5px/1.2 var(--f-cond); color: var(--muted); font-variant-numeric: tabular-nums; }
.jobopt .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jobopt .b { font: 400 12px/1.2 var(--f-cond); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jobopt .b.neg { color: var(--neg); }
.picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 8px; flex-wrap: wrap; }
.picked .t { flex: 1 1 200px; min-width: 0; }
.picked .t b { display: block; overflow-wrap: anywhere; }
.picked .t span { font: 400 12.5px/1.3 var(--f-cond); color: var(--muted); font-variant-numeric: tabular-nums; }
.seg.big button { height: 40px; min-width: 76px; font-size: 14px; font-weight: 600; }
.catgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.catopt { border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; background: var(--surface); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.catopt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.catopt .t { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.catopt .s { font: 400 12px/1.2 var(--f-cond); color: var(--muted); font-variant-numeric: tabular-nums; }
.catopt .s.neg { color: var(--neg); }
.after { font-size: 13px; padding: 10px 12px; border-radius: 6px; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.after.neg { background: var(--neg-soft); color: var(--neg); }
.fld input.big-in { height: 44px; font-size: 17px; font-weight: 600; }
.doneview { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 8px; }
.okmark { width: 44px; height: 44px; border-radius: 50%; background: var(--g-bal); color: var(--g-bal-ink); display: grid; place-items: center; }
.okmark svg { width: 22px; height: 22px; }
.doneview p { margin: 0; font-size: 15px; max-width: 56ch; }
@media (max-width: 720px) {
  .modal { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 94dvh; border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .steps { gap: 4px; padding-left: 16px; padding-right: 16px; }
  .steps button .v { display: none; }
  .m-body, .m-head, .m-foot { padding-left: 16px; padding-right: 16px; }
  .catgrid { grid-template-columns: minmax(0, 1fr); }
  .jobopt { grid-template-columns: 76px minmax(0, 1fr); }
  .jobopt .b { grid-column: 2; }
}

/* drawer */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 20; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); background: var(--surface); z-index: 21; box-shadow: var(--shadow); display: flex; flex-direction: column; border-left: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
.dr-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.dr-head .t { flex: 1; min-width: 0; }
.dr-head h2 { margin: 4px 0 0; font-size: 18px; line-height: 1.3; font-weight: 600; text-wrap: balance; overflow-wrap: anywhere; }
.icon-btn { width: 34px; height: 34px; border-radius: 6px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: transparent; height: 40px; padding: 0 10px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 13.5px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs .n { font: 500 11.5px/1 var(--f-cond); color: var(--muted); margin-left: 4px; }
.dr-body { flex: 1; overflow: auto; padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 18px; }
.m-body h3, .dr-body h3 { margin: 0; font-size: 12px; font-family: var(--f-cond); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sec { display: flex; flex-direction: column; gap: 10px; }

table.mini { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13px; }
.mini th, .mini td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.mini th { font: 500 11.5px/1.2 var(--f-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mini td:first-child, .mini th:first-child { text-align: left; padding-left: 0; }
.mini tr.t td { font-weight: 600; border-bottom: 0; }
.mini tr.ms td { background: var(--surface-2); font-weight: 500; }
.mini tr.ms td:first-child { padding-left: 8px; }
.rule-err { background: var(--neg-soft); color: var(--neg); border-radius: 6px; padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rule-err b { font-weight: 600; }
.rule-err .btn { color: var(--neg); border-color: var(--neg); background: var(--surface); }
.revise-box { background: var(--warn-soft); border-radius: 8px; padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mini td.neg { color: var(--neg); }
.mini .bar { width: 64px; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; }
.mini .bar span { display: block; height: 100%; }
.sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 7px; vertical-align: 0; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.form .full { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld label { font-size: 12px; color: var(--muted); font-weight: 500; }
.fld input, .fld select, .fld textarea { height: 36px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); padding: 0 10px; box-sizing: border-box; width: 100%; min-width: 0; }
.fld textarea { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; line-height: 1.45; }
.fld input.num { text-align: right; font-variant-numeric: tabular-nums; }
.fld .hint { font-size: 11.5px; color: var(--muted); min-height: 15px; font-variant-numeric: tabular-nums; }
.fld .hint.err { color: var(--neg); }
.hint.warn { color: var(--warn) !important; font-weight: 500; }
.hint.ok { color: var(--ok); font-weight: 500; }
.req { font-weight: 500; color: var(--neg); font-size: 11px; margin-left: 4px; text-transform: uppercase; letter-spacing: .05em; }
.refin { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.refin .seg { flex: none; height: 36px; }
.refin .seg button { height: 34px; min-width: 46px; font-weight: 500; }
.refin input { flex: 1 1 auto; min-width: 0; height: 36px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); padding: 0 10px; box-sizing: border-box; font-variant-numeric: tabular-nums; }
.refin input.bad { border-color: var(--neg); }
.refedit { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); border-radius: 6px; padding: 8px; margin-top: 4px; }
.refedit .refin .seg { height: 30px; } .refedit .refin .seg button { height: 28px; min-width: 40px; } .refedit .refin input { height: 30px; }
.refedit .hint { font-size: 11.5px; color: var(--muted); }
button.rc { border: 0; cursor: pointer; }
button.rc:hover { outline: 1px solid currentColor; }
.noref { color: var(--warn); font-weight: 500; }
.catpick { display: flex; gap: 6px; flex-wrap: wrap; }
.catpick button { height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.catpick button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.blist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.bitem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.bitem .amt { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bitem .amt.neg { color: var(--neg); }
.bitem .what { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.bitem .ref { font-weight: 500; overflow-wrap: anywhere; }
.bitem .meta { grid-column: 1 / -1; font-size: 12px; color: var(--muted); display: flex; gap: 4px 10px; flex-wrap: wrap; align-items: center; }
.bitem .note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.bitem.void .amt, .bitem.void .ref { text-decoration: line-through; color: var(--muted); }
.bitem .act { margin-left: auto; display: flex; gap: 6px; }
.catdot { font: 500 11.5px/1 var(--f-cond); letter-spacing: .04em; color: var(--muted); display: inline-flex; align-items: center; white-space: nowrap; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 12px; font-weight: 500; }
.linkbtn.danger { color: var(--neg); }
.more { align-self: flex-start; }
.empty { color: var(--muted); font-size: 13px; padding: 10px 0; }
pre.refs { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 12.5px/1.5 var(--f-cond); background: var(--surface-2); padding: 10px 12px; border-radius: 6px; max-height: 260px; overflow: auto; }
.issues { margin: 0; padding-left: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.note-box { background: var(--warn-soft); color: var(--ink); border-radius: 6px; padding: 10px 12px; font-size: 13px; }
.note-box b { color: var(--warn); }
.hist { font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.hist div b { color: var(--ink); font-weight: 500; }
.kv { margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.recon { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.recon th, .recon td { padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.recon th:first-child, .recon td:first-child { text-align: left; padding-left: 0; }
.recon th { font: 500 11.5px/1.2 var(--f-cond); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.recon td.d { color: var(--warn); }
.scroll-x { overflow-x: auto; }
.prose { font-size: 13.5px; max-width: 62ch; }
.prose p { margin: 0 0 8px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-size: 13.5px; z-index: 40; box-shadow: var(--shadow); max-width: calc(100vw - 40px); }
.toast.err { background: var(--neg); color: var(--surface); }

@media (max-width: 1100px) { .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  html, body { height: auto; }
  .app { height: auto; }
  .grid-wrap { height: 72vh; flex: none; }
  .summary { grid-template-columns: minmax(0, 1fr); }
  .kpi .k-val { font-size: 20px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 120px minmax(0, 1fr); }
  .dr-head { padding: 14px 16px 10px; }
  .dr-body { padding: 14px 16px 24px; }
  .me span { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .drawer { animation: slidein .18s ease-out; }
  @keyframes slidein { from { transform: translateX(28px); } to { transform: none; } }
}

/* ---------- website: sign-in, account menu, people and access ---------- */
body.signed-out { overflow: hidden; }
.auth { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow: auto; }
.auth[hidden] { display: none; }
.auth-card { width: min(420px, 100%); box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 22px; margin: auto; }
.auth-card .brand { display: flex; gap: 12px; align-items: center; }
.auth-card h1 { font-size: 17px; margin: 2px 0 0; line-height: 1.25; }
#authBody { display: flex; flex-direction: column; gap: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
#authBody h2, .auth-form h2 { margin: 0; font-size: 20px; font-weight: 600; }
.auth-p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.auth-note { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.auth-err { color: var(--neg); background: var(--neg-soft); border-radius: 6px; padding: 8px 10px; font-size: 13px; line-height: 1.4; }
.auth-err[hidden] { display: none; }
.auth-form .fld input { height: 40px; font-size: 15px; }
.btn.big { height: 42px; justify-content: center; font-size: 14.5px; }
code { font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 4px; border-radius: 4px; }
button.me { border: 0; background: transparent; font: inherit; font-size: 13px; cursor: pointer; border-radius: 18px; padding: 4px 6px 4px 4px; color: var(--ink); }
button.me:hover, button.me[aria-expanded="true"] { background: var(--surface-2); }
button.me .me-chev { width: 14px; height: 14px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--f-cond); letter-spacing: .03em; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.live.off i { background: var(--warn); }
@media (max-width: 640px) { .live span { display: none; } }
.acct-menu { position: fixed; z-index: 45; min-width: 250px; max-width: calc(100vw - 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.acct-menu[hidden] { display: none; }
.acct-menu .am-who { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 3px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-menu .am-who span { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.acct-menu .am-who .badge { align-self: flex-start; margin-top: 5px; }
.acct-menu button { text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 6px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--ink); }
.acct-menu button:hover, .acct-menu button:focus-visible { background: var(--accent-soft); outline: none; }
#aScrim { z-index: 40; }
.modal.acct { z-index: 41; width: min(460px, calc(100vw - 32px)); }
.modal.acct.wide { width: min(1000px, calc(100vw - 32px)); }
.modal.acct .m-body { min-height: 0; padding-bottom: 22px; }
.toast { z-index: 70; }
.people-add { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface-2); border-radius: 8px; }
.pa-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1.5fr auto; gap: 10px; align-items: end; }
@media (max-width: 760px) { .pa-grid { grid-template-columns: 1fr; } }
table.people { width: 100%; border-collapse: collapse; font-size: 13px; }
table.people th { text-align: left; font: 500 11.5px/1.2 var(--f-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.people td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.people td .badge { margin-left: 4px; }
table.people tr.off td { color: var(--muted); }
table.people select { height: 30px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); padding: 0 6px; }
.pa-act { white-space: nowrap; text-align: right; }
.imp-sum { margin: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.imp-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.imp-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
@media (prefers-reduced-motion: reduce) { .imp-bar span { transition: none; } }
.pw-notice { border: 1px solid var(--ok); background: var(--g-bal); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pw-notice p { margin: 0; font-size: 13px; color: var(--muted); }
.pw-notice textarea { width: 100%; box-sizing: border-box; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px; background: var(--surface); color: var(--ink); resize: vertical; }
