/* Trading Bells - Performance Dashboard. Shared styles for every page.
   Chrome tokens are rm-monitor's (captured from its live page) so the two apps
   read as one family; chart series use the dataviz reference palette, validated
   (CVD-safe) against these surfaces in light and dark. */

:root {
  color-scheme: light;
  --ink: #24252F; --ink-2: #4C4E5E; --ink-3: #74768A;
  --bg: #F4F4F6; --panel: #FFFFFF; --panel-2: #FAFAFB;
  --line: #DFE0E6; --line-2: #ECEDF1;
  --brand-grey: #6D7087; --brand-green: #25BE9B;
  --accent: #5C5F76; --accent-ink: #FFFFFF; --accent-soft: #ECEDF2; --accent-line: #CDCFDA;
  --warn-bg: #FFF4E0; --warn-ink: #8A5300;
  --bad-bg: #FCEBEA; --bad-ink: #8E231E;
  --ok-bg: #E7F3EC; --ok-ink: #1F6B49;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(28, 37, 48, .04);
  /* chart roles */
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a;
  --series-muted: #C9D0D8; --target-ink: #1C2530;
  --grid: #EBEEF1; --axis: #C3CAD2;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --ink: #ECECF1; --ink-2: #BDBECA; --ink-3: #9294A6;
    --bg: #131317; --panel: #1C1C22; --panel-2: #18181D;
    --line: #2F3038; --line-2: #26272E;
    --accent: #B3B5C8; --accent-ink: #15151A; --accent-soft: #2A2B35; --accent-line: #444657;
    --warn-bg: #3A2E14; --warn-ink: #F1C36B;
    --bad-bg: #3A1D1C; --bad-ink: #F2A09B;
    --ok-bg: #16301F; --ok-ink: #7FD1A0;
    --shadow: none;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70;
    --series-muted: #3A424C; --target-ink: #E8ECF1;
    --grid: #262C34; --axis: #3A424C;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ECECF1; --ink-2: #BDBECA; --ink-3: #9294A6;
  --bg: #131317; --panel: #1C1C22; --panel-2: #18181D;
  --line: #2F3038; --line-2: #26272E;
  --accent: #B3B5C8; --accent-ink: #15151A; --accent-soft: #2A2B35; --accent-line: #444657;
  --warn-bg: #3A2E14; --warn-ink: #F1C36B;
  --bad-bg: #3A1D1C; --bad-ink: #F2A09B;
  --ok-bg: #16301F; --ok-ink: #7FD1A0;
  --shadow: none;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70;
  --series-muted: #3A424C; --target-ink: #E8ECF1;
  --grid: #262C34; --axis: #3A424C;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.45 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono, .dt { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .92em; }
.dt { white-space: nowrap; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted, .note { color: var(--ink-3); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- top bar */
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 18px; height: 52px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 6px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.brand small { font-weight: 400; color: var(--ink-3); }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-name { font-weight: 500; color: var(--brand-grey, var(--ink-2)); font-size: 15px; padding-left: 10px; border-left: 1px solid var(--line); line-height: 22px; }
.login-logo { height: 60px; width: auto; display: block; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); padding: 7px 10px; border-radius: var(--radius); white-space: nowrap; font-size: 13.5px; }
.nav a:hover { background: var(--line-2); text-decoration: none; }
.nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.who { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 13px; color: var(--ink-2); }
.who .role { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: var(--line-2); color: var(--ink-3); }

/* ---------------------------------------------------------------- page */
.wrap { max-width: 1280px; margin: 0 auto; padding: 20px 16px 56px; }
.wrap.narrow { max-width: 920px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { font-size: 21px; font-weight: 600; margin: 0; letter-spacing: -.005em; }
.page-head .sub { color: var(--ink-3); font-size: 13px; margin-top: 3px; }
.crumbs { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { color: var(--ink-3); }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  margin-bottom: 16px; box-shadow: var(--shadow); min-width: 0; }
.card > h2, .card-h { font-size: 14px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-h .aside, .card > h2 .aside { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.card-h .right { margin-left: auto; font-weight: 400; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid-2 > .card { margin-bottom: 0; }
.stack-16 > * + * { margin-top: 16px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- flash */
.flash { padding: 9px 12px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-ink); margin-bottom: 12px; font-size: 13px; }
.flash.bad { background: var(--bad-bg); color: var(--bad-ink); }
.flash.ok { background: var(--ok-bg); color: var(--ok-ink); }

/* ---------------------------------------------------------------- controls */
label.f { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
input[type=text], input[type=number], input[type=date], input[type=password], input[type=search], select, textarea {
  font: inherit; font-size: 13.5px; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--ink); min-height: 34px; max-width: 100%;
}
textarea { min-height: 140px; width: 100%; font-family: "IBM Plex Mono", monospace; font-size: 12.5px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; }
.btn, button { font: inherit; font-size: 13.5px; font-weight: 500; padding: 7px 14px; min-height: 34px; background: var(--accent);
  color: var(--accent-ink); border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; display: inline-flex;
  align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover, button:hover { filter: brightness(1.06); text-decoration: none; }
button:disabled { opacity: .5; cursor: default; filter: none; }
.btn.ghost, button.ghost { background: var(--panel); color: var(--ink-2); border-color: var(--line); }
.btn.danger, button.danger { background: var(--panel); color: var(--bad-ink); border-color: var(--line); }
.btn.sm, button.sm { padding: 4px 10px; min-height: 28px; font-size: 12.5px; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.field-row > div { min-width: 0; }

/* filter bar - one row above the content it scopes */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .grow { flex: 1 1 200px; }
.filters input[type=search] { width: 100%; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); min-height: 34px; cursor: pointer; }

/* segmented control / tabs */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.seg button, .seg a { background: transparent; color: var(--ink-2); border: 0; border-right: 1px solid var(--line); border-radius: 0;
  padding: 6px 12px; min-height: 32px; font-weight: 400; font-size: 13px; }
.seg > :last-child { border-right: 0; }
.seg .on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.seg .count { font-size: 11px; color: var(--ink-3); margin-left: 5px; }
.seg .on .count { color: var(--accent); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; position: relative; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 7px 10px;
  border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: bottom; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--panel-2); }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
th.sortable::after { content: ""; display: inline-block; width: 8px; margin-left: 4px; }
th.sorted-asc::after { content: "▲"; font-size: 8px; }
th.sorted-desc::after { content: "▼"; font-size: 8px; }
tr.group td { background: var(--panel-2); font-weight: 600; }
tr.total td { font-weight: 600; border-top: 1px solid var(--line); }
td .sub { display: block; font-size: 12px; color: var(--ink-3); }
.empty { padding: 28px 12px; text-align: center; color: var(--ink-3); }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.bad { background: var(--bad-bg); color: var(--bad-ink); }
.pill.none { background: var(--line-2); color: var(--ink-3); }
.pill.info { background: var(--accent-soft); color: var(--accent); }

/* ---------------------------------------------------------------- stat tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; min-width: 0; box-shadow: var(--shadow); }
.kpi .k { font-size: 12px; color: var(--ink-3); }
.kpi .v { font-size: 22px; font-weight: 600; margin-top: 3px; letter-spacing: -.01em; }
.kpi .d { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.kpi.hero { grid-column: span 2; }
.kpi.hero .v { font-size: 34px; }
@media (max-width: 560px) { .kpi.hero { grid-column: 1 / -1; } .kpi.hero .v { font-size: 30px; } }

/* meter (pace) - same-ramp track */
.meter { height: 8px; border-radius: 4px; background: var(--accent-soft); position: relative; margin-top: 8px; overflow: visible; }
.meter > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--series-1); }
.meter > b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--target-ink); border-radius: 1px; }

/* ---------------------------------------------------------------- charts */
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin: 0 0 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend i.line { height: 2px; width: 14px; border-radius: 1px; }
.stackbar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; background: var(--line-2); }
.stackbar > span { display: block; height: 100%; min-width: 2px; }
.stackbar.sm { height: 8px; border-radius: 3px; gap: 1px; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis line, .chart .baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: inherit; }
.chart .lbl { fill: var(--ink-2); font-size: 11.5px; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hover-col { fill: var(--ink); opacity: .04; }
.chart .xhair { stroke: var(--ink-3); stroke-width: 1; }
.chart-empty { padding: 34px 12px; text-align: center; color: var(--ink-3); font-size: 13px; border: 1px dashed var(--line); border-radius: var(--radius); }

.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 10px; font-size: 12.5px; box-shadow: 0 4px 16px rgba(0,0,0,.12); min-width: 140px; display: none; }
.tip .t { color: var(--ink-3); font-size: 11.5px; margin-bottom: 4px; }
.tip .r { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tip .r .n { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.tip .r .n i { width: 12px; height: 2px; border-radius: 1px; display: inline-block; }
.tip .r b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* bullet rows: actual vs expected-by-now */
.bullets { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) 92px; gap: 7px 12px; align-items: center; font-size: 13px; }
.bullets .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bullets .track { position: relative; height: 18px; }
.bullets .track .bg { position: absolute; inset: 4px 0; background: var(--line-2); border-radius: 3px; }
.bullets .track .fill { position: absolute; top: 4px; bottom: 4px; left: 0; background: var(--series-1); border-radius: 0 4px 4px 0; }
.bullets .track .tick { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--target-ink); border-radius: 1px; }
.bullets .val { text-align: right; font-variant-numeric: tabular-nums; }
.bullets .hitrow { display: contents; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px 26px 22px; box-shadow: 0 6px 30px rgba(36,37,47,.06); }
.login-card h1 { font-size: 18px; margin: 12px 0 4px; }
.login-card .sub { color: var(--ink-3); font-size: 13px; margin-bottom: 18px; }
.login-card input { width: 100%; margin-bottom: 12px; }
.login-card button { width: 100%; justify-content: center; margin-top: 4px; }

/* home tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tile { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; color: var(--ink); box-shadow: var(--shadow); }
.tile:hover { border-color: var(--accent-line); text-decoration: none; background: var(--panel-2); }
.tile b { display: block; font-weight: 600; margin-bottom: 3px; }
.tile span { color: var(--ink-3); font-size: 12.5px; }

@media (max-width: 720px) {
  .topbar-in { gap: 4px 10px; flex-wrap: wrap; height: auto; padding-top: 8px; }
  .nav { order: 3; flex: 1 1 100%; margin: 0 -6px; padding-bottom: 6px; }
  .who { margin-left: auto; }
  .brand small, .who .name, .brand-name { display: none; }
  .brand-logo { height: 30px; }
  .page-head h1 { font-size: 19px; }
  .bullets { grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) 70px; }
}
@media print { .topbar, .filters, .actions { display: none; } body { background: #fff; } .card, .kpi { box-shadow: none; } }

/* DAR parts (per-day amounts; NNW / reversals are negative) */
.partlist { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.partlist > span { display: inline-flex; gap: 6px; align-items: baseline; }
.partlist .n { color: var(--ink-3); }
.partlist b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.partlist b.neg { color: var(--bad-ink); }
.admin-tiles .tile b { display: flex; justify-content: space-between; gap: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }

/* ---------------------------------------------------------------- 2026-09-29: period bar, lenses, mix, heat grid */
:root {
  --mix-cash: #2a78d6; --mix-fno: #eb6834; --mix-mcx: #1baf7a; --mix-vas: #eda100; --mix-unl: #e87ba4;
  --mix-other: #C9D0D8; --mix-rev: #4a3aa7; --mix-nnw: #e34948;
  --heat-0: #F4F7FB; --heat-1: #cde2fb; --heat-2: #9ec5f4; --heat-3: #6da7ec; --heat-4: #3987e5; --heat-5: #1c5cab;
  --heat-ink-lo: #1C2530; --heat-ink-hi: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --mix-cash: #3987e5; --mix-fno: #d95926; --mix-mcx: #199e70; --mix-vas: #c98500; --mix-unl: #d55181;
    --mix-other: #4A535E; --mix-rev: #9085e9; --mix-nnw: #e66767;
    --heat-0: #1D232B; --heat-1: #184f95; --heat-2: #1c5cab; --heat-3: #2a78d6; --heat-4: #5598e7; --heat-5: #9ec5f4;
    --heat-ink-lo: #E8ECF1; --heat-ink-hi: #0E1620;
  }
}
:root[data-theme="dark"] {
  --mix-cash: #3987e5; --mix-fno: #d95926; --mix-mcx: #199e70; --mix-vas: #c98500; --mix-unl: #d55181;
  --mix-other: #4A535E; --mix-rev: #9085e9; --mix-nnw: #e66767;
  --heat-0: #1D232B; --heat-1: #184f95; --heat-2: #1c5cab; --heat-3: #2a78d6; --heat-4: #5598e7; --heat-5: #9ec5f4;
  --heat-ink-lo: #E8ECF1; --heat-ink-hi: #0E1620;
}

.period { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.period input[type=date] { width: 150px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 14px; }
.chips a { font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 3px 11px; }
.chips a:hover { text-decoration: none; border-color: var(--accent-line); }
.chips a.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); font-weight: 500; }
.pill.range { background: var(--accent-soft); color: var(--accent); }

