:root {
  --paper: #f7f3f4;
  --surface: #ffffff;
  --ink: #24161a;
  --muted: #5c4449;
  --navy: #1b1d21;
  --action: #c81e4a;
  --danger: #9f1239;
  --line: #e0cfd4;
  --band: #f4e8eb;
  --mint: #a8183d;
  --on-solid: #ffffff;
  --warn-bg: #fff4e0;
  --warn-ink: #5c4120;
  --focus: #c81e4a;
  --rail: 132px;
  --header: 56px;
  --wash: #f4e8eb;
  --wash-2: #ead7dc;
  --crimson: #c81e4a;
  --crimson-hover: #a8183d;
  --brand-ink: #1b1d21;
  --field-line: #8a7a7f;
  --ok: #0d6b2c;
  --amber: #b45309;
  --display: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --sans: "Source Sans 3", "Open Sans", "Segoe UI", system-ui, sans-serif;
}
html[data-theme="dark"] {
  --paper: #121316;
  --surface: #1b1d21;
  --ink: #f3eef0;
  --muted: #c9bcc0;
  --navy: #2a2d33;
  --action: #c81e4a;
  --danger: #b3163f;
  --line: #3a3d44;
  --band: #26282d;
  --mint: #ff8fa9;
  --on-solid: #ffffff;
  --warn-bg: #3b2a14;
  --warn-ink: #ffe3b8;
  --focus: #ff8fa9;
  --wash: #26282d;
  --wash-2: #33363d;
  --brand-ink: #f3eef0;
  --field-line: #6b6f78;
  --ok: #4ade80;
  --amber: #fbbf24;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font: 15px/1.45 var(--sans); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
a { color: var(--mint); font-weight: 700; }
h1, h2, h3 { font-family: var(--display); letter-spacing: .02em; }
.skip { position: absolute; left: 8px; top: -40px; background: var(--navy); color: var(--on-solid); padding: 8px 12px; z-index: 60; }
.skip:focus { top: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.push-right { margin-left: auto; }
/* Header: same build as The Mix Yard site-head */
.topbar, .site-head {
  position: sticky; top: 0; z-index: 40; height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 14px 0 calc(var(--rail) + 14px); background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-home { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.product-logo { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: block; flex: none; }
.wordmark { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; line-height: 1; color: var(--brand-ink); white-space: nowrap; }
.wordmark-name { color: var(--crimson); }
html[data-theme="dark"] .wordmark-name { color: var(--mint); }
.brand h1 { margin: 0; font-size: 26px; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); padding-left: 10px; }
.brand-name { font-size: 15px; font-weight: 700; color: var(--brand-ink); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-place, .brand span.brand-place { font-size: 12px; color: var(--muted); }
.top-actions, .nav-side { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; justify-content: flex-end; }
.brand-phone, .settings-link { background: none; border: 0; padding: 6px 0; color: var(--brand-ink); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; }
.brand-phone:hover, .settings-link:hover, .settings-link.is-on { text-decoration: underline; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--wash); color: var(--brand-ink); cursor: pointer; }
.theme-toggle:hover { background: var(--wash-2); }
.theme-icon { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--wash); color: var(--brand-ink); font-weight: 700; font-size: 13px; cursor: pointer; }

/* Buttons */
.ghost, .solid, .good, .danger, .btn {
  min-height: 40px; border-radius: 3px; padding: 0 14px; cursor: pointer; font-weight: 700; font-size: 14px;
}
.ghost { background: var(--surface); color: var(--brand-ink); border: 1px solid var(--navy); }
html[data-theme="dark"] .ghost { color: var(--ink); border-color: var(--field-line); }
.ghost:hover { background: var(--wash); }
.solid { background: var(--navy); color: var(--on-solid); border: 0; }
.good { background: var(--action); color: var(--on-solid); border: 0; }
.good:hover { background: var(--crimson-hover); }
.danger { background: var(--danger); color: var(--on-solid); border: 0; }
button:disabled { opacity: .45; cursor: not-allowed; }

/* Left rail: Mix Yard nav tiles in charcoal */
.layout { display: block; }
.rail, .main-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--rail); z-index: 45; overflow: auto;
  background: var(--navy); color: var(--on-solid); display: flex; flex-direction: column; gap: 3px; padding: 8px 6px;
  border-right: 3px solid var(--crimson);
}
.rail-mark { display: flex; justify-content: center; padding: 2px 0 10px; border-bottom: 1px solid rgba(255,255,255,.18); margin-bottom: 6px; }
.rail-mark img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.rail button, .nav-tile {
  display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 34px;
  font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--on-solid); background: transparent; border: 1px solid rgba(255,255,255,.55); border-radius: 3px;
  padding: 2px 8px; cursor: pointer; text-align: left; white-space: nowrap;
}
.rail button:hover, .rail button:focus-visible, .rail button[aria-current="page"] {
  background: #fff; color: #1b1d21; border-color: #fff; box-shadow: inset 4px 0 0 var(--crimson);
}
.rail .rail-group { margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 3px; }
.nav-count { display: inline-flex; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; align-items: center; justify-content: center; border-radius: 9px; background: var(--crimson); color: #fff; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0; }
.stage { margin-left: var(--rail); min-width: 0; display: flex; flex-direction: column; }

/* Pulse row (Mix Yard dispatch status tiles) */
.pulse-wrap { background: var(--surface); border-bottom: 1px solid var(--line); }
.pulse-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding: 8px 12px; }
.pulse { display: flex; align-items: baseline; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 3px; background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; }
html[data-theme="dark"] .pulse { border-left-color: var(--field-line); }
.pulse:hover { background: var(--wash); }
.pulse-num { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1; }
.pulse-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pulse.is-wait { border-left-color: var(--crimson); }
.pulse.is-wait .pulse-num { color: var(--mint); }
.pulse.is-ready { border-left-color: var(--ok); }
.pulse.is-shop { border-left-color: var(--amber); }

