/* app.css: the signed-in screens (Results, Tracker, Roster, Rulebook, Settings, the company page, Admin), the example account
   and a shared role, loaded after site.css (2 Nov 2026). Each rule keeps the order it had in site.css. */

.nav .who { color: var(--color-neutral-700); font-size: 13px; }
.grid-2 { grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); }
.grid-2 > * { min-width: 0; }
@media (max-width: 900px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.table th { text-align: start; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-700); padding: var(--space-2); border-bottom: 1px solid var(--color-divider); }
.table td { padding: var(--space-2); border-bottom: 1px solid var(--color-divider); vertical-align: top; overflow-wrap: anywhere; }
.lx-grid { display: grid; grid-template-columns: 1.2fr 1.4fr .8fr; gap: var(--space-4); padding: var(--space-2) 0; }
@media (max-width: 900px) { .lx-grid { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: var(--space-4); border-bottom: 1px solid var(--color-divider); margin: var(--space-3) 0; }
.tab { flex: none; white-space: nowrap; }
@media (max-width: 900px) { .tabs { flex-wrap: wrap; column-gap: 18px; row-gap: 0; } }   /* every tab in sight on a phone; no hidden scroll */
.tab { padding: 8px 0; font-size: 15px; color: var(--color-neutral-700); border-bottom: 2px solid transparent; text-decoration: none; }
.tab[aria-selected="true"] { color: var(--color-accent); border-bottom-color: var(--color-accent); font-weight: 600; }
.empty { padding: var(--space-4); background: var(--color-surface); border-radius: var(--radius-md); color: var(--color-neutral-700); font-size: 14px; }
dialog.dlg { border: 1px solid var(--color-divider); border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text); padding: 20px 22px; width: min(460px, 92vw); box-shadow: var(--shadow-md); }
dialog.dlg::backdrop { background: rgba(31,35,40,.45); }

/* ====================================================================== app header (Results design) */
.nav-app { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--space-4); border-bottom: 1px solid var(--color-divider); gap: 12px; }
.nav-app .nav-brand { margin-inline-end: 0; font-size: 18px; }
.nav-app .nav-brand .mark { width: 22px; height: 22px; }
.nav-app .menu { margin-inline-start: 0; } .nav-app .who { font-size: 14px; }
@media (max-width: 900px) {
  .nav-app { grid-template-columns: 1fr auto; padding-bottom: 0; }
  .nav-app .nav-brand { grid-row: 1; grid-column: 1; }
}

/* ====================================================================== Results screen */
.res .muted { color: var(--color-neutral-700); }
.res a, .res-inner a { color: inherit; text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 3px; }
.res .k, .res-inner .k { font-family: var(--font-label); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-700); }
.res-inner .k.lbl { margin-top: 16px; } .res-inner .k + .role { margin-top: 4px; font-weight: 600; font-size: 15px; } .res-inner .v { margin-top: 4px; font-size: 14px; }
.res-inner .pay, .res .pay { font-family: var(--font-num); font-size: 13.5px; }
.res-running { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: 4px; padding: 16px 18px 18px; }
.res-running .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.res-running .title { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.res-running .chip-run { background: rgba(31,35,40,.08); color: var(--color-neutral-700); padding: 8px 14px; border-radius: 4px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.res-running .bar { height: 3px; background: var(--color-divider); margin-top: 14px; border-radius: 0; }
.res-running .bar-fill { background: var(--color-text); border-radius: 0; }
.res-running .stage { margin-top: 10px; font-family: var(--font-num); font-size: 12px; color: var(--color-neutral-700); }
.res-strip { padding: 10px 0; border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); font-size: 13.5px; margin-top: 8px; }
.res-strip summary { list-style: none; cursor: pointer; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.res-strip summary::-webkit-details-marker { display: none; }
.res-strip summary .k { color: var(--color-text); } .res-strip summary .k::before { content: '▸ '; } .res-strip[open] summary .k::before { content: '▾ '; }
.res-strip .lnk { text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 3px; }
.res-strip .toggle-open { display: none; } .res-strip[open] .toggle-open { display: inline; } .res-strip[open] .toggle-closed { display: none; }
.res-strip p { margin: 10px 0 0; line-height: 1.5; color: var(--color-neutral-700); max-width: 900px; }
.res-strip .links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.res-empty { padding: 14px 0 16px; border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; line-height: 1.5; }
.res-empty .k { color: var(--color-text); white-space: nowrap; }
.res-cards { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.15fr; padding: 36px 0 44px; }
.res-cards > div { padding: 0 36px; border-inline-start: 1px solid var(--color-divider); min-width: 0; }
.res-cards > div:first-child { padding-inline-start: 0; border-inline-start: 0; } .res-cards > div:last-child { padding-inline-end: 0; }
.res-cards .sub { margin-top: 18px; font-size: 14px; }
.res-ledger { margin-top: 14px; }
.res-ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--color-divider); font-size: 14px; }
.res-ledger > div:last-child { border-bottom: 0; } .res-ledger > div.hi { font-weight: 600; }
.res-ledger b { font-family: var(--font-num); font-size: 18px; font-weight: 400; font-variant-numeric: tabular-nums; }
.res-filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 20px 0; font-size: 14px; }
.res-filters .input { background: var(--color-surface); border-color: rgba(31,35,40,.2); min-height: 38px; padding: 8px 12px; }
.res-filters .input.wide { min-width: 260px; }
.res-filters .hint { color: var(--color-neutral-700); margin-inline-start: 4px; }
.hint-phone, .only-phone { display: none; }
.res-intro { margin: -6px 0 20px; font-size: 13.5px; line-height: 1.5; color: var(--color-neutral-700); max-width: 1000px; }
.res-table { --cols: 56px minmax(0, 1fr) 150px 140px 120px 100px 80px; }
.res-table.thrown { --cols: minmax(0, 1.1fr) 140px 110px 200px minmax(0, 1fr) 90px 70px; }
.res-hd, .res-row { display: grid; grid-template-columns: var(--cols); gap: 20px; align-items: center; }
.res-hd { padding: 0 0 10px; border-bottom: 1px solid var(--color-divider); font-family: var(--font-label); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-700); line-height: 1.4; }
.res-row { padding: 16px 0; border-bottom: 1px solid var(--color-divider); font-size: 14.5px; cursor: pointer; min-width: 0; }
.res-row > * { min-width: 0; overflow-wrap: anywhere; }
.res-row:hover { background: rgba(31,35,40,.03); }
.res-row .fitn { font-family: var(--font-num); font-size: 26px; line-height: 1; } .res-row .fitn.hi { color: var(--color-accent); }
.res-row .co, .res-inner .co { font-family: var(--font-label); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-neutral-700); }
.res-row .role { font-weight: 600; font-size: 15px; margin-top: 3px; line-height: 1.3; }
.res-row .would { font-family: var(--font-num); font-size: 22px; line-height: 1; }
.res-row .c-run { font-family: var(--font-num); font-size: 13px; color: var(--color-neutral-700); }
.res-row .c-line { line-height: 1.45; }
.res-row form { margin: 0; }
.res-row .c-req { min-width: 0; }
.chip.ok { background: rgba(30,127,79,.1); color: var(--color-ok-ink); } .chip.soft { background: rgba(183,121,31,.12); color: var(--color-warn-ink); }
.chip.no { background: rgba(180,35,53,.1); color: var(--color-accent-2); } .chip.neutral { background: rgba(31,35,40,.06); color: var(--color-neutral-700); }
.btn-outline { display: inline-block; border: 1px solid var(--rule-strong); border-radius: 4px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; background: transparent; color: inherit; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn-outline:hover { background: rgba(31,35,40,.05); }
.tracking { display: inline-block; background: rgba(31,35,40,.06); border-radius: 4px; padding: 7px 12px; font-size: 13px; color: var(--color-neutral-700); white-space: nowrap; }
.res-lx { display: none; }
.res-lx.open { display: block; background: var(--color-surface); margin: 0 -24px; padding: 0 24px; border-bottom: 1px solid var(--rule-strong); }
.res-row[aria-expanded="true"] { background: var(--color-surface); margin: 0 -24px; padding-inline-start: 24px; padding-inline-end: 24px; border-top: 1px solid var(--rule-strong); border-bottom: 0; cursor: pointer; }
.res-inner { display: grid; grid-template-columns: 250px minmax(0, 1fr) 240px; gap: 48px; padding: 16px 0; }
.res-lx .res-inner { padding: 24px 0 36px 76px; border-top: 1px solid var(--color-divider); }
.res-inner.thrown, .res-lx .res-inner.thrown { grid-template-columns: minmax(0, 1fr) 280px 340px; padding-inline-start: 0; }
.res-inner > div { min-width: 0; }
.res-inner p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; }
.res-inner .muted { color: var(--color-neutral-700); }
.res-score { display: flex; align-items: baseline; gap: 10px; }
.res-score b { font-family: var(--font-num); font-size: 48px; line-height: 1; font-weight: 300; letter-spacing: -.03em; } .res-score b.hi { color: var(--color-accent); }
.res-score span { font-size: 16px; }
.res-meter { margin-top: 14px; }
.res-meter .lab { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.res-meter .lab span { color: var(--color-neutral-700); } .res-meter .lab b { font-family: var(--font-num); font-weight: 600; }
.res-meter .bar { height: 3px; background: var(--color-divider); margin-top: 6px; }
.res-meter .bar i { display: block; height: 3px; background: var(--color-accent); }
.res-textbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: inherit; text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 3px; cursor: pointer; }
.res-actions { display: flex; gap: 18px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.res-feedback { border-inline-start: 2px solid var(--color-text); padding-inline-start: 24px; }
.res-feedback .k { color: var(--color-text); }
.res-feedback .input { margin-top: 10px; background: var(--color-bg); border: 1px solid var(--rule-strong); padding: 13px 14px; font-size: 15px; min-height: 0; }
.btn-ink { background: var(--color-text); color: var(--color-bg); border-radius: 4px; padding: 11px 18px; font: inherit; font-weight: 600; font-size: 14px; border: 0; cursor: pointer; }
.btn-ink:disabled { opacity: .45; cursor: not-allowed; }
.res .pager { padding: 4px 0 12px; }
.res .pager .pg { text-decoration: none; }
.res .empty { margin-top: 12px; }
@media (max-width: 900px) {
  .res-cards { grid-template-columns: 1fr 1fr; padding: 28px 0 8px; row-gap: 24px; }
  .res-cards > div { padding: 0; border-inline-start: 0; }
  .res-cards > div:first-child, .res-cards > div:last-child { grid-column: 1 / -1; }
  .res-cards > div:nth-child(2) { padding-inline-end: 20px; } .res-cards > div:nth-child(3) { padding-inline-start: 20px; border-inline-start: 1px solid var(--color-divider); }
  .res-cards > div:last-child { border-top: 1px solid var(--color-divider); padding-top: 20px; }
  .res-filters { gap: 8px; padding: 16px 0 6px; } .res-filters .input.wide { min-width: 0; } .res-filters .hint { flex-basis: 100%; margin: 6px 0 0; }
  .hint-desktop { display: none; } .hint-phone { display: inline; } .only-phone { display: block; }
  .res-hd { display: none; }
  .res-row, .res-table.thrown .res-row { grid-template-columns: 40px auto minmax(0, 1fr) auto; grid-template-areas: "fit main main main" "fit meta meta meta" "fit req track open"; gap: 0 12px; align-items: center; }
  .res-table.thrown .res-row { grid-template-areas: "main main main main" "meta meta meta meta" "why why why why" "line line line line" "would would run run"; grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .res-row .c-fit { grid-area: fit; align-self: start; } .res-row .c-main { grid-area: main; } .res-row .c-meta { grid-area: meta; margin-top: 6px; font-size: 13.5px; color: var(--color-neutral-700); }
  .res-row .c-loc, .res-row .c-pay { display: none; }
  .res-row .c-req { grid-area: req; margin-top: 12px; } .res-row .c-track { grid-area: track; margin-top: 12px; } .res-row .c-open { grid-area: open; margin-top: 12px; justify-self: end; }
  .res-row .c-req .chip { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
  .res-row .c-why { grid-area: why; margin-top: 10px; } .res-row .c-why::before { content: 'Why · '; color: var(--color-neutral-700); }
  .res-row .c-line { grid-area: line; margin-top: 6px; } .res-row .c-would { grid-area: would; margin-top: 10px; font-size: 18px; } .res-row .c-would::before { content: 'Would have scored '; font-family: var(--font-body); font-size: 13.5px; color: var(--color-neutral-700); }
  .res-row .c-run { grid-area: run; margin-top: 10px; justify-self: end; }
  .res-lx.open, .res-row[aria-expanded="true"] { margin: 0 -20px; padding-inline-start: 20px; padding-inline-end: 20px; }
  .res-inner, .res-lx .res-inner, .res-inner.thrown, .res-lx .res-inner.thrown { grid-template-columns: 1fr; gap: 22px; padding: 20px 0 24px; }
  .res-inner .col-right { order: -1; }
  .res-inner .col-left { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; } .res-inner .col-left > .k:first-child, .res-inner .col-left > .role { grid-column: 1 / -1; }
  .res-feedback { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--color-divider); padding-top: 16px; }
}

/* ====================================================================== Pro: the people, and the plan page */
.res-people { border-top: 1px solid var(--color-divider); margin-top: 18px; padding-top: 16px; }

/* ====================================================================== roster table: one line per company, cards on a phone */
.table .one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-roster td { padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 900px) {
  .table-roster thead { display: none; }
  .table-roster tr.pr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--color-divider); }
  .table-roster tr.pr td { display: block; border: 0; padding: 0; overflow-wrap: normal; }
  .table-roster tr.pr td:last-of-type:not(.opt), .table-roster tr.pr td:nth-child(4) { text-align: end; }
  .table-roster tr.pr td.opt { display: none; }
  .table-roster tr.lx td { display: block; }
}

