/* Soldier Trucking - portal theme (SPEC_portal_theme.md v0.1; dark theme 2.34).
   Black, white, charcoal camo. Color means STATUS and nothing else.
   Every color is a token here; templates only name tokens (a status row's
   color_token, e.g. st-dock -> var(--st-dock) / var(--st-dock-bg)).
   2.34: two themes on <html data-theme>: light (:root, the paper look) and dark (the HUD console - the
   [data-theme="dark"] block near the end overrides tokens, nothing else). "device" = dark under
   prefers-color-scheme: dark. Both dark blocks are screen-only, so print is always light. The header band, the
   sign-in HUD (--hud-*) and the customer site never change with the theme. */

@font-face { font-family: "Oswald"; src: url("/static/fonts/oswald-latin-wght-normal.woff2") format("woff2");
             font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-latin-400-normal.woff2") format("woff2");
             font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-latin-500-normal.woff2") format("woff2");
             font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-latin-600-normal.woff2") format("woff2");
             font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url("/static/fonts/share-tech-mono-latin-400-normal.woff2") format("woff2");
             font-weight: 400; font-style: normal; font-display: swap; }   /* SIL OFL, fonts/OFL-ShareTechMono.txt */

:root {
  --staging-bg: #e8630a; --staging-fg: #ffffff;   /* 2.45: the staging banner + footer, the same in both themes */
  --ink:#141311; --camo1:#1a1917; --camo2:#2d2b2c; --steel:#5c5b5d; --smoke:#8d8b89;
  --paper:#f3f2ef; --card:#fff; --line:#d9d7d3; --text:#1b1a18; --muted:#6a6866; --white:#fff;
  color-scheme: light;
  /* 2.34 roles (light = what these places always were): the strong fill and the text on it, buttons,
     the accent (the pricing console's highlight - ink on paper, --hud-accent in dark) */
  --on-ink:#fff; --ink-hover:#2d2b2c;
  --primary:#141311; --on-primary:#fff; --primary-hover:#2d2b2c;
  --accent:#141311; --on-accent:#fff; --accent-soft:#e7e5e1;
  --obar-fill: var(--st-deliv); --obar-glow: var(--st-deliv-bg);
  --field:#fff; --field-line:#bdbab5; --on-status:#fff;
  --st-mix:62%;                 /* status text = the status color mixed toward --text, so it reads (>= 4.5:1) */
  --label-font:var(--display); --ground-image:none; --logo-filter:none;
  /* the pricing console's D83 split (light: monochrome - color means status) */
  --partner:#5c5b5d; --on-partner:#fff; --efs-seg:#d9d7d3; --on-efs-seg:#1b1a18; --ladder:#d9d7d3;
  --check:#c53030; --check-bg:#f9dcdc; --check-text:#1b1a18; --hot:#141311;
  /* the header band is the same in both themes */
  --hdr-text:#fff; --hdr-dim:#8d8b89; --hdr-line:#5c5b5d; --hdr-rule:#141311; --hdr-field:#fff; --hdr-field-text:#1b1a18;
  /* 2.56.8: the rail's card shadow and the scrim behind the slide-in panel / jump-to box */
  --nav-shadow:rgba(0,0,0,.25); --nav-scrim:rgba(0,0,0,.45);
  /* 2.56.79: motion - a row that changed bucket / status flashes this, then fades back */
  --motion-flash:#fbefc4;
  /* status = the only color on the page */
  --st-picked:#4b5563;  --st-picked-bg:#e8eaee;   /* Picked up, to dock */
  --st-inbound:#7c5e2a; --st-inbound-bg:#f3ead9;  /* Inbound from partner */
  --st-dock:#b7791f;    --st-dock-bg:#fbefd4;     /* On the dock */
  --st-out:#2b6cb0;     --st-out-bg:#dfeaf7;      /* Out for delivery */
  --st-deliv:#2f855a;   --st-deliv-bg:#dcf1e4;    /* Delivered */
  --st-exc:#c53030;     --st-exc-bg:#f9dcdc;      /* Exception */
  --display:"Oswald","Arial Narrow",Impact,sans-serif;
  --body:"Barlow","Segoe UI",Arial,sans-serif;
  --mono:"Share Tech Mono",Consolas,"Courier New",monospace;
  /* the sign-in HUD (2.30) - its accent is the one non-status color, here only */
  --hud-accent:#5CFF9D; --hud-on-accent:#06110a;
  --hud-black:#070908; --hud-card:rgba(6,8,7,.82); --hud-bar:rgba(0,0,0,.62); --hud-shade:rgba(0,0,0,.72);
  --hud-text:#eef2ef; --hud-grey:#c3cac5; --hud-muted:#a3aca6; --hud-dim:#7d8780;
  --hud-ring:rgba(205,225,212,.30); --hud-cross:rgba(205,225,212,.13); --hud-bracket:rgba(255,255,255,.75);
  --hud-scanline:rgba(255,255,255,.028);
  --hud-input:#0a0d0b; --hud-input-line:#2c3d33;
  --hud-red:#ff7b7b; --hud-red-bg:rgba(255,92,92,.10);
  --efs-charcoal:#15181D; --efs-red:#C5383A; --efs-on-red:#ffffff; --efs-red-text:#EE7A7C; --efs-white:#ffffff;
  --efs-card:rgba(21,24,29,.92); --efs-input:#0e1014; --efs-line:#3a3f48; --efs-ring:rgba(255,255,255,.22);
  --efs-cross:rgba(255,255,255,.10);
  /* 2.41: the EFS sign-in globe (design B) */
  --efs-page:#0B0D10; --efs-globe-disc:#0E1115;
  /* 2.42: an EFS-brand customer's signed-in pages - the EFS red as the console accent (light / dark below) */
  --cust-efs-accent:#C5383A; --on-cust-efs-accent:#ffffff; --cust-efs-accent-soft:#f7e1e1;
  /* 2.42.1: the EFS-brand page palette - light = the shared light values (unchanged); dark (below) = the EFS palette,
     neutral greys, no green */
  --cust-efs-ink:#141311; --cust-efs-on-ink:#fff; --cust-efs-ink-hover:#2d2b2c; --cust-efs-camo2:#2d2b2c;
  --cust-efs-steel:#5c5b5d; --cust-efs-smoke:#8d8b89; --cust-efs-paper:#f3f2ef; --cust-efs-card:#fff;
  --cust-efs-line:#d9d7d3; --cust-efs-text:#1b1a18; --cust-efs-muted:#6a6866; --cust-efs-field:#fff;
  --cust-efs-field-line:#bdbab5; --cust-efs-ladder:#d9d7d3;
  --cust-efs-ground-image:none;
  /* 2.42.1: the EFS pre-login pages' greys - neutral, not the HUD's green-tinted ones */
  --efs-grey:#C9CDD3; --efs-muted:#A7ADB5; --efs-dim:#7F858E;
}

/* ── the dark theme (2.34): the HUD console palette. Screen only - print stays light. The two blocks are the
   same list (a test keeps them equal): [data-theme="dark"], and "device" when the device prefers dark. ─── */
@media screen {
  :root[data-theme="dark"] {
  color-scheme: dark;
  --ink:#e7efe9; --on-ink:#0a0c0b; --ink-hover:#c9d3cc; --camo2:#1b2620; --steel:#3a4a40; --smoke:#6f8178;
  --paper:#0a0c0b; --card:#070a08; --line:#1d2a22; --text:#e7efe9; --muted:#8fa197;
  --primary:#5CFF9D; --on-primary:#04140a; --primary-hover:#8dffbb;
  --accent:#5CFF9D; --on-accent:#04140a; --accent-soft:#0f2a1b;
  --obar-fill: var(--st-deliv); --obar-glow: var(--st-deliv-bg);
  --field:#050706; --field-line:#2b3a31; --on-status:#0a0c0b; --st-mix:85%;
  --st-picked:#aab4c3;  --st-picked-bg:#1a1f27;
  --st-inbound:#d7b57a; --st-inbound-bg:#2a2214;
  --st-dock:#f2c14e;    --st-dock-bg:#2d2410;
  --st-out:#7ab8f5;     --st-out-bg:#0f2133;
  --st-deliv:#5fd394;   --st-deliv-bg:#0f2a1b;
  --st-exc:#ff7b7b;     --st-exc-bg:#2e1414;
  --label-font:var(--mono); --logo-filter:invert(1);
  --ground-image:linear-gradient(rgba(140,255,190,.035) 1px, transparent 1px),
                 linear-gradient(90deg, rgba(140,255,190,.035) 1px, transparent 1px);
  --partner:#4FB3FF; --on-partner:#03111f; --efs-seg:#e7efe9; --on-efs-seg:#0a0c0b; --ladder:#2a3b31;
  --check:#F2C14E; --check-bg:#281c06; --check-text:#f3e6c4; --hot:#F2C14E;
  --nav-shadow:rgba(0,0,0,.6); --nav-scrim:rgba(0,0,0,.6);
  --motion-flash:#2f2a12;
  --cust-efs-accent:#EE7A7C; --on-cust-efs-accent:#1a0606; --cust-efs-accent-soft:#2e1414;
  --cust-efs-ink:#EEF0F3; --cust-efs-on-ink:#0B0D10; --cust-efs-ink-hover:#C9CDD3; --cust-efs-camo2:#1C2027;
  --cust-efs-steel:#3A3F48; --cust-efs-smoke:#7B828C; --cust-efs-paper:#0B0D10; --cust-efs-card:#15181D;
  --cust-efs-line:#262A31; --cust-efs-text:#EEF0F3; --cust-efs-muted:#9AA1AB; --cust-efs-field:#0E1013;
  --cust-efs-field-line:#3A3F47; --cust-efs-ladder:#2A2F37;
  --cust-efs-ground-image:linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                 linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  }
}
@media screen and (prefers-color-scheme: dark) {
  :root[data-theme="device"] {
  color-scheme: dark;
  --ink:#e7efe9; --on-ink:#0a0c0b; --ink-hover:#c9d3cc; --camo2:#1b2620; --steel:#3a4a40; --smoke:#6f8178;
  --paper:#0a0c0b; --card:#070a08; --line:#1d2a22; --text:#e7efe9; --muted:#8fa197;
  --primary:#5CFF9D; --on-primary:#04140a; --primary-hover:#8dffbb;
  --accent:#5CFF9D; --on-accent:#04140a; --accent-soft:#0f2a1b;
  --obar-fill: var(--st-deliv); --obar-glow: var(--st-deliv-bg);
  --field:#050706; --field-line:#2b3a31; --on-status:#0a0c0b; --st-mix:85%;
  --st-picked:#aab4c3;  --st-picked-bg:#1a1f27;
  --st-inbound:#d7b57a; --st-inbound-bg:#2a2214;
  --st-dock:#f2c14e;    --st-dock-bg:#2d2410;
  --st-out:#7ab8f5;     --st-out-bg:#0f2133;
  --st-deliv:#5fd394;   --st-deliv-bg:#0f2a1b;
  --st-exc:#ff7b7b;     --st-exc-bg:#2e1414;
  --label-font:var(--mono); --logo-filter:invert(1);
  --ground-image:linear-gradient(rgba(140,255,190,.035) 1px, transparent 1px),
                 linear-gradient(90deg, rgba(140,255,190,.035) 1px, transparent 1px);
  --partner:#4FB3FF; --on-partner:#03111f; --efs-seg:#e7efe9; --on-efs-seg:#0a0c0b; --ladder:#2a3b31;
  --check:#F2C14E; --check-bg:#281c06; --check-text:#f3e6c4; --hot:#F2C14E;
  --nav-shadow:rgba(0,0,0,.6); --nav-scrim:rgba(0,0,0,.6);
  --motion-flash:#2f2a12;
  --cust-efs-accent:#EE7A7C; --on-cust-efs-accent:#1a0606; --cust-efs-accent-soft:#2e1414;
  --cust-efs-ink:#EEF0F3; --cust-efs-on-ink:#0B0D10; --cust-efs-ink-hover:#C9CDD3; --cust-efs-camo2:#1C2027;
  --cust-efs-steel:#3A3F48; --cust-efs-smoke:#7B828C; --cust-efs-paper:#0B0D10; --cust-efs-card:#15181D;
  --cust-efs-line:#262A31; --cust-efs-text:#EEF0F3; --cust-efs-muted:#9AA1AB; --cust-efs-field:#0E1013;
  --cust-efs-field-line:#3A3F47; --cust-efs-ladder:#2A2F37;
  --cust-efs-ground-image:linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                 linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.45 var(--body); color: var(--text); background-color: var(--paper); background-image: var(--ground-image);
       background-size: 40px 40px; }
a { color: var(--text); }
a:hover { color: var(--ink); }
.muted, .dim { color: var(--muted); font-weight: 400; }
.num, td.n, th.n { font-variant-numeric: tabular-nums; text-align: right; }
.disp, h1, h2, h3, th, .btn, button, .pill, .pro, .kv th, nav a, .tile .label, .tag {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; }

/* ── header: camo band, 64 px, 3 px black rule ─────────────────────────── */
.hdr { display: flex; align-items: center; gap: 22px; height: 64px; padding: 0 20px;
       background: var(--camo1) url("/static/brand/camo_tile.png") repeat; color: var(--hdr-text);
       border-bottom: 3px solid var(--hdr-rule); }
.hdr .brand { display: flex; align-items: center; gap: 10px; color: var(--hdr-text); text-decoration: none; }
.hdr .brand img { width: 44px; height: 44px; }
.hdr .wordmark { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .08em; line-height: 1; }
.hdr .wordmark small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .22em; color: var(--hdr-dim); margin-top: 3px; }
.hdr nav { flex: 1; align-self: stretch; display: flex; align-items: stretch; justify-content: center; gap: 26px; }
/* 2.53.1: ONE rule for every top-nav item - a link or the System menu's <summary> - so they share font, case, spacing,
   padding and baseline (tests/test_nav.py) */