/* Section bar + section tabs (Mix Yard section-nav) */
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--band); border-bottom: 3px solid var(--crimson); padding: 6px 14px; }
.section-bar h2 { margin: 0; font-size: 22px; text-transform: uppercase; color: var(--brand-ink); }
.content { padding: 12px 14px 32px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tabs button { min-height: 34px; padding: 4px 14px; border: 1px solid var(--field-line); border-radius: 3px; background: var(--surface); color: var(--brand-ink); font-weight: 700; font-size: 13px; }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--on-solid); border-color: var(--navy); box-shadow: inset 0 -3px 0 var(--crimson); }
html[data-theme="dark"] .tabs button[aria-selected="true"] { background: var(--crimson); border-color: var(--crimson); box-shadow: none; }

/* Cards, tables, forms */
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 2px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(27,29,33,.06); }
html[data-theme="dark"] .card, html[data-theme="dark"] .panel { border-top-color: var(--crimson); }
.card h3, .panel h3 { margin-top: 0; text-transform: uppercase; font-size: 18px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
label.field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 13px; margin-bottom: 12px; color: var(--brand-ink); }
input, select, textarea { min-height: 40px; border: 1px solid var(--field-line); background: var(--surface); padding: 6px 10px; border-radius: 2px; }
textarea { min-height: 88px; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
.table th, .table td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); background: var(--band); border-bottom: 3px solid var(--navy); }
html[data-theme="dark"] .table th { border-bottom-color: var(--crimson); }
.table tbody tr:hover td { background: var(--wash); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 3px; background: var(--band); color: var(--ink); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.badge.draft { background: var(--warn-bg); color: var(--warn-ink); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status { min-height: 1.4em; }
.status.error { color: var(--danger); font-weight: 700; }
html[data-theme="dark"] .status.error { color: var(--mint); }

/* Sign-in card, like The Mix Yard */
.login-wrap { max-width: 400px; margin: 72px auto; border-top: 4px solid var(--crimson); box-shadow: 0 10px 28px rgba(27,29,33,.12); padding: 20px 18px; }
.login-wrap h1, .login-wrap h2 { font-size: 26px; margin: 0 0 8px; }
.login-wrap .good, .login-wrap .solid { width: 100%; }
.login-wrap .ghost { width: 100%; }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.toggle { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.toggle input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--crimson); }
.drawer-back { position: fixed; inset: 0; background: rgba(18,19,22,.5); display: none; z-index: 70; }
.drawer-back.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(460px, 100%); background: var(--surface); border-left: 4px solid var(--crimson); padding: 16px; overflow: auto; transform: translateX(100%); transition: transform .18s ease; }
.drawer-back.open .drawer { transform: translateX(0); }
dialog { border: 1px solid var(--line); border-top: 4px solid var(--crimson); background: var(--surface); color: var(--ink); min-width: min(420px, 92vw); }