/* ====================================================================== Needs you: reasons, in groups */
.ny-group { margin-top: 14px; } .ny-group:first-of-type { margin-top: 6px; }
.ny-group p { margin: 4px 0 8px; font-size: 13.5px; line-height: 1.45; }

/* ====================================================================== read the waiting now */
.res-more { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* admin: the numbers */
.numbers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin-top: 18px; }
.numbers-grid > * { min-width: 0; }
@media (max-width: 900px) { .numbers-grid { grid-template-columns: 1fr; } }

/* ====================================================================== scan polish: switches, sign-in steps, the questionnaire index, grouped thrown-out rows */
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .knob { width: 36px; height: 20px; border-radius: 10px; background: var(--color-divider); position: relative; transition: background .2s ease; flex: none; }
.switch .knob::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s ease; }
.switch input:checked + .knob { background: var(--color-accent); }
.switch input:checked + .knob::after { transform: translateX(16px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.switch .sw-text::after { content: 'Off'; color: var(--color-neutral-700); }
.switch input:checked ~ .sw-text::after { content: 'On'; color: var(--color-text); }

/* ====================================================================== monograms, keys, the ticker */
.mono-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; flex: none; font-family: var(--font-label); font-weight: 600; font-size: 11px; letter-spacing: .04em; background: hsl(var(--h) 45% 91%); color: hsl(var(--h) 45% 30%); }
.mono-mark.small { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; margin-inline-end: 8px; vertical-align: middle; }
:root[data-theme="dark"] .mono-mark { background: hsl(var(--h) 30% 22%); color: hsl(var(--h) 55% 78%); }
.res-row .c-main, .table-tracker .c-main { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.c-text { min-width: 0; }
.pr.kb-focus { box-shadow: inset 3px 0 0 var(--color-accent); }
.kb-hint { margin-inline-start: auto; font-family: var(--font-num); font-size: 12px; color: var(--color-neutral-700); cursor: help; }
/* the panel while a search runs: the newest line first, the older ones quieter */
.sweep-ticker { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--fw-panel-line); display: grid; align-content: start; gap: 4px; min-height: 9.6em; font: 400 12px/1.45 var(--fw-mono); color: var(--fw-panel-muted); }
.sweep-ticker li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sweep-ticker li:first-child { color: var(--fw-panel-ink); }
.mono-mark.big { width: 48px; height: 48px; border-radius: 12px; font-size: 16px; }
.co-head { display: flex; gap: 18px; align-items: flex-start; margin-top: 8px; }
.co-head h1 { margin: 0; font-size: 34px; line-height: 1.1; } .co-head > a { margin-inline-start: auto; white-space: nowrap; }
.co-stats { display: flex; gap: 40px; margin-top: 22px; padding: 18px 0; border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.co-stats b { display: block; font-family: var(--font-num); font-weight: 300; font-size: 34px; line-height: 1; letter-spacing: -.02em; } .co-stats span { display: block; margin-top: 4px; font-size: 13px; color: var(--color-neutral-700); }
.co-list { margin: 8px 0 0; padding-inline-start: 18px; font-size: 14px; line-height: 1.5; } .co-list li { margin-bottom: 6px; }
@media (max-width: 700px) { .co-head { flex-wrap: wrap; } .co-head h1 { font-size: 26px; } .co-stats { gap: 24px; } }

/* ---------- Results: the search drawn (site.css, 25 Sep 2026) */
.sparks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 14px; }
.spark-card { min-width: 0; }
.spark-card .lab { font-size: 13px; color: var(--color-neutral-700); }
.spark-card b { display: block; font-family: var(--font-num); font-size: 26px; font-weight: 300; line-height: 1.1; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.spark { display: block; width: 100%; height: 34px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--color-accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.res-row .c-fit { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
@media (max-width: 900px) {
  .sparks { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Tracker: the board, the timeline, the view switch (25 Sep 2026) */
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; align-items: start; }
.board-col { background: var(--color-surface); border-radius: 8px; padding: 10px 10px 12px; min-height: 220px; transition: box-shadow .2s ease; }
.board-col > header { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 8px; font-family: var(--font-label); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-700); }
.col-empty { padding: 26px 8px; text-align: center; font-size: 13px; color: var(--color-neutral-700); border: 1px dashed var(--color-divider); border-radius: 6px; }
.card-note { margin-top: 8px; }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .board { grid-template-columns: minmax(0, 1fr); } .board-col { min-height: 0; } }

/* ---------- Roster: the mosaic and the systems (25 Sep 2026) */
@media (max-width: 900px) { .roster-viz { grid-template-columns: minmax(0, 1fr); gap: 20px; } .tile { width: 24px; height: 24px; font-size: 8.5px; } }

/* ---------- Rulebook: the order of application, the versions (25 Sep 2026) */
.clause .kc { display: grid; gap: 4px; justify-items: start; }
.impact { font-family: var(--font-num); font-size: 11px; font-weight: 500; color: var(--color-accent-800, #083f51); background: rgba(15,110,140,.12); padding: 1px 6px; border-radius: 3px; letter-spacing: 0; text-transform: none; cursor: help; }
:root[data-theme="dark"] .impact { color: #9ad2ea; }

/* ---------- Admin on a phone: one card per account, the day table in small type (25 Sep 2026) */
@media (max-width: 700px) {
  .table-admin thead { display: none; }
  .table-admin tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--color-divider); }
  .table-admin td { display: block; border: 0; padding: 0; min-width: 0; overflow-wrap: anywhere; }
  .table-admin td[data-l]::before { content: attr(data-l); display: block; font-family: var(--font-label); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-700); margin-bottom: 2px; }
  .table-admin td:first-child { grid-column: 1 / -1; font-weight: 600; font-size: 15px; }
  .table-admin td:last-child { grid-column: 1 / -1; }
  .table-admin td .row { flex-wrap: wrap; gap: 6px; }
  .table-days { font-size: 12px; } .table-days td, .table-days th { padding: 6px 4px; }
}
/* translated labels in narrow places wrap rather than spill */
.table th { overflow-wrap: anywhere; }
/* Results on a phone: one line of numbers, the full panel on request; the kept roles come first */
/* the tracker board on a phone: a column with nothing in it is just its heading */
@media (max-width: 700px) {
  .board-col.empty { min-height: 0; padding-bottom: 2px; }
  .board-col.empty .col-body { display: none; }
}

/* ---------- the Rulebook, second pass (27 Sep 2026): the path's steps switch between the parts; a rule is one line */
.rb-part { margin-bottom: 26px; }
.rb-part[hidden], .rule[hidden] { display: none; }
.rules { border-top: 1px solid var(--color-divider); }
.rule { border-bottom: 1px solid var(--color-divider); }
.rule > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 12px; gap: 12px; align-items: baseline; padding: 11px 6px; border-radius: 4px; }
.rule > summary::-webkit-details-marker { display: none; }
.rule > summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--color-neutral-700); border-bottom: 1.5px solid var(--color-neutral-700); transform: translateY(-2px) rotate(-45deg); justify-self: end; }
.rule > summary:hover { background: rgba(32,30,29,.035); }
:root[data-theme="dark"] .rule > summary:hover { background: rgba(232,232,228,.05); }
.rule .rid { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-accent); }   /* the text face: in the mono one, O1 reads as 01 */
.rule .rtext { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.45; }
.rule-body { display: grid; gap: 10px; padding: 0 6px 16px; padding-inline-start: 58px; }
.rule-body .from { font-size: 12.5px; color: var(--color-neutral-700); }
.rule-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.rule-actions > form { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.rule-edit > summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--color-accent); padding: 5px 0; }
.rule-edit > summary::-webkit-details-marker { display: none; }
.rule-edit form, .rb-add form { display: grid; gap: 6px; margin-top: 8px; }
.rb-add { margin-top: 12px; }
@media (max-width: 600px) {
  .rule > summary { grid-template-columns: 32px minmax(0, 1fr) auto 10px; gap: 8px; padding: 10px 2px; }
  .rule-body { padding-inline-start: 40px; }
}