.hdr nav .nav-item { display: flex; align-items: center; box-sizing: border-box; margin: 0;
                     padding: 3px 0 0; border-bottom: 3px solid transparent; color: var(--hdr-text); text-decoration: none;
                     font: 500 14px/20px var(--display); text-transform: uppercase; letter-spacing: .04em;
                     white-space: nowrap; cursor: pointer; background: none; }
.hdr nav .nav-item.on, .hdr nav .nav-item:hover, .hdr nav details[open] > .nav-item { border-bottom-color: var(--hdr-text); }
.hdr nav .nav-item:focus-visible { outline: 2px solid var(--hdr-text); outline-offset: 2px; }
.hdr nav details.nav-menu { position: relative; display: flex; }
.hdr nav details.nav-menu > summary { list-style: none; }
.hdr nav details.nav-menu > summary::-webkit-details-marker { display: none; }
.hdr nav .nav-item .caret { display: inline-block; width: 0; height: 0; margin-left: 6px; border-left: 4px solid transparent;
                            border-right: 4px solid transparent; border-top: 5px solid currentColor; transform: translateY(1px); }
.hdr nav details[open] > .nav-item .caret { transform: translateY(0) rotate(180deg); }
.hdr nav .soon { color: var(--hdr-dim); cursor: default; font-family: var(--display); text-transform: uppercase;
                 letter-spacing: .04em; font-weight: 500; font-size: 14px; padding: 20px 0 17px; border-bottom: 3px solid transparent; }
