:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #071817; color: #edf7f4; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 90% 0%, #164744 0, transparent 29rem), #071817; }
.topbar, main, footer { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #24504d; }
.brand { display: flex; gap: .55rem; align-items: center; font-weight: 800; letter-spacing: .06em; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #80edc3; color: #08211e; }
.demo-label, .status, .eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.demo-label { color: #9cb9b4; }
main { padding: 4.5rem 0 3rem; }
.intro { max-width: 760px; }
.eyebrow { margin: 0 0 .7rem; color: #80edc3; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1.15rem; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: clamp(1.45rem, 2.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
.lede { color: #b6cac5; font-size: 1.12rem; line-height: 1.6; }
.planning, .day-playback { margin-top: 3rem; border-top: 1px solid #28534e; padding-top: 2.5rem; }
.planning-intro { max-width: 780px; color: #b6cac5; line-height: 1.6; }
.display-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin: 1.2rem 0; padding: .8rem 1rem; border: 1px solid #28534e; background: #0b2523; }.display-control { display: flex; align-items: center; gap: .55rem; }.display-control > span { color: #9ab5af; font-size: .75rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }.display-controls p { flex: 1 1 270px; margin: 0; color: #b8cec8; font-size: .78rem; line-height: 1.4; }
.planning-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1.25rem 0; }
.planning-metric { min-height: 96px; border-left: 3px solid #80edc3; background: #0b2523; padding: .9rem 1rem; }
.planning-metric span { display: block; margin-bottom: .4rem; color: #9ab5af; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.planning-metric strong { color: #effaf6; font-size: .96rem; line-height: 1.35; }
.planning-layout { display: grid; grid-template-columns: minmax(270px, .86fr) minmax(400px, 1.55fr); gap: 1rem; }
.panel-title, .map-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }.panel-title h3, .map-toolbar h3 { margin: 0; }.panel-title span { color: #9ab5af; font-size: .78rem; }
.ledger-panel, .map-panel { padding: 1rem; }.delivery-list { margin-top: .9rem; border-top: 1px solid #28534e; }
.delivery-row { display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: .65rem; min-height: 63px; border-bottom: 1px solid #28534e; }.delivery-row > div { min-width: 0; }.delivery-row strong, .delivery-row small { display: block; }.delivery-row strong { color: #eaf6f1; font-size: .91rem; }.delivery-row small { color: #89a69f; margin-top: .2rem; font-size: .76rem; }.delivery-order { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #47776f; border-radius: 50%; color: #9df0ca; font-size: .8rem; font-weight: 800; }
.delivery-window { border: 1px solid #386a61; padding: .28rem .42rem; color: #d8eee7; font-size: .7rem; font-weight: 750; white-space: nowrap; }.window-asap { border-color: #be665d; color: #ffc5bc; }.window-before_noon { border-color: #c79e50; color: #ffdd91; }.window-flexible { color: #a7c2bc; }
.map-toolbar { margin-bottom: .9rem; }.map-toolbar p { max-width: 420px; margin: .35rem 0 0; color: #9ab5af; font-size: .82rem; line-height: 1.45; }.map-switch { display: inline-flex; border: 1px solid #386a61; }.map-mode { border: 0; border-left: 1px solid #386a61; padding: .55rem .65rem; background: #102d29; color: #b8cec8; font: inherit; font-size: .78rem; font-weight: 750; cursor: pointer; }.map-mode:first-child { border-left: 0; }.map-mode.is-selected { background: #80edc3; color: #08211e; }
.map-canvas { overflow: hidden; border: 1px solid #28534e; background: #09201e; }.map-canvas svg { display: block; width: 100%; min-height: 320px; }.map-grid line { stroke: #153b37; stroke-width: 1; }.route-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }.route-recommended { stroke: #55d8b0; stroke-width: 5; opacity: .4; }.route-rejected { stroke: #eb7669; stroke-width: 4; stroke-dasharray: 9 9; opacity: .35; }.route-line.is-emphasized { opacity: .8; }.route-active { stroke: #eefaf6; stroke-width: 2; opacity: .82; }.map-node circle { stroke: #d4ebe4; stroke-width: 2; }.node-origin circle { fill: #f1c77d; }.node-station circle { fill: #80edc3; }.node-delivery circle { fill: #4c91ee; }.map-node text { fill: #cbe0da; font-size: 16px; paint-order: stroke; stroke: #09201e; stroke-width: 5px; stroke-linejoin: round; }.route-number { fill: #071817; font-size: 12px; font-weight: 900; text-anchor: middle; }.map-result { display: grid; gap: .25rem; padding: .85rem 1rem; border-top: 1px solid #28534e; color: #c7dcd6; line-height: 1.45; }.map-result strong { color: #edf7f4; }.map-result.is-good strong { color: #8cefc5; }.map-result.is-rejected strong { color: #ffb6ae; }.map-legend { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: .75rem; color: #a7c0ba; font-size: .75rem; }.map-legend span { display: inline-flex; align-items: center; gap: .4rem; }.legend-line { width: 26px; height: 3px; background: #55d8b0; }.legend-line.rejected { height: 2px; background: repeating-linear-gradient(to right, #eb7669 0 7px, transparent 7px 12px); }.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: #80edc3; }.planning-actions { margin-top: 1rem; }.rebuild-status { margin: -.45rem 0 0; color: #9df0ca; font-size: .83rem; text-align: right; }
.day-layout { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(360px, 1.35fr); gap: 1rem; }.day-timeline-panel h3, .day-event-panel h3 { margin-bottom: .7rem; }.day-timeline { border-top: 1px solid #28534e; }.day-row { display: grid; grid-template-columns: 52px 1fr; gap: .75rem; border-bottom: 1px solid #28534e; padding: .75rem 0; color: #8fa9a3; }.day-row.is-complete { color: #eaf6f1; }.day-row.is-current { border-left: 3px solid #80edc3; padding-left: .6rem; background: #102d29; }.day-row time { color: #80edc3; font-weight: 800; font-size: .8rem; }.day-row strong, .day-row small { display: block; }.day-row small { margin-top: .2rem; line-height: 1.4; }.day-event-panel > p:not(.eyebrow) { color: #bdd1cb; line-height: 1.55; }.event-choice { margin-top: 1rem; border-left: 3px solid #f1c77d; padding: .8rem 0 .8rem 1rem; background: #172d29; }.impact-analysis, .day-decision { margin: 0; color: #e9f5f0; line-height: 1.5; }.choice-actions { display: flex; gap: .65rem; margin-top: .8rem; }.day-decision { margin: 1rem 0; color: #9df0ca; }.day-event-panel > .button { margin-top: 1rem; }.delivery-report-summary { margin: 1rem 0; border-top: 1px solid #28534e; border-bottom: 1px solid #28534e; padding: .85rem 0; color: #bdd1cb; font-size: .85rem; line-height: 1.5; }.delivery-report-summary strong { color: #eaf6f1; }
.fuel-runtime { margin-top: 1rem; padding: .8rem; border: 1px solid #28534e; background: #0e2421; }.fuel-runtime > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }.fuel-runtime span { color: #8fa9a3; font-size: .82rem; }.fuel-runtime strong { color: #eaf6f1; font-size: 1.35rem; }.fuel-runtime p { margin: .45rem 0 .65rem; color: #bdd1cb; font-size: .86rem; line-height: 1.4; }.fuel-runtime .status { font-size: .72rem; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 3rem 0 1.3rem; }
.progress button { min-height: 60px; display: flex; gap: .7rem; align-items: center; border: 1px solid #28534e; border-radius: 8px; background: #0b2523; color: #a6c0bb; padding: .75rem; text-align: left; cursor: pointer; }
.progress b { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #47776f; border-radius: 50%; }
.progress .is-active { border-color: #80edc3; color: #eefaf6; background: #123630; }
.progress .is-active b, .progress .is-complete b { background: #80edc3; color: #08211e; border-color: #80edc3; }
.screen { border: 1px solid #28534e; border-radius: 8px; padding: clamp(1.1rem, 3vw, 2rem); background: rgba(8, 31, 29, .9); box-shadow: 0 18px 60px rgba(0, 0, 0, .2); }
.screen-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.status { border-radius: 999px; padding: .45rem .65rem; white-space: nowrap; }
.status-safe { background: #183c33; color: #9df0ca; }.status-urgent { background: #4a2526; color: #ffb6ae; }.status-draft { background: #293946; color: #b8e3ff; }
.trip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.panel, .risk-card { border: 1px solid #28534e; border-radius: 7px; background: #0b2523; padding: 1.1rem; }
.trip-card { grid-column: span 2; }.trip-card span, .metric span, .risk-card p { color: #9ab5af; font-size: .82rem; }.trip-card strong, .metric strong { display: block; margin: .35rem 0; font-size: 1.08rem; }.trip-card p, .metric small { color: #b8cac6; margin: 0; }
.metric strong { font-size: 1.75rem; color: #f2fcf8; }
.action-row { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.6rem; }
.button { border: 0; border-radius: 6px; padding: .85rem 1.05rem; font: inherit; font-weight: 750; cursor: pointer; }.button:disabled { cursor: not-allowed; opacity: .42; }.primary { background: #80edc3; color: #08211e; }.secondary { background: #183a36; color: #d5ebe5; }
.alert-layout, .report-layout { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(300px, 1.5fr); gap: 1rem; }
.risk-card { background: #1c2727; border-color: #9e4f4d; }.risk-card strong { display: block; margin: .4rem 0; color: #ffb6ae; font-size: 3.2rem; }.risk-card > span { color: #ffc5bc; }.risk-card small { display: block; margin-top: 1.2rem; color: #c4d2cf; line-height: 1.5; }
.fuel-bar { overflow: hidden; height: 10px; margin-top: 1.15rem; border-radius: 99px; background: #46383a; }.fuel-bar i { display: block; width: 7%; height: 100%; background: #ff7b72; }
.recommendation p { color: #c1d3ce; line-height: 1.55; }.recommendation ul { margin-bottom: 0; padding-left: 1.15rem; color: #b9cec8; line-height: 1.7; }
.review-check { display: flex; align-items: center; gap: .7rem; margin-top: 1.3rem; color: #cfe2dc; }.review-check input { width: 19px; height: 19px; accent-color: #80edc3; }
.report { overflow: auto; }.report-meta { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin-bottom: 1rem; color: #9db7b1; font-size: .82rem; }.report-meta b { color: #d5e9e2; }.report pre { margin: 0; white-space: pre-wrap; color: #e5f2ee; font: .91rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }.review-summary p { color: #bdd1cb; line-height: 1.55; }.machine-handoff { margin: 1rem 0; border-top: 1px solid #28534e; border-bottom: 1px solid #28534e; padding: .8rem 0; }.machine-handoff summary { cursor: pointer; color: #eaf6f1; font-size: .88rem; font-weight: 800; }.machine-handoff p { margin: .65rem 0; font-size: .78rem; }.machine-handoff pre { overflow-x: auto; margin: .75rem 0; padding: .75rem; background: #071817; color: #9df0ca; font: .72rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }.machine-handoff .button { margin: 0; padding: .6rem .75rem; font-size: .78rem; }.machine-copy-status { margin: .65rem 0 0 !important; color: #9df0ca !important; font-size: .78rem; }.confirmation { margin-top: 1rem; color: #90edc4 !important; }
footer { border-top: 1px solid #28534e; padding: 1.4rem 0 2.2rem; color: #89a69f; font-size: .86rem; }
@media (max-width: 720px) { main { padding-top: 2.5rem; }.topbar { height: 62px; }.demo-label { font-size: .68rem; }.display-controls, .display-control { align-items: stretch; flex-direction: column; }.display-controls p { flex: none; }.display-control .map-switch { width: 100%; }.display-control .map-mode { flex: 1; }.planning-summary, .planning-layout, .day-layout { grid-template-columns: 1fr; }.planning-metric { min-height: auto; }.map-toolbar { flex-direction: column; }.map-canvas { overflow-x: auto; }.map-canvas svg { min-width: 620px; }.trip-grid { grid-template-columns: repeat(2, 1fr); }.trip-card { grid-column: span 2; }.alert-layout, .report-layout { grid-template-columns: 1fr; }.choice-actions { flex-direction: column; }.progress { gap: .4rem; }.progress button { padding: .55rem; font-size: .78rem; }.action-row { align-items: stretch; flex-direction: column-reverse; }.button { width: 100%; } }