/* ---------- the Rulebook (27 Sep 2026): a rulebook written as a document reads as rules. The bold lead is the rule, the
   rest of its paragraph follows in grey, its list and prose open below; `names` are set in code type */
.rule .rlead { font-weight: 600; }
.rule code { font-family: var(--font-num); font-size: .85em; padding: 1px .35em; border-radius: 4px; background: var(--color-neutral-200); overflow-wrap: anywhere; }
.rule-more { display: grid; gap: 8px; font-size: 14px; line-height: 1.55; max-width: 72ch; }
.rule-more p, .rule-more ul { margin: 0; }
.rule-more ul { padding-inline-start: 20px; display: grid; gap: 4px; }
.rule-more li::marker { color: var(--color-neutral-600); }

/* ---------- page, heading, text */
main.fw-page { max-width: 1200px; padding: var(--fw-page-pad); color: var(--fw-ink); }
.fw-h1 { margin: 0; font: 400 var(--fw-h1)/1.1 var(--fw-serif); letter-spacing: -.01em; color: var(--fw-ink); text-wrap: balance; }
.fw-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.fw-head__main { flex: 1 1 420px; min-width: 0; }
.fw-head__aside { flex: 0 1 460px; min-width: 0; }
.fw-runline, .fw-lede { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--fw-muted); }
.fw-lede { max-width: 720px; color: var(--fw-ink-2); text-wrap: pretty; }
.fw-runline b { color: var(--fw-ink); font-weight: 600; }
.fw-runline a { color: inherit; text-decoration: underline; text-decoration-color: var(--fw-line-strong); text-underline-offset: 3px; }
.fw-runline a:hover { color: var(--fw-ink); }
.fw-num { font-family: var(--fw-mono); font-variant-numeric: tabular-nums; color: var(--fw-ink); }
.fw-muted { color: var(--fw-muted); }
.fw-small { font-size: 13px; line-height: 1.5; }
.fw-inline { display: inline; margin: 0; }
.fw-run { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; align-items: center; }
.fw-run form { margin: 0; }
.fw-run p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--fw-muted); }
.fw-run .res-more, .fw-run .row { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
/* the top of Results: the news as a headline, with what comes next beside it */
.fw-eyebrow { margin: 0 0 8px; font: 400 12px/1.5 var(--fw-mono); color: var(--fw-muted); }
.fw-eyebrow::first-letter { text-transform: uppercase; }
.res .fw-eyebrow a, .res .fw-run__next a { color: inherit; text-decoration: underline; text-decoration-color: var(--fw-line-strong); text-underline-offset: 3px; }
.res .fw-eyebrow a:hover, .res .fw-run__next a:hover { color: var(--fw-ink); }
.fw-news { font-size: var(--fw-news); line-height: 1.14; }
.res .fw-news a { color: inherit; text-decoration: underline; text-decoration-color: var(--fw-line-strong); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.res .fw-news a:hover { text-decoration-color: currentColor; }
.res .fw-news .fw-news__new { color: var(--fw-teal); text-decoration-color: currentColor; }
.res .fw-news .fw-news__wait { color: var(--fw-ink-2); }
.fw-head__aside--go { flex: 0 1 auto; max-width: 460px; margin-inline-start: auto; }
.fw-btn--busy { background: var(--fw-sunken); color: var(--fw-ink-2); cursor: default; }
.fw-run--go { display: flex; flex-direction: column; align-items: flex-end; gap: 0; text-align: end; }
.fw-run__now { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.fw-run--go .fw-run__next, .fw-run--go .fw-run__failed { margin-top: 8px; font-size: 12px; }
.fw-run--go .fw-run__failed { color: var(--fw-ink-2); }
.fw-run--go .fw-run__wait { margin-top: 3px; font-size: 12px; color: var(--fw-ink-2); }
.fw-run__wait i { display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 50%; background: var(--fw-amber); vertical-align: 1px; }
.fw-run__reading { display: flex; flex-direction: column; align-items: flex-end; }
.fw-run__wait--live .spinner { width: 10px; height: 10px; margin-inline-end: 6px; vertical-align: -1px; }
.fw-run--go .fw-run__wait--stalled { color: var(--fw-ink); }
.fw-run--go .res-more, .fw-run--go .row { justify-content: flex-end; margin-top: 10px; }

/* ---------- the instrument panel: its label, its numbers, and the bars and dots under them */
.fw-panel { margin: 24px 0 0; background: var(--fw-panel); border: 1px solid var(--fw-panel-edge); border-radius: 12px; padding: var(--fw-panel-pad); color: var(--fw-panel-ink); box-shadow: var(--fw-panel-shadow); }
.fw-panel a { color: inherit; }
.fw-panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.fw-panel__label { margin: 0; font: 600 11px/1.4 var(--fw-sans); letter-spacing: var(--fw-caps-ls); text-transform: uppercase; color: var(--fw-panel-muted); }
.fw-panel__aside { font: 500 12px/1.4 var(--fw-mono); color: var(--fw-panel-teal); }
.fw-panel__aside--plain { font-family: var(--fw-sans); font-weight: 400; color: var(--fw-panel-muted); }
.fw-panel__note { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--fw-panel-muted); }
.fw-panel__more { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--fw-panel-teal) !important; text-decoration: none; }
.fw-panel__more:hover { text-decoration: underline; }
.fw-stats { display: grid; grid-template-columns: var(--fw-stats); gap: 14px 20px; margin: 14px 0 0; }
.fw-stat { min-width: 0; border-top: 1px solid var(--fw-panel-line); padding-top: 12px; }
.fw-stat b { display: block; font: 400 var(--fw-big)/1 var(--fw-mono); font-variant-numeric: tabular-nums; color: var(--fw-panel-ink); }
.fw-stat span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.35; color: var(--fw-panel-muted); }
.fw-stat span a { color: var(--fw-panel-ink); }
.fw-stat--kept { border-top: 2px solid var(--fw-panel-teal); padding-top: 11px; }
.fw-stat--kept b { color: var(--fw-panel-teal); }
.fw-stat--kept span { color: var(--fw-panel-ink); font-weight: 500; }
.fw-stat--none b { color: var(--fw-panel-muted); }
.fw-stat--phone-only { display: none; }
.fw-split { display: grid; grid-template-columns: var(--fw-split); gap: 28px 48px; margin: 28px 0 0; }
.fw-split > * { min-width: 0; }
.fw-hist { display: flex; gap: var(--fw-histgap); align-items: stretch; margin: 14px 0 0; }
.fw-hist__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; padding: 8px 4px 6px; border-radius: 4px; min-height: var(--fw-histh); }
.fw-hist__col--kept { background: var(--fw-panel-band); }
.fw-hist__dots { display: flex; flex-wrap: wrap-reverse; gap: var(--fw-dotgap); width: 100%; max-width: var(--fw-dotbox); align-content: flex-start; }
.fw-dot { display: block; flex: none; width: var(--fw-dot); height: var(--fw-dot); border-radius: 50%; box-sizing: border-box; }
.fw-dot--kept { background: var(--fw-panel-teal); }
.fw-dot--out { border: 1.5px solid var(--fw-panel-ring); }
.fw-hist__n { font: 12px/1 var(--fw-mono); color: var(--fw-panel-muted); }
.fw-hist__col--kept .fw-hist__n { color: var(--fw-panel-ink); }
.fw-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; font-size: 12px; line-height: 1.4; color: var(--fw-panel-muted); }
.fw-legend > span { display: flex; align-items: center; gap: 7px; }
.fw-legend .fw-dot { width: 8px; height: 8px; }
.fw-legend__band { display: block; flex: none; width: 14px; height: 8px; border-radius: 2px; background: var(--fw-panel-band); box-shadow: inset 0 0 0 1px rgba(95,179,217,.28); }
.fw-reasons__group { margin: 14px 0 4px; font-size: 12px; color: var(--fw-panel-muted); }
.fw-reason + .fw-reasons__group { margin-top: 16px; }
.fw-reasons__group b { font: 400 12px var(--fw-mono); color: var(--fw-panel-ink); }
.fw-reason, .fw-bars__row { display: grid; grid-template-columns: minmax(0, 1fr) var(--fw-reason-bar) 48px; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--fw-panel-line); font-size: 13px; line-height: 1.35; color: var(--fw-panel-ink); text-decoration: none; }
a.fw-reason:hover > span:first-child, a.fw-bars__row:hover > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.fw-reason__bar { display: block; height: 5px; background: var(--fw-panel-line); border-radius: 1px; overflow: hidden; }
.fw-reason__bar i { display: block; height: 100%; background: var(--fw-panel-red); }
.fw-reason--soft .fw-reason__bar i { background: var(--fw-panel-red-soft); }
.fw-bars__row .fw-reason__bar i { background: var(--fw-panel-ink); }
.fw-reason b, .fw-bars__row b { font: 400 13px var(--fw-mono); text-align: end; font-variant-numeric: tabular-nums; }

