/* RWR Hub, Hi-vis look (Tyler picked it 2026-12-02: "High Vis is the move").
   Graphite + safety orange, Archivo (the wide cut echoes the RWR wordmark).

   Loaded AFTER hub.css, so every page built on hub.css takes the new palette
   and type from the token remap below without its own template changing. The
   font is self-hosted (static/fonts/archivo.woff2): the CSP is 'self' only and
   stays that way. Good/bad state colours keep their meaning: green is still
   "done / OK", red is still "broken"; orange is the brand accent, never a status. */

@font-face {
  font-family: "Archivo V";
  src: url("/static/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f5f5f3;
  --card: #ffffff;
  --card-alt: #fafaf8;
  --sidebar: #ffffff;
  --ink: #1c1f22;
  --ink-2: #41464b;
  --muted: #73787d;
  --line: #e3e3df;
  --line-2: #efefeb;

  --accent: #ff6b1a;
  --accent-deep: #c94a06;
  --accent-soft: #fff0e6;
  --band: #1f2327;
  --band-ink: #f4f4f2;
  --band-muted: #a3a8ad;
  --tile: #2a2f34;
  --tile-line: #383e44;

  --green: #2f9e5b;
  --green-dim: #257f49;
  --tint-green: #e5f4ea;
  --red: #d0432f;
  --tint-red: #fbe8e4;

  --display: "Archivo V", system-ui, sans-serif;
  --sans: "Archivo V", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
}

html, body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-deep); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.disp { font-stretch: 118%; font-weight: 760; letter-spacing: -.02em; }

/* Headings: the old condensed uppercase becomes the wide display cut. */
h1 {
  font-family: var(--display);
  font-stretch: 116%;
  font-weight: 760;
  letter-spacing: -.02em;
  text-transform: none;
  font-size: 30px;
  line-height: 1.1;
}
h2 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 720;
  letter-spacing: -.01em;
  text-transform: none;
  font-size: 18px;
}

/* Buttons: graphite, sentence case, rounded. Danger stays red. */
button, .btn {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 8px;
  background: var(--ink);
  border-color: var(--ink);
}
button:hover, .btn:hover { background: #000; border-color: #000; }
button.ghost, .btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
button.ghost:hover, .btn.ghost:hover { background: var(--paper); color: var(--ink); }

.card { border-radius: var(--radius); border-left-width: 1px; border-color: var(--line); }
table { border-radius: var(--radius); overflow: hidden; }
th { font-family: var(--sans); letter-spacing: .02em; text-transform: none; font-size: 12px; font-weight: 650; }
.notice { border-radius: 10px; }

/* ------------------------------------------------------------------ shell
   The page fills the screen it is on: no max-width on the content column
   (Tyler 12/2: "it should scale to whatever screen it's on so there's no
   wasted space"). Pages that need a reading measure set it themselves. */

.content { max-width: none; padding: 28px clamp(16px, 2.4vw, 44px) 80px; }

.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 20px 16px 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; flex: none; }
.brand b { display: block; font-size: 15px; font-stretch: 118%; font-weight: 720; line-height: 1.1; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); }

