/* Gnosis Dispatch: dispatch desk demo. System fonts, no external assets. */
:root {
  --rail: #0d1726;
  --rail-2: #16263e;
  --rail-ink: #d5deeb;
  --rail-muted: #8293ad;
  --bg: #f3f0ea;
  --panel: #fffefc;
  --panel-2: #f8f6f1;
  --line: #e4ded3;
  --line-2: #eee9e1;
  --ink: #18212f;
  --ink-2: #3f4a5b;
  --muted: #6b7180;
  --teal: #0d7a70;
  --teal-ink: #08584f;
  --teal-50: #e4f2ef;
  --teal-100: #c6e5df;
  --amber: #a85a04;
  --amber-ink: #874703;
  --amber-50: #fcf2e1;
  --amber-100: #f4ddb2;
  --red: #b0281f;
  --red-50: #fbeae7;
  --navy: #1e3a60;
  --navy-50: #e8eef6;
  --focus: #1f6feb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(24, 33, 47, .05), 0 1px 1px rgba(24, 33, 47, .03);
  --shadow-lg: 0 24px 60px rgba(9, 16, 28, .28);
  --top-h: 58px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.42 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
b, strong { font-weight: 650; }
small { font-size: 11.5px; }
.num, .kpi-n, .tk-facts dd, .big dd, .cmp-table td, .steps .num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.warn-t { color: var(--amber); }
.bad-t { color: var(--red); }
.fine { font-size: 12px; color: var(--muted); }
.sr-only, .ck { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { flex: none; vertical-align: -3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--panel); color: var(--ink); padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow-lg); }
.skip:focus { top: 12px; }
#work:focus { outline: none; }
.work h2[id] { scroll-margin-top: calc(var(--top-h) + 12px); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 76px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; z-index: 30;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  background: linear-gradient(180deg, var(--rail) 0%, #0b1320 100%);
  color: var(--rail-ink); padding: 14px 8px;
  border-right: 1px solid #1d2c44;
}
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand-t { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--rail-muted); text-align: center; line-height: 1.15; }
.brand-t b { display: block; color: #e9eef6; font-weight: 700; letter-spacing: .04em; }
.nav { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.nav-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 100%; padding: 10px 2px 8px; border: 0; border-radius: 10px; background: none;
  color: var(--rail-muted); font-size: 11px; font-weight: 600;
}
.nav-btn .ic { width: 20px; height: 20px; }
.nav-btn:hover { color: #e9eef6; background: rgba(255, 255, 255, .04); }
.nav-btn.is-active { color: #fff; background: var(--rail-2); box-shadow: inset 3px 0 0 #5fd0c3; }
.nav-btn:focus-visible { outline-color: #79d9cd; }
.nav-badge { position: absolute; top: 5px; right: 12px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #2c4a73; color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; }
.nav-badge.warn { background: #d98a1f; color: #1c1206; }
.rail-foot { margin-top: auto; font-size: 9.5px; line-height: 1.3; color: var(--rail-muted); text-align: center; letter-spacing: .02em; }

.desk { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; min-height: var(--top-h);
  display: flex; align-items: center; gap: 16px; padding: 9px 20px;
  background: rgba(243, 240, 234, .94); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.tb-title { display: flex; align-items: baseline; gap: 12px; flex: none; }
.tb-title h1 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.tb-date { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.tb-scn { display: inline-flex; padding: 3px; gap: 2px; background: #e9e4db; border-radius: 10px; }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.seg-btn.seg-warn.is-on { background: var(--amber-50); color: var(--amber-ink); box-shadow: inset 0 0 0 1px var(--amber-100); }
.tb-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.demo-tag { margin-right: 6px; padding: 3px 9px; border: 1px dashed #c9bfae; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; background: rgba(255, 255, 255, .5); }
.demo-short { display: none; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tool:hover { background: rgba(24, 33, 47, .06); color: var(--ink); }
.tool.is-on { color: var(--teal-ink); background: var(--teal-50); }
.work { padding: 16px 20px 40px; }
.mobile-fleet-status, .mobile-truck-pick { display: none; }

/* ---------- primitives ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.panel-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.panel-h h2 { font-size: 14px; font-weight: 700; letter-spacing: -.005em; }
.panel-sub { font-size: 12px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 650; white-space: nowrap; border: 1px solid transparent; }
.chip .ic { width: 13px; height: 13px; vertical-align: 0; }
.chip-teal { background: var(--teal-50); color: var(--teal-ink); border-color: var(--teal-100); }
.chip-amber { background: var(--amber-50); color: var(--amber-ink); border-color: var(--amber-100); }
.chip-amber-o { background: #fff; color: var(--amber-ink); border-color: #e8c27f; }
.chip-red { background: var(--red-50); color: var(--red); border-color: #f1c6c0; }
.chip-grey { background: #f0ede7; color: #545b68; border-color: #e1dbd0; }
.chip-navy { background: var(--navy-50); color: var(--navy); border-color: #cdd9ea; }
.unk { display: inline-flex; align-items: center; gap: 4px; color: var(--amber-ink); font-weight: 600; font-size: 12px; }
.unk .ic { width: 13px; height: 13px; vertical-align: 0; }
.unk-t { color: var(--amber-ink); font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 650; white-space: nowrap; background: none; transition: background-color .12s, border-color .12s, color .12s; }
.btn .ic { width: 15px; height: 15px; vertical-align: 0; }
.btn-sm { height: 29px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-ink); }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cfc6b8; background: #fff; }
.btn-ghost[aria-pressed="true"] { background: var(--teal-50); border-color: var(--teal-100); color: var(--teal-ink); }
.btn-quiet { color: var(--ink-2); }
.btn-quiet:hover { background: rgba(24, 33, 47, .06); color: var(--ink); }
.btn-ghost-d { color: #d5deeb; border-color: #2e4565; }
.btn-ghost-d:hover { background: rgba(255, 255, 255, .06); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 8px; background: none; color: var(--ink-2); }
.icon-btn:hover { background: rgba(24, 33, 47, .07); color: var(--ink); }
.icon-btn .ic { width: 18px; height: 18px; vertical-align: 0; }

.switch { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 12.5px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.switch-k { position: relative; width: 28px; height: 16px; border-radius: 9px; background: #cfc8bb; transition: background-color .15s; }
.switch-k::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch[aria-checked="true"] { color: var(--teal-ink); border-color: var(--teal-100); background: var(--teal-50); }
.switch[aria-checked="true"] .switch-k { background: var(--teal); }
.switch[aria-checked="true"] .switch-k::after { transform: translateX(12px); }
.switch.lg { height: 36px; font-size: 13px; padding-right: 14px; }

/* ---------- guided run ---------- */
.guide { margin-bottom: 14px; padding: 10px 12px 10px 16px; border-radius: var(--radius); background: linear-gradient(90deg, #102038, #16304f); color: #e6edf6; box-shadow: var(--shadow); }
.guide-head { display: flex; align-items: center; gap: 12px; }
.guide-head h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #fff; }
.guide-head h2 .ic { color: #6fd6ca; width: 17px; height: 17px; }
.guide-sub { font-size: 12px; color: #9fb0c8; }
.guide-head .icon-btn { margin-left: auto; color: #9fb0c8; width: 28px; height: 28px; }
.guide-head .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.guide-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
@media (min-width: 1280px) {
  .guide { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; padding: 8px 10px 8px 16px; }
  .guide-head { display: contents; }
  .guide-head h2 { grid-column: 1; grid-row: 1; }
  .guide-sub { display: none; }
  .guide-steps { grid-column: 2; grid-row: 1; margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)) 28px; }
  .guide-head .icon-btn { grid-column: 2; grid-row: 1; justify-self: end; }
  .guide-note { grid-column: 1 / -1; }
}
.gstep { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid #2c4467; border-radius: 9px; background: rgba(255, 255, 255, .03); color: #d5deeb; font-size: 12.5px; font-weight: 600; text-align: left; }
.gstep:hover { background: rgba(255, 255, 255, .07); border-color: #3b5780; }
.gstep:focus-visible { outline-color: #79d9cd; }
.gstep-n { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #47628a; font-size: 11.5px; font-weight: 700; }
.gstep-n .ic { width: 13px; height: 13px; vertical-align: 0; }
.gstep.is-next { border-color: #5fd0c3; background: rgba(95, 208, 195, .1); color: #fff; }
.gstep.is-next .gstep-n { background: #5fd0c3; border-color: #5fd0c3; color: #062a26; }
.gstep.is-done { color: #9fb0c8; }
.gstep.is-done .gstep-n { background: #24476b; border-color: #24476b; color: #9de6dc; }
.guide-note { margin-top: 8px; padding: 7px 10px; border-radius: 8px; background: rgba(0, 0, 0, .18); font-size: 12.5px; color: #e6edf6; }

/* ---------- KPIs and alerts ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); text-align: left; }
button.kpi:hover { border-color: #cfc6b8; }
.kpi-n { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1; min-width: 26px; color: var(--ink); }
.kpi-t { display: flex; flex-direction: column; min-width: 0; }
.kpi-l { font-size: 13px; font-weight: 650; }
.kpi-s { font-size: 11.5px; color: var(--muted); }
.kpi-go { margin-left: auto; color: #b6ad9e; }
.kpi.is-warn { border-color: #ebc98f; background: linear-gradient(0deg, var(--amber-50), var(--amber-50)) , var(--panel); }
.kpi.is-warn .kpi-n { color: var(--amber); }
.alert { margin-bottom: 14px; padding: 10px 14px; border: 1px solid #ebc98f; border-left: 4px solid #d98a1f; border-radius: var(--radius); background: var(--amber-50); }
.alert h2 { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--amber-ink); }
.alert ul { display: grid; gap: 4px; margin-top: 6px; }
.alert-btn { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .6); text-align: left; font-size: 13px; }
.alert-btn:hover { background: #fff; }
.alert-why { color: var(--amber-ink); font-size: 12.5px; }
.alert-btn .ic:last-child { margin-left: auto; color: var(--amber); }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 14px; align-items: start; }
.fleet-panel { position: sticky; top: calc(var(--top-h) + 14px); max-height: calc(100vh - var(--top-h) - 28px); overflow: auto; }
.fleet { display: grid; gap: 6px; padding: 8px; }
.tcard { display: grid; gap: 4px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: none; text-align: left; transition: background-color .12s, border-color .12s; }
.tcard:hover { background: var(--panel-2); border-color: var(--line-2); }
.tcard.is-selected { background: #fff; border-color: var(--teal); box-shadow: inset 3px 0 0 var(--teal), 0 1px 3px rgba(13, 122, 112, .12); }
.tcard.is-review:not(.is-selected) { border-color: #ebc98f; }
.tc-top { display: flex; align-items: center; gap: 8px; }
.tc-id { font-size: 14px; font-weight: 750; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.tc-eq { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.tc-fit { margin-left: auto; font-size: 12px; color: var(--muted); }
.tc-fit b { color: var(--teal-ink); font-size: 13px; }
.tc-loc { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.tc-loc .ic, .tc-stats .ic { color: #9a9282; width: 14px; height: 14px; }
.tc-loc em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.tc-stats { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tc-stats b { color: var(--ink); font-weight: 650; }
.tc-stats span { display: inline-flex; align-items: center; gap: 4px; }
.tc-stats .late b, .tc-stats .late small { color: var(--amber); }
.tc-next { display: flex; align-items: center; gap: 5px; margin-top: 2px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 12px; }
.tc-next .ic { width: 14px; height: 14px; }
.tc-next.ok { color: var(--navy); }
.tc-next.warn { color: var(--amber-ink); font-weight: 600; }
.tc-next.none { color: var(--muted); }
.work-col { display: grid; gap: 14px; min-width: 0; }

.tk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 12px 16px; }
.tk-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tk-badge { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 9px; background: var(--rail); color: #fff; font-weight: 750; font-size: 14px; font-variant-numeric: tabular-nums; }
.tk-badge .ic { color: #6fd6ca; }
.tk h2 { font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.tk-sub { font-size: 12.5px; color: var(--muted); }
.tk-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.tk-facts dt { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tk-facts dd { font-size: 13.5px; }
.tk-facts small { color: var(--muted); }
.tk-facts .late dd b { color: var(--amber); }
.tk-facts .was { text-decoration: line-through; }
.list-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 7px 16px; background: var(--panel-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.list-count b { font-variant-numeric: tabular-nums; }
.list-rank { color: var(--muted); }
.list-bar .switch { margin-left: auto; }

/* load rows */
.lrow {
  display: grid; align-items: center; gap: 0 10px;
  grid-template-columns: minmax(160px, 1.5fr) minmax(136px, 1fr) 66px 76px 88px 76px minmax(124px, 1.2fr) 124px;
  padding: 9px 14px 9px 16px; border-top: 1px solid var(--line-2);
}
.loads > .lrow:first-child { border-top: 0; }
.lhead { padding-top: 7px; padding-bottom: 7px; border-top: 0; border-bottom: 1px solid var(--line-2); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lhead .r, .c-miles, .c-gross, .c-rpm { text-align: right; }
.lrow.is-focus { background: #f6faf9; box-shadow: inset 3px 0 0 var(--teal-100); }
.lrow.is-plan { background: #f3f6fb; box-shadow: inset 3px 0 0 var(--navy); }
.lrow:hover { background-color: #faf8f4; }
.lrow.is-plan:hover { background: #eef2f8; }
.lane-btn { display: grid; gap: 2px; width: 100%; padding: 2px 0; border: 0; background: none; text-align: left; min-width: 0; }
.lane { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 13.5px; font-weight: 650; line-height: 1.3; min-width: 0; }
.lane-o, .lane-d { white-space: nowrap; }
.lane-ar { color: #a59c8c; width: 14px; height: 14px; }
.lane-btn:hover .lane-o, .lane-btn:hover .lane-d { text-decoration: underline; text-decoration-color: #bdb3a3; text-underline-offset: 3px; }
.rank { display: inline-grid; place-items: center; flex: none; width: 19px; height: 19px; border-radius: 50%; background: var(--navy-50); color: var(--navy); font-size: 11px; font-weight: 750; }
.lane-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-appt { display: grid; gap: 2px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.c-miles span, .c-rpm span, .c-rpm { white-space: nowrap; }
.c-appt i, .c-miles i, .c-rpm i { font-style: normal; font-size: 10.5px; font-weight: 650; color: var(--muted); letter-spacing: .03em; }
.c-appt i { display: inline-block; width: 30px; text-transform: uppercase; }
.c-miles, .c-gross, .c-rpm { display: grid; gap: 2px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.c-miles b, .c-gross b, .c-rpm b { font-size: 13.5px; }
.c-gross span, .c-rpm span { color: var(--muted); }
.c-gross span.warn-t { color: var(--amber); }
.c-miles .warn-t, .c-miles .warn-t b { color: var(--amber); }
.mkt { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.mkt .ic { width: 15px; height: 15px; vertical-align: 0; }
.mkt-stronger { color: var(--teal-ink); }
.mkt-steady { color: #59606d; }
.mkt-softer { color: var(--amber-ink); }
.c-fit { display: grid; gap: 4px; min-width: 0; }
.c-fit .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.why { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.fx { display: inline-flex; align-items: center; gap: 3px; height: 21px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 650; color: var(--amber-ink); background: #fff; border: 1px dashed #e3b86b; white-space: nowrap; }
.fx .ic { width: 12px; height: 12px; vertical-align: 0; }
.fx-lost { color: var(--red); border-color: #e9a59c; }
.fx-ok { color: var(--teal-ink); border-color: var(--teal-100); }
.c-act { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.cmp { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); cursor: pointer; user-select: none; }
.cmp input { width: 14px; height: 14px; margin: 0; accent-color: var(--teal); }
.cmp.is-full { opacity: .45; cursor: not-allowed; }
.ruled { border-top: 1px solid var(--line-2); }
.ruled > summary { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; list-style: none; }
.ruled > summary::-webkit-details-marker { display: none; }
.ruled > summary:hover { background: var(--panel-2); }
.sum-ic { transition: transform .15s; color: var(--muted); }
.ruled[open] .sum-ic { transform: rotate(90deg); }
.ruled .lrow { background: #fcfbf8; }
.ruled .lane { color: var(--ink-2); }
.ruled .lhead { background: none; }
.empty { margin: 14px 16px; padding: 14px; border: 1px dashed #d8cfbf; border-radius: 10px; background: var(--panel-2); }
.empty ul { margin: 6px 0 10px; display: grid; gap: 2px; font-size: 12.5px; color: var(--ink-2); }
.empty ul li::before { content: "· "; }

/* ---------- timelines ---------- */
.run-what { font-size: 12.5px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fx-line { display: flex; align-items: flex-start; gap: 7px; margin: 10px 16px 0; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; background: var(--amber-50); color: var(--amber-ink); border: 1px solid var(--amber-100); }
.fx-line .ic { margin-top: 2px; }
.fx-line.fx-lost { background: var(--red-50); color: var(--red); border-color: #f1c6c0; }
.fx-line.fx-absorbed { background: var(--teal-50); color: var(--teal-ink); border-color: var(--teal-100); }
.tl-wrap { overflow-x: auto; padding: 10px 16px 4px; }
.tl { position: relative; min-width: 620px; }
.tl-axis { position: relative; height: 20px; }
.tick { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tick small { margin-left: 3px; font-size: 10px; font-weight: 700; color: var(--ink-2); }
.tick.first { transform: none; }
.tick.last { transform: translateX(-100%); }
.tl-track {
  position: relative; height: 46px; border-radius: 7px;
  background-color: var(--panel-2);
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12.5% 100%;
  border: 1px solid var(--line-2);
}
.bar { position: absolute; top: 8px; height: 20px; border-radius: 4px; overflow: hidden; display: flex; align-items: center; padding: 0 5px; font-size: 10.5px; font-weight: 650; white-space: nowrap; }
.bar span { overflow: hidden; text-overflow: ellipsis; }
.bar.clip { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bar-unload { background: #8ea3c1; color: #0e1c30; }
.bar-delay { background: repeating-linear-gradient(135deg, #f3c47a 0 5px, #f8dcae 5px 10px); color: #6b3a02; }
.bar-deadhead { background: #b7c2d0; color: #1e2a3a; }
.bar-wait, .bar-delivery-wait { background: repeating-linear-gradient(135deg, #e4ded3 0 4px, #f2eee7 4px 8px); color: #5b6270; box-shadow: inset 0 0 0 1px #d8d0c3; }
.bar-load { background: #7fcabf; color: #063a34; }
.bar-loaded { background: var(--teal); color: #fff; }
.win { position: absolute; bottom: 5px; height: 6px; border-radius: 3px; }
.win-pu { background: rgba(13, 122, 112, .38); }
.win-del { background: rgba(30, 58, 96, .5); }
.mark { position: absolute; top: 3px; bottom: 3px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.mark::before { content: ""; position: absolute; top: -1px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: inherit; }
.mark.late { background: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 16px 2px; font-size: 11.5px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 5px; }
.legend i, .steps i { display: inline-block; width: 14px; height: 9px; border-radius: 2px; flex: none; }
.legend i.win-pu, .legend i.win-del { height: 5px; }
.mark-k { width: 3px !important; height: 12px !important; background: var(--ink); border-radius: 1px; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; padding: 8px 16px 14px; }
.steps li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.5px; }
.st-n { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-t { font-variant-numeric: tabular-nums; }
.st-d { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }

/* ---------- compare tray ---------- */
.tray { position: fixed; z-index: 40; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--rail); color: #e6edf6; box-shadow: var(--shadow-lg); max-width: calc(100vw - 24px); }
.tray-n { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-n .ic { color: #6fd6ca; }
.has-tray .work { padding-bottom: 96px; }

/* ---------- plan view ---------- */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.span-2 { grid-column: 1 / -1; }
.gantt { min-width: 700px; display: grid; gap: 6px; }
.g-row { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 10px; }
.g-label { display: grid; font-size: 13px; line-height: 1.2; }
.g-label small { color: var(--muted); font-size: 11px; }
.g-row .tl-track { height: 40px; }
.g-row .bar { top: 6px; height: 18px; }
.g-row.is-review .tl-track { border-color: #e3b86b; box-shadow: inset 0 0 0 1px #f1d29a; background-color: #fdf8ee; }
.g-row.is-review .g-label b { color: var(--amber-ink); }
.pcards { display: grid; gap: 8px; padding: 10px; }
.pcard { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: grid; gap: 4px; }
.pcard.is-empty { background: var(--panel-2); border-style: dashed; }
.pcard.pc-review { border-color: #e3b86b; background: #fffaf1; }
.pcard.pc-valid { box-shadow: inset 3px 0 0 var(--navy); }
.pc-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; }
.pc-lane { font-size: 13.5px; }
.pc-nums, .pc-times { font-size: 12.5px; color: var(--ink-2); }
.pc-why { display: grid; gap: 3px; margin-top: 2px; font-size: 12.5px; color: var(--amber-ink); }
.pc-why li { padding-left: 12px; position: relative; }
.pc-why li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pcard .fx-line { margin: 4px 0 0; }
.pc-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pcards + .btn { margin: 0 10px 10px; }
.brief-act { display: flex; gap: 8px; padding: 10px 16px 0; }
.brief { margin: 10px 16px 16px; padding: 12px 14px; max-height: 520px; overflow: auto; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }

/* ---------- markets view ---------- */
.mk-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; padding: 16px 18px; margin-bottom: 14px; }
.mk-intro h2 { margin: 8px 0 4px; font-size: 18px; letter-spacing: -.01em; }
.mk-intro p { max-width: 70ch; color: var(--ink-2); font-size: 13px; }
.mk-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sample-badge { display: inline-flex; padding: 3px 9px; border-radius: 999px; border: 1px solid #e3b86b; background: var(--amber-50); color: var(--amber-ink); font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.mk-table, .cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mk-table th, .mk-table td { padding: 9px 16px; text-align: left; border-top: 1px solid var(--line-2); vertical-align: middle; }
.mk-table thead th { border-top: 0; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mk-table td { white-space: nowrap; }
.mk-table td small { margin-left: 6px; color: var(--muted); }
.mk-table td .mkt { margin-left: 6px; }
.mk-table tr.changed td { background: #f4faf8; }
.mgroups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.mgroup h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.mg-stronger h3 { color: var(--teal-ink); }
.mg-softer h3 { color: var(--amber-ink); }
.mcards { display: grid; gap: 8px; }
.mcard { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.mc-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: 13.5px; }
.mseg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 8px; background: #efebe4; }
.mseg-b { height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: none; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.mseg-b:hover { color: var(--ink); }
.mseg-b.is-on.ms-stronger { background: var(--teal); color: #fff; }
.mseg-b.is-on.ms-steady { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.mseg-b.is-on.ms-softer { background: #d98a1f; color: #1c1206; }
.mc-loads { display: grid; gap: 3px; margin-top: 8px; }
.mc-load { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; width: 100%; padding: 4px 6px; border: 0; border-radius: 6px; background: none; font-size: 12px; color: var(--ink-2); text-align: left; }
.mc-load:hover { background: var(--panel-2); }
.mc-load .chip { margin-left: auto; height: 19px; font-size: 10.5px; }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 0; background: transparent; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(9, 16, 28, .5); }
dialog.drawer { margin: 0 0 0 auto; width: min(540px, 100vw); height: 100vh; height: 100dvh; }
dialog.modal { margin: auto; width: min(1000px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); }
.dlg { display: flex; flex-direction: column; height: 100%; max-height: inherit; overflow: auto; background: var(--panel); box-shadow: var(--shadow-lg); overscroll-behavior: contain; }
dialog.modal .dlg { border-radius: 14px; max-height: calc(100dvh - 48px); }
dialog[open].drawer .dlg { animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(16px); } to { transform: none; } }
.dlg-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 14px; background: var(--panel); border-bottom: 1px solid var(--line-2); }
.dlg-head h2 { font-size: 19px; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; }
.dlg-head .ar { color: #a59c8c; }
.dlg-head .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.dlg-body { padding: 14px 20px 24px; }
.dlg-body h3 { margin: 20px 0 8px; font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.dlg-body h3 small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.dl-note { font-size: 12px; color: var(--muted); }
.big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.big > div { padding: 9px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); min-width: 0; }
.big dt { font-size: 11px; color: var(--muted); font-weight: 600; }
.big dd b { display: block; font-size: 18px; letter-spacing: -.01em; }
.big dd small { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; }
.basis { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--teal-50); color: var(--teal-ink); font-size: 10px; font-weight: 700; }
.checks { display: grid; gap: 6px; }
.checks li { display: flex; gap: 9px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.45; }
.checks li .ic { margin-top: 1px; }
.checks b { margin-right: 3px; }
.ck-bad { background: var(--red-50); color: #7e1d16; }
.ck-bad .ic { color: var(--red); }
.ck-info { background: var(--amber-50); color: var(--amber-ink); }
.ck-out { background: #f2efe9; color: var(--ink-2); }
.ck-exc { background: var(--amber-50); color: var(--amber-ink); box-shadow: inset 3px 0 0 #d98a1f; }
.ck-flag { background: #faf6ee; color: #5c4a2c; }
.ck-ok { background: var(--teal-50); color: var(--teal-ink); }
.dlg-body .fx-line { margin: 10px 0 0; }
.dlg-body .tl-wrap { padding: 4px 0; }
.dlg-body .steps { padding: 8px 0 0; grid-template-columns: 1fr; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.kv dt { font-size: 11.5px; color: var(--muted); }
.kv dd { font-size: 13px; font-variant-numeric: tabular-nums; }
.kv small { color: var(--muted); margin-left: 4px; }
.mkt-note { font-size: 13px; color: var(--ink-2); }
.tradeoffs { display: grid; gap: 4px; margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 13px; }
.tradeoffs li { padding-left: 14px; position: relative; }
.tradeoffs li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 2px; background: var(--teal); }
.cmp-scroll { overflow-x: auto; }
.cmp-table th, .cmp-table td { padding: 8px 12px; border-top: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.cmp-table thead th { border-top: 0; vertical-align: bottom; min-width: 180px; }
.cmp-table tbody th { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; width: 170px; }
.cmp-id { display: block; font-size: 11.5px; color: var(--muted); }
.cmp-lane { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.cmp-table td.best { background: var(--teal-50); color: var(--teal-ink); font-weight: 650; }
.best-tag { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; background: var(--teal); color: #fff; font-size: 10px; font-weight: 750; vertical-align: 1px; }
.why-c { font-size: 12.5px; color: var(--ink-2); }

/* rules drawer */
.rules fieldset { margin: 0 0 18px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.rules legend { padding: 0; margin-bottom: 8px; font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rules-live { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 9px 12px; border-radius: 9px; background: var(--teal-50); color: var(--teal-ink); font-size: 12.5px; }
.field { margin-bottom: 10px; }
.field label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 650; }
.input-u { display: inline-flex; align-items: center; gap: 8px; }
.input-u input { width: 132px; height: 36px; padding: 0 10px; border: 1px solid #d3cbbd; border-radius: 8px; background: #fff; font-variant-numeric: tabular-nums; }
.input-u input:focus-visible { outline-offset: 0; border-color: var(--focus); }
.input-u input[aria-invalid="true"] { border-color: var(--red); background: var(--red-50); }
.input-u span { font-size: 12.5px; color: var(--muted); }
.hint { margin-top: 4px; font-size: 12px; color: var(--muted); }
.err { font-size: 12px; color: var(--red); font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.tog { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; cursor: pointer; }
.tog input { position: absolute; opacity: 0; width: 34px; height: 20px; margin: 0; cursor: pointer; }
.tog-k { position: relative; flex: none; width: 34px; height: 20px; margin-top: 1px; border-radius: 10px; background: #cfc8bb; transition: background-color .15s; }
.tog-k::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.tog input:checked + .tog-k { background: var(--teal); }
.tog input:checked + .tog-k::after { transform: translateX(14px); }
.tog input:focus-visible + .tog-k { outline: 2px solid var(--focus); outline-offset: 2px; }
.tog-t { font-size: 13px; font-weight: 600; }
.tog-t small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.seg2 { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: #efebe4; }
.seg2 label { position: relative; cursor: pointer; }
.seg2 input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg2 span { display: block; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.seg2 span small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.seg2 input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.seg2 input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.truck-exc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chk { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; font-weight: 650; cursor: pointer; background: #fff; }
.chk input { margin: 0; accent-color: var(--teal); }
.chk:has(input:checked) { border-color: var(--teal-100); background: var(--teal-50); color: var(--teal-ink); }
.rules-foot { position: sticky; bottom: -24px; display: flex; justify-content: space-between; gap: 8px; margin: 0 -20px -24px; padding: 12px 20px; background: var(--panel); border-top: 1px solid var(--line-2); }

.about p, .about li { font-size: 13px; color: var(--ink-2); }
.about ul { display: grid; gap: 6px; }
.about li { position: relative; padding-left: 14px; }
.about li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #b3a996; }

/* toast */
.toast { position: fixed; z-index: 60; left: 92px; bottom: 20px; max-width: min(400px, calc(100vw - 24px)); padding: 10px 14px; border-radius: 10px; background: #13253d; color: #eef3f9; font-size: 13px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.is-on { opacity: 1; transform: none; }
.has-tray .toast { bottom: 78px; }
@media (max-width: 1499px) { .tool-min span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .tool-min { padding: 0 8px; } }

/* ---------- responsive ---------- */
@media (max-width: 1399px) {
  .tool span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tool { padding: 0 8px; }
  .tool .ic { width: 18px; height: 18px; }
}
@media (max-width: 1439px) {
  .lrow { grid-template-columns: minmax(140px, 1.4fr) minmax(128px, 1fr) 60px 72px 84px 72px minmax(112px, 1.2fr) 120px; gap: 0 8px; }
  .board { grid-template-columns: 256px minmax(0, 1fr); }
}
@media (max-width: 1279px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .fleet-panel { position: static; max-height: none; }
  .fleet { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding: 8px; }
  .fleet li { flex: 0 0 262px; scroll-snap-align: start; }
  .tcard { height: 100%; border-color: var(--line-2); }
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .tb-scn { order: 3; }
}
@media (max-width: 1023px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lhead { display: none; }
  .lrow {
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px;
    grid-template-areas: "lane lane lane" "appt appt appt" "miles gross rpm" "mkt fit fit" "act act act";
    padding: 9px 14px;
  }
  .c-lane { grid-area: lane; } .c-appt { grid-area: appt; } .c-miles { grid-area: miles; } .c-gross { grid-area: gross; }
  .c-rpm { grid-area: rpm; } .c-mkt { grid-area: mkt; } .c-fit { grid-area: fit; } .c-act { grid-area: act; }
  .ck { position: static !important; width: auto; height: auto; margin: 0 0 2px; clip: auto; overflow: visible; display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: normal; }
  .c-miles, .c-gross, .c-rpm { text-align: left; }
  .c-act { flex-direction: row; align-items: center; justify-content: space-between; }
  .lane { flex-wrap: wrap; }
  .lane-o, .lane-d { white-space: normal; }
  .plan-grid, .mgroups { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --top-h: 92px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: 60px; flex-direction: row; padding: 0 6px calc(env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid #1d2c44; }
  .brand, .rail-foot { display: none; }
  .nav { flex-direction: row; justify-content: space-around; }
  .nav-btn { flex: 1; padding: 8px 2px 6px; }
  .nav-btn.is-active { box-shadow: inset 0 3px 0 #5fd0c3; }
  .nav-badge { right: calc(50% - 24px); }
  body { padding-bottom: 60px; }
  .topbar { padding: 8px 12px; gap: 6px 8px; }
  .tb-title { flex: 1 1 auto; flex-wrap: wrap; row-gap: 0; }
  .tb-title h1 { font-size: 15.5px; }
  .tb-tools { margin-left: 0; gap: 0; }
  .demo-tag { order: 5; margin: 0; font-size: 10.5px; padding: 2px 7px; }
  .demo-long { display: none; }
  .demo-short { display: inline; }
  .tb-scn { order: 3; flex: 1 1 100%; }
  .seg-btn { flex: 1; justify-content: center; padding: 0 8px; }
  .work { padding: 12px 12px 28px; }
  .tray { bottom: 70px; }
  .toast { left: 12px; right: 12px; bottom: 72px; max-width: none; }
  .has-tray .toast { bottom: 128px; }
  .btn, .icon-btn, .tool, .seg-btn, .switch { min-height: 44px; }
  .cmp { min-height: 44px; padding: 0 4px; }
  .chk { min-height: 44px; }
  .input-u input { height: 44px; }
  .tb-tools .tool { width: 44px; justify-content: center; }
  .nav-btn { min-height: 54px; }
  .guide { padding: 9px 10px; margin-bottom: 10px; }
  .guide-head h2 { font-size: 12.5px; }
  .guide-sub { display: none; }
  .guide-head .icon-btn { width: 44px; height: 44px; margin: -7px -7px -7px auto; }
  .guide-steps { display: block; margin-top: 7px; }
  .guide-steps li { display: none; }
  .guide-steps li:has(.is-next), .guide-steps li:last-child:has(.is-done) { display: block; }
  .gstep { min-height: 44px; }
  .guide-note { margin-top: 7px; }
  .kpis { display: none; }
  .mobile-fleet-status { display: none; }
  .board { display: flex; flex-direction: column; gap: 10px; }
  .work-col { order: 1; gap: 10px; }
  .fleet-panel { order: 2; }
  .fleet-panel { width: 100%; max-width: 100%; overflow: hidden; }
  .fleet-panel .fleet { width: 100%; max-width: 100%; }
  .fleet-panel .panel-h { min-height: 44px; }
  .mobile-truck-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px 8px; padding: 8px 12px 0; }
  .mobile-truck-pick label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
  .mobile-truck-pick select { width: 100%; min-width: 0; height: 44px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-weight: 650; }
  .mobile-truck-pick p { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
  .mobile-truck-pick p b { color: var(--ink); }
  .tk { padding: 8px 12px 7px; }
  .tk-main { width: 100%; }
  .tk-badge { display: none; }
  .tk h2 { font-size: 15px; }
  .tk-sub { font-size: 12px; }
  .tk-facts { display: none; }
  .c-appt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 8px; }
  .c-appt .ck { grid-column: 1 / -1; }
  .list-bar { padding: 6px 12px; gap: 4px 10px; }
  .list-rank { flex: 1 1 100%; font-size: 11.5px; }
  .mk-intro { padding: 14px; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .dlg-head, .dlg-body { padding-left: 16px; padding-right: 16px; }
  .rules-foot { margin: 0 -16px -24px; padding: 12px 16px; }
  .pcards + .btn { margin: 0 10px 10px; }
}
@media (max-width: 420px) {
  .tb-date { display: none; }
  .demo-tag { order: 0; }
  .gstep { font-size: 12px; padding: 6px 8px; }
  .fleet li { flex-basis: 248px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .rail, .tb-tools, .tb-scn, .tray, .toast, .guide, .c-act, .switch { display: none !important; }
  .app { display: block; }
  .topbar { position: static; background: none; }
  .board { grid-template-columns: 1fr; }
  .fleet-panel { position: static; max-height: none; }
  .panel { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}