/* ---------- tabs, the Filter popover */
.fw-tabs { display: flex; align-items: flex-end; gap: 12px 28px; margin: 36px 0 0; border-bottom: 1px solid var(--fw-line); font-size: 15px; flex-wrap: wrap; }
.fw-tab { padding: 0 0 12px; color: var(--fw-muted); text-decoration: none; white-space: nowrap; }
.fw-tab:hover { color: var(--fw-ink); }
.fw-tab[aria-selected="true"] { color: var(--fw-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--fw-ink); }
.fw-tab__n { font-family: var(--fw-mono); font-weight: 400; color: var(--fw-muted); }
.fw-filter { position: relative; margin-inline-start: auto; padding-bottom: 10px; font-size: 13px; }
.fw-filter > summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--fw-teal); }
.fw-filter > summary::-webkit-details-marker { display: none; }
.fw-filter .res-filters { position: absolute; z-index: 20; top: calc(100% + 2px); inset-inline-end: 0; width: max-content; max-width: min(720px, calc(100vw - 32px)); padding: 14px; gap: 10px; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: 10px; box-shadow: 0 12px 28px -12px rgba(0,0,0,.28); }
.fw-filter .res-filters .input.wide { min-width: 220px; }
.fw-chip .fw-mark--k { width: 6px; height: 6px; }
.fw-chip--x, .fw-chip--out { background: var(--fw-red-tint); color: var(--fw-red); }
.fw-chip--n { color: var(--fw-ink-2); }
.fw-chip--new { background: var(--fw-teal-tint); color: var(--fw-teal); margin-inline-start: 8px; font-size: 11px; padding: 2px 7px; }
.fw-card__new { margin-top: 3px; color: var(--fw-ink-2); font-size: 13px; line-height: 1.4; }
.fw-past { margin: 24px 0 0; padding: 20px 24px 8px; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: 12px; }
.fw-past__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 10px; }
.fw-past__k { margin: 0 0 4px; font: 600 11px/1.4 var(--fw-sans); letter-spacing: var(--fw-caps-ls); text-transform: uppercase; color: var(--fw-teal); }
.fw-past__h { margin: 0; font: 400 24px/1.2 var(--fw-serif); letter-spacing: -.01em; color: var(--fw-ink); text-wrap: balance; }
.fw-past__all { flex: none; font-size: 13px; font-weight: 600; }
.fw-past__list { margin: 0; padding: 0; list-style: none; }
.fw-past__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--fw-line); }
.fw-past .fw-past__fit { font-size: 30px; line-height: 1; }
.fw-past__main { min-width: 0; }
.fw-past__co { font: 600 11px/1.4 var(--fw-sans); letter-spacing: var(--fw-caps-ls); text-transform: uppercase; color: var(--fw-ink-2); overflow-wrap: anywhere; }
.fw-past__line { font-size: 12.5px; line-height: 1.35; color: var(--fw-ink-2); overflow-wrap: anywhere; unicode-bidi: plaintext; }
.res .fw-past__role { font: 600 14px/1.35 var(--fw-sans); color: var(--fw-ink); text-decoration: none; }
.res .fw-past__role:hover { text-decoration: underline; text-underline-offset: 3px; }
.fw-past__why { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--fw-ink-2); unicode-bidi: plaintext; }
.fw-past__do { display: flex; align-items: center; gap: 12px; }
.fw-past__add { padding: 7px 12px; font-size: 13px; white-space: nowrap; }
.fw-past__no { font-size: 13px; white-space: nowrap; }
.fw-past__no.is-inert { opacity: .55; cursor: default; }
.fw-past__more { display: block; padding: 11px 0 12px; border-top: 1px solid var(--fw-line); font-size: 13px; }
.fw-role { scroll-margin-top: 14px; }
@media (max-width: 720px) {
  .fw-past { padding: 16px 16px 6px; }
  .fw-past__h { font-size: 21px; }
  .fw-past__row { grid-template-columns: 30px minmax(0, 1fr); align-items: start; }
  .fw-past .fw-past__fit { font-size: 26px; }
  .fw-past__do { grid-column: 2; margin-top: 6px; }
}
.fw-newco { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--fw-line, rgba(0,0,0,.08)); }
.fw-newco__line { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--fw-ink-2); }
.fw-newco__why { color: var(--fw-ink); }
.fw-panel__beyond { margin-top: 10px; }
.fw-found__note { margin: 4px 0 12px; font-size: 13px; color: var(--fw-ink-2); }
.fw-found__list { margin: 0; padding: 0; list-style: none; }
.fw-found__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--fw-line, rgba(0,0,0,.08)); }
.fw-found__main { flex: 1 1 320px; min-width: 0; }
.fw-found__line, .fw-found__role { display: block; font-size: 13px; }
.fw-found__line { color: var(--fw-ink-2); }
.fw-box form.fw-found__do { display: flex; align-items: center; gap: 10px; flex: none; }
.fw-chip--track, .fw-chip--applied { font-size: 12px; padding: 4px 9px; }
.fw-chip--applied, .fw-chip--teal { background: var(--fw-teal-tint); color: var(--fw-teal); }
.fw-chip--capped { gap: 5px; padding: 3px 7px; background: var(--fw-amber-tint); color: var(--fw-amber-ink); }
.fw-chip--capped i, .fw-capmark { display: inline-block; flex: none; width: 10px; height: 2px; margin-top: 3px; background: var(--fw-amber); box-shadow: 0 -3px 0 var(--fw-amber); }
.fw-chip--ruling { background: var(--fw-teal-tint); color: var(--fw-teal); padding: 3px 8px; font-size: 11px; white-space: normal; }
.fw-chip--ruling::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--fw-teal); }
.fw-mark--k { width: 7px; height: 7px; margin: 1.5px; transform: rotate(45deg); border: 1.5px solid var(--fw-amber); }
.fw-mark--x { background: linear-gradient(45deg, transparent 40%, var(--fw-red) 40% 60%, transparent 60%), linear-gradient(-45deg, transparent 40%, var(--fw-red) 40% 60%, transparent 60%); }
.fw-mark--n { border-radius: 50%; border: 1.5px solid var(--fw-line-strong); }
.fw-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; margin-top: 8px; }
.fw-marks__strip { display: inline-flex; align-items: center; gap: 5px; }
.fw-marks__sum { margin-inline-start: 6px; font-size: 12px; color: var(--fw-muted); }
.fw-btn--secondary { background: transparent; border-color: var(--fw-line-strong); color: var(--fw-ink); }
.fw-btn--secondary:hover { background: var(--fw-sunken); color: var(--fw-ink); }
.fw-textbtn--quiet { color: var(--fw-muted); font-weight: 500; }
.fw-segmented { display: inline-flex; border: 1px solid var(--fw-line-strong); border-radius: 6px; overflow: hidden; font: 600 13px var(--fw-sans); }
.fw-segmented a { padding: 9px 16px; color: var(--fw-muted); text-decoration: none; }
.fw-segmented a[aria-selected="true"] { background: var(--fw-ink); color: var(--fw-ground); }

/* ---------- empty states: a dashed edge, what will appear and what to do; never an illustration */
.fw-empty { display: flex; flex-direction: column; gap: 4px; border: 1px dashed var(--fw-line-strong); border-radius: 8px; padding: 16px 14px; font-size: 12px; line-height: 1.45; color: var(--fw-muted); }
.fw-empty b, .fw-empty__title { font: 500 13px/1.4 var(--fw-sans); color: var(--fw-ink-2); }
.fw-empty--block { border-radius: 10px; padding: 20px; font-size: 13px; line-height: 1.5; }
.fw-empty--block .fw-empty__title { font-size: 15px; color: var(--fw-ink); }
.fw-empty .fw-textbtn { align-self: flex-start; margin-top: 4px; }