.card-h .seg { font-weight: 400; }
.table-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 10px; }
.lens-head { margin: 0 0 10px; }
.lens-head:empty { display: none; }

/* make-up bar: negatives left of the zero line, positives right, one scale for every row */
.mixbar { position: relative; height: 14px; min-width: 150px; }
.mixbar .zero { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--axis); }
.mixbar .seg-r, .mixbar .seg-l { position: absolute; top: 2px; bottom: 2px; display: flex; gap: 2px; }
.mixbar .seg-l { flex-direction: row-reverse; }
.mixbar span { display: block; height: 100%; min-width: 0; }
.mixbar .seg-r span:last-child { border-radius: 0 3px 3px 0; }
.mixbar .seg-l span:last-child { border-radius: 3px 0 0 3px; }
td.bar { width: 190px; min-width: 150px; }

/* funnel strip */
.funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.funnel > div { background: var(--panel-2); padding: 9px 12px; min-width: 0; }
.funnel .k { font-size: 12px; color: var(--ink-3); }
.funnel .v { font-size: 20px; font-weight: 600; }
.funnel .d { font-size: 12px; color: var(--ink-3); }
@media (max-width: 560px) { .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* heat grid (day by day) */
table.heat { font-size: 12px; }
table.heat th.d, table.heat td.h { text-align: center; padding: 6px 3px; min-width: 38px; font-variant-numeric: tabular-nums; }
table.heat th.d small { display: block; font-weight: 400; color: var(--ink-3); font-size: 10.5px; }
table.heat td.h { border-bottom: 2px solid var(--panel); border-right: 2px solid var(--panel); }
table.heat td.nm, table.heat th.nm { position: sticky; left: 0; background: var(--panel); z-index: 1; min-width: 150px; max-width: 220px; }
table.heat tbody tr:hover td.nm { background: var(--panel-2); }
table.heat tr.total td { border-top: 1px solid var(--line); }
.heat-legend { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--ink-3); }
.heat-legend i { width: 18px; height: 10px; display: inline-block; }
.heat-legend span { margin: 0 6px; }