/* Dispatch board */
.lanes { display: flex; gap: 10px; overflow-x: auto; align-items: flex-start; padding-bottom: 8px; }
.lane { width: 240px; flex: none; background: var(--surface); border: 1px solid var(--line); min-height: 180px; }
.lane > * { margin-left: 8px; margin-right: 8px; }
.lane h3 { margin: 0; padding: 8px; background: var(--band); border-bottom: 3px solid var(--navy); font-size: 16px; text-transform: uppercase; }
html[data-theme="dark"] .lane h3 { border-bottom-color: var(--crimson); }
.job-card { margin: 8px; padding: 8px; border: 1px solid var(--line); border-left: 4px solid var(--crimson); background: var(--paper); cursor: grab; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; width: calc(100% - 16px); }
.bar { height: 10px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--crimson); }
.meter { display: flex; height: 12px; background: var(--line); border-radius: 2px; overflow: hidden; margin: 4px 0 12px; gap: 1px; }
.meter i { flex: 1; }
.meter i.on { background: var(--crimson); }
.gbb { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.option { border: 2px solid var(--line); border-top-width: 5px; padding: 12px; background: var(--surface); }
.option.best { border-color: var(--crimson); }
.sig { width: 100%; height: 160px; background: #fff; border: 1px solid var(--navy); touch-action: none; }
.phone-app { max-width: 520px; margin: 0 auto; padding: 12px 12px 32px; }
.step { min-height: 56px; width: 100%; margin-top: 10px; }
.map-sheet { position: relative; height: 420px; background: var(--band); border: 1px solid var(--line); overflow: hidden; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; }
.pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--crimson); border: 2px solid #fff; transform: translate(-50%, -50%); }
.warn { background: var(--warn-bg); color: var(--warn-ink); padding: 6px 10px; font-weight: 700; font-size: 13px; }
.docs .doc, .doc { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
@media (max-width: 719px) {
  :root { --rail: 0px; }
  .topbar { padding: 0 10px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .rail { display: none; top: var(--header); width: 100%; bottom: auto; max-height: 70vh; display: none; grid-template-columns: 1fr 1fr; border-right: 0; }
  html.nav-open .rail { display: grid; }
  .rail-mark, .brand-copy, .top-actions .settings-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer { transition: none; }
}

/* Inline styles are blocked by the CSP, so these replace style= attributes. */
.pad-16 { padding: 16px; }
.pad-8-16 { padding: 8px 16px; }
/* ---- Mix Yard section nav: back button + section tabs ---- */
.section-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px; }
.section-back { min-height: 34px; padding: 0 14px; border: 0; border-radius: 3px; background: var(--navy); color: var(--on-solid); font-weight: 700; font-size: 13px; cursor: pointer; }
.section-back:hover { background: var(--crimson); }
.section-back.is-home { background: var(--wash); color: var(--brand-ink); }
.section-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.section-tab { min-height: 34px; padding: 4px 14px; border: 1px solid var(--field-line); border-radius: 3px; background: var(--surface); color: var(--brand-ink); font-weight: 700; font-size: 13px; cursor: pointer; }
.section-tab:hover { background: var(--wash); }
.section-tab.is-on { background: var(--navy); color: var(--on-solid); border-color: var(--navy); box-shadow: inset 0 -3px 0 var(--crimson); }
html[data-theme="dark"] .section-tab.is-on { background: var(--crimson); border-color: var(--crimson); box-shadow: none; }
.section-nav.tabs { padding-bottom: 10px; }

/* ---- banners and alert rail ---- */
.bill-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 14px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); }
.bill-banner.warn { background: var(--warn-bg); color: var(--warn-ink); }
.bill-banner.stop { background: var(--danger); color: var(--on-solid); }
.bill-banner .good { min-height: 32px; }
.alert-rail { position: relative; z-index: 30; }
.alert-summary { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 14px; background: var(--surface); border: 0; border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--amber); color: var(--ink); font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.alert-summary.is-stop { box-shadow: inset 4px 0 0 var(--crimson); }
.alert-count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 10px; background: var(--crimson); color: #fff; font-size: 12px; }
.alert-more { margin-left: auto; color: var(--mint); text-decoration: underline; }
.alert-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.alert-bar .alert-main { width: 100%; text-align: left; padding: 6px 14px 6px 18px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; cursor: pointer; }
.alert-bar.is-stop .alert-main { box-shadow: inset 4px 0 0 var(--crimson); background: var(--wash); }
.alert-bar.is-warn .alert-main { box-shadow: inset 4px 0 0 var(--amber); }
.alert-bar.is-service .alert-main { box-shadow: inset 4px 0 0 var(--navy); }
html[data-theme="dark"] .alert-bar.is-service .alert-main { box-shadow: inset 4px 0 0 var(--field-line); }
.alert-bar .alert-main:hover { background: var(--wash-2); }
ul.plain { list-style: none; margin: 0; padding: 0; }
.alert-line { padding: 6px 10px; border-left: 4px solid var(--amber); margin-bottom: 4px; background: var(--paper); }
.alert-line.is-stop { border-left-color: var(--crimson); }
.alert-line.is-service { border-left-color: var(--navy); }
.alert-line a { color: var(--ink); font-weight: 600; text-decoration: none; }
.alert-line a:hover { text-decoration: underline; }