/* ---------- Results: kept roles by band, each a card that opens where it stands */
.fw-results .res-strip { margin-top: 20px; }
/* how far this search reached: the count, the key, and the bar; the strip opens the list of what it could not read */
.fw-results .fw-reach { margin-top: 18px; padding: 13px 0 0; border-bottom: 0; }
.fw-reach summary { display: block; }
.fw-reach__line { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; font-size: 13px; line-height: 1.4; color: var(--fw-ink-2); }
.fw-reach__line b { font: 500 13px/1.4 var(--fw-mono); font-variant-numeric: tabular-nums; color: var(--fw-ink); }
.fw-reach__key { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; }
.fw-reach__sw { display: inline-block; width: 8px; height: 8px; margin-inline-end: 5px; }
.fw-reach__bar { display: flex; gap: 2px; height: 6px; margin-top: 8px; }
.fw-reach__bar i { flex: 1 1 0; min-width: 3px; }
.fw-reach[open] .fw-reach__bar { margin-bottom: 14px; }
.fw-reach--read { background: var(--fw-teal); }
.fw-reach--miss { background: var(--fw-amber); }
.fw-reach--none { background: var(--fw-line-strong); }
.fw-reach--rest { background: var(--fw-line); }
.fw-reach__bar i b { display: block; height: 100%; transition: width 1.2s linear; }
@media (prefers-reduced-motion: reduce) { .fw-reach__bar i b { transition: none; } }
.fw-results .fw-reach + .res-empty { border-top: 0; }
.fw-group { margin-top: 28px; }
.fw-group + .fw-group { margin-top: 36px; }
.fw-group__head { display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; margin: 0 0 14px; }
.fw-group__head h2 { margin: 0; font: 500 20px/1.3 var(--fw-sans); letter-spacing: 0; color: var(--fw-ink); }
.fw-group__n { font: 14px var(--fw-mono); color: var(--fw-muted); }
.fw-group__note { font-size: 13px; color: var(--fw-muted); }
.fw-group__show { display: none; margin-inline-start: auto; font-size: 14px; }
.fw-cards { display: grid; gap: 14px; grid-auto-flow: row dense; }
.fw-cards--wide { grid-template-columns: var(--fw-g2); }
.fw-cards--compact { grid-template-columns: var(--fw-g4); }
.fw-card { position: relative; height: 100%; min-width: 0; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: 10px; cursor: pointer; transition: border-color .15s ease; }
.fw-card:hover { border-color: var(--fw-line-strong); }
.fw-card:focus-visible, .fw-card.kb-focus { outline: 2px solid var(--fw-teal); outline-offset: 2px; }
.fw-card--wide { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 20px; }
.fw-card--compact { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; }
.fw-card--compact .fw-card__top { margin-top: 8px; }
.fw-card--compact .fw-card__top .fw-chip { position: absolute; top: 16px; inset-inline-end: 18px; }
.fw-card--compact .fw-card__top .fw-chip--new { position: static; }
.fw-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fw-card--wide .fw-card__body { gap: 0; }
.fw-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-width: 0; }
.fw-card__title { font: 600 14px/1.3 var(--fw-sans); color: var(--fw-ink); unicode-bidi: plaintext; overflow-wrap: anywhere; }
.fw-card--wide .fw-card__title { margin-top: 3px; font-size: 15px; }
.fw-card__loc { font-size: 12px; line-height: 1.45; color: var(--fw-ink-2); unicode-bidi: plaintext; }
.fw-card--wide .fw-card__loc { margin-top: 4px; font-size: 13px; }
.fw-card__pay { font: 12px/1.45 var(--fw-mono); color: var(--fw-ink-2); unicode-bidi: plaintext; }
.fw-card--wide .fw-card__pay { margin-top: 2px; font-size: 13px; }
.fw-card--wide .fw-marks { margin-top: 10px; }
.fw-card--wide .fw-fit { font-size: 36px; }
.fw-fit--mid { color: var(--fw-ink); }
.fw-fit--lo { color: var(--fw-muted); }
.fw-open__body .fw-label { margin: 20px 0 6px; }
.fw-open__x { position: absolute; top: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--fw-muted); cursor: pointer; }
.fw-open__x:hover { background: var(--fw-sunken); color: var(--fw-ink); }
.fw-open__x:focus-visible { outline: 2px solid var(--fw-teal); outline-offset: 0; }
.fw-open--closable .fw-open__side { padding-top: 28px; }
.fw-open__foot { display: flex; justify-content: flex-end; margin-top: 20px; }
.fw-people { margin-top: 24px; }
.fw-history { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--fw-line); }
.fw-history .fw-muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
@media (max-width: 1000px) {
  .fw-open--closable .fw-open__side { padding-top: 0; }
  .fw-open--closable .fw-open__head > .fw-co:first-child { padding-inline-end: 40px; }
}
@media (max-width: 720px) {
  .fw-stat--phone-only { display: block; }
  .fw-stat--wide-only { display: none; }
  .fw-hist__col { padding: 4px 1px; }
  .fw-run { grid-template-columns: minmax(0, 1fr); }
  .fw-head__aside--go { max-width: none; margin-inline-start: 0; }
  .fw-run--go { align-items: flex-start; text-align: start; }
  .fw-run--go .res-more, .fw-run--go .row { justify-content: flex-start; }
  .fw-filter { margin-inline-start: 0; }
  .fw-filter .res-filters { inset-inline-end: auto; inset-inline-start: 0; }
  .js .fw-group--fold { margin-top: 0; border-top: 1px solid var(--fw-line); padding-top: 4px; }
  .js .fw-group--fold + .fw-group--fold { margin-top: 0; }
  .js .fw-group--fold:last-of-type { border-bottom: 1px solid var(--fw-line); }
  .js .fw-group:not(.fw-group--fold) + .fw-group--fold { margin-top: 24px; }
  .js .fw-group--fold .fw-group__head { margin: 0; padding: 6px 0; }
  .js .fw-group--fold .fw-group__head h2 { font-size: 18px; }
  .js .fw-group--fold .fw-group__note { display: none; }
  .js .fw-group--fold .fw-group__show { display: inline-block; padding: 8px 0; }
  .js .fw-group--fold:not(.is-shown) .fw-cards { display: none; }
}
/* inside Results, .res a underlines every link and gives it the text's colour; the panel, the tabs and the buttons keep their own */
.res .fw-reason, .res .fw-bars__row, .res .fw-tab, .res .fw-btn, .res .fw-panel__more, .res .fw-textbtn, .res .fw-open__title a { text-decoration: none; }
.res .fw-reason, .res .fw-bars__row { color: var(--fw-panel-ink); }
.res .fw-tab { color: var(--fw-muted); }
.res .fw-tab[aria-selected="true"] { color: var(--fw-ink); }
.res a.fw-btn--primary { color: var(--fw-on-teal); }
.res a.fw-btn--secondary { color: var(--fw-ink); }
.fw-open__pay-rest { font-family: var(--fw-sans); }