.nav { overflow: auto; padding: 4px 10px 12px; }
.nav .grp { font-size: 12px; color: #8a8f94; padding: 16px 10px 5px; font-weight: 600; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; margin: 1px 0;
  border-radius: 9px; font-size: 14px; color: #2a2e32;
}
.nav a:hover { background: #f3f3f0; color: var(--ink); }
.nav a.active { background: var(--ink); color: #fff; font-weight: 650; }
.nav svg {
  width: 17px; height: 17px; flex: none;
  stroke: currentColor; fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; opacity: .85;
}
.nav .count {
  margin-left: auto; font-size: 11.5px; font-weight: 700;
  background: var(--accent); color: #fff; border-radius: 10px; padding: 1px 7px;
  font-family: var(--sans); letter-spacing: 0;
}

.sidebar .foot {
  border-top: 1px solid var(--line);
  padding: 12px 12px 12px 14px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink);
}
.av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; font-size: 12px; font-weight: 750; flex: none;
}
.foot .who { line-height: 1.25; min-width: 0; }
.foot .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot .who small { white-space: nowrap; display: flex; align-items: center; gap: 6px; color: #8a8f94; font-size: 11.5px; }
.mdot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.mdot.bad { background: var(--red); }
.foot .tools { margin-left: auto; display: flex; gap: 2px; }
.iconbtn {
  background: none; border: 0; color: #8a8f94; padding: 6px; border-radius: 8px;
  display: grid; place-items: center; cursor: pointer;
}
.iconbtn:hover { background: #f3f3f0; color: var(--ink); }
.iconbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foot form { margin: 0; }

.downbar {
  background: var(--tint-red); color: var(--red); border-bottom: 1px solid #f1c9c1;
  padding: 9px clamp(16px, 2.4vw, 44px); font-size: 13.5px; font-weight: 600;
}

/* ------------------------------------------------------------------- home */

.home .top { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.home .day { font-size: 13.5px; color: var(--muted); }
.home .top h1 { font-size: clamp(28px, 2.4vw, 38px); margin: 3px 0 0; }
.home .sub { color: var(--ink-2); margin-top: 6px; font-size: 14.5px; }
.chips { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; color: var(--ink-2);
  font-family: var(--sans); letter-spacing: 0; text-transform: none;
}

.chip:hover { background: var(--paper); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* The dark band. Only wired boxes render; until one is wired the band is not
   drawn for the team at all (no sample number ever reaches the live Hub). */
.band {
  background: var(--band); color: var(--band-ink);
  border-radius: 18px; padding: 20px clamp(14px, 1.4vw, 24px); margin-top: 22px;
}
.bandhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.band h2 { color: var(--band-ink); margin: 0; font-size: 18px; }
.band .hint { color: var(--band-muted); font-size: 13px; }
.band .stat-row {
  display: grid; gap: 10px; margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.band .stat {
  background: var(--tile); border: 1px solid var(--tile-line); border-radius: 12px;
  padding: 14px 16px; text-decoration: none; color: var(--band-ink); display: block;
}
.band a.stat:hover { border-color: #4a5158; color: var(--band-ink); }
.band .stat .k { font-size: 13px; color: var(--band-muted); }
.band .stat .v { font-size: clamp(26px, 2vw, 34px); margin-top: 4px; line-height: 1.05; }
.band .stat .v small { font-size: 13px; color: var(--band-muted); font-weight: 500; margin-left: 3px; letter-spacing: 0; }
.band .stat .d { font-size: 12.5px; color: var(--band-muted); margin-top: 6px; }
.band .stat.hot { border-color: var(--accent); }
.band .stat.hot .v { color: #ff8a45; }

/* Cards on the page. Grid auto-fits, so a wide monitor gets three columns and
   a laptop two, with no empty gutter on the right. */
.home .cols {
  display: grid; gap: 20px; margin-top: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  align-items: start;
}
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; min-width: 0; }
.panel .ph { display: flex; align-items: baseline; gap: 10px; }
.panel .ph h2 { margin: 0; font-size: 19px; }
.panel .ph .meta { font-size: 13px; color: var(--muted); }
.panel .ph .act { margin-left: auto; }
.panel .ph .act a { text-decoration: none; font-weight: 600; color: var(--accent-deep); }
.panel .empty { color: var(--muted); font-size: 14px; padding: 14px 0 4px; }

.todo { display: grid; grid-template-columns: 40px 1fr auto; gap: 13px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line-2); }
.todo:first-of-type { border-top: 0; }
.todo .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; }
.todo .ic.ok { background: var(--tint-green); color: var(--green); }
.todo .ic.bad { background: var(--tint-red); color: var(--red); }
.todo .ic svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.todo b { display: block; font-weight: 650; font-size: 15px; }
.todo .s { color: var(--muted); font-size: 13.5px; }
.todo details { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.todo details summary { cursor: pointer; color: var(--muted); }
.todo details ul { margin: 6px 0 0 18px; padding: 0; }
.todo .go { display: inline-block; background: var(--ink); color: #fff; border-radius: 8px; padding: 7px 13px; font-size: 13.5px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.todo .go:hover { background: #000; color: #fff; }

/* Drivers today: one lane per driver, a dot per stop on a 5am-midnight line. */
.lanes { margin-top: 12px; }
.lane { display: grid; grid-template-columns: 96px 1fr 52px; gap: 12px; align-items: center; padding: 7px 0; }
.lane .nm { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane .tr { position: relative; height: 22px; background: var(--line-2); border-radius: 11px; }
.lane .st { position: absolute; top: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; }
.lane .st.done { background: var(--green); }
.lane .st.notime { background: #b9bdc1; }
.lane .st.done { background: var(--green); }
.lane .ct { font-size: 13px; color: var(--muted); text-align: right; }
.lane .now { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--accent); border-radius: 2px; }
.axis { display: grid; grid-template-columns: 96px 1fr 52px; gap: 12px; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.axis .t { display: flex; justify-content: space-between; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; background: var(--ink); }
.legend i.done { background: var(--green); }
.legend i.notime { background: #b9bdc1; }

/* Shout-outs */
.shout { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-2); }
.shout:first-of-type { border-top: 0; }
.shout .av { width: 36px; height: 36px; }
.shout p { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.shout .by { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.shout .by form { margin: 0; }
.clap { background: var(--card); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; }
.clap:hover { background: var(--accent-soft); border-color: #ffc7a3; color: var(--accent-deep); }
.clap.on { background: var(--accent-soft); border-color: #ffc7a3; color: var(--accent-deep); }
.shout-form { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.shout-form .row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.shout-form input, .shout-form textarea {
  font: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: var(--card); width: 100%;
}
.shout-form textarea { min-height: 64px; resize: vertical; }
.shout-form .hint { font-size: 12px; color: var(--muted); }
.shout-form .hint.err { color: var(--red); }


/* ------------------------------------------------------------------ inbox
   Grouped by what you can do (RW-523). Row content is unchanged; the look is. */
.qrow { border-radius: 12px; border-left-width: 4px; padding: 13px 16px; margin-bottom: 8px; color: var(--ink); text-decoration: none; }
.qrow:hover { background: #fafaf8; }
.qrow .idx { display: none; }
.qrow .show { font-family: var(--display); font-stretch: 112%; font-weight: 720; letter-spacing: -.01em; text-transform: none; font-size: 16.5px; }
.qrow .age { font-family: var(--sans); font-size: 12px; }
.badge { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 11.5px; font-weight: 650; border-radius: 999px; padding: 1px 8px; }
.qrow .attn { font-family: var(--sans); font-size: 12.5px; }
.qclock { font-weight: 750; font-size: 14px; font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.qclock.late { color: var(--red); }
.qclock.ok { color: var(--green); }
.status { font-family: var(--sans); letter-spacing: 0; text-transform: none; border-radius: 999px; font-size: 11.5px; font-weight: 650; }
.qband { margin: 6px 0 18px; }
.qband a.stat { text-decoration: none; }
.qlane { margin-top: 22px; }
.qlane h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.qn { font-family: var(--sans); font-size: 12.5px; font-weight: 700; background: var(--line-2); color: var(--ink-2); border-radius: 999px; padding: 1px 9px; }
.qpick { display: grid; grid-template-columns: 34px 1fr; align-items: start; }
.qpick .tick { padding-top: 16px; display: grid; place-items: center; }
.qpick .tick input { width: 18px; height: 18px; accent-color: var(--ink); }
.closebar { position: sticky; bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--band); padding: 10px 12px; border-radius: 12px; margin-top: 6px; }
.closebar select, .closebar input { font: inherit; font-size: 13.5px; border-radius: 8px; border: 1px solid var(--tile-line); background: var(--tile); color: var(--band-ink); padding: 7px 10px; }
.closebar input { flex: 1; min-width: 160px; }
.closebar button { background: var(--accent); border-color: var(--accent); }
.closebar button:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }

/* --------------------------------------------------------------- dispatch
   Look only: the board itself is dispatch.css / dispatch.js. */
.dx-step { display: inline-flex; align-items: center; gap: 6px; }
.dx-step .btn.sm { padding: 3px 10px; font-size: 15px; line-height: 1.2; text-decoration: none; }
#dx-approve-all, .dx-appr { background: var(--accent); border-color: var(--accent); color: #fff; }
#dx-approve-all:hover, .dx-appr:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
#dx-approve-all:disabled { opacity: .45; }
.dx-appr { font-size: 11.5px; }
.notice.dx-phase { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ink); font-size: 13.5px; }

/* -------------------------------------------------------------------- POs */
.pohead { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.pohead .search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; min-width: 260px; }
.pohead .search input { border: 0; outline: 0; width: 100%; font: inherit; background: transparent; }
.pocols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; align-items: start; }
.pocol { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-width: 0; }
.pocol > h3 { margin: 2px 4px 10px; font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.pocol .empty { color: var(--muted); font-size: 13.5px; padding: 6px 4px 10px; }
.pocard { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 9px; color: var(--ink); text-decoration: none; background: var(--card); }
.pocard:hover { border-color: #c9ccd0; color: var(--ink); }
.pocard .t { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.pocard .t b { font-size: 14.5px; }
.pocard .m { font-size: 12.5px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.pocard .why { font-size: 12.5px; color: var(--red); margin-top: 4px; }
.pocard .cov { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.pocard .cov i { width: 14px; height: 14px; border-radius: 4px; background: var(--green); display: inline-block; }
.pocard .cov i.w { background: #e6e6e2; border: 1px dashed #b9bdc1; }
.pocard .ft { display: flex; gap: 8px; align-items: center; margin-top: 7px; font-size: 12px; color: var(--muted); }
.pocard .ft .qclock { margin: 0 0 0 auto; font-size: 13px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.pill.or { background: var(--accent-soft); color: var(--accent-deep); }
.pill.g { background: var(--tint-green); color: var(--green); }
.pill.n { background: var(--line-2); color: var(--ink-2); }
.pill.b { background: #e8f0fa; color: #2f6fb5; }
.pocard[hidden] { display: none; }

/* ------------------------------------------------------- whole-Hub cleanup
   Tyler 12/3: "update everything else so that it matches". The Hi-vis token
   remap above reached colour and headings, but hub.css still drew its August
   look underneath: tiny letter-spaced monospace capitals on labels, tiles,
   folds and table heads, green "info" boxes, square corners, an Oswald
   fallback. One layer here moves every page at once. Monospace is kept only
   where the text IS code (a permission key, a setup key, a file path). */

:root { --mono: var(--sans); --amber: #b8641a; --tint-amber: #fbf0e2; --blue: #2f6fb5; --tint-blue: #e8f0fa; }
body { font-variant-numeric: tabular-nums; }
code, pre, kbd, samp, code.token, .caps code, .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Small labels: sentence case, Archivo, readable size. */
label.field span, .tile .k, .rangeform label, .rhead, .barfoot, .tdetail .dk,
.dirfields div.field > span, .outhead, .daystrip .bars .barday, .tcard .ttype,
.tdetail .dtype, .panehead, .drafthead, .panenote, .paneside .tag, .tag,
.capgroup h3, .dx-sub, .dx-route th, .dx-note b, .tdetail .dclose, .seg, .rail,
details.fold > summary, .bars + .barfoot, .chip, .tcard {
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
label.field span, .dirfields div.field > span, .rangeform label {
  font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px;
}
.tile .k, .tdetail .dk, .rhead, .outhead, .barfoot, .tcard .ttype, .tdetail .dtype,
.panehead, .drafthead, .panenote, .dx-sub, .daystrip .bars .barday {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.capgroup h3 { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.dx-route th { font-size: 12px; font-weight: 650; }
.dx-note b { font-weight: 700; }
.tag, .paneside .tag { font-size: 12px; font-weight: 650; border-radius: 999px; }

/* Inputs: one shape everywhere. */
input[type=text], input[type=email], input[type=password], input[type=search],
input[type=number], input[type=date], input[type=time], input[type=tel], input:not([type]),
select, textarea {
  font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; background: var(--card);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 107, 26, .22);
}
input[type=checkbox], input[type=radio] { accent-color: var(--ink); }
input.code { font-family: var(--sans); font-weight: 700; font-size: 24px; letter-spacing: .3em; }

/* Status words read as words, not stencils. */
.bigstate {
  font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0;
  text-transform: none; border-radius: 999px; padding: 7px 14px; border: 1px solid var(--line);
}
.bigstate::first-letter { text-transform: uppercase; }
.tile { border-radius: var(--radius); border-color: var(--line); }
.tile .v { font-family: var(--display); font-stretch: 112%; font-weight: 720; letter-spacing: -.01em; }

/* Notices: neutral by default (green is for "done", not "here is a note"). */
.notice {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ink);
  border-radius: 10px; color: var(--ink);
}
.notice.ok { border-left-color: var(--green); background: var(--tint-green); }
.notice.bad { border-left-color: var(--red); background: var(--tint-red); }
.notice.warn { border-left-color: var(--accent); background: var(--accent-soft); }
.notice code, code.token { border-radius: 6px; border-color: var(--line); font-size: 12.5px; }

/* Folds ("more detail" toggles). */
details.fold { border-radius: 12px; border-color: var(--line); background: var(--card); }
details.fold > summary { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 11px 16px; }
details.fold > summary::before { color: var(--accent); }
details.fold summary .n { font-size: 12px; color: var(--muted); }

/* Tables and pills. */
table { border: 1px solid var(--line); background: var(--card); }
th { color: var(--muted); background: var(--card-alt); }
td code { font-size: 12px; }
.badge, .status, .pill, .chip { border-radius: 999px; }
.capgroup { border-radius: var(--radius); }
.seg { border-radius: 999px; font-size: 13px; font-weight: 600; }
.seg.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lede { color: var(--ink-2); }


/* Leftover August green used as a brand accent (not as "done"). */
details.explain { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
details.explain > summary { color: var(--accent-deep); }
.approve { border-left-color: var(--accent); border-radius: var(--radius); }
.askform input[type=text]:focus { border-color: var(--ink); }
.wtype { font-family: var(--sans); letter-spacing: 0; border-radius: 999px; font-weight: 650; font-size: 12px; border-color: var(--ink-2); color: var(--ink-2); }
.badge.solid { background: var(--ink); border-color: var(--ink); }
.qrow { border-left-color: var(--ink); }
.qrow.tone-warn { border-left-color: var(--accent); background: var(--accent-soft); }
.bars .fill { background: var(--accent); border-radius: 3px; }
.caprow { border-radius: 10px; }

/* -------------------------------------------------------------- sign-in
   Split screen: graphite brand side with a safety stripe, form on paper.
   Phones stack it: a short dark header, then the form. */
body.authpage { background: var(--paper); }
.auth { display: grid; grid-template-columns: minmax(340px, 44%) 1fr; min-height: 100vh; padding: 0; align-items: stretch; justify-content: stretch; }
.auth-side {
  position: relative; overflow: hidden;
  background: var(--band); color: var(--band-ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px clamp(32px, 5vw, 80px) 96px;
  position: sticky; top: 0; height: 100vh;
}
.auth-side::before {
  content: ""; position: absolute; right: -160px; top: -160px; width: 420px; height: 420px;
  border-radius: 50%; border: 56px solid rgba(255, 255, 255, .035);
}
.auth-logo { width: clamp(150px, 15vw, 220px); height: auto; filter: invert(1); opacity: .96; position: relative; }
.auth-mark { margin-top: 34px; position: relative; }
.auth-hub {
  display: block; font-family: var(--display); font-stretch: 122%; font-weight: 800;
  font-size: clamp(56px, 6.4vw, 96px); line-height: .92; letter-spacing: -.03em; color: #fff;
}
.auth-hub::after { content: "."; color: var(--accent); }
.auth-co { display: block; margin-top: 12px; color: var(--band-muted); font-size: 15px; }
.auth-stripe {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 18px, var(--band) 18px 36px);
}
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth .box {
  width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line);
  border-top: 1px solid var(--line); border-radius: 18px; padding: 36px 34px 30px;
  box-shadow: 0 1px 2px rgba(20, 22, 24, .04), 0 18px 40px -22px rgba(20, 22, 24, .22);
}
.auth .box h1 { font-size: 30px; margin: 0 0 6px; }
.auth .box .sub {
  font-family: var(--sans); font-size: 14.5px; letter-spacing: 0; text-transform: none;
  color: var(--muted); margin-bottom: 24px;
}
.auth .box label.field { margin-bottom: 16px; }
.auth .box input { width: 100%; padding: 12px 13px; font-size: 15px; }
.auth .box button { width: 100%; padding: 13px; font-size: 15px; margin-top: 4px; background: var(--accent); border-color: var(--accent); color: #fff; }
.auth .box button:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.auth .foot {
  border: 0; display: block; margin-top: 22px; padding: 0; text-align: center;
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.auth .foot a { color: var(--accent-deep); font-weight: 600; }
.authy-hint { background: var(--accent-soft); border: 1px solid #ffd2b5; border-left: 4px solid var(--accent); border-radius: 12px; }
.authy-step { font-weight: 700; }
.auth .lede { font-size: 14.5px; }
.auth .qr { font-family: var(--sans); font-size: 13px; color: var(--ink-2); }
.auth img[alt="Two-factor setup QR code"] { display: block; margin: 4px auto 12px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-side { position: relative; height: auto; flex-direction: row; align-items: center; gap: 16px; padding: 22px 20px 34px; justify-content: flex-start; }
  .auth-side::before { display: none; }
  .auth-logo { width: 84px; }
  .auth-mark { margin: 0; }
  .auth-hub { font-size: 38px; }
  .auth-co { font-size: 13px; margin-top: 4px; }
  .auth-stripe { height: 12px; }
  .auth-main { align-items: flex-start; padding: 22px 14px 40px; }
  .auth .box { padding: 26px 20px 22px; border-radius: 16px; }
  .auth .box h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Phones: the sidebar is the scrolling strip hub.css already makes it; here it
   loses its sticky full height and the group labels. */
@media (max-width: 860px) {
  .sidebar { position: static; height: auto; }
  .brand { padding: 10px 14px 6px; }
  .brand img { height: 30px; }
  .nav { padding: 0 26px 7px 10px; }
  .nav .grp { display: none; }
  .nav a { white-space: nowrap; padding: 7px 11px; }
  .nav svg { display: none; }
  .sidebar .foot { display: flex; padding: 8px 14px; border-top: 1px solid var(--line); }
  .content { padding: 18px 14px 48px; }
  .home .chips { margin-left: 0; }
  .todo { grid-template-columns: 36px 1fr; }
  .todo .ic { width: 36px; height: 36px; }
  .todo .act { grid-column: 2; }
  .lane, .axis { grid-template-columns: 64px 1fr 40px; gap: 8px; }
  .panel { padding: 16px 14px; }
  .pocols { grid-template-columns: 1fr; }
  .pohead .search { margin-left: 0; min-width: 0; width: 100%; }
  .qrow { padding: 11px 12px; }
  .band .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band .stat { padding: 12px; }
}