/* ---- dashboard + panels ---- */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.panel-head h3 { margin: 0; font-size: 20px; text-transform: uppercase; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-top: 4px solid var(--navy); background: var(--surface); color: var(--ink); border-radius: 2px; cursor: pointer; }
button.kpi:hover { background: var(--wash); }
html[data-theme="dark"] .kpi { border-top-color: var(--field-line); }
.kpi.is-wait { border-top-color: var(--crimson); }
.kpi.is-ready { border-top-color: var(--ok); }
.kpi-num { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.05; }
.kpi-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.table-title { margin: 16px 0 6px; text-transform: uppercase; font-size: 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.grid.four { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: end; }
.grid.four .good { min-height: 40px; margin-bottom: 12px; }
.ghost.small, .good.small { min-height: 30px; padding: 0 10px; font-size: 12px; }
.inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.narrow { max-width: 640px; }
.neg { color: var(--danger); font-weight: 700; }
html[data-theme="dark"] .neg { color: var(--mint); }
.price { font-family: var(--display); font-size: 30px; font-weight: 700; margin: 4px 0; }
.price span { font-size: 16px; color: var(--muted); }
.zone-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: middle; border: 1px solid var(--line); }
.badge.ok, .badge.status-active, .badge.status-paid, .badge.status-completed { background: #d9f2e1; color: #0b4d22; }
.badge.status-paused, .badge.status-draft, .badge.status-scheduled { background: var(--warn-bg); color: var(--warn-ink); }
.badge.status-cancelled { background: var(--wash-2); color: var(--muted); }
.badge.status-en_route, .badge.status-arrived, .badge.status-dispatched { background: var(--crimson); color: #fff; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sign-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.sign-lines span { border-top: 1px solid var(--ink); padding-top: 4px; font-size: 12px; color: var(--muted); }

/* ---- routes + Leaflet ---- */
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.route-stops { margin: 0; padding-left: 20px; }
.route-stops li { margin-bottom: 8px; }
.route-c0 { border-color: #c81e4a !important; } .route-c1 { border-color: #1b1d21 !important; } .route-c2 { border-color: #0f766e !important; }
.route-c3 { border-color: #b45309 !important; } .route-c4 { border-color: #1d4ed8 !important; } .route-c5 { border-color: #7c3aed !important; }
html[data-theme="dark"] .route-c1 { border-color: #c9bcc0 !important; }
.board-swatch { display: inline-block; font-size: 12px; font-weight: 700; padding-left: 8px; border-left: 8px solid var(--navy); margin-right: 14px; }
.site-swatch { border-left-color: #5c4449; }
.map-legend { margin-bottom: 8px; }
.leaflet-box { height: 520px; border: 1px solid var(--line); border-top: 3px solid var(--crimson); }
.air-pin span { display: flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #fff; color: #fff; font-weight: 700; font-size: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.pin-0 { background: #c81e4a; } .pin-1 { background: #1b1d21; } .pin-2 { background: #0f766e; } .pin-3 { background: #b45309; } .pin-4 { background: #1d4ed8; } .pin-5 { background: #7c3aed; }
html[data-theme="dark"] .leaflet-tile-pane { filter: brightness(.75) contrast(1.1); }

/* ---- print views (Mix Yard filing sheet) ---- */
.print-sheet { position: fixed; inset: 0; z-index: 90; overflow: auto; background: #d5d2d4; padding: 24px; }
.filing { max-width: 8.5in; margin: 0 auto; background: #fff; color: #1b1d21; padding: .5in; box-shadow: 0 10px 28px rgba(27,29,33,.18); }
.filing .table th { background: #f4e8eb; color: #1b1d21; }
.filing .table td { color: #1b1d21; background: #fff; }
.filing-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #c81e4a; padding-bottom: 10px; margin-bottom: 14px; }
.filing-brand { display: flex; align-items: center; gap: 8px; }
.filing-brand img { width: 40px; height: 40px; }
.filing-brand .wordmark { color: #1b1d21; }
.filing-meta { display: flex; flex-direction: column; text-align: right; font-size: 12px; }
@media print {
  body.printing > *:not(.print-sheet) { display: none !important; }
  .print-sheet { position: static; padding: 0; background: #fff; }
  .filing { box-shadow: none; padding: 0; max-width: none; }
  .no-print { display: none !important; }
  @page { size: letter; margin: .55in; }
}
.cal-week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bar span { width: 0; }

/* ---- Tech phone app, Mix Yard driver style ---- */
body.tech { --rail: 0px; padding-bottom: 72px; }
body.tech .topbar { padding: 0 12px; }
body.tech .brand h1.wordmark { margin: 0; font-size: 24px; }
body.tech .phone-app h2 { text-transform: uppercase; font-size: 22px; margin: 6px 0 10px; }
.sync-pill { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: var(--wash); color: var(--brand-ink); font-size: 12px; font-weight: 700; }
.tech-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--navy); border-top: 3px solid var(--crimson); padding-bottom: env(safe-area-inset-bottom); }
.tech-tab { min-height: 58px; border: 0; background: transparent; color: var(--on-solid); font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.tech-tab.is-on { background: #fff; color: #1b1d21; box-shadow: inset 0 4px 0 var(--crimson); }
.today-card { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; border-left: 5px solid var(--crimson); cursor: pointer; color: var(--ink); }
.today-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--display); font-size: 20px; }
.today-title { font-weight: 600; }
.today-next { color: var(--muted); font-size: 14px; text-transform: capitalize; }
body.tech .step, body.tech .good, body.tech .solid { min-height: 56px; font-size: 17px; }
.link-btn { display: inline-flex; align-items: center; text-decoration: none; }