/* ---------- Rulebook (Direction 1b): the path in the panel, each part with its rules, and what each rule caught */
.fw-path { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: var(--fw-pipe); gap: 22px 0; }
.fw-path__step { min-width: 0; padding-inline-end: 16px; display: flex; flex-direction: column; gap: 6px; }
.fw-path__step > a { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: inherit; text-decoration: none; }
.fw-path__mark { display: flex; align-items: center; gap: 8px; }
.fw-path__num { display: flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; box-sizing: border-box; border: 1.5px solid var(--fw-panel-ink); border-radius: 50%; font: 500 12px var(--fw-mono); font-style: normal; color: var(--fw-panel-ink); }
.fw-path__dot { flex: none; width: 10px; height: 10px; margin: 7px; border-radius: 50%; background: var(--fw-panel-ink); }
.fw-path__line { flex: 1; height: 1px; background: var(--fw-panel-line); }
.fw-path__step--end .fw-path__num { background: var(--fw-panel-teal); border-color: var(--fw-panel-teal); color: var(--fw-panel); font-family: var(--fw-sans); }
.fw-path__big { font: 400 var(--fw-big)/1 var(--fw-mono); font-variant-numeric: tabular-nums; color: var(--fw-panel-ink); }
.fw-path__step--end .fw-path__big { color: var(--fw-panel-teal); }
.fw-path__name { font: 600 14px/1.3 var(--fw-sans); color: var(--fw-panel-ink); }
.fw-path__sub { font-size: 12px; line-height: 1.4; color: var(--fw-panel-muted); }
.fw-path__out { margin-top: 4px; font: 600 12px/1.3 var(--fw-sans); }
.fw-path__out--out { color: var(--fw-panel-red); }
.fw-path__out--capped { color: var(--fw-panel-amber); }
.fw-path__out--teal { color: var(--fw-panel-teal); }
.fw-path__bar { display: block; height: 4px; background: var(--fw-panel-line); border-radius: 1px; overflow: hidden; }
.fw-path__bar i { display: block; height: 100%; }
.fw-path__bar--out i { background: var(--fw-panel-red); }
.fw-path__bar--capped i { background: var(--fw-panel-amber); }
.fw-path__bar--teal i { background: var(--fw-panel-teal); }
.fw-path__of { font: 11px/1.3 var(--fw-mono); color: var(--fw-panel-muted); }
.fw-path__step > a:hover .fw-path__name { text-decoration: underline; text-underline-offset: 3px; }
.fw-path__step > a[aria-current="step"] .fw-path__num { background: var(--fw-panel-ink); color: var(--fw-panel); }
.fw-path__step > a[aria-current="step"] .fw-path__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.fw-path__step > a:focus-visible { outline: 2px solid var(--fw-panel-teal); outline-offset: 4px; border-radius: 4px; }
.fw-panel .fw-path__other { color: var(--fw-panel-teal); font-weight: 600; text-decoration: none; }
.fw-panel .fw-path__other[aria-current="step"] { color: var(--fw-panel-ink); text-decoration: underline; }
.fw-rbsplit { margin-top: 32px; gap: 32px 48px; align-items: start; }
.rb-find { margin: 0 0 8px; }
.rb-find .fw-input { max-width: 360px; font-size: 14px; background: var(--fw-surface); }
.fw-part { margin: 24px 0 0; }
.fw-part__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--fw-line); }
.fw-part__title { min-width: 0; }
.fw-part__title h3 { margin: 4px 0 0; font: 500 20px/1.3 var(--fw-sans); letter-spacing: 0; color: var(--fw-ink); }
.fw-part__title p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--fw-muted); }
.rb-parts.searching .fw-part__title p { display: none; }
.fw-part__pill { font-size: 12px; padding: 4px 9px; }
.fw-part .rules { border-top: 0; }
.fw-part__empty { margin-top: 12px; }
.fw-rule { border-bottom: 1px solid var(--fw-line-soft); }
.fw-rule > summary { grid-template-columns: 32px minmax(0, 1fr) 12px; gap: 8px 16px; align-items: start; padding: 14px 4px; }
.fw-rule.has-count > summary { grid-template-columns: 32px minmax(0, 1fr) 150px 12px; }
.fw-rule > summary::after { align-self: center; }
.fw-rule .rid { font-size: 12px; line-height: 1.9; font-weight: 600; color: var(--fw-muted); }
.fw-rule__main { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.fw-rule .rtext { font-size: 14px; line-height: 1.55; color: var(--fw-ink); }
.fw-rule .rtext .text-muted { color: var(--fw-muted); }
.fw-rule__count { display: flex; flex-direction: column; gap: 6px; padding-top: 3px; font-size: 12px; color: var(--fw-muted); }
.fw-rule__count b { font: 500 13px var(--fw-mono); color: var(--fw-ink); }
.fw-rule__bar { display: block; height: 4px; background: var(--fw-track); border-radius: 1px; overflow: hidden; }
.fw-rule__bar i { display: block; height: 100%; }
.fw-rule__bar--out i { background: var(--fw-red); }
.fw-rule__bar--capped i { background: var(--fw-amber); }
.fw-rule__bar--teal i { background: var(--fw-teal); }
.fw-rule .rule-body { padding-inline-start: 52px; }
.fw-rule .rule-actions .fw-textbtn { padding: 5px 0; }
.fw-rule .rule-edit form { display: grid; gap: 8px; margin: 8px 0 0; }
.fw-rule .rule-edit form .fw-btn { justify-self: start; }
.fw-add { margin-top: 2px; }
.fw-add > summary { display: inline-block; list-style: none; cursor: pointer; padding: 12px 0; font: 600 13px var(--fw-sans); color: var(--fw-teal); }
.fw-add > summary::-webkit-details-marker { display: none; }
.fw-add > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.fw-add form { display: grid; gap: 8px; margin: 0 0 12px; }
.fw-add form .fw-btn { justify-self: start; }
.fw-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fw-box { min-width: 0; padding: 20px; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: 10px; }
.fw-box--plain { background: transparent; }
.fw-box__title { margin: 0; font: 500 17px/1.3 var(--fw-sans); letter-spacing: 0; color: var(--fw-ink); }
.fw-box__lede { margin: 6px 0 12px; font-size: 13px; line-height: 1.5; color: var(--fw-muted); }
.fw-box form { display: grid; gap: 8px; margin: 0; }
.fw-box textarea.fw-input { min-height: 64px; resize: vertical; }
.fw-box__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fw-box__row > .fw-input { flex: 1 1 140px; width: auto; min-width: 0; }
.fw-select { padding: 9px 10px; }
.fw-verdict { margin-top: 16px; }
.fw-refs { list-style: none; margin: 0 0 6px; padding: 0; }
.fw-refs li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--fw-line-soft); font-size: 13.5px; line-height: 1.45; color: var(--fw-ink); }
.fw-refs__from { font-size: 12px; color: var(--fw-muted); }
.fw-empty--refs { margin-top: 10px; }
.fw-empty__bars { display: flex; gap: 6px; margin-bottom: 4px; }
.fw-empty__bars i { width: 18px; height: 6px; border: 1px solid var(--fw-line-strong); border-radius: 1px; }
.fw-box .fw-add > summary { padding: 10px 0 2px; }
@media (max-width: 720px) {
  .fw-path__step { padding-inline-end: 10px; }
  .fw-rule > summary { grid-template-columns: 28px minmax(0, 1fr) 10px; gap: 8px 12px; padding: 12px 2px; }
  .fw-rule.has-count > summary { grid-template-columns: 28px minmax(0, 1fr) 10px; }
  .fw-rule.has-count .fw-rule__count { grid-column: 2; grid-row: 2; }
  .fw-rule.has-count > summary::after { grid-column: 3; grid-row: 1; }
  .fw-rule .rule-body { padding-inline-start: 40px; }
}

/* ---------- Tracker (Direction 1b): roles by stage in the panel, the board on sunken columns, a card's five steps */
.fw-live { display: inline-block; flex: none; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 50%; background: var(--fw-green); vertical-align: 1px; }
.fw-panel .fw-live { background: var(--fw-panel-green); }
.fw-live--warn, .fw-panel .fw-live--warn { background: var(--fw-amber); }
.fw-board.board { display: flex; gap: 12px; margin: 28px 0 0; align-items: flex-start; }
.fw-board .board-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; padding: 12px; background: var(--fw-sunken); border-radius: 10px; }
.fw-board .board-col.over { box-shadow: inset 0 0 0 2px var(--fw-teal); }
.fw-col__head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px; }
.fw-col__n { font: 13px var(--fw-mono); color: var(--fw-muted); }
.fw-board .col-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; }   /* a wide column sets its cards side by side */
@media (min-width: 721px) {
  /* once a role is on the board, a column with none folds to a slim rail: still a place to drop a card, its width given
     to the columns with roles */
  .fw-board.has-roles .board-col.empty { flex: 0 0 44px; align-self: stretch; min-width: 0; padding: 14px 0; }
  .fw-board.has-roles .board-col.empty .fw-col__head { flex-direction: column; align-items: center; gap: 12px; padding: 0; }
  .fw-board.has-roles .board-col.empty .fw-col__n { order: -1; }
  .fw-board.has-roles .board-col.empty .fw-label { writing-mode: vertical-rl; }
  .fw-board.has-roles .board-col.empty .col-body { display: none; }
}
.fw-board .card { gap: 4px; margin: 0; padding: 14px; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: 8px; box-shadow: none; }
.fw-board .col-empty { padding: 16px 14px; text-align: start; border-color: var(--fw-line-strong); }
/* a card opens the role's full read in a dialog over the board */
.fw-board .fw-tcard:not(.manual) { cursor: pointer; }
.fw-board .fw-tcard:not(.manual):hover { border-color: var(--fw-line-strong); }
.fw-tcard__open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: start; cursor: pointer; }
.fw-tcard__open:hover { text-decoration: underline; text-underline-offset: 3px; }
.fw-tcard__open:focus-visible { outline: 2px solid var(--fw-teal); outline-offset: 2px; }
.tcard-read[hidden] { display: none; }
.fw-dlg { width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 48px); padding: 0; border: 0; background: transparent; overflow: auto; overscroll-behavior: contain; color: var(--fw-ink); }
.fw-dlg::backdrop { background: rgba(31, 35, 40, .55); }
@media (max-width: 720px) { .fw-dlg { width: calc(100vw - 16px); max-height: calc(100vh - 16px); } }
.fw-tcard__fit { display: flex; align-items: baseline; gap: 8px; }
.fw-tcard__fit span:last-child { font-size: 12px; color: var(--fw-muted); }
.fw-tcard__manual { align-self: flex-start; }
.fw-tcard .fw-co { margin-top: 8px; }
.fw-tcard .fw-co a, .fw-table .kc a { color: inherit; text-decoration: none; }
.fw-tcard .fw-co a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fw-steps { display: flex; align-items: center; margin: 12px 0 0; }
.fw-steps__dot { flex: none; width: 8px; height: 8px; box-sizing: border-box; border: 1.5px solid var(--fw-line-strong); border-radius: 50%; }
.fw-steps__dot.is-done { background: var(--fw-teal); border-color: var(--fw-teal); }
.fw-steps__dot.is-now { width: 12px; height: 12px; border: 2px solid var(--fw-teal); background: var(--fw-surface); }
.fw-steps__line { flex: 1; height: 1.5px; background: var(--fw-line); }
.fw-steps__line.is-done { background: var(--fw-teal); }
.fw-table .fw-steps { max-width: 220px; margin-top: 8px; }
.fw-tcard__now { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--fw-muted); }
.fw-tcard__now b { font-weight: 600; color: var(--fw-ink); }
.fw-tcard__live { display: flex; align-items: center; margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--fw-muted); }
.fw-tcard .card-note { margin: auto 0 0; }   /* cards side by side: the notes and buttons line up */
.fw-note { display: block; width: 100%; box-sizing: border-box; min-height: 34px; margin-top: 10px; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px; background: var(--fw-ground); font: 12px/1.5 var(--fw-sans); color: var(--fw-ink-2); resize: vertical; }
.fw-note::placeholder { color: var(--fw-muted); opacity: 1; }
.fw-note:hover { border-color: var(--fw-line); }
.fw-note:focus { outline: 2px solid var(--fw-teal); outline-offset: 0; background: var(--fw-surface); }
.fw-table .fw-note { margin-top: 0; }
.fw-tcard__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.fw-tcard__foot form { margin: 0; }
.fw-status { max-width: 100%; padding: 6px 8px; border: 1px solid var(--fw-line-strong); border-radius: 6px; background: var(--fw-surface); font: 600 12px var(--fw-sans); color: var(--fw-ink); cursor: pointer; }
.fw-closed { margin-top: 44px; }
.fw-closed__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--fw-line); }
.fw-closed__head h2 { margin: 0; font: 500 20px/1.3 var(--fw-sans); letter-spacing: 0; color: var(--fw-ink); }
.fw-closed__empty { display: flex; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--fw-line); }
.fw-closed__ring { flex: none; width: 28px; height: 28px; border: 1.5px dashed var(--fw-line-strong); border-radius: 50%; }
.fw-tablewrap { overflow-x: auto; }
.fw-table { margin-top: 20px; }
.fw-open--inline { margin: 8px 0 12px; }
@media (max-width: 1000px) {
  .fw-board.board { overflow-x: auto; padding-bottom: 8px; }
  .fw-board .board-col { min-width: 210px; }
}
@media (max-width: 720px) {
  .fw-board.board { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; padding-bottom: 0; }
  .fw-board .board-col { min-width: 0; }
  .fw-board .board-col.empty { padding-bottom: 12px; }
  .fw-board .board-col.empty .col-body { display: grid; }
  .fw-head .fw-segmented { order: 3; }
}

