/* OfertTracker design tokens — source of truth for Flutter ThemeData (see DESIGN_SYSTEM.md) */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-ext-wght.woff2") format("woff2"); font-weight: 100 900; font-display: block;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* #49 scripts Inter does not cover: self-hosted Noto (OFL, static/fonts/Noto-LICENSE.txt); SC is cut to the characters we use */
@font-face { font-family: "Noto Sans Arabic"; src: url("fonts/noto-sans-arabic-arabic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Noto Sans Gurmukhi"; src: url("fonts/noto-sans-gurmukhi-gurmukhi-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Noto Sans SC"; src: url("fonts/noto-sans-sc-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans SC"; src: url("fonts/noto-sans-sc-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  /* Ink — neutral graphite scale (slightly cool) */
  --ink-950: #080D12; --ink-900: #0E151C; --ink-800: #1A232C; --ink-700: #2A3540; --ink-600: #46525E;
  --ink-500: #5B6672; --ink-400: #8B95A0; --ink-300: #C3CAD1; --ink-200: #E1E5E9; --ink-100: #EEF1F3; --ink-50: #F6F7F8;
  /* Signal — the one brand accent */
  --signal-500: #FF5F15;  /* route line, next-stop pin, brand mark (graphics only) */
  --signal-600: #D04608;  /* filled buttons + accent text on white (4.6:1 with white) */
  --signal-700: #A93806;  /* pressed */
  --signal-50:  #FFF1EA;  /* tint for selected rows */
  /* Status */
  --ok-600: #0E151C; --ok-50: #F4F5F6;
  --bad-600: #C92A1E; --bad-50: #FCEBEA;
  --warn-600: #9A5B00; --warn-500: #F5A524; --warn-50: #FFF5E0;
  --info-600: #1D5FD1;

  /* Semantic (light) */
  --bg: #F4F5F6; --surface: #FFFFFF; --surface-2: var(--ink-50); --line: #E3E7EB; --line-strong: var(--ink-300);
  --text: var(--ink-900); --text-2: var(--ink-500); --text-3: var(--ink-400);
  --accent: var(--signal-600); --accent-fill: var(--signal-600); --on-accent: #FFFFFF; --accent-tint: var(--signal-50);
  --primary: var(--ink-900); --on-primary: #FFFFFF;

  /* Type scale (px @1x). Body never below 15. */
  --fs-display: 32px; --fs-title1: 26px; --fs-title2: 21px; --fs-title3: 18px; --fs-body: 16px; --fs-callout: 15px; --fs-caption: 13px; --fs-micro: 12px;
  /* Space — 8-pt grid with 4-pt half steps */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  /* Radius — 3 sizes only */
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  /* Elevation — only for things floating over the map */
  --e1: 0 1px 2px rgba(14,21,28,.08), 0 1px 1px rgba(14,21,28,.04);
  --e2: 0 4px 14px rgba(14,21,28,.12), 0 1px 3px rgba(14,21,28,.08);
  --e3: 0 -6px 24px rgba(14,21,28,.12), 0 -1px 4px rgba(14,21,28,.06);
  --tap: 48px;
}

[data-theme="dark"] {
  --bg: #0B1117; --surface: #141C24; --surface-2: #1B242E; --line: #26313C; --line-strong: #3A4652;
  --text: #EEF2F5; --text-2: #9AA6B2; --text-3: #6E7A86;
  --accent: #FF7A3D; --accent-fill: #FF6A26; --on-accent: #0B1117; --accent-tint: #2A1A12;
  --primary: #EEF2F5; --on-primary: #0B1117;
  --ok-600: #EEF2F5; --ok-50: #1C242C; --bad-600: #FF6B5E; --bad-50: #2E1513; --warn-600: #F5B547; --warn-50: #2B2110;
  --e2: 0 4px 16px rgba(0,0,0,.5); --e3: 0 -6px 24px rgba(0,0,0,.5);
}

/* ---- account web (responsive 390 → 1440), components follow DESIGN_SYSTEM.md ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Inter", "Noto Sans Arabic", "Noto Sans Gurmukhi", "Noto Sans SC", system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: var(--fs-body);
  line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
.num, td, .kpi b { font-variant-numeric: tabular-nums; }
header.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { max-width: 1200px; margin: 0 auto; padding: 0 20px; min-height: 60px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--text); }
.brand i { width: 14px; height: 14px; border-radius: 4px; background: var(--signal-500); display: inline-block; }
nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
nav.tabs a { color: var(--text-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: var(--r-sm); }
nav.tabs a.on { color: var(--text); background: var(--surface-2); }
.langs a { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 4px 6px; } .langs a.on { color: var(--text); }
main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 64px; }
main.narrow { max-width: 480px; }
h1 { font-size: var(--fs-title1); line-height: 32px; font-weight: 700; letter-spacing: -.022em; margin-bottom: 8px; }
h2 { font-size: var(--fs-title2); line-height: 27px; font-weight: 650; letter-spacing: -.018em; margin: 28px 0 12px; }
h3 { font-size: var(--fs-title3); font-weight: 600; margin-bottom: 8px; }
.lead { color: var(--text-2); margin-bottom: 20px; }
.over { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.cap, small { font-size: var(--fs-caption); color: var(--text-2); }
.card { background: var(--surface); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); padding: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 16px 0; }
.kpi { background: var(--surface); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); padding: 14px 16px; }
.kpi span { display: block; font-size: 13px; color: var(--text-2); } .kpi b { font-size: var(--fs-title3); font-weight: 600; }
form.stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }   /* R33: a wide table inside scrolls in its .tablewrap instead of widening the page at 390 px */
form.cols { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
label { display: grid; gap: 6px; font-size: 15px; font-weight: 550; }
input, select, textarea { font: 400 16px/1.3 "Inter", sans-serif; height: 48px; padding: 0 14px; border-radius: var(--r-md);
  border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--surface); color: var(--text); width: 100%; }
input[type=checkbox] { width: 22px; height: 22px; box-shadow: none; accent-color: var(--ink-900); }
input[type=file] { padding: 12px; height: auto; }
input:focus, select:focus { outline: 2px solid var(--signal-500); outline-offset: 1px; }
label.check { grid-template-columns: 22px 1fr; align-items: start; font-weight: 400; }
.btn { height: 52px; border-radius: var(--r-md); border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 "Inter", sans-serif; padding: 0 18px; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-accent { background: var(--accent-fill); color: var(--on-accent); }
.btn-ok { background: var(--ok-600); color: #fff; } .btn-bad { background: var(--bad-600); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-sm { height: 40px; font-size: 15px; padding: 0 14px; border-radius: 10px; }
.btn-block { width: 100%; }
form.inline { display: inline; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.alert { padding: 12px 16px; border-radius: var(--r-md); margin: 12px 0; font-size: 15px; }
.alert.bad { background: var(--bad-50); color: var(--bad-600); } .alert.ok { background: var(--ok-50); color: var(--ok-600); }
.alert.warn { background: var(--warn-50); color: var(--warn-600); }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 7px; font-size: 13px; font-weight: 550;
  background: var(--surface-2); color: var(--text); }
.chip.ok { background: var(--ok-50); color: var(--ok-600); } .chip.bad { background: var(--bad-50); color: var(--bad-600); }
.chip.warn { background: var(--warn-50); color: var(--warn-600); } .chip.accent { background: var(--accent-tint); color: var(--accent); }
.tablewrap { overflow-x: auto; background: var(--surface); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { text-align: start; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
  padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; } td.r, th.r { text-align: right; }
.price { font-size: var(--fs-display); font-weight: 700; letter-spacing: -.025em; }
.plan.current { box-shadow: inset 0 0 0 2px var(--ink-900); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; word-break: break-all;
  background: var(--surface-2); padding: 12px; border-radius: var(--r-sm); }
pre.mono { white-space: pre-wrap; max-height: 420px; overflow: auto; }
.chart { width: 100%; height: auto; } .chart rect { fill: var(--signal-500); } .chart text { fill: var(--text-2); font-size: 11px; font-family: Inter, sans-serif; }
.hero { padding: 40px 0 8px; } .hero h1 { font-size: var(--fs-display); line-height: 38px; }
.testband { background: var(--warn-50); color: var(--warn-600); text-align: center; font-size: 13px; font-weight: 600; padding: 6px; }
footer { max-width: 1200px; margin: 0 auto; padding: 24px 20px 40px; color: var(--text-3); font-size: 13px; }
@media (max-width: 640px) { nav.tabs { order: 3; flex: 0 0 100%; min-width: 0; flex-wrap: wrap; padding-block: 4px; } nav.tabs a { white-space: normal; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
  h1 { font-size: 24px; } .hide-sm { display: none; } }
@media print { header.top, footer, .noprint, .testband { display: none; } body { background: #fff; } .card, .tablewrap { box-shadow: none; } }
.grow{flex:1}
.mt{margin-top:16px}
.w-auto{width:auto}.mono-s{font-family:ui-monospace,monospace;font-size:13px;word-break:break-all}details summary{cursor:pointer}

/* ---- R2: signup picker, company cabinet, maps, driver app ---- */
.hide { display: none !important; }
.r { text-align: right; } .ok { color: var(--ok-600); } .bad { color: var(--bad-600); } .warn { color: var(--warn-600); } .accent { color: var(--accent); }
.off td { color: var(--text-3); }
.verifyband { background: var(--accent-tint); color: var(--text); display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 16px; font-size: 14px; }
.narrowcol { max-width: 480px; margin: 0 auto; }
.signup { display: grid; gap: 14px; max-width: 720px; }
fieldset.picker { border: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
fieldset.picker legend { margin-bottom: 8px; }
fieldset.auto { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
fieldset.auto legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.pick { display: grid; grid-template-columns: 22px 1fr; gap: 10px; cursor: pointer; padding: 14px; font-weight: 400; }
.pick input { width: 20px; height: 20px; box-shadow: none; accent-color: var(--ink-900); }
.pick:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink-900); }
.pick > span { display: grid; gap: 2px; } .price-s { font-size: var(--fs-title3); font-weight: 700; } .feat1 { color: var(--text-2); }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
ul.feat { list-style: none; display: grid; gap: 6px; margin: 12px 0; font-size: 15px; }
ul.feat li::before { content: "✓ "; color: var(--ok-600); font-weight: 700; } ul.feat li.x::before { content: "– "; color: var(--text-3); }
.cabhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.subtabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.subtabs a { color: var(--text-2); font-weight: 600; font-size: 15px; padding: 10px 12px; white-space: nowrap; border-bottom: 2px solid transparent; }
.subtabs a.on { color: var(--text); border-bottom-color: var(--signal-500); }
ol.steps { padding-inline-start: 22px; display: grid; gap: 6px; } ol.steps li.done { color: var(--text-3); text-decoration: line-through; }
.map { height: 360px; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.map.tall { height: 62vh; min-height: 360px; } .map.nomap { display: none; }
.pin { width: 26px; height: 26px; border-radius: 50%; background: var(--ink-700); color: #fff; font: 600 12px/26px Inter, sans-serif; text-align: center; border: 2px solid #fff; box-shadow: var(--e1); cursor: pointer; }
.pin.s-delivered { background: #0F7A55; } .pin.s-failed { background: var(--bad-600); } .pin.stop { width: 12px; height: 12px; line-height: 12px; font-size: 0; }
.pin.pod { width: 12px; height: 12px; background: var(--info-600); } .pin.truck { background: var(--signal-500); border-radius: 8px; width: 32px; }
.stop { margin-top: 12px; } .seq { display: inline-flex; min-width: 28px; height: 28px; border-radius: 50%; background: var(--ink-900); color: #fff; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; padding: 0 6px; }
.parcels { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pod { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px; margin-top: 8px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; align-items: center; }
.thumbs img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.thumbs img.signature { object-fit: contain; width: 160px; }
.thumb { border: 0; background: none; padding: 0; cursor: pointer; }
.note { background: var(--warn-50); color: var(--text); padding: 8px 12px; border-radius: var(--r-sm); font-size: 15px; margin: 8px 0; }
.btn-wide { width: 100%; }
/* driver app (phone first) */
main.driver { max-width: 640px; padding-top: 0; }
.dbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; font-weight: 600; padding: 8px 4px; margin: 0 -4px 12px; }
.dbar.on { background: var(--ok-50); color: var(--ok-600); } .dbar.off { background: var(--warn-50); color: var(--warn-600); }
.dhead { display: flex; gap: 12px; align-items: center; margin: 8px 0 12px; } .dhead h1 { margin: 0; font-size: 21px; line-height: 26px; }
.dcard { display: block; width: 100%; text-align: start; margin-top: 10px; font: inherit; color: inherit; border: 0; cursor: pointer; }
.dcard.next { box-shadow: inset 0 0 0 2px var(--signal-500); } .dcard.s-delivered, .dcard.s-failed { opacity: .6; }
.counter { font-size: var(--fs-title2); font-weight: 700; margin: 8px 0; font-variant-numeric: tabular-nums; }
.scanrow { flex-wrap: nowrap; margin: 12px 0; } .scan { flex: 1; font-family: ui-monospace, monospace; }
.plist { display: grid; gap: 6px; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface); border-radius: var(--r-sm); padding: 8px 12px; box-shadow: inset 0 0 0 1px var(--line); margin-top: 6px; }
.prow.ok { background: var(--ok-50); } .prow.bad { background: var(--bad-50); }
.flash { padding: 10px 14px; border-radius: var(--r-md); margin: 8px 0; font-size: 15px; font-weight: 550; }
.flash.ok { background: var(--ok-50); color: var(--ok-600); } .flash.bad { background: var(--bad-50); color: var(--bad-600); } .flash.warn { background: var(--warn-50); color: var(--warn-600); }
.dactions .btn { flex: 1; }
.seg { display: flex; gap: 0; margin: 8px 0 12px; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: var(--r-md); overflow: hidden; }
.seg button { flex: 1; height: 48px; border: 0; background: var(--surface); font: 600 15px Inter, sans-serif; color: var(--text-2); cursor: pointer; }
.seg button.on { background: var(--ink-900); color: #fff; }
.sigwrap { display: grid; gap: 6px; margin: 8px 0; justify-items: start; }
.sigpad { width: 100%; height: 180px; background: #fff; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line-strong); touch-action: none; }
textarea { height: auto; padding: 12px 14px; }
.overlay { position: fixed; inset: 0; background: rgba(8,13,18,.55); z-index: 20; display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.sheet { width: 100%; max-width: 560px; display: grid; gap: 10px; max-height: 92vh; overflow: auto; }
.camera { width: 100%; max-width: 560px; border-radius: var(--r-md); }
main.driver label { margin-top: 8px; }

/* #49 language switcher (no script: details/summary) + RTL + machine-translation note */
.langs { position: relative; } .langs summary { list-style: none; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 4px 6px; }
.langs summary::-webkit-details-marker { display: none; }
.langs .menu { position: absolute; inset-inline-end: 0; top: 100%; z-index: 50; background: var(--bg, #fff); border: 1px solid var(--ink-200);
  border-radius: 10px; box-shadow: var(--e1); padding: 6px; display: grid; min-width: 190px; }
.langs .menu a { padding: 8px 10px; border-radius: 6px; font-size: 14px; } .langs .menu a:hover { background: var(--ink-50); }
.mtnote { background: var(--ink-50); color: var(--text-2); font-size: 13px; padding: 6px 12px; text-align: center; }
[dir=rtl] td.r, [dir=rtl] th.r, [dir=rtl] .r { text-align: left; }
[dir=rtl] .mono, [dir=rtl] .mono-s, [dir=rtl] input[type=email], [dir=rtl] input[type=tel] { direction: ltr; unicode-bidi: plaintext; }
/* long labels in some of the 12 languages: buttons wrap instead of pushing the page wider than the phone */
.btn { max-width: 100%; }
@media (max-width: 600px) { .btn { white-space: normal; height: auto; min-height: 52px; line-height: 1.25; padding-block: 8px; }
  .btn-sm { min-height: 40px; padding-block: 6px; } }
.pre{white-space:pre-wrap}
.span-all{grid-column:1/-1;margin:0}
@media (min-width: 900px) { .subtabs { flex-wrap: wrap; overflow-x: visible; } }   /* R6: 14 tabs - all visible on desktop, scroll strip on phones */
/* R11: organisation tree (N levels) on Team & partners; logical properties so ar (RTL) indents from the right */
.orgtree { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.orgtree li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line, #e5e7eb); border-radius: 9px; min-width: 0; }
.orgtree li > b, .orgtree li > span { overflow-wrap: anywhere; }
.orgtree .lv1 { margin-inline-start: 18px; } .orgtree .lv2 { margin-inline-start: 36px; } .orgtree .lv3 { margin-inline-start: 54px; }
.orgtree .lv4, .orgtree .lv5, .orgtree .lv6, .orgtree .lv7, .orgtree .lv8 { margin-inline-start: 72px; }
.orgtree .lv0 { background: var(--accent-tint); }
@media (max-width: 480px) { .orgtree .lv1 { margin-inline-start: 10px; } .orgtree .lv2 { margin-inline-start: 20px; } .orgtree .lv3, .orgtree .lv4, .orgtree .lv5, .orgtree .lv6, .orgtree .lv7, .orgtree .lv8 { margin-inline-start: 30px; } }

/* R12: one colour per truck on the AI dispatcher plan map (pins + the key next to each truck name) */
.pin.s-t0, .pin-key.t0 { background: #1D5FD1; } .pin.s-t1, .pin-key.t1 { background: #0E151C; } .pin.s-t2, .pin-key.t2 { background: #B5179E; }
.pin.s-t3, .pin-key.t3 { background: #C2410C; } .pin.s-t4, .pin-key.t4 { background: #6D28D9; } .pin.s-t5, .pin-key.t5 { background: #0E7490; }
.pin.s-t6, .pin-key.t6 { background: #A16207; } .pin.s-t7, .pin-key.t7 { background: #475569; }
.pin.s-t0, .pin.s-t1, .pin.s-t2, .pin.s-t3, .pin.s-t4, .pin.s-t5, .pin.s-t6, .pin.s-t7 { width: 20px; height: 20px; font-size: 10px; line-height: 20px; }
.pin-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); gap: 8px; }
/* R16 copilot: big targets when stopped after driving, one big microphone while moving; truck limit inputs in the vehicle row */
.prow.big { padding: 14px 16px; font-size: 1.05rem; }
.prow.big .btn { min-height: 48px; }
.big-mic { min-height: 96px; font-size: 2.4rem; }
label.dim { display: inline-grid; gap: 2px; max-width: 7.5rem; font-size: .8rem; }
label.dim input { padding: 4px 6px; }
/* R18 stop meter (native <progress>: no inline style under the CSP) */
progress.meter{display:block;width:100%;height:10px;border:0;border-radius:6px;background:#E3E7EB;overflow:hidden;margin:6px 0;appearance:none}
progress.meter::-webkit-progress-bar{background:#E3E7EB}
progress.meter::-webkit-progress-value{background:var(--ok-600)}
progress.meter::-moz-progress-bar{background:var(--ok-600)}
progress.meter.warn::-webkit-progress-value{background:var(--warn-600)}
progress.meter.warn::-moz-progress-bar{background:var(--warn-600)}
progress.meter.bad::-webkit-progress-value{background:var(--bad-600)}
progress.meter.bad::-moz-progress-bar{background:var(--bad-600)}
/* R25: Environment Canada weather alerts in the driver copilot */
.card.wx { margin-top: 6px; border-left: 4px solid var(--warn-600); } .card.wx-warning { border-left-color: var(--bad-600); }
.card.wx-statement, .card.wx-advisory { border-left-color: var(--line); }
.pin.drag { cursor: grab; outline: 2px dashed var(--warn-600); outline-offset: 2px; } .map.placing .maplibregl-canvas { cursor: crosshair; }
#pin-drag[hidden] { display: none; } #pin-drag { gap: 8px; align-items: center; flex-wrap: wrap; }

/* R36: "No contact since HH:MM" chip stays on one line in narrow board cells (the table scrolls on phones) */
.chip.nowrap{white-space:nowrap}

@media (max-width: 899px) { .subtabs { flex-wrap: wrap; overflow-x: visible; row-gap: 0; } .subtabs a { white-space: normal; min-height: 44px; display: inline-flex; align-items: center; } }   /* OPS R69: visible company tabs on phones */
/* R228: AI answer tables become one labelled card per row on phones instead of scrolling sideways */
@media (max-width: 640px) {
  table.stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.stack-sm, table.stack-sm tbody, table.stack-sm tr, table.stack-sm td { display: block; width: 100%; }
  table.stack-sm tr { padding: 6px 0; border-bottom: 1px solid var(--line); } table.stack-sm tr:last-child { border-bottom: 0; }
  table.stack-sm td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 14px; border: 0; text-align: end; overflow-wrap: anywhere; }
  table.stack-sm td::before { content: attr(data-label); flex: 0 0 auto; max-width: 50%; text-align: start; font-size: 12px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
}
/* R230: an empty cell (e.g. no actions on the owner row) is not shown as a bare label in the stacked phone card */
@media (max-width: 640px) { table.stack-sm td:empty { display: none; } }
/* R260: activity log on phones = one card per event (time + who, then action code, then the full detail); no letter-by-letter wrapping, nothing cut off */
table.audit-sm td.audit-act { word-break: normal; overflow-wrap: anywhere; } table.audit-sm td.audit-ts { white-space: nowrap; } table.audit-sm td.audit-ts small { direction: ltr; unicode-bidi: isolate; }
@media (min-width: 641px) { table.audit-sm td.audit-act { white-space: nowrap; } table.audit-sm td.audit-detail { overflow-wrap: anywhere; } }
@media (max-width: 640px) {
  table.audit-sm, table.audit-sm tbody { display: block; width: 100%; }
  table.audit-sm tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.audit-sm tr:last-child { border-bottom: 0; }
  table.audit-sm td { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  table.audit-sm td.audit-who { text-align: end; color: var(--text-2); font-size: 14px; }
  table.audit-sm td.audit-act, table.audit-sm td.audit-detail { grid-column: 1 / -1; }
}