.hdr nav .soon small { font-size: 10px; letter-spacing: .1em; margin-left: 4px; }
.hdr .right { display: flex; align-items: center; gap: 12px; }
@media (max-width: 1440px) {      /* 2.34: a tablet - the nav scrolls inside the band; the page never scrolls sideways (2.54: up to 1440 px - an admin has 11 bars) */
  .hdr { gap: 14px; padding: 0 12px; }
  .hdr .wordmark { display: none; }
  .hdr nav { min-width: 0; overflow-x: auto; justify-content: flex-start; gap: 18px; scrollbar-width: none; }
  .hdr nav .nav-pop { position: fixed; }      /* 2.53.1: the nav scrolls - the menu can't be clipped by it (portal.js places it) */
  .hdr input { width: 90px; }
  .hdr .who { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
}
.hdr input { width: 130px; padding: 6px 8px; border: 0; border-radius: 2px; font: 14px var(--body);
             background: var(--hdr-field); color: var(--hdr-field-text); }
.hdr .who { color: var(--hdr-dim); font-size: 13px; }
.hdr button { background: transparent; color: var(--hdr-text); border: 1px solid var(--hdr-line); padding: 5px 10px; }
.hdr button:hover { background: transparent; color: var(--hdr-text); border-color: var(--hdr-text); }

/* ── layout ─────────────────────────────────────────────────────────────── */
main { margin: 0 auto; padding: 18px 16px 30px; }                /* full desktop width (2.18) */
@media (max-width: 760px) { main { padding: 18px 20px 30px; } }    /* phone: as before */
h1 { font-size: 24px; font-weight: 600; margin: 4px 0 8px; }
h2 { font-size: 14px; font-weight: 600; letter-spacing: .08em; margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 14px; }
.card { background: var(--card); border: 1px solid var(--line); padding: 14px 16px; margin: 0 0 14px; }
.cols { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; align-items: start; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 1000px) { .cols, .cols2 { grid-template-columns: 1fr; } }

/* ── buttons, inputs, tags ─────────────────────────────────────────────── */
button, .btn { display: inline-block; background: var(--primary); color: var(--on-primary); border: 1px solid var(--primary);
               padding: 6px 12px; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { background: var(--primary-hover); color: var(--on-primary); }
button.ghost, .btn.ghost { background: var(--card); color: var(--ink); }
button.ghost:hover, .btn.ghost:hover { background: var(--paper); color: var(--ink); }
button.danger, .btn.danger { background: var(--card); color: var(--st-exc); border-color: var(--st-exc); }
button.danger:hover { background: var(--st-exc-bg); }
button:disabled, .btn.disabled { background: var(--paper); color: var(--smoke); border-color: var(--line); cursor: default; }
input, select, textarea { font: 14px var(--body); color: var(--text); padding: 5px 7px; border: 1px solid var(--line);
                          border-radius: 2px; background: var(--field); accent-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
label { font-size: 13px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 500; padding: 1px 6px; background: var(--ink); color: var(--on-ink); }
.tag.light { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.tag.exc { background: var(--st-exc); }
.msg { padding: 8px 12px; border: 1px solid var(--line); background: var(--card); margin-bottom: 12px; }
.msg.err { border-color: var(--st-exc); color: var(--st-exc); }

/* ── status pill: color comes from the status row's token ─────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 2px 8px;
        color: color-mix(in srgb, var(--c, var(--st-picked)) var(--st-mix), var(--text));
        background: var(--cb, var(--st-picked-bg)); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--st-picked)); }
.pill.prov { --c: var(--smoke); --cb: var(--paper); border: 1px dashed var(--line); }   /* provisional: grey, not a status color */

/* ── board: bucket tiles ───────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 6px 0 14px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { display: block; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c);
        padding: 10px 14px 12px; text-decoration: none; color: var(--text); }
.tile:hover { border-color: var(--steel); border-top-color: var(--c); }
.tile.on { outline: 2px solid var(--ink); outline-offset: -1px; }
.tile .label { font-size: 13px; font-weight: 500; color: var(--muted); font-family: var(--label-font); }
.tile .count { font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile .detail { font-size: 13px; color: var(--muted); }
.tile .act { margin-top: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 12px;
        padding: 4px 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; }
.chip.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.toolbar input[type=search] { width: 320px; }
.toolbar .spacer { flex: 1; }
/* 2.56.64: the search - the matched words, the history toggle */
mark.hl { background: var(--accent-soft); color: inherit; font-weight: 600; padding: 0 1px; border-radius: 2px; }
.board-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.board-search .hist-toggle, .board-search .hist-range { font-size: 13px; }
.search-note { margin: 4px 0 8px; }
/* 2.56.69: picked up - needs an order */
.draft-thumb { max-width: 220px; max-height: 220px; border: 1px solid var(--line); }
.draft-create { margin: 8px 0 4px; }

/* ── tables ─────────────────────────────────────────────────────────────── */
table.grid { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
table.grid th, table.grid td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.grid th { font-size: 12px; font-weight: 500; color: var(--muted); background: var(--paper); font-family: var(--label-font); }
table.grid td.n, table.grid th.n { text-align: right; }
table.grid tr:hover td { background: var(--paper); }
table.grid .pro a { font-family: var(--display); font-size: 16px; font-weight: 600; text-decoration: none; }
.two { display: block; font-size: 12px; color: var(--muted); font-family: var(--body); text-transform: none;
        letter-spacing: 0; font-weight: 400; }
.late { color: var(--st-exc); font-weight: 600; }
td.empty { text-align: center; color: var(--muted); padding: 26px; }
table.kv { border-collapse: collapse; width: 100%; }
table.kv th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 4px 14px 4px 0; white-space: nowrap; vertical-align: top; width: 38%; }
table.kv td { padding: 4px 0; text-align: left; }

/* ── shipment: head, status band, route, progress track ────────────────── */
.shead h1 { font-size: 30px; margin: 0 0 8px; }
/* 2.43.2: Edit details - a button by the PRO, an Edit link (pencil) on each block it can change */
.shead-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 8px; }
.shead-top h1 { margin: 0; }
.edit-link { display: inline-flex; align-items: center; gap: 4px; font: 500 12px var(--body); letter-spacing: 0;
             text-transform: none; color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.edit-link:hover { color: var(--muted); }
.edit-link .pencil { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.route .party .role { display: flex; align-items: center; gap: 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.band { display: flex; align-items: baseline; gap: 14px; padding: 12px 16px; background: var(--c); color: var(--on-status); }
.band .what { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 22px; font-weight: 600; }
.facts { display: flex; gap: 22px; flex-wrap: wrap; padding: 8px 2px 0; color: var(--muted); font-size: 14px; }
.facts b { color: var(--text); font-weight: 600; }
.badges { display: flex; gap: 6px; margin: 8px 0 0; flex-wrap: wrap; }
.route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.route .party .role { font-size: 12px; color: var(--muted); font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; }
.route .party .name { font-family: var(--display); text-transform: uppercase; font-size: 20px; font-weight: 600; letter-spacing: .03em; }
.route .arrow { font-family: var(--display); font-size: 28px; color: var(--smoke); }
.track { display: flex; margin: 6px 0 2px; }
.step { flex: 1; text-align: center; position: relative; padding-top: 30px; }
.step::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.step:first-child::before { display: none; }
.step.done::before, .step.implied::before, .step.current::before { background: var(--ink); }
.step .dot { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px;
             border-radius: 50%; background: var(--line); border: 3px solid var(--line); }
.step.done .dot { background: var(--ink); border-color: var(--ink); }
.step.implied .dot { background: var(--card); border-color: var(--ink); }
.step.current .dot { background: var(--st-deliv); border-color: var(--st-deliv); box-shadow: 0 0 0 5px var(--st-deliv-bg); }
.step .name { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; font-weight: 500; color: var(--muted); }
.step.done .name, .step.implied .name { color: var(--text); }
.step.current .name { color: color-mix(in srgb, var(--st-deliv) var(--st-mix), var(--text)); font-weight: 600; }
.step .when { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.closed-note { margin-top: 10px; color: var(--muted); font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }

/* ── history, documents, exceptions ────────────────────────────────────── */
table.hist td.ev { font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-weight: 500; white-space: nowrap; }
table.hist tr.note td { color: var(--muted); }
.docs { display: flex; flex-wrap: wrap; gap: 12px; }
.docs figure { margin: 0; width: 180px; position: relative; }
.docs img, .docs .file { display: block; width: 180px; height: 135px; object-fit: cover; border: 1px solid var(--line); background: var(--paper); }
.docs .file { line-height: 135px; text-align: center; color: var(--muted); text-decoration: none; }
.docs .tag { position: absolute; top: 6px; left: 6px; }
.docs figcaption { font-size: 12px; color: var(--muted); padding-top: 3px; }
.exc { padding: 8px 0; border-bottom: 1px solid var(--line); }
.exc:last-child { border-bottom: 0; }
.exc.resolved { color: var(--muted); }
.exc-group h2 { display: flex; gap: 8px; align-items: center; }
form.inline { display: inline-flex; gap: 6px; align-items: center; }
form.resolve input { width: 260px; }
.footnote { border-left: 3px solid var(--ink); padding: 8px 12px; background: var(--card); color: var(--muted); font-size: 13px; }

/* ── forms (Add inbound, clean up, party mapping) ──────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 3px; }
.form-grid .wide { grid-column: span 2; }
/* Undeliver / Move this POD (2.25): the dock-or-truck choice, the side-by-side preview */
fieldset.where { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
fieldset.where legend { padding: 0; margin-bottom: 3px; }
.form-grid fieldset.where label { flex-direction: row; align-items: center; gap: 6px; }
table.compare th:first-child { width: 9em; }
.mapform { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }


/* ── users / account (portal 2.12) ─────────────────────────────────────── */
.hdr a.who { text-decoration: none; }
.hdr a.who:hover { color: var(--hdr-text); }
table.users td.acts { white-space: nowrap; }
table.users td.acts form.inline + form.inline { margin-left: 4px; }
.temp-pw { border: 2px solid var(--ink); }
.temp-pw .pw { font-family: ui-monospace, Consolas, monospace; font-size: 26px; letter-spacing: .08em;
               user-select: all; margin: 4px 0 10px; }
.add-user { margin-top: 14px; }
.add-user form.inline { flex-wrap: wrap; gap: 12px; }
.account-form { max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.account-form label { display: flex; flex-direction: column; gap: 3px; }
.account-form input { padding: 8px; }
table.audit { margin-bottom: 14px; }

/* ── return to dock (portal 2.13) ──────────────────────────────────────── */
tr.struck td { color: var(--muted); }
tr.struck td:not(.why), tr.struck td:not(.why) a { text-decoration: line-through; }
.card.return form.inline { flex-wrap: wrap; }

/* ── system page (portal 2.14) ─────────────────────────────────────────── */
pre.log { font: 12px/1.45 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-all;
          background: var(--paper); border: 1px solid var(--line); padding: 8px 10px; max-height: 520px; overflow: auto; }

/* ── load plans calendar (portal 2.15) - square cells, no radius ──────────── */
.plans-head { display: flex; align-items: center; gap: 12px; position: relative; }
.plans-head h1 { display: flex; align-items: center; gap: 8px; margin: 0; }
.plans-head .daynav { text-decoration: none; color: var(--ink); padding: 0 4px; }
.cal-toggle { font: inherit; letter-spacing: inherit; text-transform: inherit; background: var(--card); color: var(--ink);
              border: 1px solid var(--line); padding: 2px 10px; }
.cal-toggle:hover, .cal-toggle[aria-expanded="true"] { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.cal-toggle .caret { font-size: .6em; vertical-align: middle; }
.plan-filter { display: flex; align-items: center; gap: 6px; }
.cal-pop { position: absolute; z-index: 20; margin-top: 4px; background: var(--card); border: 1px solid var(--ink);
           padding: 10px 12px; }
.cal-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cal-title { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 16px; min-width: 150px; text-align: center; }
.cal-grid { border-collapse: collapse; }
.cal-grid th { font-family: var(--display); font-size: 12px; font-weight: 500; color: var(--muted); padding: 2px 0; }
.cal-grid td { padding: 2px; }
.cal-day { position: relative; width: 44px; height: 44px; aspect-ratio: 1; border-radius: 0; padding: 3px;
           background: var(--card); color: var(--ink); border: 1px solid var(--line);
           display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
           font-family: var(--body); text-transform: none; letter-spacing: 0; }
.cal-day:hover, .cal-day:focus { background: var(--paper); color: var(--ink); outline: 2px solid var(--ink); outline-offset: -2px; }
.cal-day .dn { font-size: 13px; line-height: 1; }
.cal-day .cnt { align-self: flex-end; font-family: var(--display); font-size: 13px; font-weight: 600; line-height: 1; }
.cal-day.other { color: var(--smoke); }
.cal-day.today { border: 2px solid var(--ink); }
.cal-day.selected { outline: 2px solid var(--st-out); outline-offset: -2px; }
.cal-day.went-out { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.cal-day.went-out:hover, .cal-day.went-out:focus { background: var(--ink-hover); color: var(--on-ink); }
.cal-day.planned { border: 2px solid var(--st-out); color: var(--st-out); }
.cal-day.planned .cnt { color: var(--st-out); }
.cal-day.not-out::after, .cal-key .k.not-out::after { content: ""; position: absolute; top: 0; right: 0;
           border-top: 12px solid var(--st-exc); border-left: 12px solid transparent; }
.cal-day[data-tip]:hover::before, .cal-day[data-tip]:focus::before, .cal-day.tip-on::before {
           content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
           white-space: nowrap; background: var(--ink); color: var(--on-ink); font-size: 12px; padding: 3px 7px; z-index: 30; }
.cal-key { font-size: 12px; color: var(--muted); margin: 6px 0 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cal-key .k { position: relative; display: inline-block; width: 12px; height: 12px; border: 1px solid var(--line); background: var(--card); }
.cal-key .k.went-out { background: var(--ink); border-color: var(--ink); }
.cal-key .k.planned { border: 2px solid var(--st-out); }
.cal-key .k.today { border: 2px solid var(--ink); }
.cal-key .k.not-out::after { border-top-width: 7px; border-left-width: 7px; }
.upcoming { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
.upcoming .up-label { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--muted); }
.upcoming .chip.up { text-decoration: none; }
.plan-sum { margin: -4px 0 8px; font-size: 14px; color: var(--muted); }
.plan-sum b { color: var(--text); }
.partner-routes { margin-top: 14px; }

/* ── dock check-in (portal 2.19) ───────────────────────────────────────── */
.arrival tr.done td { color: var(--muted); }
.card.arrival.dismissed { opacity: .55; }
.who-is-this form.inline { flex-wrap: wrap; }
.band .cust-sees { margin-left: auto; font-size: 13px; opacity: .85; }

/* ── footer ────────────────────────────────────────────────────────────── */
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 18px 20px 26px; }
footer .stars { letter-spacing: .6em; color: var(--steel); font-size: 12px; }
footer img { height: 26px; opacity: .7; display: block; margin: 8px auto 0; filter: var(--logo-filter); }

/* ── sign-in "Tactical HUD" (2.30): login, temp password, the customer site ─────────
   The ONE place outside status where color is decoration (Marcus 10/2); change the accent in
   --hud-accent. Motion is CSS only and stops under prefers-reduced-motion (bottom of this block). */
body.hud { min-height: 100vh; display: flex; flex-direction: column; background: var(--hud-black);
           color: var(--hud-text); font-family: var(--body); }
.hud-bg { position: fixed; inset: 0; z-index: -3; background: var(--hud-black) url("/static/brand/camo_field.png") repeat;
          background-size: 1920px 1200px; image-rendering: pixelated; filter: brightness(.8) contrast(1.15); }
.hud-vignette { position: fixed; inset: 0; z-index: -2;
                background: radial-gradient(ellipse 75% 85% at 33% 50%, transparent 0 35%, var(--hud-shade) 100%); }
.hud-scan { position: fixed; inset: 0; z-index: 50; pointer-events: none;
            background: repeating-linear-gradient(to bottom, var(--hud-scanline) 0 1px, transparent 1px 3px); }
/* thin white brackets at the viewport's four corners */
.hud-frame { position: fixed; inset: 12px; z-index: 40; pointer-events: none; --b: var(--hud-bracket); --l: 22px; --w: 1px;
  background:
    linear-gradient(var(--b), var(--b)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--b), var(--b)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) top right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--b), var(--b)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / var(--w) var(--l) no-repeat; }

/* the bars */
.hud-top, .hud-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 34px; background: var(--hud-bar); font: 12px/1 var(--mono); letter-spacing: .16em; color: var(--hud-grey); }
.hud-top { height: 44px; }
.hud-bottom { height: 40px; font-size: 11px; }
.hud-left, .hud-right { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.hud-online { color: var(--hud-accent); }
.hud-dot { animation: hud-blink 1.6s steps(1) infinite; }
.hud-time { color: var(--hud-text); }
.hud-colon { animation: hud-blink 2s steps(1) infinite; }

/* the radar (left, centred at ~33% x) and the card (right) */
.hud-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, 34%); align-items: center;
            padding: 28px 34px; gap: 24px; }
.hud-mark { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hud-radar { position: relative; width: 520px; height: 520px; max-width: 100%; aspect-ratio: 1; }
.hud-radar svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hud-radar .ring { fill: none; stroke: var(--hud-ring); stroke-width: 1.2; }
.hud-radar .ring.dash { stroke-dasharray: 4 6; }
.hud-radar .cross { stroke: var(--hud-cross); stroke-width: 1; }
.hud-radar .ticks line { stroke: var(--hud-ring); stroke-width: 1.2; }
.hud-radar .blip { fill: var(--hud-accent); opacity: 0; animation: hud-blip 4.5s ease-in-out infinite; }
.hud-radar .blip.b2 { animation-delay: 1.5s; }
.hud-radar .blip.b3 { animation-delay: 3s; }
.hud-radar .lbl { font: 11px var(--mono); letter-spacing: .14em; fill: var(--hud-grey); }
.hud-radar .lbl.dim { fill: var(--hud-dim); font-size: 10px; }
.hud-sweep { position: absolute; inset: 3.8%; border-radius: 50%;    /* r 250 of 260 */
  background: conic-gradient(from 0deg, transparent 0 295deg,
              color-mix(in srgb, var(--hud-accent) 4%, transparent) 300deg,
              color-mix(in srgb, var(--hud-accent) 30%, transparent) 360deg);
  animation: hud-sweep 6s linear infinite; }
.hud-sweep::after { content: ""; position: absolute; left: 50%; top: 0; width: 1.5px; height: 50%;
                    background: linear-gradient(to top, transparent, var(--hud-accent)); transform: translateX(-50%); }
.hud-emblem { position: absolute; left: 50%; top: 50%; width: 150px; transform: translate(-50%, -50%); }
.hud-title { font: 700 44px/1 var(--display); letter-spacing: .12em; color: var(--hud-text); margin-top: 6px; }
.hud-motto { font: 13px var(--mono); letter-spacing: .18em; color: var(--hud-grey); }

.hud-card { width: 420px; max-width: 100%; justify-self: start; padding: 34px 34px 28px; display: flex; flex-direction: column;
  gap: 14px; color: var(--hud-text); --b: var(--hud-accent); --l: 18px; --w: 2px;
  background:
    linear-gradient(var(--b), var(--b)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--b), var(--b)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) top right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--b), var(--b)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / var(--w) var(--l) no-repeat,
    var(--hud-card); }
.hud-kicker { font: 12px var(--mono); letter-spacing: .16em; color: var(--hud-accent); overflow-wrap: anywhere; }
.hud-card h1 { font: 600 26px/1.1 var(--display); letter-spacing: .08em; margin: 0 0 4px; color: var(--hud-text); }
.hud-card a { color: var(--hud-accent); }
.hud-or { font: 12px var(--mono); letter-spacing: .16em; color: var(--hud-muted); text-align: center; }
.hud-req, .hud-note, .hud-soon { font-size: 14px; color: var(--hud-muted); margin: 0; }
.hud-soon { font-size: 16px; color: var(--hud-text); line-height: 1.5; }
.hud-err { margin: 0; padding: 10px 12px; font-size: 14px; color: var(--hud-red); background: var(--hud-red-bg);
           border-left: 3px solid var(--hud-red); }
.hud-hint { display: block; font-size: 11px; color: var(--hud-muted); letter-spacing: .08em; margin-top: 2px; }
.hud-card .login-form { display: flex; flex-direction: column; gap: 14px; }
.hud-card label { display: block; font: 12px var(--mono); letter-spacing: .16em; color: var(--hud-grey); }
.hud-card input { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 10px 12px; font: 16px var(--body);
                  color: var(--hud-text); background: var(--hud-input); border: 1px solid var(--hud-input-line); border-radius: 0; }
.hud-card input:hover { border-color: var(--hud-grey); }
.hud-card button, .hud-google { min-height: 44px; border-radius: 0; font: 600 15px var(--display); letter-spacing: .14em;
                                text-transform: uppercase; cursor: pointer; }
.hud-card .login-form button { background: var(--hud-accent); color: var(--hud-on-accent); border: 0; padding: 10px; margin-top: 4px; }
.hud-card .login-form button:hover { filter: brightness(1.08); }
.hud-google { display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 10px;
              border: 1px solid var(--hud-accent); color: var(--hud-accent); background: transparent; }
.hud-card a.hud-google { color: var(--hud-accent); }
.hud-google:hover { background: color-mix(in srgb, var(--hud-accent) 10%, transparent); }
.hud-card details.pw-login summary { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; list-style: none; font: 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--hud-muted); }
.hud-card details.pw-login summary::-webkit-details-marker { display: none; }
.hud-card details.pw-login summary::before { content: "— "; }
.hud-card details.pw-login summary::after { content: " ▸ —"; }
.hud-card details.pw-login[open] summary::after { content: " ▾ —"; }
.hud-card details.pw-login[open] summary { margin-bottom: 8px; }
.hud-logout { margin: 0; }
.hud-card .hud-logout button { width: 100%; background: transparent; color: var(--hud-muted); border: 1px solid var(--hud-input-line); }
/* focus: always visible, in the accent */
.hud a:focus-visible, .hud button:focus-visible, .hud input:focus-visible, .hud summary:focus-visible {
  outline: 2px solid var(--hud-accent); outline-offset: 2px; }
.hud input:focus { border-color: var(--hud-accent); }

@keyframes hud-sweep { to { transform: rotate(360deg); } }
@keyframes hud-blip { 0%, 100% { opacity: 0; } 20%, 45% { opacity: .95; } 70% { opacity: 0; } }
@keyframes hud-blink { 50% { opacity: .25; } }

/* under ~1100 px: the radar shrinks and sits above the card */
@media (max-width: 1100px) {
  .hud-main { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; padding: 22px 24px 30px; }
  .hud-card { justify-self: center; }
  .hud-radar { width: 320px; height: 320px; }
  .hud-emblem { width: 96px; }
  .hud-title { font-size: 34px; }
}
/* phone / dock tablet: full-width card, the radar a small header mark, the bar = online + clock */
@media (max-width: 760px) {
  .hud-top, .hud-bottom { padding: 0 16px; }
  .hud-opt { display: none; }
  .hud-main { padding: 16px 16px 24px; gap: 16px; align-content: start; }
  .hud-mark { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
  .hud-radar { width: 96px; height: 96px; }
  .hud-radar .lbl, .hud-radar .ticks { display: none; }
  .hud-emblem { width: 40px; }
  .hud-title { font-size: 26px; margin: 0; }
  .hud-motto { flex-basis: 100%; text-align: center; font-size: 11px; }
  .hud-card { width: 100%; padding: 26px 20px 22px; }
  .hud-frame { inset: 6px; --l: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hud-sweep, .hud-dot, .hud-colon, .hud-radar .blip { animation: none !important; }
  .hud-radar .blip { opacity: .85; }
  .hud-sweep { transform: rotate(40deg); }
}

/* Pickup requests (2.28): the form - quick on a laptop and on a tablet - and the type-ahead */
.pickup-form fieldset.card { border: 0; margin: 0 0 12px; }
.pickup-form legend { font-family: var(--display); letter-spacing: .06em; padding: 0 0 6px; }
.pickup-form textarea { width: 100%; }
.pickup-form .date-quick { display: flex; gap: 8px; align-items: end; }
.pickup-form .form-actions button { padding: 10px 26px; font-size: 15px; }
.suggest-wrap { position: relative; }
.suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin: 2px 0 0; padding: 0; list-style: none;
           background: var(--card); border: 1px solid var(--line); max-height: 260px; overflow-y: auto; }
.suggest li { padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--line); }
.suggest li:hover { background: var(--st-picked-bg); }
form.suggestion { display: block; margin: 6px 0; }
@media (max-width: 800px) { .pickup-form .form-grid { grid-template-columns: 1fr 1fr; } }
.date-note { display: block; font-size: 12px; color: var(--muted); }
.date-note[hidden] { display: none; }             /* 2.37.1: display:block would beat [hidden] */
.date-note.warn { color: var(--st-exc); font-weight: 600; }
.bol-consignee { margin-top: 4px; font-size: 13px; }
/* Board (2.29): the status chips, the Pickups section */
.status-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.status-chips .status-chip { border-left: 4px solid var(--c); }
.status-chips .status-chip.on { background: var(--cb); }
.status-chips .status-chip.zero { opacity: .55; }
.chip.clear { color: var(--st-exc); }
.board-pickups h2 .toggle { text-decoration: none; }
.board-pickups h2 .small { font-size: 13px; margin-left: 10px; }
/* 2.44: pickup clean-up - Link to shipment's hits / suggestions, the board's Cancel selected, the TEST badge */
.ship-hit { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
            padding: 6px 0; border-bottom: 1px solid var(--line); }
.ship-hit-what { min-width: 0; overflow-wrap: anywhere; }
.ship-search { margin-top: 10px; }
.link-shipment h3 { margin: 4px 0 2px; font-size: 14px; }
.toolbar.pickup-cancel { margin-top: 6px; }
.test-badge { letter-spacing: .08em; margin-left: 6px; vertical-align: middle; }
.board-pickups-table tbody tr[data-href] { cursor: pointer; }
.unassigned { color: var(--st-exc); font-weight: 600; }

/* Edit details (2.31): one form, a card per group; the driver's value beside each box */
.edit-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 12px; align-items: start; }
.edit-details fieldset.card { border: 0; margin: 0; display: grid; gap: 10px; }
.edit-details fieldset.reason { grid-column: 1 / -1; }
.edit-details legend { font-family: var(--display); letter-spacing: .06em; padding: 0 0 6px; }
.edit-details label { display: grid; gap: 4px; }
.edit-details input, .edit-details select, .edit-details textarea { max-width: 520px; width: 100%; }
.edit-details .row3 { display: grid; grid-template-columns: 2fr 70px 130px; gap: 10px; max-width: 520px; }
.edit-details .edit-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.edit-details .edit-meta-row { margin: 0; }
.edit-details .reason { max-width: 560px; }
.edit-details fieldset.card[id] { scroll-margin-top: 12px; }
.edit-details fieldset.card:target { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 700px) { .edit-details { grid-template-columns: minmax(0, 1fr); } .edit-details .row3 { grid-template-columns: 1fr 70px; } }

/* ── special instructions (portal 2.32): the exception token - attention, not a status ── */
details.si { display: inline-block; position: relative; vertical-align: middle; }
details.si > summary { list-style: none; cursor: pointer; white-space: nowrap; }
details.si > summary::-webkit-details-marker { display: none; }
details.si > summary:focus-visible { outline: 2px solid var(--st-exc); outline-offset: 1px; }
details.si .si-text { position: absolute; z-index: 30; left: 0; top: 100%; margin-top: 4px; width: max-content;
  max-width: min(440px, 86vw); padding: 8px 10px; background: var(--card); color: var(--text);
  border: 2px solid var(--st-exc); white-space: pre-line; font: 500 14px/1.4 var(--body); text-transform: none;
  letter-spacing: 0; }
.si-block { border: 2px solid var(--st-exc); background: var(--st-exc-bg); padding: 8px 12px; margin: 8px 0 0; }
.si-block h3 { margin: 0 0 4px; font-size: 14px; color: color-mix(in srgb, var(--st-exc) var(--st-mix), var(--text)); }
.si-block .si-text { white-space: pre-line; font-weight: 600; }
.si-block .si-src { font-size: 12px; }

/* ── pricing (portal 2.33): plain, tokens only; a warning uses the exception token ── */
.pricing-tabs { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.pricing-tabs .tabs { display: flex; gap: 14px; flex-wrap: wrap; }
.pricing-tabs .tabs a { text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
.pricing-tabs .tabs a.on { border-bottom-color: var(--ink); font-weight: 600; }
.pricing-form .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; }
.pricing-form fieldset.where { margin-top: 10px; }
.pricing-lines tr.headline td { font-family: var(--display); font-size: 26px; font-weight: 600; }
.pricing-lines tr.warn th, .pricing-lines tr.warn td { color: var(--st-exc); font-weight: 600; }
.save-quote { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-top: 10px; }
.save-quote label { display: flex; flex-direction: column; gap: 3px; }
.pricing-params { max-width: 860px; }
.pricing-result .small, .pricing-form .small, .pricing-params .small, .card .muted.small { font-size: 12px; }

/* ── account menu (2.34): Account, the theme, in the header ─────────────── */
details.acct-menu { position: relative; }
details.acct-menu > summary { list-style: none; cursor: pointer; }
details.acct-menu > summary::-webkit-details-marker { display: none; }
details.acct-menu > summary::after { content: " \25BE"; font-size: 10px; }
details.acct-menu > summary:hover, details.acct-menu[open] > summary { color: var(--hdr-text); }
.acct-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 230px; padding: 10px 12px;
            display: flex; flex-direction: column; gap: 8px; background: var(--card); color: var(--text);
            border: 1px solid var(--ink); font-size: 14px; }
.acct-pop a { color: var(--text); }
.acct-pop .acct-label { font-family: var(--label-font); text-transform: uppercase; letter-spacing: .1em; font-size: 11px;
                        color: var(--muted); }
.theme-pick { display: flex; flex-direction: column; gap: 4px; }
.acct-pop .theme-pick button { text-align: left; background: var(--card); color: var(--text); border: 1px solid var(--line);
                          padding: 6px 10px; }
.acct-pop .theme-pick button:hover { background: var(--paper); color: var(--text); border-color: var(--ink); }
.acct-pop .theme-pick button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ── pricing console (2.34, the PricingLtl / PricingD83 mockups): the same layout in both themes ─────────── */
.console { display: flex; flex-direction: column; gap: 18px; }
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.console-tabs { display: flex; flex-wrap: wrap; border: 1px solid var(--field-line); }
.console-tabs a { padding: 12px 20px; color: var(--text); text-decoration: none; font: 500 14px var(--display);
                  letter-spacing: .14em; text-transform: uppercase; }
.console-tabs a:hover { background: var(--accent-soft); color: var(--text); }
.console-tabs a.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.console-tabs a.data { border-left: 1px solid var(--field-line); }
.console-status { display: flex; gap: 20px; flex-wrap: wrap; font: 12px var(--mono); letter-spacing: .16em;
                  text-transform: uppercase; color: var(--muted); }
.console-status .live, .live-note .live { color: var(--accent); }
.console-note { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.console-grid { display: grid; grid-template-columns: minmax(340px, 480px) minmax(0, 1fr); gap: 18px; align-items: start; }
.console-grid.d83 > form { display: contents; }          /* the lane + terms form; the results panel sits beside it */
.console-grid .lane-panel { grid-column: 1 / -1; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.console .panel { background: var(--card); border: 1px solid var(--line); padding: 24px 26px; display: flex;
                  flex-direction: column; gap: 16px; min-width: 0; }
.console .kicker { font: 12px var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.console .mono, .console .lbl { font-family: var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.console .lbl { font-size: 11px; color: var(--muted); }
.console label.zfield, .console label.mfield { display: flex; flex-direction: column; gap: 8px; font: 12px var(--mono);
                  letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.console input.zin { width: 100%; min-height: 64px; padding: 10px 16px; font: 400 40px/1 var(--mono); letter-spacing: .12em;
                     color: var(--text); background: var(--field); border: 1px solid var(--field-line); border-radius: 2px; }
.console input.zin::placeholder { color: var(--line); }
.console input.zin:focus { outline: none; border-color: var(--ink); }
.zgroup:has(.zip-tag.ok) input.zin { border-color: var(--accent);
                  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 12%, transparent); }
.zgroup:has(.zip-tag.partner) input.zin { border-color: var(--partner);
                  box-shadow: 0 0 0 1px color-mix(in srgb, var(--partner) 25%, transparent), 0 0 18px color-mix(in srgb, var(--partner) 12%, transparent); }
.zgroup:has(.zip-tag.bad) input.zin { border-color: var(--st-exc); }
.zgroup { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.zip-tag { min-height: 20px; font: 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.zip-tag .ok-mark { color: var(--accent); }
/* 2.56.90: ZIP coverage (Pricing -> ZIP coverage) - who delivers a ZIP: Soldier / a partner / not served; the map of the list */
.tag.cov-soldier { background: var(--st-deliv-bg); color: var(--text); }
.tag.cov-partner { background: var(--partner); color: var(--on-partner); }
.cov-map { width: 100%; max-width: 760px; height: auto; border: 1px solid var(--line); background: var(--card); }
.cov-map circle { stroke: none; }
.cov-map circle.cov-soldier { fill: var(--st-deliv); }
.cov-map circle.cov-partner { fill: var(--partner); }
.cov-map circle.cov-not_served { fill: var(--muted); }
.cov-map circle.cov-needs { stroke: var(--st-exc); stroke-width: 1.5; }
.cov-switch label, .cov-filter label { margin-right: .6rem; }
.cov-mn { display: block; margin: .4rem 0; }
/* 2.56.88: the in-page confirm step (portal.js: data-confirm) - a .msg under the form / button; no browser pop-up */
.confirm-step { display: block; margin: .4rem 0; }
.confirm-step .confirm-text { margin-right: .6rem; }
.confirm-step button + button { margin-left: .4rem; }
/* 2.56.34: the order forms' ZIP check (static/zipfill.js) and the calculator's "subject to confirmation" notice */
.zip-check { display: block; font-size: 12px; color: var(--muted); }
.zip-check.bad { color: var(--st-exc); }
.did-you-mean { display: block; font-size: 12px; color: var(--muted); }   /* 2.56.83: "Did you mean ...?" under a name box */
/* 2.56.84: the party picker - a picked saved party's name / address are locked (read-only boxes look it); the bar says so */
.party-bar, .party-existing, .party-more, .save-location { grid-column: 1 / -1; }
.party-bar { margin: 0 0 8px; }
.party.picked input[readonly] { background: var(--accent-soft); cursor: not-allowed; }
.suggest li.party-new { font-style: italic; color: var(--muted); }
.ship-from { display: block; margin: 0 0 10px; }
.ship-from[hidden] { display: none; }
.party-more > summary { cursor: pointer; font-size: 13px; color: var(--muted); margin: 4px 0; }
.profile-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.profile-cards .card { margin: 0; }
/* 2.56.80: the partner-carrier flag (EFS staff / Soldier staff only) - the partner token; a ZIP the TMS doesn't know in the exception red */
.partner-note { display: block; font-size: 12px; font-weight: 600; color: var(--partner); }
.partner-note.unknown { color: var(--st-exc); }
.tag.partner-flag { background: var(--partner); color: var(--on-partner); }
.tag.partner-flag.unknown { background: var(--st-exc); color: var(--on-status); }
.zip-notice, .cr-notice { color: var(--st-exc); }
/* 2.56.59: the customer sites' search (Ctrl K, static/jump.js) - in the header; under 900 px in the rail's slide-in panel */
.chdr .cfind { margin-left: auto; flex: 0 1 380px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer;
               font: inherit; color: var(--muted); background: var(--field); border: 1px solid var(--field-line); border-radius: 4px; }
.chdr .cfind svg, .crail-find svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.chdr .cfind .jump-hint { flex: 1; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chdr .cfind kbd { font: 11px var(--display); letter-spacing: .06em; border: 1px solid var(--field-line); border-radius: 3px; padding: 1px 5px; }
.crail-find { display: none; }
@media (max-width: 899px) {
  .crail-on .chdr .cfind { display: none; }
  .crail-find { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; cursor: pointer; font: inherit; }
}

/* 2.56.61: the customer shipment page's documents - the staff thumbnails; a PDF a page icon; 2 per row on a phone */
.cdocs .file { display: flex; align-items: center; justify-content: center; }
.cdoc-icon { width: 48px; height: 48px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
@media (max-width: 600px) {
  .cdocs figure { width: calc(50% - 6px); }
  .cdocs img, .cdocs .file { width: 100%; }
}

/* 2.56.59: the customer's progress bar (templates/_order_bar.html) - a 10 px track across the page, filled to the current
   stage (--obar-pct of the distance between the first and the last marker), one marker per stage; under 600 px it runs down
   the left side. Colours: --obar-fill / --obar-glow (Soldier's green; EFS's accent on efstracking). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.obar { position: relative; margin: 16px 0 6px; }
.obar-track { position: absolute; top: 9px; height: 10px; border-radius: 5px; background: var(--line);
              left: calc(50% / var(--obar-n)); right: calc(50% / var(--obar-n)); }
.obar-fill { height: 100%; width: var(--obar-pct); border-radius: 5px; background: var(--obar-fill); animation: obar-grow 600ms ease-out; }
@keyframes obar-grow { from { width: 0; } }
.obar-cancelled .obar-fill { background: var(--smoke); }
.obar-stages { list-style: none; margin: 0; padding: 0; display: flex; position: relative; }
.obar-stage { flex: 1; min-width: 0; text-align: center; padding-top: 34px; position: relative; }
.obar-mark { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%;
             background: var(--card); border: 3px solid var(--line); box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.obar-stage.done .obar-mark { background: var(--obar-fill); border-color: var(--obar-fill); }
.obar-stage.current .obar-mark { top: -3px; width: 34px; height: 34px; background: var(--obar-fill); border-color: var(--obar-fill);
                                  box-shadow: 0 0 0 6px var(--obar-glow); }
.obar-cancelled .obar-stage.done .obar-mark, .obar-cancelled .obar-stage.current .obar-mark { background: var(--smoke); border-color: var(--smoke); box-shadow: none; }
.obar-icon { width: 20px; height: 20px; fill: none; stroke: var(--card); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.obar-name { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; color: var(--muted); }
.obar-stage.current .obar-name { color: var(--text); font-weight: 600; }
.obar-when { display: block; font-size: 12px; color: var(--muted); }
.obar-sub { display: block; }
@media (max-width: 600px) {
  .obar-stages { flex-direction: column; }
  .obar-stage { text-align: left; padding: 0 0 0 52px; min-height: 52px; }
  .obar-track { top: calc(50% / var(--obar-n)); bottom: calc(50% / var(--obar-n)); left: 16px; right: auto; width: 10px; height: auto; }
  .obar-fill { width: 100%; height: var(--obar-pct); animation-name: obar-grow-down; }
  .obar-mark, .obar-stage.current .obar-mark { left: 21px; top: 2px; }
  .obar-stage.current .obar-mark { top: -5px; }
}
@keyframes obar-grow-down { from { height: 0; } }
@media (prefers-reduced-motion: reduce) { .obar-fill { animation: none; } }

/* 2.56.55: the Book form's price panel - one line per order (order, lane, pallets, price right-aligned) + the total; a phone
   puts the lane under the order, the pallets and price stay on one line */
.book-price-list { list-style: none; margin: 8px 0 0; padding: 0; }
.bp-row { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) auto minmax(7em, auto); gap: 2px 14px; align-items: baseline;
          margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
.bp-order { font-weight: 600; white-space: nowrap; }
.bp-lane { grid-column: 2; min-width: 0; }
.bp-row > .bp-lane:last-child { grid-column: 2 / -1; }
.bp-qty { grid-column: 3; white-space: nowrap; text-align: right; }
.bp-price { grid-column: 4; white-space: nowrap; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bp-price.bp-custom { white-space: normal; font-weight: 400; max-width: 16em; }
.bp-quote { font-weight: 400; color: var(--muted); font-size: 12px; }
.book-total.bp-row { border-bottom: 0; }
.bp-total { grid-column: 1 / 4; font-weight: 600; }
.book-custom-note { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 560px) {
  .bp-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .bp-order { grid-column: 1; grid-row: 1; }
  .bp-qty { grid-column: 2; grid-row: 1; }
  .bp-price { grid-column: 3; grid-row: 1; }
  .bp-price.bp-custom { grid-column: 2 / -1; grid-row: 3; text-align: left; max-width: none; }
  .bp-lane, .bp-row > .bp-lane:last-child { grid-column: 1 / -1; grid-row: 2; }
  .bp-total { grid-column: 1 / 3; }
}
.zip-tag .dim { color: var(--muted); }
.zip-tag .net { color: var(--partner); }
.zip-tag.bad { color: color-mix(in srgb, var(--st-exc) var(--st-mix), var(--text)); }
.chevrons { display: flex; align-items: center; gap: 10px; font: 600 18px/1 var(--display); letter-spacing: .3em; color: var(--accent); }
.chevrons::before, .chevrons::after { content: ""; flex: 1; height: 1px; }
.chevrons::before { background: linear-gradient(90deg, transparent, var(--accent)); }
.chevrons::after { background: linear-gradient(90deg, var(--accent), transparent); }
.chevrons.partner { color: var(--partner); }
fieldset.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.seg legend { padding: 0; margin-bottom: 10px; }
.seg-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.seg-row input, .seg-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-row label { display: flex; align-items: center; justify-content: center; min-height: 56px; cursor: pointer;
                 font: 500 22px var(--display); color: var(--text); background: var(--field); border: 1px solid var(--field-line); }
.seg-row label:hover { border-color: var(--ink); }
.seg-row input:checked + label { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.seg-row input:focus-visible + label, .seg-tabs input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg-tabs { display: inline-flex; align-self: flex-start; border: 1px solid var(--field-line); }
.seg-tabs label { display: flex; align-items: center; min-height: 40px; padding: 0 16px; cursor: pointer; color: var(--muted);
                  font: 500 13px var(--display); letter-spacing: .12em; text-transform: uppercase; }
.seg-tabs input:checked + label { background: var(--accent-soft); color: var(--text); }
.console .small { font-size: 13px; color: var(--muted); }
.live-note { margin-top: auto; font: 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.console input.min { min-height: 48px; padding: 8px 12px; font: 22px var(--mono); color: var(--text); background: var(--field);
                     border: 1px solid var(--field-line); border-radius: 2px; width: 100%; }
.console input.min:focus { outline: none; border-color: var(--accent); }
.console .two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.console .toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line);
                       padding-top: 14px; }
.console .toggle-row label.chk { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.console .toggle-row input[type=checkbox] { width: 20px; height: 20px; }
.console .toggle-row input.min { width: 150px; }
.console .toggle-row:not(:has(input[type=checkbox]:checked)) input.min { opacity: .45; }
@supports selector(:has(a)) {              /* the box for the chosen revenue mode (both, where :has is missing) */
  .console .rev-fields.flat { display: none; }
  .console form:has(#mode-flat:checked) .rev-fields.pieces { display: none; }
  .console form:has(#mode-flat:checked) .rev-fields.flat { display: grid; }
}
.console .rev-line { font: 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; border-top: 1px solid var(--line);
                     padding-top: 14px; min-height: 20px; }
.console .rev-line b { color: var(--accent); font-weight: 400; }
.lane-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) 54px minmax(0, 1fr); align-items: start; }
.lane-row .chev { padding-top: 40px; text-align: center; font: 600 18px var(--display); letter-spacing: .2em; color: var(--accent); }
.lane-row .chev.partner { color: var(--partner); }
.lane-row input.zin { font-size: 32px; min-height: 58px; }
.lane-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dir-ctl { display: flex; gap: 8px; align-items: center; }
.console button.dir { min-height: 36px; padding: 0 14px; background: transparent; color: var(--accent); border: 1px solid var(--accent);
                      font: 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.console button.dir:hover { background: var(--accent-soft); color: var(--accent); }
.console button.dir.auto { color: var(--muted); border-color: var(--field-line); }
.share { display: flex; flex-direction: column; gap: 8px; }
.share .bar { display: flex; height: 14px; background: var(--line); }
.share .bar span { width: var(--w); }
.share .bar .s { background: var(--accent); }
.share .bar .p { background: var(--partner); }
.share .legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 12px var(--mono);
                 letter-spacing: .12em; text-transform: uppercase; }
.share .legend .s { color: var(--accent); }
.share .legend .p { color: var(--partner); }
/* results */
#pricing-result { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.console .msg { margin: 0; }
.rate-card { flex-direction: row !important; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.rate-big { font: 700 88px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums;
            text-shadow: 0 0 28px color-mix(in srgb, var(--accent) 22%, transparent); }
.rate-big.contact { font-size: 56px; }
.rate-sub { margin-top: 8px; font: 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rate-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.rate-tags .tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ctag { padding: 6px 12px; border: 1px solid var(--field-line); color: var(--text); font: 12px var(--mono); letter-spacing: .14em;
        text-transform: uppercase; }
.ctag.hot { border-color: var(--hot); color: var(--hot); }            /* outside metro +15% - a markup, not a warning */
.tiles3, .tiles4 { display: grid; gap: 16px; }
.tiles3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ctile { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--k, var(--ink)); padding: 16px 18px; min-width: 0; }
.tiles4 .ctile { background: transparent; border: 0; border-top: 3px solid var(--k, var(--ink)); padding: 10px 0 0; }
.ctile .v { font: 600 36px/1.15 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.ctile.accent { --k: var(--accent); }
.ctile.accent .v { color: var(--accent); }
.ctile.partner { --k: var(--partner); }
.ctile.partner .v { color: var(--partner); }
.ctile .d { font-size: 13px; color: var(--muted); }
.ends { display: grid; grid-template-columns: 150px repeat(2, minmax(0, 1fr)); gap: 8px 12px; font-size: 15px; }
.ends .h { font: 11px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px;
           border-bottom: 1px solid var(--line); }
.ends .k { color: var(--muted); }
.ends .n { font-variant-numeric: tabular-nums; }
.ends-foot { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.ends-foot b { color: var(--text); font-weight: 600; }
.ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; height: 130px; }
.ladder .rung { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.ladder .amt { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ladder .barv { height: var(--h); min-height: 3px; background: var(--ladder); }
.ladder .n { font: 11px var(--mono); letter-spacing: .1em; color: var(--muted); }
.ladder .rung.on .amt { color: var(--ink); font-weight: 600; }
.ladder .rung.on .barv { background: var(--accent); }
.splitbar { display: flex; height: 44px; font: 600 15px var(--display); letter-spacing: .08em; text-transform: uppercase; overflow: hidden; }
.splitbar span { width: var(--w); display: flex; align-items: center; padding-left: 10px; white-space: nowrap; overflow: hidden; }
.splitbar .p { background: var(--partner); color: var(--on-partner); }
.splitbar .s { background: var(--accent); color: var(--on-accent); }
.splitbar .e { background: var(--efs-seg); color: var(--on-efs-seg); }
.check { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; background: var(--check-bg); border: 1px solid var(--check); }
.check b { font: 600 14px var(--display); letter-spacing: .14em; text-transform: uppercase;
           color: color-mix(in srgb, var(--check) var(--st-mix), var(--text)); }
.check span { font-size: 14px; color: var(--check-text); }
.console-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; align-items: flex-end; }
.console-actions .save-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-right: auto; }
.console-actions .save-meta label { display: flex; flex-direction: column; gap: 3px; font: 11px var(--mono); letter-spacing: .14em;
                                    text-transform: uppercase; color: var(--muted); }
.console-actions .save-meta input { min-height: 40px; }
.console .btn-c { min-height: 48px; padding: 0 22px; font: 500 14px var(--display); letter-spacing: .16em; text-transform: uppercase;
                  display: inline-flex; align-items: center; }
.console .btn-c.ghost { background: transparent; color: var(--text); border: 1px solid var(--field-line); }
.console .btn-c.outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.console .btn-c.ghost:hover, .console .btn-c.outline:hover { background: var(--accent-soft); }
.console .btn-c.go { background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); font-weight: 600; }
.console .btn-c.go:hover { background: var(--primary-hover); color: var(--on-primary); }
details.lines.panel { display: block; padding: 14px 26px; }
details.lines summary { cursor: pointer; font: 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
details.lines table { margin-top: 8px; }
@media (max-width: 1100px) {
  .console-grid { grid-template-columns: minmax(0, 1fr); }
  .tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .lane-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .lane-row .chev { padding: 4px 0; transform: rotate(90deg); }
  .tiles3 { grid-template-columns: minmax(0, 1fr); }
  .rate-big { font-size: 64px; }
  .ends { grid-template-columns: 110px repeat(2, minmax(0, 1fr)); font-size: 14px; }
  .seg-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── print (2.34): always the light paper look, the result without the controls ─────────────── */
@media print {
  .no-print, .hdr, footer, .console-tabs, .console-status, .console-actions, .live-note, details.lines summary { display: none !important; }
  .console-grid { grid-template-columns: minmax(0, 1fr); }
  .rate-big { text-shadow: none; }
}

/* ── quote -> customer -> pickup (portal 2.36) ─────────────────────────── */
.quote-status { vertical-align: middle; }
.rates-changed { border-color: var(--ink); }
table.quote-compare, table.quote-ladder { width: auto; min-width: 420px; margin: 8px 0 12px; }
.apply-quote { margin-top: 12px; }
.quote-panel h2 a { text-decoration: none; }
.quoted-text { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 0; }
.from-quote { border-color: var(--ink); }
.customer-quote { max-width: 860px; padding: 26px 30px; }
.customer-quote .cq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 14px; }
.customer-quote .cq-head img { width: 150px; height: auto; filter: var(--logo-filter); }
.customer-quote .cq-head img.logo-efs { width: auto; height: auto; max-width: min(420px, 50%); max-height: 185px;
  filter: none; background: var(--white); padding: 4px 6px; }       /* its own red / black - never inverted */
.customer-quote .cq-title { font: 600 26px var(--display); letter-spacing: .06em; }
.customer-quote .cq-brand { font: 500 14px var(--display); letter-spacing: .12em; }
.customer-quote table.kv { max-width: 460px; margin-bottom: 14px; }
.customer-quote .cq-lane { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin: 10px 0 16px; }
.customer-quote .cq-lane .role, .customer-quote .cq-rate .role { font: 500 12px var(--display); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); }
.customer-quote .cq-lane .name { font: 600 20px var(--display); letter-spacing: .03em; text-transform: uppercase; }
.customer-quote .cq-lane .arrow { font: 28px var(--display); color: var(--smoke); }
.customer-quote .cq-rate { display: flex; justify-content: space-between; align-items: baseline; border: 2px solid var(--ink);
  padding: 10px 16px; margin: 0 0 14px; }
.customer-quote .cq-rate b { font: 700 34px var(--display); font-variant-numeric: tabular-nums; }
.customer-quote .cq-contact { font-size: 14px; border-top: 1px solid var(--line); padding-top: 10px; }

/* ── board: tick boxes, shipments and pickups alike (2.37: tablet-sized) ─────── */
table.grid td > input[type=checkbox], table.grid th.pick > input[type=checkbox] { width: 20px; height: 20px; margin: 0; cursor: pointer; }
table.grid td.pick, table.grid th.pick { width: 34px; text-align: center; }
.pickup-assign { margin: 10px 0 0; }

/* ── the customer site (portal 2.38): its own plain header - the camo band is Soldier's, and an EFS customer
   sees nothing of Soldier's. Tokens only, so Light / Dark as staff have. ───────────────────────────────── */
.chdr { display: flex; align-items: center; gap: 22px; min-height: 64px; padding: 8px 20px; background: var(--card);
        border-bottom: 3px solid var(--ink); flex-wrap: wrap; }
.chdr .cbrand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.chdr .cbrand img { height: 40px; width: auto; }
.chdr .cbrand img.logo-soldier { filter: var(--logo-filter); }
.chdr .cbrand img.logo-efs { background: var(--white); padding: 3px 5px; }
.chdr .cname { font: 600 18px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.chdr .cname small { display: block; font: 500 11px var(--display); letter-spacing: .2em; color: var(--muted); }
.chdr nav { flex: 1; display: flex; gap: 22px; }
.chdr nav a { color: var(--text); text-decoration: none; font: 500 14px var(--display); letter-spacing: .06em; text-transform: uppercase;
              padding: 6px 0; border-bottom: 3px solid transparent; }
.chdr nav a.on, .chdr nav a:hover { border-bottom-color: var(--ink); }
.chdr .acct-menu summary { cursor: pointer; color: var(--muted); }
.cfoot { text-align: center; color: var(--muted); font-size: 12px; padding: 18px 20px 26px; }
/* 2.40: the EFS customer host's pre-login pages - the EFS palette (charcoal ground, EFS red accent, white text) as
   --hud-* overrides; the white EFS logo on the dark ground. */
body.hud-efs { --hud-accent: var(--efs-red); --hud-on-accent: var(--efs-on-red); --hud-black: var(--efs-page);
  --hud-text: var(--efs-white); --hud-link: var(--efs-red-text); --hud-card: var(--efs-card); --hud-input: var(--efs-input);
  --hud-input-line: var(--efs-line); --hud-ring: var(--efs-ring); --hud-cross: var(--efs-cross);
  --hud-grey: var(--efs-grey); --hud-muted: var(--efs-muted); --hud-dim: var(--efs-dim); }
.hud-efs .hud-bg { background-image: none; }
.hud-efs .hud-card a, .hud-efs .hud-kicker, .hud-efs .hud-online { color: var(--hud-link); }
/* 2.41 (Marcus 10/7): design B "Global view". Desktop: the globe ~1000x900 at 1440 wide, left / centre, scaling with the
   viewport; the right column = logo, AIR // OCEAN // GROUND, the card, MOVING FREIGHT FORWARD. Colours = tokens. */
.efs-main { flex: 1; width: 100%; box-sizing: border-box; margin: 0; display: flex; justify-content: flex-end; align-items: center;
            padding: 24px clamp(24px, 2.8vw, 40px) 32px; }
.efs-globe-wrap { position: fixed; z-index: -1; left: 4.17vw; top: 0; width: min(69.4vw, 111.1vh); aspect-ratio: 1000 / 900;
                  pointer-events: none; }
.efs-globe-wrap svg { display: block; width: 100%; height: 100%; }
.efs-globe .g-disc { fill: var(--efs-globe-disc); }
.efs-globe .g-limb { fill: none; stroke: var(--efs-white); stroke-opacity: .08; }
.efs-globe .g-atmo { fill: none; stroke: var(--efs-red); stroke-opacity: .12; stroke-width: 10; }
.efs-globe .arc-w { fill: none; stroke: var(--efs-white); stroke-opacity: .3; stroke-width: 1; }
.efs-globe .arc-r { fill: none; stroke: var(--efs-red); stroke-opacity: .85; stroke-width: 1.4; }
.efs-globe .arc-flow { fill: none; stroke: var(--efs-red); stroke-width: 1.6; stroke-dasharray: 3 7;
                       animation: efs-flow 5s linear infinite; }
.efs-globe .node { fill: var(--efs-white); fill-opacity: .85; }
.efs-globe .hub-ring2 { fill: none; stroke: var(--efs-red); stroke-opacity: .25; }
.efs-globe .hub-ring1 { fill: none; stroke: var(--efs-red); stroke-opacity: .6; }
.efs-globe .hub-core { fill: var(--efs-red); }
@keyframes efs-flow { to { stroke-dashoffset: -100; } }
.efs-col { width: 420px; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.efs-logo { width: 320px; max-width: 100%; height: auto; }
.efs-tag { margin: 18px 0 44px; font: 11px var(--mono); letter-spacing: .3em; color: var(--hud-grey); }
.efs-slogan { display: flex; align-items: center; gap: 12px; margin-top: 36px; font: 12px var(--mono); letter-spacing: .34em;
              color: var(--hud-link); }
.efs-slogan .bar { width: 26px; height: 3px; background: var(--hud-accent); flex: none; }
/* under ~1100 px: the globe behind the card, centred and dimmed; the column centred */
@media (max-width: 1100px) {
  .efs-main { justify-content: center; }
  .efs-globe-wrap { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(100vw, 111.1vh); opacity: .45; }
  .efs-col { align-items: center; }
}
/* phone: the globe above, cropped and short; the card full width with 16 px sides */
@media (max-width: 600px) {
  .efs-main { flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 0 16px 24px; }
  .efs-globe-wrap { position: relative; z-index: 0; left: auto; top: auto; transform: none; width: auto; height: 170px;
                    aspect-ratio: auto; margin: 0 -16px 8px; overflow: hidden; opacity: 1; }
  .efs-globe-wrap svg { width: 150%; height: auto; margin: -16% 0 0 -25%; }
  .efs-col { width: 100%; }
  .efs-logo { width: 240px; }
  .efs-tag { margin: 12px 0 18px; text-align: center; }
  .efs-slogan { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .efs-globe .arc-flow { animation: none !important; }
}


/* ── 2.42: the customer site - Get a rate (the staff console's parts, customer-safe), home pickups, the nav ──────
   EFS-brand pages take the EFS red as their accent; everything else is the shared tokens, so Light / Dark as staff. */
/* 2.42.1: EFS-brand signed-in pages take the EFS palette in Dark (Light unchanged); Soldier pages keep theirs */
body.customer-site.brand-efs { --ink: var(--cust-efs-ink); --on-ink: var(--cust-efs-on-ink);
                               --ink-hover: var(--cust-efs-ink-hover); --camo2: var(--cust-efs-camo2);
                               --steel: var(--cust-efs-steel); --smoke: var(--cust-efs-smoke);
                               --paper: var(--cust-efs-paper); --card: var(--cust-efs-card);
                               --line: var(--cust-efs-line); --text: var(--cust-efs-text);
                               --muted: var(--cust-efs-muted); --field: var(--cust-efs-field);
                               --field-line: var(--cust-efs-field-line); --ladder: var(--cust-efs-ladder);
                               --ground-image: var(--cust-efs-ground-image); --accent: var(--cust-efs-accent);
                               --on-accent: var(--on-cust-efs-accent); --accent-soft: var(--cust-efs-accent-soft);
                               --obar-fill: var(--cust-efs-accent); --obar-glow: var(--cust-efs-accent-soft);
                               --primary: var(--efs-red); --on-primary: var(--efs-on-red);
                               --primary-hover: color-mix(in srgb, var(--efs-red) 85%, var(--efs-white));
                               --efs-seg: var(--cust-efs-ink); --on-efs-seg: var(--cust-efs-on-ink); }
.chdr nav { flex-wrap: wrap; row-gap: 4px; column-gap: 22px; min-width: 0; }
.crate h1 { margin: 0; }
.crate .console-grid { grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); }
.cr-result { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cr-rate { gap: 6px !important; }
.cr-lane { margin: 0; font: 14px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text);
           overflow-wrap: anywhere; }
.cr-big { margin-top: 6px; font: 700 72px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums;
          text-shadow: none; overflow-wrap: anywhere; }
.cr-big.contact { font-size: 44px; }
.cr-sub { font: 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cr-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cr-ladder li { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 6px; text-align: center;
                border: 1px solid var(--line); background: var(--card); }
.cr-ladder .n { font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cr-ladder .amt { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text); overflow-wrap: anywhere; }
.cr-ladder .amt.more { font-size: 13px; color: var(--muted); }
.cr-ladder li.on { border-color: var(--accent); background: var(--accent-soft); }
.cr-ladder li.on .amt { font-weight: 700; color: var(--ink); }
.cr-save { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 12px !important; }
.cr-msg-head { margin: 0; font: 600 20px var(--display); letter-spacing: .04em; }
.customer-pickups .two { display: block; color: var(--muted); font-size: 13px; }
.shipments-h { margin-top: 28px; }
@media (max-width: 1100px) {
  .crate .console-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .chdr { gap: 10px 16px; padding: 8px 14px; }
  .chdr nav { flex-basis: 100%; order: 3; column-gap: 16px; }
  .chdr nav a { font-size: 13px; }
  .crate .console .panel, .crate .panel { padding: 18px 16px; }
  .crate input.zin { font-size: 32px; min-height: 56px; }
  .cr-big { font-size: 52px; }
  .cr-big.contact { font-size: 34px; }
  .cr-ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .customer-site table.grid { display: block; max-width: 100%; overflow-x: auto; }   /* wide tables scroll in their box */
  .customer-site .chdr .cbrand img + .cname { display: none; }                       /* the logo carries the name */
  .customer-site main { min-width: 0; }
}

/* 2.45: the staging copy - an orange banner on every page of every host, a footer line; the same in light and dark */
.staging-banner { position: sticky; top: 0; z-index: 1000; background: var(--staging-bg); color: var(--staging-fg);
                  font: 700 14px/1.3 system-ui, sans-serif; letter-spacing: .02em; text-align: center; padding: 7px 16px; }
.staging-foot { position: relative; z-index: 2; background: var(--staging-bg); color: var(--staging-fg);
                font: 600 12px/1.4 system-ui, sans-serif; text-align: center; padding: 5px 16px; overflow-wrap: anywhere; }
.staging-mail .mail-addr { overflow-wrap: anywhere; }
.staging-mail .dropped { color: var(--st-exc); }
.staging-mail iframe { width: 100%; min-height: 320px; border: 1px solid var(--line); background: var(--white); }
.staging-mail pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* 2.47: a driver's Samsara route in the assign flow - stops in order, a small map strip; done / en route / past greyed */
.samsara-panel { margin: 8px 0; }
.samsara-panel h3 { font: 600 13px/1.3 var(--body); margin: 6px 0 4px; }
.samsara-note { margin: 4px 0; }
.route-strip { display: block; width: 100%; max-width: 600px; height: 90px; border: 1px solid var(--line); background: var(--paper); }
.route-strip polyline { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.route-strip circle.ahead { fill: var(--st-out); }
.route-strip circle.done { fill: var(--line); stroke: var(--muted); }
.route-strip circle.tms { stroke: var(--text); stroke-width: 2; }
/* 2.47.1: the route as a vertical timeline - stop cards, drop gaps, the pickup card (dragged or moved Up / Down) */
.timeline { list-style: none; margin: 6px 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); max-width: 640px; }
.timeline li { margin: 0 0 4px; position: relative; }
.tl-stop { display: flex; gap: 8px; align-items: baseline; padding: 4px 8px; border: 1px solid var(--line); background: var(--card); }
.tl-stop .t, .tl-pickup .t { font-family: var(--mono); min-width: 3.2em; }
.tl-stop .n { flex: 1; }
.tl-stop .st { color: var(--muted); font-size: 12px; }
.tl-stop.locked { color: var(--muted); background: var(--paper); }
.tl-stop.tms .n { font-weight: 600; }
.tl-gap { height: 6px; border: 1px dashed transparent; font-size: 11px; color: var(--muted); overflow: hidden; }
.tl-gap span { visibility: hidden; padding: 0 8px; }
.drag-on .tl-gap { height: 22px; border-color: var(--st-out); background: var(--st-out-bg); }
.drag-on .tl-gap span { visibility: visible; }
.drag-on .tl-gap.over { border-style: solid; border-width: 2px; }
.tl-pickup { padding: 6px 8px; border: 2px solid var(--st-out); background: var(--st-out-bg); }
.tl-pickup.dragging { opacity: .6; }
.tl-pickup .pu-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.tl-pickup .pu-grip { cursor: grab; touch-action: none; user-select: none; padding: 0 4px; font-size: 16px; }
.tl-pickup .pu-facts { font-size: 12px; margin: 2px 0; }
.tl-pickup .pu-err { color: var(--st-exc); font-weight: 600; margin: 4px 0; }
.tl-pickup .pu-push { margin: 8px 0; padding: 10px 12px; border: 2px solid var(--st-exc); background: var(--st-exc-bg); }
.tl-pickup .pu-push-head { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.tl-pickup .pu-push ul { margin: 2px 0 8px; padding-left: 18px; }
.tl-pickup .pu-push-go { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-pickup .pu-push-go .big { font-size: 15px; padding: 10px 18px; }
.tl-pickup .pu-divert { border-color: var(--st-out); background: var(--st-out-bg); }
.tl-pickup .pu-push.flash { outline: 3px solid var(--st-exc); outline-offset: 2px; }
.tl-pickup .pu-move, .tl-pickup .pu-go { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 4px; }
.pu-manual summary { cursor: pointer; font-size: 12px; }
.samsara-panel.compact .timeline li { margin-bottom: 2px; }
.samsara-panel.compact .tl-stop { padding: 1px 6px; font-size: 12px; }
.samsara-state.failed, .samsara-state.attention { color: var(--st-exc); font-weight: 600; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-grid .samsara-panel label { flex-direction: row; align-items: center; gap: 6px; }
/* 2.48: the pickup form - what a BOL still needs, and what the TMS filled in (ZIP table / pallets) */
label.need input, label.need textarea, label.need select { border: 2px solid var(--st-exc); background: var(--st-exc-bg); }
label.need { color: var(--st-exc); font-weight: 600; }
.auto-filled { color: var(--st-dock); font-size: 12px; font-weight: 600; }

/* 2.49: Tender to partner from the board */
.tender-dialog { border: 2px solid var(--st-out); }
.tender-dialog .tender-target { display: flex; flex-direction: column; gap: 4px; grid-column: 1 / -1; }
.tender-dialog .tender-target label, .tender-dialog .tender-move { flex-direction: row; align-items: center; gap: 6px; }
.tender-warn { color: var(--st-dock); font-weight: 600; font-size: 12px; }
button.tender-one { padding: 1px 6px; font-size: 11px; margin-left: 4px; }
.tender-no { font-size: 11px; margin-left: 4px; cursor: help; }

/* 2.50: a load plan's deliveries in Samsara */
.plan-samsara .samsara-line { margin: 4px 0; }
.tl-delivery { border-color: var(--st-deliv); background: var(--st-deliv-bg); }
.route-code-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-weight: 600; margin: 6px 0; }
.route-code-big input { font-size: 16px; padding: 6px 8px; }
.route-code-big small { font-weight: 400; color: var(--muted); }
/* 2.52.2: the Payroll week - one table, fixed columns, the header row stays while scrolling, a group row per driver,
   amber = a stop over 15 minutes, a line not paid shows $0 with its calculated amount greyed */
.pay-scroll { max-height: 72vh; overflow: auto; border: 1px solid var(--line); }
table.pay-week { table-layout: fixed; width: 100%; min-width: 1080px; border: 0; }
table.pay-week thead th { position: sticky; top: 0; z-index: 2; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
table.pay-week col.c-flag { width: 64px; } table.pay-week col.c-date { width: 56px; } table.pay-week col.c-form { width: 72px; }
table.pay-week col.c-load { width: 84px; } table.pay-week col.c-party { width: 200px; } table.pay-week col.c-zip { width: 58px; }
table.pay-week col.c-amt { width: 92px; } table.pay-week col.c-notes { width: auto; } table.pay-week col.c-decide { width: 210px; }
table.pay-week td.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.pay-week td.num, table.pay-week th.num { text-align: right; }
table.pay-week tr.pay-driver td { background: var(--accent-soft); border-top: 2px solid var(--line); }
table.pay-week tr.pay-line.review td { background: var(--st-dock-bg); }
table.pay-week tr.pay-line.not-paid td { color: var(--muted); }
table.pay-week .calc-ghost { color: var(--muted); font-size: 11px; margin-left: 4px; }
table.pay-week tfoot td { background: var(--paper); border-top: 2px solid var(--line); }
table.pay-week form.pay-decide input { width: 96px; }
/* 2.52.3: an exception waiting on a person - RED in its driver's group (red beats amber); the System menu */
table.pay-week tr.pay-line.needs td { background: var(--st-exc-bg); }
.tag.pay-red { background: var(--st-exc); color: var(--on-status); }
.pay-red-text { color: var(--st-exc); font-weight: 600; }
/* 2.54.5: no active ZIP table / CHECK: n of m stops are exceptions - a solid red banner at the top of the page */
.msg.err.pay-banner { background: var(--st-exc); border-color: var(--st-exc); color: var(--on-status); }
.msg.err.pay-banner a { color: inherit; text-decoration: underline; }
table.pay-week tr.pay-driver, table.pay-week tr.pay-line { scroll-margin-top: 48px; }
table.pay-week details.pay-other { display: inline-block; font-size: 12px; }
table.pay-week details.pay-other > summary { cursor: pointer; color: var(--muted); }
.pay-jump input { margin-left: 6px; }
.acct-pop.nav-pop { left: auto; right: 0; top: 100%; margin-top: 3px; display: flex; flex-direction: column; gap: 2px; }
/* 2.54: a closed menu takes no room (its box widened the page on a 1300 px window) */
details.acct-menu:not([open]) > .acct-pop, details.nav-menu:not([open]) > .nav-pop { display: none; }
/* 2.53.1: the System menu's entries in the nav font */
.nav-pop a { font: 500 14px/20px var(--display); text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
             padding: 4px 2px; }
.nav-pop a:hover, .nav-pop a:focus-visible { text-decoration: underline; }
.nav-pop .acct-label { margin-top: 6px; }
/* 2.53: roles - a read-only page (view level, or an admin viewing as someone): no form that changes anything shows;
   the server refuses every change anyway. The "view as" banner. The roles matrix. */
body.read-only main form[method="post" i] button, body.read-only main form[method="post" i] input:not([type="hidden"]),
body.read-only main form[method="post" i] select, body.read-only main form[method="post" i] textarea,
body.read-only main button[hx-post], body.read-only main [hx-post] button, body.read-only main .acts form { display: none !important; }
.view-as-banner { position: sticky; top: 0; z-index: 999; background: var(--st-out-bg); color: var(--text);
  border-bottom: 2px solid var(--st-out); padding: 6px 16px; }
.view-as-banner form { margin-left: 10px; }
.roles-scroll { overflow: auto; max-height: 75vh; }
/* Claims (docs/claims-v1, step 3). form.claims-may: a form a VIEW-level user may use - logging damage and attaching a file
   are claims_attach, which the dock has with Claims view - so the read-only rule above does not hide its controls. */
body.read-only main form.claims-may[method="post" i] button, body.read-only main form.claims-may[method="post" i] input:not([type="hidden"]),
body.read-only main form.claims-may[method="post" i] select, body.read-only main form.claims-may[method="post" i] textarea { display: revert !important; }
.claims-strip { margin: 6px 0 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* claims and deductions apart */
.claims-strip .tile { text-decoration: none; color: inherit; }
.claims-scroll { overflow-x: auto; }
.claims-board td .tag, .claims-due .tag { margin: 1px 0; }
tr.claims-overdue > td:first-child { border-left: 3px solid var(--st-exc); }
details.claims-new > summary, details.claims-add > summary { cursor: pointer; font-family: var(--display); font-weight: 600; min-height: 32px;
  display: flex; align-items: center; }
details.claims-new[open] > summary, details.claims-add[open] > summary { margin-bottom: 10px; }
.claims-form label { display: flex; flex-direction: column; gap: 3px; }
.claims-form.toolbar label { flex-direction: row; align-items: center; gap: 6px; }
.claims-stack { display: grid; gap: 10px; margin-top: 12px; max-width: 640px; }
.claims-stack textarea, .claims-phone textarea { width: 100%; box-sizing: border-box; }
.claims-choice { display: flex; gap: 18px; }
.claims-choice label { flex-direction: row; align-items: center; gap: 6px; }
.claims-note { white-space: pre-wrap; margin: 2px 0 4px; padding-left: 8px; border-left: 2px solid var(--line); }
.claims-due { margin: 10px 0 0; }
.claims-damage-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.claims-link, .claims-attach { margin-top: 10px; }
.claims-recommend h3 { margin: 0; }
/* Add damage is used standing on the dock floor, on a phone: one column, targets a thumb can hit, no sideways scroll */
.claims-phone { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; max-width: 760px; }
.claims-phone input, .claims-phone select, .claims-phone textarea { width: 100%; box-sizing: border-box; }
@media (max-width: 760px) {
  .claims-phone, .claims-form.form-grid { grid-template-columns: minmax(0, 1fr); }
  .claims-phone input, .claims-phone select, .claims-phone textarea, .claims-phone button { min-height: 44px; font-size: 16px; }
  .claims-phone button { width: 100%; }
  .claims-strip { grid-template-columns: minmax(0, 1fr); }
}
table.roles-matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--paper); }
table.roles-matrix td.cell { text-align: center; }
table.roles-matrix td.lv-edit, table.roles-matrix td.on { background: var(--st-deliv-bg); }
table.roles-matrix td.lv-view { background: var(--st-out-bg); }
table.roles-matrix tr.area-row th, table.roles-matrix tr.area-row td { border-top: 2px solid var(--line); }
/* 2.54: live update - the bar under the header (sticky once the header scrolls away), "n updates - click to show",
   a new row's glow (~3 s; none under reduced motion, the colour alone) */
.live-bar { position: sticky; top: 0; z-index: 50; display: flex; justify-content: flex-end; align-items: center; gap: 10px;
            padding: 3px 20px; font-size: 12px; color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--line); }
.live-bar .live-refresh { font-size: 11px; padding: 2px 8px; }
.live-bar .live-pending { margin-right: auto; background: var(--accent); color: var(--on-accent); border: 0; padding: 4px 12px;
                          font-size: 13px; cursor: pointer; }
.live-bar.live-down .live-state { color: var(--st-exc); font-weight: 600; }
tr.live-new > td { animation: live-glow 3s ease-out; }
@keyframes live-glow { from { background: var(--accent-soft); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { tr.live-new > td { animation: none; background: var(--accent-soft); } }
@media print { .live-bar { display: none; } }
.live-bar .live-pending[hidden] { display: none; }
/* 2.54.1: View as - the viewed user's controls, shown but disabled */
body.view-as [data-view-as-locked] { cursor: not-allowed; opacity: .55; }
/* 2.55: Revenova matching - a party per block; suggestions tied at the best level side by side */
.rv-party { border-top: 1px solid var(--line); padding: 10px 0; scroll-margin-top: 48px; }
.rv-party h3 { margin: 0 0 6px; font-size: 14px; }
.rv-tied { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin-bottom: 8px; }
.rv-card { border: 1px solid var(--line); background: var(--paper); padding: 8px; }
table.rv-sugg td { vertical-align: top; }
/* 2.56: a shipper / consignee - its Revenova location and its Revenova customer side by side */
.rv-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.rv-slots h4 { margin: 0 0 4px; font-size: 13px; }
table.revenova-compare tr.rv-changed td, table.revenova-compare tr.rv-not-saved td { background: var(--st-exc-bg); }
/* 2.56.5: Samsara places - the pin, the geocode, the ZIP centre, Samsara addresses nearby (points only, no tiles) */
.pin-place { border-top: 1px solid var(--line); padding: 10px 0; scroll-margin-top: 48px; }
.pin-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
svg.pin-map { width: 320px; max-width: 100%; height: 200px; background: var(--paper); border: 1px solid var(--line); }
svg.pin-map .pin-pin { fill: var(--st-exc); }
svg.pin-map .pin-geo { fill: var(--st-out); }
svg.pin-map .pin-zip { fill: var(--muted); }
svg.pin-map .pin-addr { fill: var(--st-inbound); }
.pin-facts { flex: 1; min-width: 260px; }
/* 2.56.6: the Pickups menu's count of places waiting for a pin check */
.nav-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; font-size: 11px; line-height: 16px;
             text-align: center; background: var(--st-exc); color: var(--on-status); border-radius: 8px; }

/* ── 2.56.8: the left rail (System -> New navigation) - navigation only. The rail is the header band's palette
   (the same in both themes); its cards are the page's (light / dark). Yellow counts = something waiting. ──────── */
.hdr.hdr-rail .jump-open { flex: 0 1 440px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 10px;
                           font: 14px var(--body); text-transform: none; letter-spacing: 0; color: var(--hdr-dim);
                           border: 1px solid var(--hdr-line); border-radius: 2px; cursor: text; }
.hdr.hdr-rail .jump-open:hover { color: var(--hdr-text); border-color: var(--hdr-text); }
.hdr.hdr-rail .jump-open svg, .hdr.hdr-rail .rail-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor;
                                                                 stroke-width: 2; stroke-linecap: round; flex: none; }
.hdr.hdr-rail .jump-open .jump-hint { flex: 1; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hdr.hdr-rail .jump-open kbd { font: 11px var(--display); letter-spacing: .06em; border: 1px solid var(--hdr-line);
                               border-radius: 2px; padding: 1px 5px; }
.hdr.hdr-rail .rail-toggle { display: none; align-items: center; gap: 6px; }
.hdr.hdr-rail .wordmark { display: block; }      /* no nav bars in the band: room for it again */
.rail-shell { display: flex; align-items: stretch; }
.rail { flex: 0 0 88px; width: 88px; background: var(--camo1); color: var(--hdr-text); border-right: 1px solid var(--hdr-rule);
        position: relative; z-index: 70; }
.rail-sections { position: sticky; top: 0; list-style: none; margin: 0; padding: 8px 0; }
.rail-sec { position: relative; }
.rail-btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px 10px;
            background: transparent; color: var(--hdr-dim); border: 0; border-left: 3px solid transparent; border-radius: 0;
            font: 600 11px var(--display); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; position: relative; }
.rail-btn:hover, .rail-sec.open > .rail-btn { color: var(--hdr-text); background: var(--hdr-rule); }
.rail-sec.on > .rail-btn { color: var(--hdr-text); border-left-color: var(--hdr-text); }
.rail-btn:focus-visible, .rail-item:focus-visible { outline: 2px solid var(--hdr-text); outline-offset: -2px; }
.rail-ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail-sec[data-sec="fleet"] .rail-ico { stroke-width: 1.9; }   /* the wrench was drawn at 1.9 */
.rail-sec[data-sec="claims"] .rail-ico { stroke-width: 1.9; }  /* the clipboard too */

/* Fleet > Inventory (the equipment photo sweep): PHONE-FIRST - used standing in a yard, one-handed, with gloves. A unit is
   one row that is a link (min 56 px tall); nothing needs a hover; no table, so nothing scrolls sideways at 390 px. Form
   boxes are 16 px text (a phone does not zoom in on them) and 48 px tall. Existing tokens only - no color of its own:
   a finding is the tag "exc", not started the tag "light". */
.inv { max-width: 760px; }
.inv h1 { overflow-wrap: anywhere; }
.inv-progress .inv-type { padding: 8px 0; border-top: 1px solid var(--line); }
.inv-progress .inv-type:first-of-type { border-top: 0; }
.inv-type-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.inv-pct { font-family: var(--display); font-size: 20px; }
.inv-progress progress { display: block; width: 100%; height: 12px; margin: 4px 0; accent-color: var(--ink); }
.inv-type-foot { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.inv-type-foot .tag { padding: 2px 8px; }
.inv-show { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.inv-show .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; text-decoration: none; }
.inv-n { font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.inv-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 16px; }
.inv-filters label { display: flex; flex-direction: column; gap: 3px; flex: 1 1 150px; min-width: 0; }
.inv-filters select { font-size: 16px; min-height: 44px; width: 100%; }
.inv-filters button, .inv-filters .btn { min-height: 44px; padding: 8px 16px; }
.inv-yard { margin: 0 0 18px; scroll-margin-top: 70px; }
.inv-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--card); }
.inv-list > li + li { border-top: 1px solid var(--line); }
.inv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; grid-template-areas: "unit status go" "what what go" "detail detail go";
  gap: 2px 10px; align-items: center; min-height: 56px; padding: 10px 8px 10px 14px; color: var(--text); text-decoration: none; }
.inv-row:hover, .inv-row:focus-visible { background: var(--paper); }
.inv-unit { grid-area: unit; font-family: var(--display); font-size: 20px; letter-spacing: .03em; overflow-wrap: anywhere; }
.inv-what { grid-area: what; min-width: 0; }
.inv-status { grid-area: status; justify-self: end; }
.inv-status .tag, .inv-state-head .tag { font-size: 12px; padding: 3px 8px; }
.inv-detail { grid-area: detail; min-width: 0; overflow-wrap: anywhere; }
.inv-go { grid-area: go; font-size: 24px; color: var(--muted); text-align: right; }
.inv-back .btn { min-height: 44px; padding: 10px 14px; }
.inv-state.finding { border-color: var(--st-exc); }
.inv-state-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; }
.inv-say { margin: 0 0 8px; }
.inv-plates { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 10px; }
.inv-plates dt { font-size: 12px; color: var(--muted); }
.inv-plates dd { margin: 0; font-family: var(--mono); font-size: 22px; overflow-wrap: anywhere; }
.inv-photo { display: block; }
.inv-photo img { display: block; max-width: 100%; max-height: 420px; height: auto; border: 1px solid var(--line); }
.inv-rule { font-size: 16px; margin: 0 0 12px; }
.inv-form { display: flex; flex-direction: column; gap: 14px; }
.inv-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.inv-form input:not([type=radio]):not([type=hidden]), .inv-form textarea { font-size: 16px; min-height: 48px; padding: 10px; width: 100%; box-sizing: border-box; }
.inv-form input[type=file] { padding: 8px 10px; }
.inv-form input[type=file]::file-selector-button { font: 16px var(--body); min-height: 40px; padding: 6px 14px; margin-right: 10px; }
.inv-form input[name=plate_read] { font-family: var(--mono); font-size: 22px; text-transform: uppercase; letter-spacing: .06em; }
.inv-ends { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inv-ends legend { padding: 0; margin: 0 0 4px; }
.inv-ends label { position: relative; display: block; }
.inv-ends input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.inv-ends span { display: flex; align-items: center; justify-content: center; min-height: 56px; border: 2px solid var(--field-line);
  background: var(--field); font-family: var(--display); font-size: 20px; letter-spacing: .06em; }
.inv-ends input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.inv-ends input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.inv-save { min-height: 56px; font-size: 18px; width: 100%; }
.inv-sightings { list-style: none; margin: 0; padding: 0; }
.inv-sightings > li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.inv-sightings > li:first-child { border-top: 0; }
.inv-sightings a { display: inline-flex; align-items: center; min-height: 44px; }
.inv-when { font-weight: 600; }
.rail-btn .nav-badge { position: absolute; top: 6px; right: 14px; }
.rail-card { display: none; position: absolute; left: 100%; top: 0; z-index: 80; min-width: 230px; padding: 6px 0;
             background: var(--card); color: var(--text); border: 1px solid var(--ink); box-shadow: 0 6px 18px var(--nav-shadow); }
.rail-sec.open > .rail-card, .rail-grp.open > .rail-card { display: block; }
.rail-card-h { padding: 6px 14px 8px; font: 11px var(--label-font); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.rail-card ul { list-style: none; margin: 0; padding: 0; }
.rail-grp { position: relative; }
.rail-card2 { top: -7px; margin-left: -1px; }
.rail-item { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 14px; color: var(--text); background: transparent;
             border: 0; border-left: 3px solid transparent; border-radius: 0; text-align: left; text-decoration: none; cursor: pointer;
             font: 600 14px var(--display); letter-spacing: .04em; text-transform: uppercase; }
.rail-item:hover, .rail-grp.open > .rail-item { background: var(--paper); color: var(--text); }
.rail-item.on, .rail-grp.on > .rail-item { border-left-color: var(--ink); }
.rail-item .rail-chev { margin-left: auto; color: var(--muted); }
.rail-item .nav-badge + .rail-chev { margin-left: 4px; }
.rail-item > span:first-child { flex: 1; }
.rail-item:focus-visible { outline-color: var(--ink); }
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px; font: 600 11px/16px var(--body); letter-spacing: 0;
             text-align: center; background: var(--st-dock); color: var(--hdr-rule); border-radius: 8px; }
.rail-page { flex: 1; min-width: 0; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; font: 12px var(--display); text-transform: uppercase;
         letter-spacing: .08em; color: var(--muted); }
.crumb [aria-current] { color: var(--text); }
.rail-backdrop { position: fixed; inset: 0; z-index: 65; background: var(--nav-scrim); }
.rail-backdrop[hidden] { display: none; }
#jump-pages { display: none; }
.jump { position: fixed; inset: 0; z-index: 120; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 0;
        background: var(--nav-scrim); }
.jump[hidden] { display: none; }
.jump-box { width: min(640px, 100%); background: var(--card); color: var(--text); border: 1px solid var(--ink); box-shadow: 0 10px 30px var(--nav-shadow); }
.jump-q { width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); font: 17px var(--body);
          background: var(--field); color: var(--text); }
.jump-q:focus { outline: none; }
.jump-list { list-style: none; margin: 0; padding: 4px 0; max-height: 55vh; overflow-y: auto; }
.jump-list a { display: flex; align-items: baseline; gap: 10px; padding: 8px 16px; text-decoration: none; color: var(--text); }
.jump-list li.on a, .jump-list a:hover { background: var(--paper); }
.jump-list li.on a { border-left: 3px solid var(--ink); padding-left: 13px; }
.jump-kind { flex: none; width: 70px; font: 11px var(--label-font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.jump-label { font-weight: 600; }
.jump-where { margin-left: auto; font-size: 13px; text-align: right; }
.jump-none { padding: 10px 16px; }
.jump-foot { margin: 0; padding: 6px 16px 10px; border-top: 1px solid var(--line); }
@media (max-width: 899px) {
  .hdr.hdr-rail .rail-toggle { display: inline-flex; }
  .hdr.hdr-rail .wordmark { display: none; }
  .hdr.hdr-rail .jump-open { flex: 1 1 auto; margin: 0; }
  .hdr.hdr-rail .jump-open .jump-hint, .hdr.hdr-rail .jump-open kbd { display: none; }
  .hdr.hdr-rail .jump-open { flex: 0 0 auto; }
  .rail { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); flex: none; overflow-y: auto;
          transform: translateX(-102%); transition: transform .18s ease-out; }
  body.rail-open .rail { transform: none; }
  .rail-sections { position: static; }
  .rail-btn { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 14px 16px; font-size: 14px; }
  .rail-btn .nav-badge { position: static; margin-left: auto; }
  .rail-card, .rail-card2 { position: static; min-width: 0; margin: 0; border: 0; box-shadow: none; padding: 0 0 6px 12px;
                            background: var(--camo1); color: var(--hdr-text); }
  .rail-card-h { display: none; }
  .rail-item, .rail-item:hover, .rail-grp.open > .rail-item { color: var(--hdr-text); background: transparent; }
  .rail-item.on, .rail-grp.on > .rail-item { border-left-color: var(--hdr-text); }
  .rail-item .rail-chev { color: var(--hdr-dim); }
  .rail-grp.open > .rail-item .rail-chev { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) { .rail { transition: none; } }
@media print { .rail, .crumb, .jump, .rail-backdrop { display: none !important; } }

/* ── 2.56.46 (Marcus 10/29): the customer site's left rail (efstracking) - the staff rail's own parts and nav.js, five
   pages and no cards, the account menu at its foot. The EFS palette - charcoal, white, the EFS red on the current page -
   the same in both themes, as the staff rail is; nothing of Soldier's. ─────────────────────────────────────────── */
.customer-site.brand-efs .rail { --camo1: var(--efs-charcoal); --hdr-text: var(--efs-white); --hdr-dim: var(--efs-muted);
                                 --hdr-rule: var(--efs-page); --hdr-line: var(--efs-line); }
.customer-site.brand-efs .rail-sec.on > .rail-btn { border-left-color: var(--efs-red); }
/* 2.56.47: soldiertracking.com takes the staff rail's own palette (Soldier's band colours) - nothing of EFS's */
/* 2.56.47: .crail-in / .crail-acct / .crail-pop serve the staff rail too (its account menu at the foot) */
.crail-in .rail-btn { text-decoration: none; text-align: center; }
.crail-in .rail-sections { position: static; }
.crail-in { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.hdr.hdr-rail ~ .rail-shell .crail-in { height: calc(100vh - 64px); height: calc(100dvh - 64px); }   /* staff: under the 64 px header */
.crail-acct { position: relative; margin-top: auto; border-top: 1px solid var(--hdr-line); }
.crail-acct > summary { list-style: none; }
.crail-acct > summary::-webkit-details-marker { display: none; }
.crail-acct[open] > summary.rail-btn { color: var(--hdr-text); background: var(--hdr-rule); }
.acct-pop.crail-pop { left: 100%; right: auto; top: auto; bottom: 0; min-width: 250px; margin-left: 1px; box-shadow: 0 6px 18px var(--nav-shadow); }
.crail-who { font-size: 15px; overflow-wrap: anywhere; }
.chdr.chdr-rail { gap: 14px; flex-wrap: nowrap; }
.chdr .rail-toggle { display: none; align-items: center; gap: 6px; flex: none; }
.chdr .rail-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
@media (max-width: 899px) {
  .chdr .rail-toggle { display: inline-flex; }
  .chdr.chdr-rail { padding: 8px 14px; }
  .crail-in { position: static; height: auto; min-height: 100%; }
  .crail-in .rail-btn { text-align: left; }
  .acct-pop.crail-pop { position: static; min-width: 0; margin: 0 10px 10px; box-shadow: none; }
}
/* 2.56.46: Book pickup on a phone (390 px measured, tests/test_customer_rail.py) - one column; a fieldset may shrink (its
   min-width is the content's by default); the Today / Tomorrow / Next business day buttons wrap */
@media (max-width: 600px) {
  .customer-site .pickup-form fieldset.card { min-width: 0; }
  .customer-site .pickup-form .form-grid { grid-template-columns: minmax(0, 1fr); }
  .customer-site .pickup-form .form-grid > * { grid-column: 1 / -1; min-width: 0; }
  .customer-site .pickup-form .form-grid input, .customer-site .pickup-form .form-grid select,
  .customer-site .pickup-form .form-grid textarea { width: 100%; min-width: 0; box-sizing: border-box; }
  .customer-site .pickup-form .date-quick { flex-wrap: wrap; }
}

/* 2.56.42 (pickup 101): "Add to that stop" picked - the separate-stop card (its place, its re-time box) and the gaps are hidden; they show when "Add as a separate stop here" is picked */
.samsara-route:has(input[name="sam_choice"][value^="j|"]:checked) .sep-card,
.samsara-route:has(input[name="sam_choice"][value="skip"]:checked) .sep-card { display: none; }
.pu-join-line { margin: .2rem 0 .4rem 1.6rem; }

/* ── 2.56.79 (Marcus 11/9): MOVEMENT - today's colors and layout, plus motion (static/motion.js). Transform / opacity only;
   prefers-reduced-motion = none of it (the block at the end). Colors are tokens (--motion-flash, --nav-shadow). ─────────── */
/* the rail (both sites): icons lift on hover; a section's card slides in from the left; the current-section marker glides
   (motion.js puts .rail-mark in .rail-sections and keeps where it was); a badge pops when its number changes; Ops' truck nudges */
.rail-ico { transition: transform .18s ease-out; }
.rail-btn:hover .rail-ico, .rail-btn:focus-visible .rail-ico { transform: translateY(-2px) scale(1.08); }
.rail-sec.open > .rail-card, .rail-grp.open > .rail-card { animation: m-card-in .2s ease-out; }
@keyframes m-card-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.rail-sec.on[data-sec="ops"] > .rail-btn .rail-ico { animation: m-truck 2.6s ease-in-out infinite; }
@keyframes m-truck { 0%, 84%, 100% { transform: translateX(0); } 90% { transform: translateX(2px); } 95% { transform: translateX(0); } }
.rail-mark { position: absolute; left: 0; top: 0; width: 3px; background: var(--hdr-text); pointer-events: none; list-style: none; }
.rail-mark.m-go { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.rail.m-marked .rail-sec.on > .rail-btn,
.customer-site.brand-efs .rail.m-marked .rail-sec.on > .rail-btn { border-left-color: transparent; }
.customer-site.brand-efs .rail-mark { background: var(--efs-red); }
@media (max-width: 899px) {
  .rail-mark { display: none; }
  .rail.m-marked .rail-sec.on > .rail-btn { border-left-color: var(--hdr-text); }
  .customer-site.brand-efs .rail.m-marked .rail-sec.on > .rail-btn { border-left-color: var(--efs-red); }
}
.nav-badge.m-pop { animation: m-pop .45s ease-out; }
@keyframes m-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* tiles (the Board's buckets, efstracking's order tiles): rise in staggered (--i), lift on hover, press, the number bumps */
.tile { transition: transform .18s ease-out, box-shadow .18s ease-out; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 6px 16px var(--nav-shadow); }
.tile:active, .tile.m-press { transform: scale(.98); box-shadow: none; }
html.m-in .tiles .tile { animation: m-rise .42s ease-out both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes m-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tile .count { transform-origin: left center; }
.tile .count.m-bump { animation: m-bump .5s ease-out; }
@keyframes m-bump { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
/* 2.56.79: efstracking's order tiles - the same tile, the EFS colors (the brand's tokens); the one filtering is pressed */
.otiles { grid-template-columns: repeat(6, 1fr); }
.otiles.n5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .otiles, .otiles.n5 { grid-template-columns: repeat(2, 1fr); } }
.tile[aria-current] { outline: 2px solid var(--ink); outline-offset: -1px; }
.customer-site.brand-efs .tile[aria-current] { outline-color: var(--cust-efs-accent); }
.otile-on { margin: -6px 0 12px; }

/* lists ([data-motion]): rows shift right on hover; the first 20 rise in staggered; FLIP slides (motion.js); a changed row
   flashes; a new one drops into place; a removed one fades where it was (a ghost) */
[data-motion] [data-mkey], [data-motion] tbody > tr { transition: transform .15s ease-out; }
table.grid[data-motion] tbody > tr:hover { transform: translateX(3px); }
html.m-in [data-motion]:not(.m-big) tbody > tr:nth-child(-n+20),
html.m-in [data-motion]:not(.m-big) > [data-mkey]:nth-child(-n+20) { animation: m-rise .38s ease-out both; animation-delay: calc(var(--i, 0) * 35ms); }
tr.m-flash > td, .m-flash:not(tr) { animation: m-flash 1.2s ease-out; }
@keyframes m-flash { from { background-color: var(--motion-flash); } }
.customer-site.brand-efs tr.m-flash > td, .customer-site.brand-efs .m-flash:not(tr) { animation-name: m-flash-efs; }
@keyframes m-flash-efs { from { background-color: var(--cust-efs-accent-soft); } }
.m-enter { animation: m-drop .42s ease-out both; }
@keyframes m-drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.m-ghost { pointer-events: none; z-index: 5; animation: m-fade .3s ease-in forwards; }
@keyframes m-fade { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .rail-ico, .rail-mark, .rail-mark.m-go, .tile, [data-motion] [data-mkey], [data-motion] tbody > tr { transition: none !important; }
  .rail-btn:hover .rail-ico, .rail-btn:focus-visible .rail-ico, .tile:hover, .tile:active, .tile.m-press,
  table.grid[data-motion] tbody > tr:hover { transform: none !important; }
  .rail-sec.open > .rail-card, .rail-grp.open > .rail-card, .rail-sec.on[data-sec="ops"] > .rail-btn .rail-ico, .nav-badge.m-pop,
  html.m-in .tiles .tile, .tile .count.m-bump, html.m-in [data-motion] tbody > tr, html.m-in [data-motion] > [data-mkey],
  tr.m-flash > td, .m-flash, .m-enter, .m-ghost { animation: none !important; }
  .m-ghost { display: none !important; }
}