/* the Rulebook's reference postings: five, and the rest behind Show all */
.fw-more > summary { display: inline-block; list-style: none; cursor: pointer; padding: 8px 0 0; font: 600 13px var(--fw-sans); color: var(--fw-teal); }
.fw-more > summary::-webkit-details-marker { display: none; }
.fw-more[open] > summary { display: none; }
/* a note grows to its text where the browser can (field-sizing), else it scrolls */
.fw-note { field-sizing: content; max-height: 180px; }
.fw-table .fw-chip { white-space: normal; }

/* ---------- Roster (Direction 1b): the last read in the panel, every company as a tile, the table of companies */
.fw-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fw-stats--roster .fw-stat span { display: flex; align-items: center; gap: 6px; }
.fw-sq { display: inline-block; flex: none; width: 8px; height: 8px; box-sizing: border-box; border-radius: 50%; }
.fw-sq--read { background: var(--fw-panel-teal); }
.fw-sq--none { border: 1.5px solid var(--fw-panel-ring); }
.fw-sq--gone { background: var(--fw-panel-ring); opacity: .55; }
.fw-chip .fw-sq--gone { background: var(--fw-muted); }
.fw-tile--gone { opacity: .4; }
.fw-chip .fw-sq { width: 7px; height: 7px; }
.fw-chip .fw-sq--read { background: var(--fw-teal); }
.fw-chip .fw-sq--none { border-color: var(--fw-muted); }
.fw-chip .fw-mark--x { width: 8px; height: 8px; }
.fw-mark--panel { width: 9px; height: 9px; background: linear-gradient(45deg, transparent 40%, var(--fw-panel-red) 40% 60%, transparent 60%), linear-gradient(-45deg, transparent 40%, var(--fw-panel-red) 40% 60%, transparent 60%); }
.fw-tiles { display: grid; grid-template-columns: var(--fw-tiles); gap: 6px; margin: 14px 0 0; }
.fw-tile { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 6px 4px 7px; border-top: 2px solid var(--fw-panel-ring); border-radius: 0 0 4px 4px; background: rgba(232,232,228,.03); color: var(--fw-panel-ink); text-decoration: none; }
.fw-tile--read { border-top-color: var(--fw-panel-teal); background: var(--fw-panel-band); }
.fw-tile--out { border-top-color: var(--fw-panel-red); background: rgba(240,138,149,.07); }
.fw-tile:hover, .fw-tile:focus-visible { outline: 1px solid var(--fw-panel-ring); outline-offset: 1px; }
.fw-tile__ini { font: 600 10px var(--fw-sans); color: var(--fw-panel-muted); }
.fw-tile__n { font: 12px var(--fw-mono); font-variant-numeric: tabular-nums; }
.fw-tile__kept { min-height: 12px; font-size: 10px; color: var(--fw-panel-teal); white-space: nowrap; }
.fw-tiles--dense { grid-template-columns: repeat(auto-fill, minmax(12px, 1fr)); gap: 3px; }
.fw-tiles--dense .fw-tile { height: 12px; padding: 0; border: 0; border-radius: 2px; background: var(--fw-panel-line); }
.fw-tiles--dense .fw-tile > span { display: none; }
.fw-tiles--dense .fw-tile--read { background: var(--fw-panel-teal); }
.fw-tiles--dense .fw-tile--out { background: var(--fw-panel-red); }
.fw-bars { margin-top: 10px; }
.fw-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; }
.fw-filterbar .fw-input { flex: 1 1 240px; max-width: 360px; font-size: 14px; background: var(--fw-surface); }
.fw-rtable { margin-top: 8px; }
.fw-rrow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.1fr) 56px 72px; gap: 16px; align-items: center; padding: 11px 12px; border-bottom: 1px solid var(--fw-line-soft); font-size: 13px; color: var(--fw-ink); }
.fw-rrow--head { padding: 18px 12px 10px; border-bottom-color: var(--fw-line); font: 600 11px/1.3 var(--fw-sans); letter-spacing: var(--fw-caps-ls); text-transform: uppercase; color: var(--fw-muted); }
.fw-rrow.pr { cursor: pointer; }
.fw-rrow.pr:hover { background: var(--fw-sunken); }
.fw-rrow.pr[aria-expanded="true"] { background: var(--fw-surface); }
.fw-rrow.pr:focus-visible { outline: 2px solid var(--fw-teal); outline-offset: -2px; }
.fw-rrow > * { min-width: 0; }
.fw-rrow__co { display: flex; align-items: center; gap: 10px; }
.fw-ini { display: flex; flex: none; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: var(--fw-chip); font: 600 10px var(--fw-sans); color: var(--fw-ink-2); }
.fw-rrow__name { display: flex; flex-direction: column; min-width: 0; }
.fw-rrow__name a { font-size: 14px; font-weight: 600; color: var(--fw-ink); text-decoration: none; overflow-wrap: anywhere; }
.fw-rrow__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fw-rrow__meta { display: none; font-size: 12px; line-height: 1.45; color: var(--fw-muted); }
.fw-rrow__sector { color: var(--fw-ink-2); }
.fw-rrow__board { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.fw-rrow__why { font-size: 11.5px; line-height: 1.35; color: var(--fw-muted); }
.fw-rrow__found { display: flex; align-items: center; gap: 10px; }
.fw-rrow__found b { flex: none; width: 40px; text-align: end; font: 400 13px var(--fw-mono); font-variant-numeric: tabular-nums; }
.fw-rrow__bar { flex: 1; height: 4px; background: var(--fw-track); border-radius: 1px; overflow: hidden; }
.fw-rrow__bar i { display: block; height: 100%; background: var(--fw-ink-2); }
.fw-rrow__kept { font: 13px var(--fw-mono); color: var(--fw-muted); }
.fw-rrow__kept.has { color: var(--fw-teal); font-weight: 500; }
.fw-rrow__checked { color: var(--fw-muted); }
.fw-rrow--head .fw-rrow__kept, .fw-rrow--head .fw-rrow__checked { font: inherit; color: inherit; }
.fw-rlx { display: none; padding: 14px 12px 18px; background: var(--fw-surface); border-bottom: 1px solid var(--fw-line); }
.fw-rlx.open { display: block; }
.fw-break { overflow-wrap: anywhere; }
.fw-probe { margin-top: 20px; }
.fw-unreached { margin-top: 36px; }
.fw-unreached .fw-empty__title { display: flex; align-items: center; gap: 10px; }
.fw-unreached__list { margin: 6px 0 0; padding-inline-start: 18px; }
@media (max-width: 1000px) {
  .fw-rrow { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr) 48px; }
  .fw-rrow__sector, .fw-rrow__checked { display: none; }
  .fw-rlx .lx-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .fw-rrow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; }
  .fw-rrow--head, .fw-rrow__sys, .fw-rrow__kept, .fw-rrow__why, .fw-rrow__bar { display: none; }
  .fw-rrow__co { grid-row: 1 / span 2; }
  .fw-rrow__meta { display: block; }
  .fw-ini { width: 28px; height: 28px; }
  .fw-rrow__found { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .fw-rrow__found b { width: auto; }
  .fw-rrow__board { grid-column: 2; grid-row: 2; align-items: flex-end; }
  .fw-rlx { padding: 12px 0 16px; }
}

/* right to left: text a person or a posting wrote keeps its own direction (an English rule on an Arabic page ends with its full stop) */
[dir="rtl"] .fw-rule .rtext, [dir="rtl"] .rule-more, [dir="rtl"] .fw-refs__text, [dir="rtl"] .fw-refs__from, [dir="rtl"] .fw-line__ev, [dir="rtl"] .fw-open__why,
[dir="rtl"] .fw-note, [dir="rtl"] .fw-asposted, [dir="rtl"] .fw-rrow__name a, [dir="rtl"] .fw-rrow__sector, [dir="rtl"] .fw-rrow__meta, [dir="rtl"] .fw-tile__ini { unicode-bidi: plaintext; text-align: start; }
[dir="rtl"] .fw-rule .rtext { align-self: stretch; }
/* on a phone the example's own Start button is the one in the top bar; the header does not repeat it */
@media (max-width: 720px) { .fw-run--example { display: none; } }

