/* Route-and-Confirm Morning Ops · dawn. Sunrise peach into pale sky, deep navy text, sunrise orange. */
:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --card: #ffffff;
  --navy: #18233f;
  --ink2: #3b4766;
  --muted: #6e7891;
  --line: #e4e8f1;
  --line2: #d3d9e6;
  --orange: #ff7a3d;
  --orange2: #f2672a;
  --orange-d: #fff0e7;
  --green: #138a5e;
  --green-d: #e3f5ec;
  --blue: #2f6fd6;
  --blue-d: #e6efff;
  --amber: #b26b00;
  --amber-d: #fff4dc;
  --red: #d64545;
  --red-d: #fde8e8;
  --head: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 18px;
  --shadow: 0 1px 2px rgba(24, 35, 63, .05), 0 12px 32px -20px rgba(24, 35, 63, .28);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--navy); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
h1, h2, h3 { margin: 0; font-family: var(--head); letter-spacing: -.02em; }
h1 { font-size: 30px; font-weight: 700; line-height: 1.12; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font: 700 11.5px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.warn { color: var(--amber); }
.mops { min-height: 100vh; }

/* ---------- header ---------- */
.top { position: relative; overflow: hidden; border-bottom: 1px solid rgba(24, 35, 63, .08); }
.sky { position: absolute; inset: 0; background:
  radial-gradient(520px 260px at 78% 120%, rgba(255, 168, 112, .75), transparent 70%),
  linear-gradient(180deg, #ffe0cc 0%, #ffeede 38%, #e3eeff 100%); }
.sky::after { content: ''; position: absolute; right: 9%; bottom: -70px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, #ffb36b 0%, #ff8a4c 55%, rgba(255, 138, 76, 0) 72%); opacity: .55; }
.top-in { position: relative; max-width: 1680px; margin: 0 auto; padding: 0 24px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 10px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #ffa25e, #ff6a2c); box-shadow: 0 8px 18px -8px rgba(255, 106, 44, .8); flex: none; }
.brand .mark svg { width: 24px; height: 24px; }
.brand b { display: block; font: 800 21px/1.05 var(--head); letter-spacing: -.03em; }
.brand small { display: block; color: var(--ink2); font-size: 12.5px; }
.brand small span { font-weight: 700; }
.brand small .sub1 { font-weight: 400; }
.top-right { display: flex; align-items: center; gap: 12px; flex: none; }
.clock { display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 10px; border-radius: 14px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .8); backdrop-filter: blur(6px); }
.clock > span { color: var(--orange); }
.clock > span svg { width: 18px; height: 18px; }
.clock b { display: block; font: 600 15px var(--mono); }
.clock small { color: var(--muted); font-size: 11.5px; }
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .7); font-weight: 700; font-size: 13px; backdrop-filter: blur(6px); }
.switch .knob { width: 38px; height: 22px; border-radius: 999px; background: var(--green); position: relative; }
.switch .knob::after { content: ''; position: absolute; top: 3px; left: 19px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.switch.off .knob { background: #c2c8d6; }
.switch.off .knob::after { left: 3px; }
.switch.off { color: var(--amber); }

.steps { display: flex; align-items: center; gap: 4px; padding: 4px 0 12px; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 7px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--ink2); font-weight: 650; white-space: nowrap; }
.steps button .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .7); border: 1px solid var(--line2); font: 700 11px var(--sans); }
.steps button .n svg { width: 12px; height: 12px; }
.steps button.done .n { background: var(--green); border-color: var(--green); color: #fff; }
.steps button.on { background: #fff; border-color: rgba(24, 35, 63, .08); color: var(--navy); box-shadow: 0 6px 16px -10px rgba(24, 35, 63, .5); }
.steps button.on .n { background: var(--orange); border-color: var(--orange); color: #fff; }
.steps .sep { width: 14px; height: 2px; border-radius: 2px; background: rgba(24, 35, 63, .15); flex: none; }
.steps .grow { flex: 1; min-width: 12px; }
.steps .aux { padding: 7px 12px; color: var(--muted); }
.steps .aux.on { background: rgba(255, 255, 255, .85); color: var(--navy); }

/* ---------- base pieces ---------- */
.wrap { max-width: 1680px; margin: 0 auto; padding: 20px 24px 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-h small { font-size: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: 12px; border: 1px solid var(--line2); background: #fff; color: var(--navy); font-weight: 700; font-size: 13.5px; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: #b8c1d4; background: #fbfcff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 8px 18px -10px rgba(255, 106, 44, .9); }
.btn.primary:hover { background: var(--orange2); }
.btn.danger { color: var(--red); border-color: #f2b9b9; background: var(--red-d); }
.btn.ghost { border-color: transparent; background: none; color: var(--ink2); }
.btn.ghost:hover { background: rgba(24, 35, 63, .05); }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.btn.big { padding: 12px 18px; font-size: 14.5px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.link { border: 0; background: none; padding: 0; color: var(--orange2); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link svg { width: 14px; height: 14px; }
.tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); font-size: 12px; font-weight: 700; background: #fff; white-space: nowrap; }
.tag.green { color: var(--green); background: var(--green-d); border-color: #b9e3cf; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.v-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 16px; flex-wrap: wrap; }
.v-head p { margin: 6px 0 0; max-width: 700px; }
.ribbon { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px; border: 1px solid #f0d49a; background: repeating-linear-gradient(135deg, rgba(178, 107, 0, .05) 0 10px, transparent 10px 20px), var(--amber-d); color: #6c4300; }
.ribbon > span { color: var(--amber); flex: none; }
.ribbon > span svg { width: 18px; height: 18px; }
.ribbon > div { flex: 1; min-width: 0; }

/* ---------- brief ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: end; padding: 8px 0 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; color: var(--orange2); font-weight: 700; font-size: 13px; }
.eyebrow svg { width: 18px; height: 18px; }
.hero h1 { font-size: 40px; max-width: 760px; letter-spacing: -.035em; }
.lede { margin: 12px 0 0; font-size: 16px; color: var(--ink2); max-width: 700px; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sources span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--ink2); font-weight: 600; }
.sources svg { width: 13px; height: 13px; color: var(--green); }
.hero-cta { padding: 18px; border-radius: var(--r); background: linear-gradient(160deg, #fff, #fff4ec); border: 1px solid #ffd9c2; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.hero-cta b { font: 700 22px var(--head); }
.hero-cta small { color: var(--ink2); margin-bottom: 10px; }
.bgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bc p { margin: 6px 0 0; color: var(--ink2); }
.bc-h { display: flex; align-items: center; gap: 10px; }
.ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ic svg { width: 18px; height: 18px; }
.ic.green { background: var(--green-d); color: var(--green); }
.ic.navy { background: #eceffa; color: var(--navy); }
.ic.blue { background: var(--blue-d); color: var(--blue); }
.ic.orange { background: var(--orange-d); color: var(--orange2); }
.stat-big { font: 700 28px/1.1 var(--head) !important; color: var(--navy) !important; margin: 12px 0 6px !important; letter-spacing: -.03em; }
.stat-big small { font: 500 13px var(--sans); color: var(--muted); letter-spacing: 0; }
.bl-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink2); }
.bl-list .ok { color: var(--green); font-weight: 600; }
.techs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.techs span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 600; }
.techs i { width: 8px; height: 8px; border-radius: 50%; }
.effect { margin-top: 10px !important; padding: 8px 10px; border-radius: 10px; background: var(--orange-d); color: #8a3a10 !important; font-weight: 600; font-size: 13px; }
.rainc .effect { background: var(--blue-d); color: #1d4f9e !important; }
.proposals { margin-top: 14px; }
.proposals ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.proposals li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.proposals li .dot { margin-top: 6px; }
.proposals li > div { flex: 1; min-width: 0; }
.proposals b { display: block; font-size: 14px; }
.proposals small { color: var(--muted); font-size: 12.5px; }
.flag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--amber-d); color: var(--amber); font-size: 11px; font-weight: 700; white-space: nowrap; flex: none; }
.flag svg { width: 11px; height: 11px; }
.flag.ok { background: var(--green-d); color: var(--green); }

/* ---------- routes ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; font-weight: 650; font-size: 13px; }
.filters button i { width: 9px; height: 9px; border-radius: 50%; }
.filters button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.rgrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.rmain { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mapcard { padding: 10px; }
.map { width: 100%; height: auto; border-radius: 12px; }
.map .water { fill: #d3e5fb; }
.map .wl { fill: #7fa5d6; font: 700 9px var(--sans); letter-spacing: .2em; }
.map .river { fill: none; stroke: #d3e5fb; stroke-width: 15; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map .rl { fill: #7fa5d6; font: italic 600 10px var(--sans); }
.map .road { fill: none; stroke: #e1e6ef; stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map .park { fill: #e2f2e7; }
.map .bridge { fill: #fff; stroke: #b9c5da; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.map .bridge.closed { fill: #ffe3d3; stroke: var(--orange); }
.map .bl { fill: var(--orange2); font: 700 9px var(--sans); paint-order: stroke; stroke: #f6f8fc; stroke-width: 3px; }
.map .bl.ok { fill: #7d8aa5; }
.map .al { fill: #a0a9bd; font: 800 9px var(--sans); letter-spacing: .16em; }
.map .rainedge { fill: rgba(91, 143, 214, .08); stroke: #8db3e8; stroke-width: 1.2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.map .rainfill { opacity: .8; }
.map .rtag { fill: #fff; stroke: #8db3e8; }
.map .rt { fill: #2f6fd6; font: 700 9.5px var(--sans); text-anchor: middle; }
.map .route { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; transition: opacity .2s; }
.map .route.dim { opacity: .14; }
.map .depot rect { fill: var(--navy); }
.map .depot text { fill: #fff; font: 800 11px var(--sans); text-anchor: middle; }
.map .stop { cursor: pointer; transition: opacity .2s; }
.map .stop text { font: 800 9.5px var(--sans); text-anchor: middle; }
.map .stop.dim { opacity: .2; }
.map .stop .chg { fill: rgba(255, 122, 61, .18); stroke: var(--orange); stroke-width: 1.6; stroke-dasharray: 3 2; }
.map .stop .bfr { fill: rgba(19, 138, 94, .16); stroke: var(--green); stroke-width: 2; }
.map .stop.sel circle:not(.chg):not(.bfr) { stroke-width: 4; }
.map .stop.sel { filter: drop-shadow(0 3px 6px rgba(24, 35, 63, .35)); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 8px 6px 2px; color: var(--muted); font-size: 12px; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.lg.chg { border: 1.6px dashed var(--orange); background: rgba(255, 122, 61, .15); }
.lg.rain { border-radius: 4px; background: repeating-linear-gradient(110deg, #8db3e8 0 1.5px, #eef4ff 1.5px 5px); }
.lg.dep { border-radius: 4px; background: var(--navy); }
.lg.bf { border: 2px solid var(--green); background: rgba(19, 138, 94, .15); }

.gantt-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; scrollbar-width: thin; }
.gantt { min-width: 640px; }
.g-head, .g-bands, .g-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; }
.g-track { position: relative; height: 30px; }
.g-head .g-track { height: 18px; }
.g-head i { position: absolute; top: 0; transform: translateX(-50%); font: 500 10.5px var(--mono); color: var(--muted); font-style: normal; }
.g-bands .g-track { height: 22px; }
.band { position: absolute; top: 2px; height: 18px; border-radius: 6px; display: flex; align-items: center; overflow: hidden; }
.band em { display: inline-flex; align-items: center; gap: 4px; font: 700 10.5px var(--sans); font-style: normal; white-space: nowrap; padding: 0 6px; }
.band em svg { width: 12px; height: 12px; }
.band.rainb { justify-content: flex-end; background: repeating-linear-gradient(110deg, rgba(141, 179, 232, .5) 0 2px, rgba(230, 239, 255, .8) 2px 7px); color: #2f6fd6; }
.band.bridge { top: 2px; height: 18px; background: transparent; color: var(--orange2); }
.band.bridge::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 12px); }
.g-row { padding: 5px 0; border-top: 1px solid var(--line); transition: opacity .2s; }
.g-row.dim { opacity: .35; }
.g-name { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.g-name i { width: 9px; height: 9px; border-radius: 50%; }
.g-row .g-track { background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 9.5 - 1px), var(--line) calc(100% / 9.5 - 1px) calc(100% / 9.5)); border-radius: 6px; }
.blk { position: absolute; top: 2px; height: 26px; border-radius: 7px; border: 0; background: var(--c); color: #fff; font: 700 11px var(--sans); padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.blk:hover { filter: brightness(1.08); }
.blk.chg { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--orange); }
.blk.cx { background: repeating-linear-gradient(135deg, #e6e9f0 0 5px, #f4f6fa 5px 10px); color: #8a93a8; text-decoration: line-through; }
.blk.bf { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--green); }
.blk.bad { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--red); }
.blk.sel { transform: translateY(-1px); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy), 0 6px 12px -4px rgba(24, 35, 63, .4); z-index: 2; }
.sd { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--bg); }
.sd .dot { margin-top: 5px; }
.sd b { display: block; }
.sd small { color: var(--muted); }
.sd p { margin: 6px 0 0; color: var(--ink2); font-size: 13px; }
.sd-empty { margin: 12px 0 0; }

.changes { position: sticky; top: calc(var(--lab-bar-h, 0px) + 12px); max-height: calc(100vh - var(--lab-bar-h, 0px) - 24px); display: flex; flex-direction: column; padding-bottom: 12px; }
.clist { list-style: none; margin: 0 -6px; padding: 0 6px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: thin; }
.ch { padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: background .2s, border-color .2s; }
.ch.d-flag { border-color: #f0cf8c; background: linear-gradient(180deg, #fffaf0, #fff); }
.ch.d-rejected { background: var(--bg); }
.ch.d-rejected b, .ch.d-rejected p { color: var(--muted); }
.ch.d-rejected b { text-decoration: line-through; }
.ch-h { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.ch-h small { color: var(--muted); font-weight: 700; font-size: 11.5px; flex: 1; }
.ch b { display: block; font-size: 14px; }
.ch p { margin: 3px 0 4px; color: var(--ink2); font-size: 13px; line-height: 1.45; }
.eff { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 7px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 12.5px; }
.seg button svg { width: 13px; height: 13px; }
.seg button.on { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(24, 35, 63, .14); }
.seg button.on.rej { color: var(--red); }
.seg button.pulse { color: var(--amber); animation: nudge 1.6s infinite; }
.seg button:disabled { cursor: not-allowed; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 61, 0); } 50% { box-shadow: 0 0 0 3px rgba(255, 122, 61, .25); } }
.ch-foot { padding-top: 12px; margin-top: auto; }
.ch-foot .btn { width: 100%; }

/* ---------- approve ---------- */
.agrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sum-t { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 2px 9px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.sum-t i { width: 10px; height: 10px; border-radius: 50%; }
.sum-t small { grid-column: 2; color: var(--muted); }
.checks, .decs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checks li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; }
.checks li > span:first-child { flex: none; margin-top: 2px; }
.checks li > span:first-child svg { width: 15px; height: 15px; }
.checks li.ok > span:first-child { color: var(--green); }
.checks li.no > span:first-child { color: var(--amber); }
.checks li.no { color: var(--amber); }
.checks b { font-size: 11.5px; padding: 1px 6px; border-radius: 6px; background: var(--bg); color: var(--ink2); flex: none; margin-top: 1px; }
.decs li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink2); }
.k { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; flex: none; margin-top: 1px; }
.k.ok { background: var(--green-d); color: var(--green); }
.k.no { background: var(--red-d); color: var(--red); }
.signoff { background: linear-gradient(180deg, #fff, #fff7f1); border-color: #ffdcc8; }
.signoff h2 { margin-bottom: 6px; }
.after { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.after li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink2); }
.after li svg { width: 15px; height: 15px; color: var(--green); flex: none; }
.after em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.after.pre li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.stamp { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--green-d); border: 1px solid #b9e3cf; }
.stamp > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; flex: none; }
.stamp > span svg { width: 18px; height: 18px; }
.stamp b { display: block; font: 700 16px var(--head); }
.stamp small { color: #2c6b52; }
.stamp.wait { background: var(--blue-d); border-color: #c5d8f7; }
.stamp.wait > span { background: var(--blue); }
.stamp.wait small { color: #3a5c94; }

/* ---------- confirmations ---------- */
.kpis { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis span { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--muted); font-weight: 600; min-width: 84px; }
.kpis b { font: 700 22px var(--head); color: var(--navy); }
.cgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.clist2 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 620px; overflow-y: auto; scrollbar-width: thin; }
.clist2 button { width: 100%; display: grid; grid-template-columns: 8px 102px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 0; background: none; text-align: left; }
.clist2 button:hover { background: var(--bg); }
.clist2 button.on { background: var(--orange-d); }
.clist2 i { width: 8px; height: 26px; border-radius: 4px; }
.cw { font: 500 12px var(--mono); color: var(--ink2); }
.cn b { display: block; font-size: 13.5px; }
.cn small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.st-hold { background: var(--bg); color: var(--muted); }
.st-ready { background: #eceffa; color: var(--navy); }
.st-q { background: var(--amber-d); color: var(--amber); }
.st-sent { background: var(--blue-d); color: var(--blue); }
.st-ok { background: var(--green-d); color: var(--green); }
.st-warn { background: var(--amber-d); color: var(--amber); }
.st-cx { background: var(--red-d); color: var(--red); }
.st-bf { background: var(--green); color: #fff; }
.phonecard { position: sticky; top: calc(var(--lab-bar-h, 0px) + 12px); }
.phone { border-radius: 26px; border: 8px solid #1d2742; background: #f3f5fa; overflow: hidden; max-width: 360px; margin: 0 auto; box-shadow: 0 20px 40px -24px rgba(24, 35, 63, .6); }
.phone.sm { max-width: 340px; }
.ph-top { padding: 12px 14px 10px; background: #fff; border-bottom: 1px solid var(--line); text-align: center; }
.ph-top b { display: block; font-size: 14px; }
.ph-top small { color: var(--muted); font-size: 11.5px; }
.ph-body { padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 170px; }
.bub { max-width: 86%; padding: 10px 13px; border-radius: 18px; font-size: 13.5px; line-height: 1.45; animation: rise .3s ease-out; }
.bub.out { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bub.in { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 11px 14px; border-radius: 18px; background: #dde6f7; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #6d86b8; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.ph-foot { padding: 8px 12px; text-align: center; font: 600 11px var(--mono); color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.sendbox { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.sendbox p { margin: 0; }
.alert { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: var(--red-d); border: 1px solid #f3c1c1; }
.alert b { color: #9b2c2c; }
.alert span { color: #8a4545; font-size: 13px; }
.alert .btn { align-self: flex-start; margin-top: 4px; }
.gate { max-width: 560px; margin: 30px auto; text-align: center; padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gate .gi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--orange-d); color: var(--orange2); }
.gate .gi svg { width: 22px; height: 22px; }
.gate p { margin: 0 0 6px; }

/* ---------- backfill ---------- */
.bfgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bf-left, .bf-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cxcard { display: flex; gap: 14px; align-items: center; border-color: #f3c1c1; background: linear-gradient(90deg, var(--red-d), #fff 70%); }
.cxi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; flex: none; }
.cxi svg { width: 20px; height: 20px; }
.cxcard small { color: var(--red); font-weight: 700; }
.cxcard p { margin: 2px 0 0; color: var(--ink2); }
.wl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wl label { display: grid; grid-template-columns: 18px 26px minmax(0, 1fr) 90px; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.wl li.on label { border-color: var(--orange); background: var(--orange-d); box-shadow: 0 0 0 1px var(--orange); }
.wl li.skip label { opacity: .55; cursor: not-allowed; }
.wl input { accent-color: var(--orange); width: 16px; height: 16px; margin: 0; }
.rk { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); font-weight: 800; font-size: 12px; }
.wn b { display: block; font-size: 14px; }
.wn b em { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--orange); color: #fff; margin-left: 4px; vertical-align: 1px; }
.wn small { display: block; color: var(--muted); font-size: 12px; }
.why { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.why i { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink2); }
.score { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.score b { font: 700 20px var(--head); }
.sb { width: 80px; height: 6px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.sb span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ffb27f, var(--orange)); }
.bf-right .phone { margin-bottom: 14px; }
.mini-route { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mini-route li { display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.mini-route li span { font: 500 12px var(--mono); color: var(--ink2); grid-row: span 2; padding-top: 2px; }
.mini-route li small { color: var(--muted); font-size: 12px; }
.mini-route li.bf { background: var(--green-d); box-shadow: inset 3px 0 0 var(--green); }

/* ---------- audit + rules ---------- */
.audit { list-style: none; margin: 0; padding: 0; }
.audit li { display: grid; grid-template-columns: 76px 90px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: start; }
.audit li:last-child { border-bottom: 0; }
.audit .t { font: 500 12px var(--mono); color: var(--muted); padding-top: 2px; }
.audit li > div b { display: block; font-size: 13px; }
.audit li > div span { color: var(--ink2); font-size: 13px; }
.ak { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; text-align: center; padding: 3px 0; border-radius: 6px; }
.ak.agent { background: var(--blue-d); color: var(--blue); }
.ak.human { background: var(--green-d); color: var(--green); }
.ak.override { background: var(--amber-d); color: var(--amber); }
.ak.rule { background: #efe9ff; color: #5a3fd0; }
.ak.system { background: var(--bg); color: var(--muted); }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rules li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); }
.rules li.off { opacity: .55; }
.rid { color: var(--orange2); font-size: 12.5px; }
.lock { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lock svg { width: 13px; height: 13px; }
.toggle { width: 42px; height: 24px; border-radius: 999px; border: 0; background: #c9cfdc; position: relative; padding: 0; }
.toggle span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.toggle.on { background: var(--green); }
.toggle.on span { left: 21px; }
.offswitch { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid #f3c1c1; background: linear-gradient(90deg, var(--red-d), #fff); }
.offswitch b { display: block; font: 700 16px var(--head); }
.offswitch small { color: var(--ink2); }

.foot { max-width: 1680px; margin: 0 auto; padding: 16px 24px 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.foot p { margin: 0; max-width: 820px; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgrid { grid-template-columns: minmax(0, 1fr); }
  .changes { position: static; max-height: none; }
  .clist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 32px; }
  .agrid, .cgrid, .bfgrid { grid-template-columns: minmax(0, 1fr); }
  .phonecard { position: static; }
  .cgrid .phonecard { order: -1; }
  .proposals ol { grid-template-columns: minmax(0, 1fr); }
  .clock small { display: none; }
}
@media (max-width: 640px) {
  .top-in { padding: 0 16px; }
  .wrap { padding: 14px 16px 6px; }
  .foot { padding: 12px 16px 28px; flex-direction: column; align-items: flex-start; }
  .brand .mark { width: 38px; height: 38px; }
  .brand b { font-size: 19px; }
  .brand small .sub1 { display: none; }
  .clock { padding: 5px 10px 5px 8px; }
  .clock b { font-size: 13.5px; }
  .switch { padding: 4px; }
  .switch .sw-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .steps .grow { display: none; }
  .hero h1 { font-size: 27px; }
  .lede { font-size: 15px; }
  h1 { font-size: 25px; }
  .bgrid { grid-template-columns: minmax(0, 1fr); }
  .clist { grid-template-columns: minmax(0, 1fr); }
  .sum { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 14px; }
  .mapcard { padding: 6px; }
  .clist2 button { grid-template-columns: 6px minmax(0, 1fr) auto; }
  .clist2 .cw { grid-column: 2; grid-row: 1; }
  .clist2 .cn { grid-column: 2; grid-row: 2; }
  .clist2 .cs { grid-column: 3; grid-row: 1 / span 2; }
  .clist2 i { grid-row: 1 / span 2; height: 100%; }
  .clist2 { max-height: none; }
  .wl label { grid-template-columns: 18px minmax(0, 1fr) 54px; }
  .wl .rk { display: none; }
  .sb { width: 50px; }
  .audit li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .audit .ak { padding: 2px 8px; }
  .audit li > div { grid-column: 1 / -1; }
  .rules li { grid-template-columns: 30px minmax(0, 1fr); }
  .rules li .toggle, .rules li .lock { grid-column: 2; justify-self: start; }
  .offswitch { flex-direction: column; align-items: stretch; }
  .ribbon { flex-wrap: wrap; }
  .kpis span { min-width: 0; flex: 1; padding: 6px 10px; }
  .kpis { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---------- filters, reschedule, toast, touch ---------- */
.cfilt { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; }
.cfilt button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; font-weight: 650; font-size: 12.5px; color: var(--ink2); }
.cfilt button i { font-style: normal; font-size: 11px; color: var(--muted); }
.cfilt button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cfilt button.on i { color: #b8c3dc; }
.empty-note { margin: 4px 0 8px; padding: 16px; border: 1.5px dashed var(--line2); border-radius: 12px; color: var(--muted); text-align: center; }
.st-moved { background: #eceffa; color: var(--navy); }
.resch { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--amber-d); border: 1px solid #f0d49a; }
.resch b { color: #6c4300; }
.resch small { color: #7d5a1e; }
.resch .btn { align-self: flex-start; margin-top: 6px; }
.resch.done { background: var(--green-d); border-color: #b9e3cf; }
.resch.done b { color: #0e5c3f; }
.resch.done small { color: #2c6b52; }
.map .stop .hit { fill: transparent; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 14px; background: var(--navy); color: #fff; font: 500 13.5px/1.4 var(--sans); box-shadow: 0 18px 40px -14px rgba(24, 35, 63, .6); transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
html.lab-capture .toast { display: none; }
@media (min-width: 1700px) { .rgrid { grid-template-columns: minmax(0, 1fr) 440px; } }
@media (pointer: coarse), (max-width: 640px) {
  .btn, .btn.sm, .steps button, .filters button, .cfilt button, .seg button, .switch, .link { min-height: 44px; }
  .link { display: inline-flex; align-items: center; }
  .clist2 button { min-height: 52px; }
  .g-track { height: 48px; }
  .blk { height: 44px; }
  .toggle { position: relative; }
  .toggle::before { content: ''; position: absolute; inset: -10px -6px; }
  .wl label { min-height: 56px; }
}

/* phones: fade the right edge of the scrolling nav so it reads as scrollable */
@media (max-width: 560px) { .steps { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); padding-right: 28px; } }

.sd p b { display: inline; }
