/* Tandem TMS console, design pass D (15 Oct 2026). Plain CSS, no inline styles (the page's CSP). Desktop and iPad Safari
   (portrait and landscape). Every colour is a token below, so dark mode is the same sheet with other values.
   One accent (teal), neutral greys, and one colour language for status: grey = not moving yet, blue = on the road,
   green = delivered / paperwork done, violet = billing, amber = needs a look, red = refused or cancelled. */
:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f9fafb; --sunken: #eef0f3; --line: #e3e6ea; --line-2: #d3d8de;
  --ink: #16191d; --ink-2: #4b5360; --ink-3: #7b8391; --on-accent: #ffffff;
  --accent: #0e7468; --accent-hover: #0b5f55; --accent-soft: #e3f2ef; --accent-ink: #0b5f55; --focus: #0e7468;
  --grey-bg: #eef0f3; --grey-ink: #4b5360; --grey-dot: #9aa2ad;
  --blue-bg: #e7effb; --blue-ink: #1f4f99; --blue-dot: #3b78d8;
  --green-bg: #e3f3ea; --green-ink: #19663f; --green-dot: #2f9e62;
  --violet-bg: #efeafb; --violet-ink: #5b3a9e; --violet-dot: #8461d1;
  --amber-bg: #fdf2dc; --amber-ink: #7d4f00; --amber-dot: #d99a1b;
  --red-bg: #fbe9e7; --red-ink: #9b2317; --red-dot: #d8473a;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05); --shadow-pop: 0 12px 32px rgba(16, 24, 40, .16);
  --r: 10px; --r-sm: 7px; --font: 15px; --rail: 232px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418; --surface: #181c21; --surface-2: #1d2228; --sunken: #232930; --line: #2a3038; --line-2: #39414b;
    --ink: #e8ebef; --ink-2: #b2b9c3; --ink-3: #8a929e; --on-accent: #ffffff;
    --accent: #2a9d8f; --accent-hover: #34b3a3; --accent-soft: #173733; --accent-ink: #6fd3c4; --focus: #4cc2b2;
    --grey-bg: #262c33; --grey-ink: #c2c8d0; --grey-dot: #7d8691;
    --blue-bg: #1b2a40; --blue-ink: #9cc0f5; --blue-dot: #5a93e8;
    --green-bg: #17301f; --green-ink: #8fd6ab; --green-dot: #44b878;
    --violet-bg: #2a2340; --violet-ink: #c4b0f2; --violet-dot: #9d7fe3;
    --amber-bg: #33280f; --amber-ink: #f0c66e; --amber-dot: #e0a72c;
    --red-bg: #3a1c19; --red-ink: #f5a59c; --red-dot: #e2604f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-pop: 0 14px 36px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: var(--font)/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; line-height: 1.2; margin: 0; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0; font-weight: 640; letter-spacing: -.005em; }
h3 { font-size: 14px; margin: 16px 0 8px; font-weight: 640; color: var(--ink); }
p { margin: 0; }
code { font: 12.5px ui-monospace, "SF Mono", Menlo, monospace; background: var(--sunken); padding: 1px 5px; border-radius: 5px; color: var(--ink-2); }
kbd { font: 11.5px ui-monospace, "SF Mono", Menlo, monospace; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px;
  padding: 0 5px; color: var(--ink-2); background: var(--surface); }
.small { font-size: 13px; }
.muted { color: var(--ink-3); }
.grow { flex: 1 1 auto; }
[hidden] { display: none !important; }
.icon { flex: none; }

/* ------------------------------------------------------------------ shell: the left rail and the content */
#app { min-height: 100vh; }
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.shell.out { grid-template-columns: minmax(0, 1fr); }
.shell.out .rail { display: none; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px
  max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: var(--surface); border-right: 1px solid var(--line);
  overflow-y: auto; z-index: 20; }
.switcher { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-sm); color: var(--ink); min-height: 48px; }
a.switcher:hover { background: var(--sunken); text-decoration: none; }
.mark { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--on-accent); display: grid;
  place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.switcher-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.switcher-text strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher-text span { font-size: 12px; color: var(--ink-3); }
.switcher .icon { margin-left: auto; color: var(--ink-3); width: 16px; height: 16px; }
.rail .new { margin: 10px 0 12px; width: 100%; min-height: 40px; gap: 8px; }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-sm); color: var(--ink-2);
  font-weight: 520; font-size: 14.5px; min-height: 40px; }
.rail nav a:hover { background: var(--sunken); color: var(--ink); text-decoration: none; }
.rail nav a.on { background: var(--accent-soft); color: var(--accent-ink); }
.rail nav a .icon { color: inherit; }
.rail .spacer { flex: 1 1 auto; }
.userbox { position: relative; }
.user { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; background: none; border-radius: var(--r-sm);
  color: var(--ink); text-align: left; min-height: 48px; }
.user:hover { background: var(--sunken); }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sunken); color: var(--ink-2); display: grid;
  place-items: center; font-size: 12.5px; font-weight: 650; }
.user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.user-text strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-text span { font-size: 12px; color: var(--ink-3); }
.rail .badge.money { margin: 0 8px 6px; align-self: flex-start; }
.menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-pop); padding: 6px; z-index: 40; min-width: 200px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none;
  border-radius: var(--r-sm); color: var(--ink); font-size: 14px; min-height: 40px; justify-content: flex-start; font-weight: 500; }
.menu a:hover, .menu button:hover { background: var(--sunken); text-decoration: none; }
.menu .who-line { padding: 6px 10px 8px; font-size: 12px; color: var(--ink-3); border-bottom: 1px solid var(--line); margin-bottom: 4px; }

/* the slim rail: icons with a short word under each. Since 19 Oct 2026 (console-shell-ipad) a state of the shell, not a
   width: slim by default under 1100 px, else wide unless the person collapsed it (app.js, the rail's toggle) */
.shell.rail-slim, .shell.rail-over { --rail: 72px; }
.rail-slim .rail { padding-left: max(8px, env(safe-area-inset-left)); padding-right: 8px; align-items: stretch; }
.rail-slim .switcher { justify-content: center; padding: 6px 0; }
.rail-slim .switcher-text, .rail-slim .switcher .icon, .rail-slim .user-text { display: none; }
.rail-slim .rail .new { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; align-self: center; }
.rail-slim .rail .new .label { display: none; }
.rail-slim .rail nav a { flex-direction: column; gap: 3px; padding: 7px 2px; font-size: 11px; font-weight: 550; text-align: center; min-height: 52px; }
.rail-slim .user { justify-content: center; padding: 6px 0; }
.rail-slim .rail .badge.money { margin: 0 auto 6px; font-size: 10px; padding: 1px 6px; }
.rail-slim .rail .badge.money .label { display: none; }
.rail-slim .menu { left: 4px; right: auto; }