/* long words in longer languages (French chips, German path names, Norwegian compounds) wrap inside their boxes */
.fw-board-chip { white-space: normal; }
.fw-tile__kept { display: flex; align-items: center; gap: 3px; }
.fw-tile__kept i { display: block; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--fw-panel-teal); }
.fw-rrow__meta, .fw-rrow__sys, .fw-rrow__sector { overflow-wrap: anywhere; }
.fw-rrow { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(56px, max-content) minmax(72px, max-content); }
.fw-tcard__foot > form:first-child { min-width: 0; max-width: 100%; }
.fw-path__name, .fw-path__sub, .fw-stat span, .fw-group__note, .fw-part__title h3 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 1000px) {
  .fw-rrow { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr) minmax(48px, max-content); }
}
@media (max-width: 720px) {
  .fw-rrow { grid-template-columns: minmax(0, 1fr) auto; }
}
.fw-rrow--head span { overflow-wrap: anywhere; hyphens: auto; }

/* ---------- the Results filter on a phone (2 Nov 2026): the popover opened from the Filter button ran off the right of a
   375 px screen, its Company field and its own Filter button out of reach; it opens as a sheet at the bottom instead */
@media (max-width: 600px) {
  .fw-filter .res-filters { position: fixed; inset-inline: 12px; top: auto; bottom: 12px; width: auto; max-width: none; max-height: 70vh; overflow: auto; }
  .fw-filter .res-filters .input { flex: 1 1 100%; }
}
/* The search behind a one-line receipt (9 Nov 2026): Results open on the roles; the panel is one press away and stays open once opened. */
.fw-receipt { margin: 16px 0 0; }
.fw-receipt__line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 4px 18px; padding: 10px 16px; background: var(--fw-panel); color: var(--fw-panel-ink); border: 1px solid var(--fw-panel-edge); border-radius: 10px; font: 400 12.5px/1.5 var(--fw-mono); cursor: pointer; list-style: none; }
.fw-receipt__line::-webkit-details-marker { display: none; }
.fw-receipt__line::after { content: "\25BE"; color: var(--fw-panel-muted); }
.fw-receipt[open] > .fw-receipt__line::after { content: "\25B4"; }
.fw-receipt__line:focus-visible { outline: 2px solid var(--fw-teal); outline-offset: 2px; }
.fw-receipt__k { font: 600 11px/1.4 var(--fw-sans); letter-spacing: var(--fw-caps-ls); text-transform: uppercase; color: var(--fw-panel-muted); }
.fw-receipt__stats { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--fw-panel-muted); }
.fw-receipt__stats b { font-weight: 500; color: var(--fw-panel-ink); }
.fw-receipt__kept b { color: var(--fw-panel-teal); }
.fw-receipt[open] > .fw-receipt__line { border-radius: 10px 10px 0 0; border-bottom-color: transparent; }
.fw-receipt[open] > .fw-receipt__line .fw-receipt__stats { display: none; }
.fw-receipt[open] > .fw-panel { margin-top: 0; border-top: 0; border-radius: 0 0 12px 12px; }
.fw-receipt[open] > .fw-panel > .fw-panel__head .fw-panel__label { display: none; }
.fw-receipt[open] > .fw-panel > .fw-panel__head .fw-panel__aside { margin-inline-start: auto; }
@media (max-width: 600px) { .fw-receipt__wide { display: none; } .fw-receipt__line { grid-template-columns: minmax(0, 1fr) auto; padding: 9px 12px; font-size: 12px; gap: 2px 12px; }
  .fw-receipt:not([open]) .fw-receipt__k { display: none; } .fw-receipt[open] > .fw-receipt__line .fw-receipt__stats { display: none; } }
.fw-tile--more { display: grid; place-items: center; font: 500 11px/1 var(--fw-mono); color: var(--fw-panel-muted); text-decoration: none; }
/* The Rulebook's near misses (9 Nov 2026): what each reason threw out that would have scored 8 or more, and the box that corrects it. */
.rb-near { margin: 24px 0 0; padding: 20px 20px 6px; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: 10px; }
.rb-near__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.rb-near__head .fw-box__title { margin: 0; }
.rb-near__group { border-top: 1px solid var(--fw-line); }
.rb-near__group > summary { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; }
.rb-near__group > summary::-webkit-details-marker { display: none; }
.rb-near__group > summary b { min-width: 30px; font: 400 22px/1 var(--fw-mono); font-variant-numeric: tabular-nums; color: var(--fw-teal); }
.rb-near__group > summary::after { content: ""; flex: none; align-self: center; width: 8px; height: 8px; margin-inline-start: auto; border-inline-end: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .55; }
.rb-near__group[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.rb-near__group > summary:focus-visible { outline: 2px solid var(--fw-teal); outline-offset: 2px; }
.rb-near__row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 0 16px; border-top: 1px solid var(--fw-line); }
.rb-near__row .fw-fit { font-size: 22px; line-height: 1.15; }
.rb-near__what { display: grid; gap: 6px; min-width: 0; font-size: 14.5px; line-height: 1.45; }
.rb-near__fix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 640px; margin: 4px 0 0; }
.rb-near__fix .fw-input { flex: 1 1 260px; width: auto; min-width: 0; }
/* The Tracker's Write to them lane (9 Nov 2026): companies worth a message, where each stands, a note, a people search. */
.tr-write { margin: 28px 0 0; padding: 20px 20px 16px; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: 10px; }
.tr-write__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 10px; }
.tr-write__head .fw-box__title, .tr-write__head .fw-box__lede { margin: 0; }
.tr-write__row { display: grid; grid-template-columns: minmax(160px, 1.1fr) minmax(0, 2.4fr) auto; align-items: center; gap: 10px 18px; padding: 12px 0; border-top: 1px solid var(--fw-line); }
.tr-write__row.is-closed { opacity: .55; }
.tr-write__co, .tr-write__who { display: grid; gap: 2px; min-width: 0; }
.tr-write__co a, .tr-write__who a { font-weight: 600; font-size: 15px; color: var(--fw-ink); text-decoration: none; overflow-wrap: anywhere; }
.tr-write__co a:hover, .tr-write__who a:hover { text-decoration: underline; }
.tr-write__form { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; margin: 0; }
.tr-write__form .fw-input { width: 100%; }
.tr-write__suggest { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; margin-top: 4px; border-top: 1px solid var(--fw-line); }
.tr-write__suggest form { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--fw-line); }
.tr-write__add { display: flex; gap: 10px; max-width: 420px; margin: 16px 0 4px; }
.tr-write__add .fw-input { flex: 1 1 auto; width: auto; min-width: 0; }
@media (max-width: 700px) { .tr-write__row { grid-template-columns: minmax(0, 1fr); gap: 8px; } .tr-write__form { grid-template-columns: minmax(0, 1fr); } }
/* ---- Settings, in the look of the other signed-in screens (10 Nov 2026): one column, titled boxes, fields and
   buttons at the size of the rest. Scoped to .set; the forms and their fields are as they were. */
.set { max-width: 860px; }
.set .tabs { flex-wrap: wrap; gap: 0 26px; margin: 22px 0 28px; }
.set .tab { padding: 10px 0; }
.set .card { gap: 0; margin-top: 0; padding: 24px 26px 26px; border-radius: 10px; background: var(--color-surface); cursor: auto; }
.set .card + .card, .set form + .card { margin-top: 18px; }
.set form > .card { margin-bottom: 14px; }
.set .card > .k { margin: 0 0 6px; font-family: var(--font-heading); font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; text-transform: none; color: var(--color-text); }
.set .card > .k ~ .k { margin-top: 28px !important; }
.set .card > p { max-width: 62ch; }
.set p.sm, .set .text-muted.sm { font-size: 14.5px; line-height: 1.55; }
.set > p.sm { max-width: 66ch; margin: 26px 0 16px; }
.set .xs { font-size: 13px; line-height: 1.5; }
.set .input { min-height: 42px; padding: 9px 12px; font-size: 15px; }
.set textarea.input { min-height: 84px; font-size: 14px; line-height: 1.6; field-sizing: content; }      /* the profile's lines are about 110 letters long: the box grows to its text, and is wide enough not to break them twice */
.set .input.set-heading { max-width: 420px; margin-bottom: 10px; font-weight: 600; }
.set .field { margin-bottom: 18px; }
.set .field > label { margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--color-text); }
.set .set-fields .input { max-width: 440px; }
.set .btn { min-height: 42px; padding-inline: 20px; font-size: 14.5px; }
.set .card > .btn { align-self: flex-start; margin-top: 18px; }
.set details.sm { margin: 4px 0 22px; font-size: 14.5px; }
.set details.sm > summary { cursor: pointer; font-weight: 600; color: var(--color-accent); }
.set details.sm > .card { margin-top: 12px; }
/* the schedule: one row of choices, in a box like the rest */
.set > form.row { gap: 10px 12px; padding: 22px 26px; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: 10px; }
.set > form.row .input { width: auto; }
.set > form.row + p.xs { margin-top: 12px; }
/* notifications: one choice a row, ruled apart */
.set .card > .row.between { flex-wrap: nowrap; align-items: center; gap: 24px; padding: 18px 0; border-top: 1px solid var(--color-divider); }
.set .card > .row.between:first-child { padding-top: 0; border-top: 0; }
.set .card > .row.between:last-child { padding-bottom: 0; }
.set .card > .row.between b { font-size: 15px; }
.set .card > .row.between .text-muted.sm { margin-top: 3px; font-size: 14px; }
@media (max-width: 600px) {
  .set .card { padding: 20px 18px; }
  .set .card > .row.between { flex-wrap: wrap; gap: 12px; }
  .set > form.row { padding: 18px; }
}
/* ---- Thrown out: the company over the role, in whole words (10 Nov 2026). The row's flex was meant for the kept
   rows' mark-and-text, and set the two side by side here, breaking names mid-word. */
.res-table.thrown { --cols: minmax(0, 1.5fr) 130px 100px minmax(0, .9fr) minmax(0, 1.3fr) 84px 64px; }
.res-table.thrown .res-row .c-main { display: block; }
.res-table.thrown .res-row .co { overflow-wrap: break-word; }