/* top clients bars */
.hbars { display: grid; grid-template-columns: minmax(120px, 230px) minmax(0, 1fr) 110px; gap: 6px 12px; align-items: center; font-size: 13px; }
.hbars .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars .nm small { color: var(--ink-3); margin-left: 6px; }
.hbars .track { height: 14px; position: relative; }
.hbars .track i { position: absolute; left: 0; top: 2px; bottom: 2px; background: var(--series-1); border-radius: 0 4px 4px 0; }
.hbars .track i.muted { background: var(--series-muted); }
.hbars .val { text-align: right; font-variant-numeric: tabular-nums; }
.hbars .val small { color: var(--ink-3); margin-left: 4px; }
@media (max-width: 560px) { .hbars { grid-template-columns: minmax(90px, 130px) minmax(0, 1fr) 80px; } }
.status-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
[hidden] { display: none !important; }
@media (display-mode: standalone) { #install-hint { display: none; } }
.table-tools .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.table-tools .seg::-webkit-scrollbar { display: none; }
.table-tools .seg button { flex: 0 0 auto; }

/* 2026-09-29b: with the longer menu the top bar needs two rows below 1200px
   (before, the menu scrolled sideways and Admin setup / Ask AI were hidden). */
@media (max-width: 1200px) {
  .topbar-in { flex-wrap: wrap; height: auto; padding-top: 8px; gap: 4px 12px; }
  .nav { order: 3; flex: 1 1 100%; margin: 0 -6px; padding-bottom: 6px; }
  .who { margin-left: auto; }
  .brand small { display: none; }
}
table.heat th.num { min-width: 84px; }