.content { min-width: 0; }
.page { max-width: 1360px; margin: 0 auto; padding: 22px max(24px, env(safe-area-inset-right)) 96px 24px; }
.shell.out .page { max-width: none; padding: 0; }
@media (max-width: 899px) { .page { padding: 16px max(16px, env(safe-area-inset-right)) 96px 16px; } }

/* page header: breadcrumbs, title, one row of actions */
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs .icon { width: 14px; height: 14px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.page-head .count { font-size: 15px; color: var(--ink-3); font-weight: 500; }
.page-sub { color: var(--ink-3); font-size: 14px; margin: -10px 0 18px; }

/* ------------------------------------------------------------------ cards and layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head .icon { color: var(--ink-3); }
.card-head .hint { color: var(--ink-3); font-size: 13px; }
.card.narrow { max-width: 420px; margin: 0 auto; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1100px) {
  .split { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; }
  .split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.split > .side { min-width: 0; }
@media (min-width: 1100px) { .split > .side { border-left: 1px solid var(--line); padding-left: 28px; } }
.divider { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.actions.sticky { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0 max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); z-index: 5; margin-top: 0; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.empty { color: var(--ink-3); font-size: 14px; padding: 6px 0; }

/* ------------------------------------------------------------------ forms */
label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); min-width: 0; }
label.inline { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: 14px; }
input, select, textarea, button, .button { font: inherit; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  min-height: 38px; font-weight: 400; font-size: 14.5px; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: .8; }
input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, input[type=search]:hover, select:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-soft); }
button:focus-visible, a:focus-visible, tr:focus-visible, .chip-btn:focus-visible, .board-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }
input:disabled { background: var(--sunken); color: var(--ink-3); }
input.invalid, select.invalid { border-color: var(--red-dot); background: var(--red-bg); }
.field-error { color: var(--red-ink); font-size: 12px; font-weight: 500; }
button, .button { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  cursor: pointer; min-height: 38px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 550; font-size: 14px; white-space: nowrap; }
button:hover, .button:hover { background: var(--sunken); text-decoration: none; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
button.primary:hover, .button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.ghost { border-color: transparent; background: none; color: var(--ink-2); }
button.ghost:hover { background: var(--sunken); color: var(--ink); }
button:disabled { opacity: .5; cursor: default; }
button.small { padding: 4px 10px; min-height: 30px; font-size: 13px; }
button.link { border: 0; background: none; padding: 0; min-height: 0; color: var(--accent-ink); font-weight: 600; }
button.link:hover { text-decoration: underline; background: none; }
button.icon-btn { padding: 0; width: 34px; min-height: 34px; height: 34px; border-color: transparent; background: none; color: var(--ink-2); font-size: 20px; }
button.icon-btn:hover { background: var(--sunken); }
.grid3, .grid4, .grid6 { display: grid; gap: 12px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid6 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 2; }
@media (min-width: 760px) { .span3 { grid-column: span 3; } }
.grid3 > button, .grid4 > button, .grid6 > button { justify-self: start; width: auto; }
details.more { margin-top: 12px; }
details.more > summary { cursor: pointer; color: var(--accent-ink); font-size: 13.5px; font-weight: 600; padding: 4px 0; list-style: none; display: flex; align-items: center; gap: 6px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px;
  background: var(--accent-soft); font-weight: 700; font-size: 13px; }
details.more[open] > summary::before { content: "−"; }
details.more[open] > summary { margin-bottom: 10px; }
.chip { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; margin-right: 10px; color: var(--ink); font-size: 14px; font-weight: 500; }

/* touch: bigger targets, 16 px text so iOS Safari does not zoom into a field */
@media (pointer: coarse) {
  :root { --font: 16px; }
  input[type=text], input[type=email], input[type=password], input[type=search], select, textarea { font-size: 16px; min-height: 44px; }
  button, .button { min-height: 44px; }
  button.small { min-height: 38px; }
  .chip-btn { min-height: 40px; }
}

/* ------------------------------------------------------------------ picker */
.picker { position: relative; }
.picker-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-pop); max-height: 300px; overflow-y: auto; }
.picker-item { padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; color: var(--ink); border-radius: var(--r-sm); font-weight: 500; font-size: 14px; }
.picker-item.active, .picker-item:hover { background: var(--accent-soft); }
.picker-sub { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.picker-empty { padding: 8px 10px; font-size: 13px; color: var(--ink-3); font-weight: 400; }

/* ------------------------------------------------------------------ tables */
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
tr.old td { color: var(--ink-3); }
td .sub, .sub { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
table.compact td, table.compact th { padding: 7px 8px; }
table.compact td { font-size: 14px; }
.strong { font-weight: 620; }
.route { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.route .arrow { color: var(--ink-3); }

/* ------------------------------------------------------------------ status chips and badges: one colour language */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 2px 10px 2px 8px; border-radius: 99px;
  background: var(--grey-bg); color: var(--grey-ink); white-space: nowrap; line-height: 1.5; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grey-dot); flex: none; }
.badge.plain::before, .badge.money::before { display: none; }
.badge.plain { padding: 2px 9px; }
.badge.big { font-size: 13.5px; padding: 4px 12px 4px 10px; }
.badge.ok, .s-delivered, .s-paperwork_complete, .t-delivery, .d-paid_by_broker, .d-paid_to_driver { background: var(--green-bg); color: var(--green-ink); }
.badge.ok::before, .s-delivered::before, .s-paperwork_complete::before, .t-delivery::before, .d-paid_by_broker::before, .d-paid_to_driver::before { background: var(--green-dot); }
.s-dispatched, .s-in_transit, .t-pickup, .d-claimed_from_broker { background: var(--blue-bg); color: var(--blue-ink); }
.s-dispatched::before, .s-in_transit::before, .t-pickup::before, .d-claimed_from_broker::before { background: var(--blue-dot); }
.s-invoiced, .s-paid { background: var(--violet-bg); color: var(--violet-ink); }
.s-invoiced::before, .s-paid::before { background: var(--violet-dot); }
.badge.warn, .s-needs_review, .t-handoff, .d-requested, .badge.money { background: var(--amber-bg); color: var(--amber-ink); }
.badge.warn::before, .s-needs_review::before, .t-handoff::before, .d-requested::before { background: var(--amber-dot); }
.s-cancelled, .d-denied_by_broker { background: var(--red-bg); color: var(--red-ink); }
.s-cancelled::before, .d-denied_by_broker::before { background: var(--red-dot); }
.badge.money { gap: 5px; }

/* ------------------------------------------------------------------ the loads screen: toolbar, quick filters, list, board */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.searchbox { position: relative; flex: 1 1 280px; max-width: 420px; }
.searchbox .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 18px; height: 18px; pointer-events: none; }
.searchbox input { padding-left: 36px; padding-right: 36px; }
.searchbox kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip-btn { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 99px; padding: 5px 13px;
  min-height: 34px; font-size: 13.5px; font-weight: 550; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip-btn:hover { background: var(--sunken); color: var(--ink); }
.chip-btn.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip-btn .n { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.chips select { width: auto; min-height: 34px; border-radius: 99px; font-size: 13.5px; padding: 4px 30px 4px 13px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg button { border: 0; border-radius: 0; min-height: 36px; padding: 6px 12px; color: var(--ink-2); background: none; font-size: 13.5px; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--sunken); color: var(--ink); }
.table-card { padding: 4px 8px; }
table.loads td { vertical-align: middle; }
table.loads td:first-child, table.loads th:first-child { padding-left: 14px; }
table.loads td:last-child, table.loads th:last-child { padding-right: 14px; }
.load-no { font-weight: 650; font-variant-numeric: tabular-nums; }
.list-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
@media (max-width: 899px) { table.loads .opt { display: none; } }

.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.lane { background: var(--sunken); border-radius: var(--r); padding: 10px; min-width: 0; }
.lane-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.lane-head .badge { font-size: 12.5px; }
.lane-head .n { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.lane-body { display: flex; flex-direction: column; gap: 8px; }
.board-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; color: var(--ink);
  box-shadow: var(--shadow); }
.board-card:hover { border-color: var(--ink-3); text-decoration: none; }
.board-card .top-line { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.board-card .top-line .small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-card .rate { flex: none; margin-left: auto; font-weight: 620; font-variant-numeric: tabular-nums; font-size: 14px; }
.board-card .lane-route { font-size: 14px; font-weight: 520; margin-top: 4px; }
.board-card .meta { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.lane .more-link { display: block; text-align: center; font-size: 13px; padding: 6px; }
.lane .none { color: var(--ink-3); font-size: 13px; text-align: center; padding: 14px 4px; }
@media (max-width: 1199px) { .board { grid-template-columns: repeat(5, minmax(210px, 1fr)); } }

/* ------------------------------------------------------------------ the load page */
.load-head { padding-bottom: 14px; }
.load-head .title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.load-head h1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.po { font-size: 16px; color: var(--ink-3); font-weight: 500; }
.progress { display: flex; gap: 0; margin: 18px 0 4px; list-style: none; padding: 0; }
.progress li { flex: 1 1 0; position: relative; padding-top: 14px; font-size: 12px; color: var(--ink-3); font-weight: 550; min-width: 0; text-align: left; }
.progress li::before { content: ""; position: absolute; top: 3px; left: 0; right: 4px; height: 4px; border-radius: 4px; background: var(--sunken); }
.progress li.done::before { background: var(--accent); }
.progress li.now::before { background: var(--accent); }
.progress li.done, .progress li.now { color: var(--ink-2); }
.progress li.now { color: var(--accent-ink); font-weight: 650; }
@media (max-width: 899px) { .progress li { font-size: 11px; } }
dl.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 20px; margin: 16px 0 0; }
dl.facts dt { font-size: 12px; color: var(--ink-3); font-weight: 550; }
dl.facts dd { margin: 2px 0 0; font-weight: 560; font-size: 14.5px; }
dl.facts.quiet dd { font-weight: 450; }
.subnav { position: sticky; top: 0; z-index: 15; display: flex; gap: 4px; padding: 8px 0; margin: -4px 0 12px; background: var(--bg); overflow-x: auto; }
.subnav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; color: var(--ink-2); font-size: 13.5px; font-weight: 560; white-space: nowrap; }
.subnav a:hover { background: var(--sunken); text-decoration: none; color: var(--ink); }
.subnav .icon { width: 16px; height: 16px; }
section[id] { scroll-margin-top: 64px; }

/* stops as a vertical timeline */
ol.stops { list-style: none; margin: 0; padding: 0; position: relative; }
li.stop { position: relative; padding: 0 0 22px 40px; }
li.stop::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
li.stop:last-child { padding-bottom: 4px; }
li.stop:last-child::before { display: none; }
li.stop.done::before { background: var(--accent); }
.seq { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; background: var(--surface); color: var(--ink-2); border: 2px solid var(--line-2); }
li.stop.done .seq { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
li.stop.current .seq { border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.stop-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 28px; }
.stop-head strong { font-size: 15px; font-weight: 640; }
.stop-body { display: grid; grid-template-columns: 1fr; gap: 6px 18px; margin-top: 6px; color: var(--ink-2); font-size: 14px; }
@media (min-width: 600px) { .stop-body { grid-template-columns: 1fr 1fr; } .stop-body > .small { grid-column: span 2; } }
.stop-body .when > div:first-child { color: var(--ink); font-weight: 550; }
.appt { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.events { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--line); }
.events input.time, .events input.date { width: 96px; }
.events .error-box { flex-basis: 100%; }
.legs-wrap { margin-top: 8px; }
.note { color: var(--ink-3); font-size: 12.5px; margin-top: 8px; }

/* terms */
ul.terms { margin: 0; padding: 0; list-style: none; }
ul.terms li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
ul.terms li:last-child { border-bottom: 0; }
ul.terms .term-text { flex: 1 1 260px; min-width: 0; }
ul.terms .term-text > .small { display: block; margin-top: 2px; }

/* money: the three split rules side by side */
.money-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1100px) { .money-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.rules { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
@media (min-width: 760px) { .rules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rule { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--surface); }
.rule h3 { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.rule.in-force { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: color-mix(in srgb, var(--accent-soft) 35%, var(--surface)); }
.rule .total { font-size: 24px; font-weight: 680; margin: 6px 0 8px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
ul.pay-legs { list-style: none; padding: 0; margin: 0; }
ul.pay-legs li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.money { font-weight: 640; font-variant-numeric: tabular-nums; }
.big-figure { font-size: 22px; font-weight: 680; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
section.pay { margin-top: 4px; }
.split-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.split-form select { width: auto; }

/* activity: detention and the history feed */
ul.claims, ul.history { list-style: none; padding: 0; margin: 0; }
li.claim { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; background: var(--surface-2); }
li.claim > * + * { margin-top: 6px; }
li.claim .bar input { width: 140px; }
li.claim .bar select { width: auto; }
ul.history { position: relative; }
ul.history li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 0 12px; padding: 0 0 14px; position: relative; }
ul.history li::before { content: ""; grid-row: 1 / span 3; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--grey-dot); justify-self: center; }
ul.history li::after { content: ""; position: absolute; left: 6px; top: 18px; bottom: 2px; width: 1px; background: var(--line); }
ul.history li:last-child::after { display: none; }
ul.history li.status::before { background: var(--accent); }
ul.history li > span { grid-column: 2; }
ul.history .what { font-weight: 560; font-size: 14px; }
ul.history .when { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.when { font-variant-numeric: tabular-nums; }
.req-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.req-form select { width: auto; }
.req-form input { width: auto; flex: 1 1 200px; }

/* ------------------------------------------------------------------ the new-load form */
.form-card .card-head h2 { display: flex; align-items: center; gap: 10px; }
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
  font-size: 12.5px; font-weight: 700; }
.stop-edit, .term-edit { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; background: var(--surface-2); }
.stop-edit > .bar { margin-bottom: 10px; }
.stop-edit > .bar strong { font-size: 14.5px; }
.stop-edit select[name$=".type"] { width: auto; min-width: 120px; }
.ref-row { margin-bottom: 10px; }

/* ------------------------------------------------------------------ simple lists: drivers, trucks, customers */
.list-card { padding: 4px 8px; }
.list-card td:first-child, .list-card th:first-child { padding-left: 14px; }
.list-card td:last-child, .list-card th:last-child { padding-right: 14px; }
.list-card td { vertical-align: middle; }
.name-cell { display: flex; align-items: center; gap: 10px; font-weight: 580; }
.name-cell .avatar { width: 30px; height: 30px; font-size: 12px; }
.kv { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 0; }
.kv > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.kv .k { color: var(--ink-3); font-size: 13.5px; font-weight: 550; }
.kv .v { font-size: 14.5px; }
.shortcuts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; font-size: 14px; }
.shortcuts > span:nth-child(odd) { display: flex; gap: 4px; }
.state-line { display: flex; align-items: center; gap: 12px; }
.state-dot { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); }
.state-dot.open { background: var(--amber-bg); color: var(--amber-ink); }

/* ------------------------------------------------------------------ messages */
.error-box { border: 1px solid color-mix(in srgb, var(--red-dot) 40%, transparent); background: var(--red-bg); color: var(--red-ink);
  border-radius: var(--r-sm); padding: 10px 14px; margin: 10px 0; font-size: 14px; }
.error-box p { margin: 0; }
.error-box ul { margin: 6px 0 0; padding-left: 18px; }
p.error { color: var(--red-ink); margin: 0; font-size: 14px; }
.warn { color: var(--amber-ink); }
div.warn { background: var(--amber-bg); border-radius: var(--r-sm); padding: 10px 14px; margin-top: 14px; font-size: 14px; }
div.warn ul { margin: 6px 0 0; padding-left: 18px; }
.banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--amber-bg); color: var(--amber-ink); border-radius: var(--r);
  padding: 10px 14px; margin-bottom: 14px; font-size: 14px; font-weight: 520; }
.banner.ok { background: var(--green-bg); color: var(--green-ink); }
.boot { color: var(--ink-3); padding: 40px; text-align: center; }

/* ------------------------------------------------------------------ signed out: sign in and the company chooser */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.gate-inner { width: min(420px, 100%); }
.brandline { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 22px; }
.brandline .mark { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
.brandline strong { font-size: 20px; letter-spacing: -.01em; }
.gate .card { padding: 26px 26px 22px; }
.gate h1 { font-size: 21px; margin-bottom: 4px; }
.gate .lead { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.signin .actions button.primary { width: 100%; min-height: 42px; }
.signin input { font-size: 16px; }
.choices { list-style: none; padding: 0; margin: 0 0 14px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; color: var(--ink); }
.choice:hover { background: var(--sunken); text-decoration: none; }
.choice > span:last-child { display: flex; flex-direction: column; }
.choice small { color: var(--ink-3); font-size: 13px; }

/* ------------------------------------------------------------------ modal */
.modal-back { position: fixed; inset: 0; background: rgba(10, 14, 20, .45); z-index: 50; display: flex; align-items: flex-start; justify-content: center;
  padding: 7vh 14px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 14px; width: min(680px, 100%); padding: 20px 22px; box-shadow: var(--shadow-pop); border: 1px solid var(--line); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h2 { margin: 0; }
.modal-head button.icon { border: 0; background: none; font-size: 24px; min-height: 0; padding: 0 6px; color: var(--ink-3); }
.chips select.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
h3.first { margin-top: 0; }
.section-title { font-size: 15px; margin: 0 0 10px; color: var(--ink-2); }
.grid2 { display: grid; gap: 12px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.grid2 > .actions { margin-top: 2px; }
.assign-block .error-box { grid-column: 1 / -1; }
.a-active { background: var(--green-bg); color: var(--green-ink); } .a-active::before { background: var(--green-dot); }
.a-in_shop { background: var(--amber-bg); color: var(--amber-ink); } .a-in_shop::before { background: var(--amber-dot); }
ul.plain-list { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
ul.plain-list li + li { margin-top: 6px; }
tr.edit td { background: var(--surface-2); }
form.inline-edit { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 4px 0; }
form.inline-edit label { flex: 1 1 180px; }
form.inline-edit .actions { margin-top: 0; }
form.inline-edit .error-box { flex-basis: 100%; }
.stop-edit .step { margin-right: 2px; }
.bar select { width: auto; }
.term-edit .grid6 > button.small { align-self: end; }

/* ------------------------------------------------------------------ the Assets menu (build G) */
/* expiry chips: red = expired or a required paper missing, amber = due inside the company's lead days, green = fine */
.x-expired { background: var(--red-bg); color: var(--red-ink); } .x-expired::before { background: var(--red-dot); }
.x-missing { background: var(--red-bg); color: var(--red-ink); } .x-missing::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--red-dot); }
.x-due { background: var(--amber-bg); color: var(--amber-ink); } .x-due::before { background: var(--amber-dot); }
.x-ok { background: var(--green-bg); color: var(--green-ink); } .x-ok::before { background: var(--green-dot); }
.a-inactive { background: var(--grey-bg); color: var(--ink-3); }
/* the tabs: the segmented control, as links */
.seg.tabs a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 13px; color: var(--ink-2); font-size: 13.5px; font-weight: 550; }
.seg.tabs a + a { border-left: 1px solid var(--line-2); }
.seg.tabs a:hover { background: var(--sunken); text-decoration: none; color: var(--ink); }
.seg.tabs a.on { background: var(--sunken); color: var(--ink); }
.seg.tabs .icon { width: 16px; height: 16px; }
.seg.tabs .n { font-size: 12px; font-variant-numeric: tabular-nums; background: var(--amber-bg); color: var(--amber-ink); border-radius: 99px; padding: 0 7px; font-weight: 650; }
@media (pointer: coarse), (max-width: 1199px) { .seg.tabs a { min-height: 44px; } }
/* the rail's badge on Assets */
.rail nav a { position: relative; }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: 11.5px; font-weight: 700; display: inline-grid;
  place-items: center; font-variant-numeric: tabular-nums; line-height: 1; }
.nav-count.x-expired { background: var(--red-dot); color: #fff; }
.nav-count.x-due { background: var(--amber-dot); color: #fff; }
.nav-count::before { display: none; }
.rail-slim .nav-count { position: absolute; top: 4px; right: 8px; margin: 0; min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 5px; }
/* the unit page */
.unit-head { padding-bottom: 14px; }
.unit-head .title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.unit-head h1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
td.row-actions { white-space: nowrap; text-align: right; }
td.row-actions button + button, td.row-actions span + button, td.row-actions button + span { margin-left: 6px; }
table.papers td, table.service td, table.expiring td { vertical-align: middle; }
div.warn.missing { margin: 0 0 12px; }
div.warn.missing button.link { color: var(--amber-ink); text-decoration: underline; }
.lead-line { margin: -4px 0 12px; color: var(--ink-2); }
.asset-warning label { margin-top: 10px; }
.asset-warning ul { margin: 6px 0 0; }
.asset-notes { margin: 0 0 12px; }
.unit-form textarea { width: 100%; }
td.nowrap { white-space: nowrap; }
a.file-link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
a.file-link .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ build H: Today, Dispatch, Drivers, Money, Settings */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
  color: var(--ink); box-shadow: var(--shadow); min-height: 84px; }
a.tile:hover { border-color: var(--ink-3); text-decoration: none; }
.tile-n { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.1; }
.tile-w { font-size: 13px; color: var(--ink-3); font-weight: 550; }
.tile.warn { background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber-dot) 45%, transparent); }
.tile.warn .tile-n, .tile.warn .tile-w { color: var(--amber-ink); }
.tile.bad { background: var(--red-bg); border-color: color-mix(in srgb, var(--red-dot) 45%, transparent); }
.tile.bad .tile-n, .tile.bad .tile-w { color: var(--red-ink); }
.why { display: flex; gap: 6px; flex-wrap: wrap; }
.why-chip { background: var(--amber-bg); color: var(--amber-ink); }
table.today-need td, table.today-papers td { vertical-align: middle; }
.page-sub { margin-top: -8px; }
/* the dispatch board: one lane per driver (Now, Next), loads without a driver as cards, units as pills */
.unassigned { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.board-card.flat { box-shadow: none; }
.board-card .actions { margin-top: 8px; }
.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-bottom: 16px; }
@media (max-width: 899px) { .lanes { grid-template-columns: minmax(0, 1fr); } }
.driver-lane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.lane-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.lane-top a.strong { font-size: 15.5px; color: var(--ink); }
.slot { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.slot-label { font-size: 12px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.slot-label .small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.slot-load { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; margin-bottom: 8px; background: var(--surface-2); min-width: 0; }
.slot-load.on { border-color: color-mix(in srgb, var(--blue-dot) 45%, var(--line)); background: color-mix(in srgb, var(--blue-bg) 45%, var(--surface)); }
.slot-load .lane-route { font-size: 14px; margin-top: 4px; }
.slot .none { color: var(--ink-3); font-size: 13.5px; padding: 2px 0 8px; }
ol.queue { list-style: none; margin: 0; padding: 0; }
.qn { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sunken); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.unit-pill { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); font-size: 13px; min-height: 44px; }
.unit-pill:hover { border-color: var(--ink-3); text-decoration: none; }
.unit-pill strong { font-size: 14.5px; }
.unit-pill.busy { background: color-mix(in srgb, var(--blue-bg) 55%, var(--surface)); }
.unit-pill.free span { color: var(--green-ink); }
/* drivers, money, settings */
.reminders { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.escrow { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.week-head .title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.week-nav button { min-height: 40px; }
.week-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.week-totals > div strong { font-variant-numeric: tabular-nums; }
.week-totals > .grand { border-bottom: 0; font-size: 17px; }
.week-totals > .grand strong { font-size: 20px; }
.week-sum { max-width: 460px; margin: 16px 0 0 auto; }
.blocked { margin-left: 6px; }
div.warn.blocked-note { margin: 0 0 12px; }
table.week-lines td { vertical-align: middle; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 16px; }
.perm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.role .card-head { margin-bottom: 10px; }
input[readonly] { background: var(--sunken); }
@media (pointer: coarse) { button.link { min-height: 38px; padding: 0 4px; } }
.week-totals > p { margin-top: 8px; }

/* ------------------------------------------------------------------ phase 6 + the load stage (16 Oct 2026, rate con upload brief)
   New tokens for the stage colours (teal, orange, light green), light and dark, the same recipe as the others. */
:root {
  --teal-bg: #def3f4; --teal-ink: #0f5f66; --teal-dot: #1b9aa5;
  --orange-bg: #fde8da; --orange-ink: #8a3a0a; --orange-dot: #e8732a;
  --mint-bg: #ecf8e6; --mint-ink: #3a6b1f; --mint-dot: #7cc35a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --teal-bg: #12302f; --teal-ink: #86d9df; --teal-dot: #34b3bd;
    --orange-bg: #3a2414; --orange-ink: #f6b48a; --orange-dot: #f08a46;
    --mint-bg: #1d2f17; --mint-ink: #b5e39b; --mint-dot: #8fd06d;
  }
}
/* the derived stage of a load (API `stage`): its own classes, so the stored-status badges (.s-*) keep working */
.g-draft, .g-needs_review, .g-booked { background: var(--grey-bg); color: var(--grey-ink); }
.g-draft::before, .g-needs_review::before, .g-booked::before { background: var(--grey-dot); }
.g-needs_review { background: var(--amber-bg); color: var(--amber-ink); } .g-needs_review::before { background: var(--amber-dot); }
.g-dispatched { background: var(--blue-bg); color: var(--blue-ink); } .g-dispatched::before { background: var(--blue-dot); }
.g-at_pickup { background: var(--amber-bg); color: var(--amber-ink); } .g-at_pickup::before { background: var(--amber-dot); }
.g-in_transit { background: var(--teal-bg); color: var(--teal-ink); } .g-in_transit::before { background: var(--teal-dot); }
.g-at_delivery { background: var(--orange-bg); color: var(--orange-ink); } .g-at_delivery::before { background: var(--orange-dot); }
.g-late, .g-cancelled { background: var(--red-bg); color: var(--red-ink); } .g-late::before, .g-cancelled::before { background: var(--red-dot); }
.g-delivered { background: var(--mint-bg); color: var(--mint-ink); } .g-delivered::before { background: var(--mint-dot); }
.g-paperwork_complete { background: var(--green-bg); color: var(--green-ink); } .g-paperwork_complete::before { background: var(--green-dot); }
.g-invoiced, .g-paid { background: var(--violet-bg); color: var(--violet-ink); } .g-invoiced::before, .g-paid::before { background: var(--violet-dot); }
.stage-legend { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13px; color: var(--ink-2); margin: 4px 0 10px; }
.stage-legend[hidden] { display: none; }
.stage-why { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* rate con upload: the start card, the reading state, the amber fields, the document beside the form */
.drop-zone { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border: 2px dashed var(--line-2);
  border-radius: var(--r); background: var(--surface-2); }
.drop-zone.over { border-color: var(--accent); background: var(--accent-soft); }
label.button { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.reading { display: flex; align-items: center; gap: 14px; padding: 22px; }
.reading .lead { margin: 0; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); flex: none;
  animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-top-color: var(--amber-dot); } }
input.ai-check, select.ai-check { border-color: var(--amber-dot); background: var(--amber-bg); box-shadow: 0 0 0 1px var(--amber-dot); }
.ai-why { display: block; color: var(--amber-ink); font-size: 12px; font-weight: 500; margin-top: 2px; }
/* the rate con box (17 Oct 2026): amber only when something needs a human; otherwise a calm green line */
.ratecon-banner { border-left: 4px solid var(--line); }
.ratecon-banner.has-checks { border-left-color: var(--amber-dot); }
.ratecon-banner.all-read { border-left-color: var(--green-dot); }
.ratecon-banner .check-count { color: var(--amber-ink); font-weight: 600; }
.ratecon-banner .read-ok { color: var(--green-ink); font-weight: 550; }
.reader-notes { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.reader-notes summary { cursor: pointer; color: var(--ink-3); }
.reader-notes ul { margin: 6px 0 0; padding-left: 18px; }
.glance { margin: 4px 0 6px; }
.glance-route { margin: 0 0 4px; font-size: 15px; }
.glance-money { font-weight: 650; }
.glance-stops { margin: 0; padding-left: 0; list-style: none; font-size: 14px; display: grid; gap: 3px; }
.gate-no { font-variant-numeric: tabular-nums; }
.zone-suffix { color: var(--ink-3); font-size: 11.5px; font-weight: 500; letter-spacing: .02em; }
.pay-lines { margin-top: 10px; font-size: 13.5px; }
.term-lines { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.term-line { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.term-line .term-text { flex: 1; }
.printed { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.rules-fold { margin: 6px 0 12px; }
.rules-fold > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 6px 0; }
.term-actions { display: flex; gap: 8px; justify-content: flex-end; }
.crop-cell { align-self: end; }
.crop { display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.crop img { max-width: 100%; max-height: 120px; object-fit: contain; object-position: left top; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; }
.gate-numbers { display: flex; gap: 12px; flex-wrap: wrap; margin: 2px 0 4px; font-size: 14px; }
.when .window { font-variant-numeric: tabular-nums; }
.doc-scroll { flex: 1; overflow: auto; background: var(--sunken); -webkit-overflow-scrolling: touch; }
.doc-pages { width: 100%; display: grid; gap: 8px; padding: 8px; box-sizing: border-box; }
.doc-page { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.zoom { display: inline-flex; align-items: center; gap: 4px; }
.zoom .zoom-level { min-width: 34px; text-align: center; }
.ai-list { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--amber-ink); }
.intake-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 42%); gap: 16px; align-items: start; }
.intake-split .doc-tabs { display: none; }
.doc-pane { position: sticky; top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; height: calc(100vh - 40px); }
.doc-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.doc-frame { flex: 1; width: 100%; border: 0; background: var(--sunken); }
.doc-img { width: 100%; height: auto; overflow: auto; }
@media (max-width: 1180px) {
  .intake-split { grid-template-columns: minmax(0, 1fr); }
  .intake-split .doc-tabs { display: inline-flex; justify-self: start; }
  .intake-split .doc-pane { display: none; position: static; height: 80vh; }
  .intake-split.show-doc .doc-pane { display: flex; }
  .intake-split.show-doc .intake-form { display: none; }
}

/* driver page: a paper's expiry derived from the paper on file */
.from-paper { display: block; font-size: 12px; color: var(--ink-3); }

/* a refused term / stop / reference row on New load: outlined, and named in the banner (17 Oct 2026) */
.stop-edit.row-invalid, .term-edit.row-invalid, .ref-row.row-invalid { border-color: var(--red-dot); box-shadow: 0 0 0 2px color-mix(in srgb, var(--red-dot) 35%, transparent); }
.error-box ul.refusals { list-style: none; padding-left: 0; }
.error-box ul.refusals li { margin-top: 4px; }
.error-box ul.refusals button.link { color: inherit; padding: 0; text-decoration: underline; }

/* Report a problem (17 Oct 2026): in the rail on every screen, above the person; never over a form */
.rail .report { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 8px 10px; border: 1px dashed var(--line);
  border-radius: var(--r-sm); background: none; color: var(--ink-2); font-weight: 550; min-height: 40px; width: 100%; justify-content: flex-start; }
.rail .report:hover { background: var(--sunken); color: var(--ink); }
.rail .report .short { display: none; }
.feedback textarea { width: 100%; min-height: 110px; font: inherit; resize: vertical; }
.rail-slim .rail .report { flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 10.5px; min-height: 54px; justify-content: center; text-align: center; }
.rail-slim .rail .report .label { display: none; }
.rail-slim .rail .report .short { display: inline; }
@media (pointer: coarse) { .rail .report { min-height: 48px; } }

/* 17 Oct 2026: the assign block at the top of a load (lib/assign.js): quiet by default */
.assign-card form.assign { margin-top: 4px; }
.assign-card .next-step { margin: 0; font-weight: 600; color: var(--ink-2, inherit); }
.unit-why { margin-top: 4px; }
div.unit-note { margin-top: 6px; }
.printed-diff { margin-top: 6px; }
.printed-diff button.link { margin-left: 4px; }

/* ------------------------------------------------------------------ the Join page (17 Oct 2026): the sign-in card's look */
.join-tabs { display: flex; margin: 4px 0 14px; }
.join-tabs button { flex: 1; min-height: 40px; }
.gate .actions .button.primary, .signin .actions .button.primary { width: 100%; min-height: 42px; text-align: center; justify-content: center; }
.gate a.button { display: flex; align-items: center; justify-content: center; text-align: center; white-space: normal; }
.secret { font: 16px/1.5 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; background: var(--sunken); border-radius: var(--r-sm);
  padding: 8px 10px; margin: 0; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
ol.join-codes { columns: 2; column-gap: 18px; margin: 0 0 14px; padding-left: 22px; }
ol.join-codes li { margin: 0 0 4px; }
ol.join-codes code { font-size: 14px; }
@media (pointer: coarse), (max-width: 1199px) { .join-tabs button { min-height: 44px; } }

/* passkeys (17 Oct 2026): the sign-in's and the confirm dialog's other ways, the Security tab's badges */
.badge.bad { background: var(--red-bg); color: var(--red-ink); }
.badge.bad::before { background: var(--red-dot); }
p.switches { margin: 4px 0 0; color: var(--ink-3); line-height: 2; }
.passkey-step p { margin: 0; }
td.strong .badge { margin-left: 8px; vertical-align: 1px; }

/* ------------------------------------------------------------------ the driver page (17 Oct 2026): loads first, sections that fold */
.fold-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; min-height: 44px; padding: 0; margin: -4px 0 -4px;
  border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.fold-head:hover h2 { color: var(--accent-ink); }
.fold-head h2 { margin: 0; }
.fold-head .icon { color: var(--ink-3); }
.fold-chev { display: inline-grid; place-items: center; transition: transform .15s; }
.fold-chev .icon { width: 16px; height: 16px; }
.fold.open .fold-chev { transform: rotate(90deg); }
.fold.open .fold-head { margin-bottom: 12px; }
.fold-sum { color: var(--ink-3); font-size: 13.5px; font-weight: 500; min-width: 0; }
.fold-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.fold-body[hidden] { display: none; }
.fold-actions { justify-content: flex-end; margin: -6px 0 8px; }
@media (prefers-reduced-motion: reduce) { .fold-chev { transition: none; } }

.driver-head .title-row { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.live-meta { font-size: 12.5px; color: var(--ink-3); display: inline-flex; gap: 6px; flex-wrap: wrap; }
.live-hint { font-style: italic; }
.live-meta > span + .live-hint::before { content: "· "; font-style: normal; }
.live-why { margin: 6px 0 0; }

.dl-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dl-custom { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.dl-custom[hidden] { display: none; }
.dl-custom label { font-size: 12.5px; color: var(--ink-3); display: flex; flex-direction: column; gap: 2px; }
.dl-custom input { width: auto; min-height: 36px; }
@media (pointer: coarse), (max-width: 1199px) { .dl-period button { min-height: 44px; } .dl-custom input, .dl-custom button { min-height: 44px; } }
.dl-summary { margin: 0 0 10px; font-size: 14px; }
.dl-money { color: var(--ink-2); font-weight: 600; }
.load-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 900px) { .load-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.load-card { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 11px 14px; border: 1px solid var(--line);
  border-left: 4px solid var(--grey-dot); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.load-card:hover { border-color: var(--ink-3); text-decoration: none; }
.load-card[data-stage="dispatched"] { border-left-color: var(--blue-dot); }
.load-card[data-stage="at_pickup"], .load-card[data-stage="needs_review"] { border-left-color: var(--amber-dot); }
.load-card[data-stage="in_transit"] { border-left-color: var(--teal-dot); }
.load-card[data-stage="at_delivery"] { border-left-color: var(--orange-dot); }
.load-card[data-stage="late"], .load-card[data-stage="cancelled"] { border-left-color: var(--red-dot); }
.load-card[data-stage="delivered"] { border-left-color: var(--mint-dot); }
.load-card[data-stage="paperwork_complete"] { border-left-color: var(--green-dot); }
.load-card[data-stage="invoiced"], .load-card[data-stage="paid"] { border-left-color: var(--violet-dot); }
.lc-route { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.lc-dates { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lc-owed { font-size: 13px; color: var(--red-ink); font-variant-numeric: tabular-nums; }   /* a cancelled load: what is still owed */
.lc-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.lc-foot .badge { font-size: 12px; }
.lc-miles { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lc-no { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dl-more { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }

.papers-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.paper-list { border-top: 1px solid var(--line); }
.paper-row { border-bottom: 1px solid var(--line); padding: 7px 0; }
.paper-row.old { opacity: .72; }
.paper-line { display: grid; grid-template-columns: minmax(130px, 1.3fr) minmax(90px, 1fr) 96px minmax(150px, 1.5fr) auto; gap: 10px; align-items: center; }
.paper-kind .sub { display: block; font-size: 12px; color: var(--ink-3); }
.paper-no, .paper-exp { font-variant-numeric: tabular-nums; font-size: 13.5px; overflow-wrap: anywhere; }
.paper-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.paper-acts { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.paper-more { margin: 8px 0 4px; padding: 10px 12px; background: var(--sunken); border-radius: var(--r-sm); }
.paper-more[hidden] { display: none; }
.paper-note { margin: 8px 0 0; color: var(--ink-2); }
@media (max-width: 699px) {
  .paper-line { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .paper-kind { flex-basis: 100%; }
  .paper-acts { margin-left: auto; }
}
@media (pointer: coarse) { .paper-acts .small, .paper-acts .file-link { min-height: 40px; } }
.fold-head, .fold-head:hover, .fold-head:active, .fold-head:focus { justify-content: flex-start; background: none; box-shadow: none; }
.fold-head:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--r-sm); }
@media (max-width: 599px) {
  .dl-period { display: flex; width: 100%; }
  .dl-period button { flex: 1 1 0; padding: 6px 4px; white-space: nowrap; }
}
.dl-period .short { display: none; }
@media (max-width: 599px) { .dl-period .long { display: none; } .dl-period .short { display: inline; } }
@media (max-width: 599px) { .fold .kv { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } .fold .kv .k { padding-right: 8px; } .fold .kv .v { overflow-wrap: anywhere; } }
.paper-facts { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 4px 10px; }
.paper-facts .k { color: var(--ink-3); font-weight: 550; }
.paper-facts .v { overflow-wrap: anywhere; }
.paper-line { grid-template-columns: minmax(120px, 1.2fr) minmax(90px, 1fr) 96px minmax(150px, 1.5fr) 220px; }
@media (max-width: 999px) {
  .paper-line { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .paper-kind { flex-basis: 100%; }
  .paper-acts { margin-left: auto; }
}

/* expected extras (17 Oct 2026, migration 045): the load's card and Dispatch's "Extras to recover" */
.nav-count.x-info { background: var(--accent); color: var(--on-accent); }
.badge.xs-expected { background: var(--amber-bg); color: var(--amber-ink); }
.badge.xs-expected::before { background: var(--amber-dot); }
.badge.xs-requested { background: var(--blue-bg, #e8f0fe); color: var(--blue-ink, #1a4fa0); }
.badge.xs-paid { background: var(--green-bg); color: var(--green-ink); }
.badge.xs-paid::before { background: var(--green-dot); }
.badge.xs-refused { background: var(--red-bg, #fdecec); color: var(--red-ink, #9b1c1c); }
.badge.xs-refused::before { background: var(--red-dot); }
ul.extras { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.extras li.extra, .x-row { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; display: grid; gap: 4px; min-width: 0; }
ul.extras li.extra.unconfirmed, .x-row.unconfirmed { border-color: var(--amber-dot); background: var(--amber-bg); }
ul.extras .bar, .x-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.x-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.x-actions button.small, .x-actions a.button.small, .extras-card .card-head button.small { min-height: 38px; padding: 6px 12px; }
.x-history summary { cursor: pointer; font-size: 13px; color: var(--ink-3); min-height: 30px; display: flex; align-items: center; }
.x-history ul.history { margin-top: 8px; }
.x-filters { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 4px 0 12px; }
.x-filters label { display: grid; gap: 2px; font-size: 12.5px; min-width: 150px; }
.x-rows { display: grid; gap: 8px; }
.extras-panel .card-head .hint, .extras-card .card-head .hint { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ documents on the load (18 Oct 2026, 047/048) */
.docs-card .card-head .badge { margin-left: 6px; }
.doc-group + .doc-group { margin-top: 6px; }
h3.doc-place { margin: 14px 0 8px; color: var(--ink-2); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.doc-card { border: 1px solid var(--line); border-left: 4px solid var(--grey-dot); border-radius: var(--r-sm); padding: 10px 12px;
  display: grid; gap: 6px; align-content: start; min-width: 0; background: var(--surface); }
.doc-card.c-green { border-left-color: var(--green-dot); }
.doc-card.c-amber { border-left-color: var(--amber-dot); background: var(--amber-bg); }
.doc-card.c-red { border-left-color: var(--red-dot); }
.doc-card.c-grey { color: var(--ink-2); }
.doc-card.drop { outline: 2px dashed var(--accent); outline-offset: 2px; }
.doc-card-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.doc-due { color: var(--amber-ink); font-weight: 600; }
.doc-np { color: var(--green-ink); }
ul.doc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
li.doc-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: start; }
li.doc-item[data-state="superseded"], li.doc-item[data-state="void"], li.doc-item[data-state="rejected"] { opacity: .7; }
.doc-thumb { width: 64px; height: 64px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0; overflow: hidden; display: grid;
  place-items: center; background: var(--sunken); color: var(--ink-2); font-size: 12px; cursor: zoom-in; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-thumb.pdf { gap: 0; text-decoration: none; cursor: pointer; }
.doc-thumb.pdf svg { width: 24px; height: 24px; }
.doc-item-body { display: grid; gap: 3px; min-width: 0; }
.doc-fields { font-weight: 600; overflow-wrap: anywhere; }
.doc-actions, .doc-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-card-actions button, .doc-actions button { min-height: 40px; }
.doc-history summary { cursor: pointer; font-size: 13px; color: var(--ink-3); }
ul.doc-progress { list-style: none; margin: 0; padding: 0; font-size: 13px; display: grid; gap: 2px; }
ul.doc-progress li.ok { color: var(--green-ink); }
ul.doc-progress li.warn { color: var(--amber-ink); }
ul.doc-progress li.error { color: var(--red-ink); }
.doc-viewer { display: grid; gap: 8px; }
.doc-zoom button { min-width: 44px; min-height: 40px; }
.doc-view-frame { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--sunken); }
.doc-view-img { display: block; max-width: none; }
@media (max-width: 700px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } }

/* load page usability (18 Oct 2026): stage notes, folded rate con lists, the person's card order, the green route dot */
.progress li .step-note { display: block; font-size: 11px; font-weight: 450; color: var(--ink-3); margin-top: 1px; }
.progress li.done[data-step="paperwork_complete"]::before { background: var(--green-dot); }
.progress li.done[data-step="paperwork_complete"] { color: var(--green-ink); }
.progress li.missing::before { background: var(--amber-dot); }
.progress li.missing { color: var(--amber-ink); font-weight: 650; }
.progress li.missing .step-note { color: var(--amber-ink); }
.progress-line { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.progress-line.warn { color: var(--amber-ink); }
.progress-line.ok { color: var(--green-ink); }
details.list-fold { margin: 0 0 6px; }
details.list-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 0;
  font-size: 15px; font-weight: 650; color: var(--ink); }
details.list-fold > summary::-webkit-details-marker { display: none; }
details.list-fold > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  background: var(--sunken); color: var(--ink-2); font-weight: 700; flex: none; }
details.list-fold[open] > summary::before { content: "−"; }
details.list-fold .fold-count { color: var(--ink-3); font-weight: 550; }
.subnav .arrange-btn { flex: none; white-space: nowrap; min-height: 38px; }
.arrange-head { margin-bottom: 12px; }
.arrange-head button { min-height: 38px; }
.arrange-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 12px; padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent-ink); }
.arrange-bar button { min-height: 38px; }
section.card.arranging { outline: 2px dashed var(--accent); outline-offset: 2px; }
.route-caption { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green-ink); }
.route-dot { position: absolute; z-index: 2; width: 16px; height: 16px; border-radius: 50%; background: var(--green-dot);
  border: 2px solid var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-dot) 30%, transparent); pointer-events: none; }
.route-dot.mini { position: static; width: 10px; height: 10px; border-width: 0; box-shadow: none; flex: none; }
.route-dot.on-stop { left: 6px; top: 6px; }
.route-dot.on-line { left: 6px; top: calc(50% + 6px); }
li.stop.here .seq { color: transparent; border-color: var(--green-dot); }
li.stop.finished .seq { background: var(--green-dot); border-color: var(--green-dot); color: #fff; }
li.stop.finished::before { background: var(--green-dot); }
li.stop.leaving::before { background: linear-gradient(var(--accent) 50%, var(--line) 50%); }
@media (prefers-reduced-motion: no-preference) {
  .route-dot.on-stop, .route-dot.on-line { animation: route-pulse 2.4s ease-in-out infinite; }
  @keyframes route-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--green-dot) 12%, transparent); } }
}
.toolbar .sortbox { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.toolbar .sortbox select { width: auto; max-width: 100%; }
details.list-fold .rules-fold > summary { min-height: 38px; display: flex; align-items: center; }
