:root {
  --paper: #f4f5f7;
  --surface: #ffffff;
  --ink: #16181b;
  --muted: #687079;
  --line: #d9dde2;
  --soft: #e9edf1;
  --red: #e31937;
  --red-dark: #b6112a;
  --blue: #164a68;
  --green: #16805d;
  --shadow: 0 24px 60px rgba(21, 31, 42, .09);
  --header-bg: rgba(244, 245, 247, .88);
  --field: #fafbfc;
  --result-bg: #f8fafb;
  --grid: #dde2e7;
  --callout: #edf3f1;
  --input-border: #cfd4da;
  --switch-track: #c7ccd2;
  --on-accent: #ffffff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #10151b;
  --surface: #181f27;
  --ink: #f1f4f7;
  --muted: #9ba6b1;
  --line: #303944;
  --soft: #27313b;
  --red: #ff3653;
  --red-dark: #dc213d;
  --blue: #58a5cf;
  --green: #45b98a;
  --shadow: 0 28px 70px rgba(0, 0, 0, .28);
  --header-bg: rgba(16, 21, 27, .9);
  --field: #1d252e;
  --result-bg: #141b22;
  --grid: #2a3540;
  --callout: #192a25;
  --input-border: #3a4652;
  --switch-track: #4a5662;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI Variable", "Aptos", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: relative;
  z-index: 100;
  height: 68px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 16px; line-height: 1; }
.brand > span { font-size: 22px; font-weight: 850; letter-spacing: .24em; }
.brand small { padding-left: 16px; color: var(--red); border-left: 1px solid var(--line); font-family: Consolas, monospace; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.topbar-tools > p { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .03em; }
.topbar-tools { display: flex; align-items: center; gap: 18px; }
.round-control { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 50%; transition: border-color .2s, transform .2s, background .2s; }
.round-control:hover { border-color: var(--red); }
.theme-toggle:hover { border-color: var(--red); transform: rotate(12deg); }
.round-control:focus-visible { outline: 3px solid rgba(22, 74, 104, .2); outline-offset: 2px; }
.menu-wrap { position: relative; }
.menu-icon, .menu-icon::before, .menu-icon::after { width: 14px; height: 1px; display: block; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }.menu-icon::after { top: 5px; }
.site-menu { position: absolute; z-index: 101; top: 47px; right: 0; width: min(370px, calc(100vw - 32px)); padding: 20px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.menu-item { width: 100%; min-height: 48px; display: block; padding: 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 800; }
.info-modal { width: min(620px, calc(100% - 32px)); max-height: min(720px, calc(100dvh - 32px)); overflow: auto; padding: 26px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 34px 90px rgba(0, 0, 0, .32); }
.info-modal::backdrop { background: rgba(7, 11, 15, .72); backdrop-filter: blur(4px); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.modal-heading span { color: var(--red); font-family: Consolas, monospace; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.modal-heading h2 { margin: 7px 0 0; font-size: 26px; letter-spacing: -.035em; }
.modal-heading button { width: 34px; height: 34px; flex: 0 0 auto; padding: 0; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 24px; line-height: 1; }
.modal-lead { margin: 24px 0; font-size: 21px; font-weight: 750; line-height: 1.3; letter-spacing: -.02em; }
.modal-method { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 17px 0; border-top: 1px solid var(--line); }
.modal-method span { color: var(--red); font-family: Consolas, monospace; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.modal-method p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.modal-disclaimer { margin: 18px 0 0; padding-top: 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; line-height: 1.5; }
.welcome-modal { width: min(500px, calc(100% - 32px)); }
.welcome-lead { margin: 24px 0 10px; font-size: 19px; font-weight: 750; line-height: 1.4; }
.welcome-copy { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.welcome-note { margin: 18px 0 0; padding-top: 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
.feedback-modal { width: min(560px, calc(100% - 32px)); }
.feedback-lead { margin: 22px 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.feedback-field { display: flex; flex-direction: column; gap: 8px; margin-top: 17px; }
.feedback-field > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.feedback-field textarea { width: 100%; min-height: 138px; resize: vertical; padding: 13px; color: var(--ink); background: var(--field); border: 1px solid var(--input-border); border-radius: 2px; outline: none; line-height: 1.5; }
.feedback-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 74, 104, .1); }
.feedback-field small { color: var(--muted); text-align: right; font-size: 9px; }
.feedback-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feedback-status { min-height: 17px; margin: 11px 0 0; font-size: 11px; line-height: 1.45; }
.feedback-success { color: var(--green); }
.feedback-error { color: var(--red-dark); }
.feedback-modal .modal-primary:disabled { cursor: wait; opacity: .65; }
.recovery-modal { width: min(540px, calc(100% - 32px)); }
.recovery-lead { margin: 22px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.recovery-field { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.recovery-field > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.recovery-field input { font-family: Consolas, monospace; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.recovery-status { min-height: 17px; margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.recovery-success { color: var(--green); }
.recovery-error { color: var(--red-dark); }
.modal-primary { width: 100%; min-height: 50px; margin-top: 22px; padding: 0 18px; color: var(--on-accent); background: var(--red); border: 0; text-align: left; font-weight: 750; }
.modal-primary:hover { background: var(--red-dark); }
.data-dot { display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px; border-radius: 50%; background: var(--green); }

main { width: min(1180px, calc(100% - 40px)); max-width: 100%; min-width: 0; margin: 0 auto; }
.overview-view { padding: 0 0 48px; }
.overview-hero { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 72px; padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.overview-headline, .overview-intro { min-width: 0; }
.overview-headline h1 { font-size: clamp(54px, 7.6vw, 104px); }
.overview-intro { padding-bottom: 3px; }
.overview-intro > p { max-width: 410px; margin: 0 0 25px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.overview-primary, .overview-cta button { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 19px; color: var(--on-accent); background: var(--red); border: 0; font-weight: 800; }
.overview-primary { width: min(100%, 310px); }
.overview-actions { width: min(100%, 310px); }
.overview-actions .overview-primary { width: 100%; }
.overview-recovery { min-height: 36px; padding: 0; color: var(--blue); background: transparent; border: 0; font-size: 11px; font-weight: 750; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.overview-recovery:hover { color: var(--ink); }
.overview-primary:hover, .overview-cta button:hover { background: var(--red-dark); }
.overview-primary:focus-visible, .overview-cta button:focus-visible, .menu-item:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 28%, transparent); outline-offset: 2px; }
.overview-intro > small { display: block; max-width: 310px; margin-top: 12px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.overview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-top: 0; box-shadow: var(--shadow); }
.overview-metrics article { min-width: 0; padding: 24px 28px; }
.overview-metrics article + article { border-left: 1px solid var(--line); }
.overview-metrics span, .board-heading span, .arrival-date span, .arrival-edd span, .overview-cta > div > span { display: block; color: var(--muted); font-family: Consolas, monospace; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.overview-metrics strong { display: block; margin: 5px 0 1px; font-family: "Arial Narrow", "Aptos Display", sans-serif; font-size: 40px; line-height: 1; letter-spacing: -.04em; }
.overview-metrics small { color: var(--muted); font-size: 10px; }
.delivery-board { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); margin-top: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.arrival-panel, .centre-panel { min-width: 0; padding: 28px; }
.arrival-panel { border-right: 1px solid var(--line); }
.board-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.board-heading h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.025em; }
.board-heading > small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.board-heading > small i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); }
.arrival-board { border-top: 1px solid var(--line); }
.arrival-row { min-height: 88px; display: grid; grid-template-columns: 78px minmax(150px, 1fr) 100px 125px; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.arrival-state { display: flex; align-items: center; gap: 8px; color: var(--red); font-family: Consolas, monospace; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.arrival-state i { width: 8px; height: 8px; flex: 0 0 auto; border: 2px solid currentColor; border-radius: 50%; }
.arrival-state.is-arrived { color: var(--green); }
.arrival-state.is-arrived i { background: currentColor; }
.arrival-row.is-tbc, .arrival-row.is-assigned { min-height: 56px; }
.arrival-row.is-tbc .arrival-state { color: var(--muted); }
.arrival-state.is-assigned { color: var(--blue); }
.arrival-tbc-note { grid-column: 3 / -1; color: var(--muted); font-size: 10px; }
.arrival-ship strong, .arrival-ship small, .arrival-date strong, .arrival-edd strong { display: block; }
.arrival-ship strong { font-size: 15px; }
.arrival-ship small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.arrival-date strong, .arrival-edd strong { margin-top: 6px; font-size: 12px; }
.centre-board { border-top: 1px solid var(--line); }
.centre-row { display: grid; grid-template-columns: minmax(105px, 1fr) minmax(70px, .8fr) 75px; align-items: center; gap: 13px; min-height: 58px; border-bottom: 1px solid var(--line); }
.centre-row > div:first-child strong, .centre-row > div:first-child small, .centre-row > span strong, .centre-row > span small { display: block; }
.centre-row > div:first-child strong { font-size: 12px; }
.centre-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.centre-row > span { text-align: right; }
.centre-row > span strong { font-size: 11px; }
.centre-bar { height: 3px; background: var(--soft); }
.centre-bar i { display: block; height: 100%; background: var(--blue); }
.board-note { margin: 17px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.overview-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 28px; padding: 28px; color: var(--ink); background: var(--callout); border-left: 3px solid var(--green); }
.overview-cta h2 { margin: 5px 0; font-size: 22px; letter-spacing: -.025em; }
.overview-cta p { margin: 0; color: var(--muted); font-size: 12px; }
.overview-cta button { min-width: 240px; background: var(--green); }
.overview-cta button:hover { background: color-mix(in srgb, var(--green) 82%, #000); }
.overview-cta-actions { min-width: 240px; }
.overview-cta-actions > button:first-child { width: 100%; }
.overview-cta-actions .overview-recovery { min-height: 32px; margin: 4px 0 0; color: var(--green); background: transparent; }
.intro { padding: 22px 0 26px; display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 60px; }
.intro > *, .workspace > *, .result-top > * { min-width: 0; }
.eyebrow { grid-column: 1 / -1; margin: 0 0 -36px; color: var(--red); text-transform: uppercase; letter-spacing: .16em; font-weight: 750; font-size: 11px; }
h1 { margin: 0; max-width: 760px; font-family: "Arial Narrow", "Aptos Display", sans-serif; font-size: clamp(54px, 7.6vw, 104px); line-height: .84; letter-spacing: -.068em; font-weight: 800; }
h1 em { color: var(--red); font-style: normal; }
.lede { margin: 0 0 5px; max-width: 390px; font-size: 17px; line-height: 1.6; color: var(--muted); }

.workspace { width: 100%; max-width: 100%; display: grid; grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr); min-height: 690px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.manifest { padding: 36px; border-right: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.section-heading > div { display: flex; align-items: center; gap: 13px; }
.section-heading span { font-family: Consolas, monospace; font-size: 10px; color: var(--red); }
.section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.step-track { display: grid; grid-template-columns: repeat(3, 1fr); margin: -8px 0 28px; border-bottom: 1px solid var(--line); }
.step-tab { position: relative; padding: 0 4px 13px; color: var(--muted); background: transparent; border: 0; text-align: left; font-size: 11px; font-weight: 700; }
.step-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.step-tab span { display: inline-grid; width: 20px; height: 20px; margin-right: 6px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-family: Consolas, monospace; font-size: 9px; }
.step-tab.is-active { color: var(--ink); }
.step-tab.is-active::after { background: var(--red); }
.step-tab.is-active span { color: var(--on-accent); background: var(--red); border-color: var(--red); }
.step-intro { min-height: 34px; margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.form-step[hidden] { display: none; }
.step-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 22px; }
.step-next, .step-back { min-height: 48px; padding: 0 18px; border: 1px solid var(--line); font-weight: 750; }
.step-next { width: 100%; display: flex; justify-content: flex-start; align-items: center; color: var(--on-accent); background: var(--red); border-color: var(--red); }
.form-step > .step-next { margin-top: 22px; }
.step-next:hover { background: var(--red-dark); border-color: var(--red-dark); }
.step-back { color: var(--ink); background: var(--surface); }
.step-actions .primary-button { margin-top: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field > span, .edd-field legend { color: #4c535a; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.field small { color: #9299a0; font-weight: 500; text-transform: none; letter-spacing: 0; }
.field .field-hint { margin-top: -3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.vin-guide { display: grid; grid-template-columns: 1fr auto; gap: 7px 14px; padding: 11px 13px; background: color-mix(in srgb, var(--field) 76%, var(--paper)); border: 1px solid var(--line); }
.vin-guide > span { grid-column: 1 / -1; color: var(--muted); font-family: Consolas, monospace; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vin-guide-code { align-self: center; display: flex; align-items: center; color: var(--muted); font-family: Consolas, monospace; font-size: clamp(12px, 1.45vw, 16px); letter-spacing: .04em; white-space: nowrap; }
.vin-guide-code strong { margin: 0 3px; padding: 5px 6px; color: #07130e; background: var(--green); box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 28%, transparent); }
.vin-guide-key { display: grid; grid-template-columns: 7px auto; align-content: center; gap: 2px 7px; }
.vin-guide-key i { grid-row: 1 / 3; align-self: center; width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.vin-guide-key strong { color: var(--ink); font-size: 9px; line-height: 1.2; }
.vin-guide-key small { color: var(--muted); font-size: 8px; line-height: 1.2; }
.ship-status-badge { display: inline-flex; align-items: center; margin-left: 9px; padding: 3px 6px; border: 1px solid currentColor; font-family: Consolas, monospace; font-size: 8px; letter-spacing: .05em; vertical-align: 1px; }
.ship-status-badge[hidden] { display: none; }
.ship-status-badge.is-confirmed { color: var(--green); }
.ship-status-badge.is-suspect { color: var(--red); }
input, select { width: 100%; min-height: 48px; padding: 0 13px; color: var(--ink); background: var(--field); border: 1px solid var(--input-border); border-radius: 2px; outline: none; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 74, 104, .1); }
.edd-field { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 9px; align-items: end; }
.edd-field legend { margin-bottom: 8px; }
.date-separator { min-height: 48px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.switch-row { display: flex; gap: 12px; align-items: center; cursor: pointer; margin-top: 2px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 40px; height: 22px; flex: 0 0 auto; border-radius: 20px; background: var(--switch-track); transition: .2s ease; }
.switch::after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: var(--on-accent); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s ease; }
.switch-row input:checked + .switch { background: var(--green); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { outline: 3px solid rgba(22,74,104,.22); outline-offset: 2px; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: 13px; }
.switch-row small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.primary-button { width: 100%; min-height: 52px; margin-top: 22px; padding: 0 19px; display: flex; justify-content: flex-start; align-items: center; color: var(--on-accent); background: var(--red); border: 0; font-weight: 750; transition: background .2s, transform .2s; }
.primary-button:hover { background: var(--red-dark); }
.primary-button:active { transform: translateY(1px); }
.privacy-note { margin: 12px 0 0; color: #90969d; text-align: center; font-size: 10px; }
.form-error { min-height: 16px; margin: 13px 0 -10px; color: var(--red-dark); font-size: 12px; }

.result { position: relative; overflow: hidden; min-height: 690px; background: var(--result-bg); }
.result::before { content: ""; position: absolute; inset: 0; opacity: .36; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, #000, transparent 76%); }
.result-placeholder { position: relative; z-index: 1; height: 100%; min-height: 690px; display: grid; place-content: center; justify-items: center; gap: 25px; color: var(--muted); font-size: 13px; }
.route-glyph { position: relative; width: 190px; height: 70px; }
.route-glyph::before { content: ""; position: absolute; top: 34px; left: 10px; right: 10px; border-top: 1px dashed #aab2ba; }
.route-glyph span, .route-glyph b { position: absolute; top: 28px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 3px solid var(--blue); }
.route-glyph span { left: 0; }.route-glyph b { right: 0; border-color: var(--red); }
.route-glyph i { position: absolute; left: 84px; top: 21px; width: 22px; height: 18px; background: var(--blue); clip-path: polygon(0 70%, 100% 70%, 80% 100%, 18% 100%); }

.result-card { position: relative; z-index: 1; padding: 36px; min-height: 690px; display: flex; flex-direction: column; }
.result-top { display: flex; justify-content: space-between; align-items: flex-start; }
.result-top .eyebrow { margin: 0 0 10px; }
.result-top h2 { margin: 0; font-size: 20px; }
.result-top h2, .best-date strong { overflow-wrap: anywhere; }
.confidence { width: 72px; height: 72px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: conic-gradient(var(--green) var(--score), var(--soft) 0); position: relative; }
.confidence::before { content: ""; position: absolute; inset: 5px; background: var(--result-bg); border-radius: 50%; }
.confidence strong, .confidence small { position: relative; z-index: 1; }
.confidence strong { font-size: 17px; }.confidence small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.best-date { margin: 54px 0 36px; }
.best-date > span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.best-date strong { display: block; margin-top: 4px; font-family: "Arial Narrow", "Aptos Display", sans-serif; font-size: clamp(52px, 5.6vw, 76px); line-height: .96; letter-spacing: -.055em; }
.best-date small { display: block; margin-top: 12px; color: var(--green); font-weight: 700; }
.timeline { position: relative; margin: 8px 6px 44px; height: 78px; }
.timeline-line { position: absolute; top: 25px; left: 0; right: 0; height: 2px; background: #cad0d6; }
.timeline-days { position: absolute; top: 0; left: 0; right: 0; height: 38px; }
.timeline-days i { position: absolute; top: 27px; width: 1px; height: 5px; background: var(--muted); opacity: .55; transform: translateX(-.5px); }
.timeline-days i.week { top: 25px; height: 9px; opacity: .8; }
.timeline-range { position: absolute; top: 20px; left: var(--range-left); width: var(--range-width); height: 12px; border-radius: 8px; background: rgba(227, 25, 55, .2); }
.timeline-best { position: absolute; top: 12px; left: var(--best-left); width: 2px; height: 28px; background: var(--red); }
.timeline-point { position: absolute; top: 20px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--surface); border: 3px solid var(--blue); }
.timeline-point.arrival { left: 0; }.timeline-point.collection { left: var(--best-left); border-color: var(--red); }
.timeline-label { position: absolute; top: 47px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.timeline-label:first-of-type { left: 0; }.timeline-label:last-of-type { right: 0; text-align: right; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 17px 12px 17px 0; }
.stat + .stat { padding-left: 17px; border-left: 1px solid var(--line); }
.stat span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.stat strong { display: block; margin-top: 7px; font-size: 14px; }
.explanation { margin-top: 28px; }
.explanation h3 { margin: 0 0 15px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.explanation ul { padding: 0; margin: 0; list-style: none; }
.explanation li { display: flex; gap: 10px; margin: 9px 0; color: #4f575f; font-size: 12px; line-height: 1.45; }
.explanation li::before { content: "✓"; color: var(--green); font-weight: 800; }
.low-sample { color: #9a6b00; }
.cohort { margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cohort-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.cohort-kicker { color: var(--blue); font-family: Consolas, monospace; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cohort-heading h3 { margin: 5px 0 0; font-size: 16px; line-height: 1.3; }
.cohort-badge { flex: 0 0 auto; padding: 5px 7px; color: var(--blue); border: 1px solid var(--blue); font-family: Consolas, monospace; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cohort-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; background: var(--field); border: 1px solid var(--line); }
.cohort-stat { min-width: 0; padding: 14px; }
.cohort-stat + .cohort-stat { border-left: 1px solid var(--line); }
.cohort-stat span { display: block; color: var(--muted); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.cohort-stat strong { display: block; margin-top: 6px; font-size: 12px; line-height: 1.35; }
.cohort > p { margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.cohort .cohort-note { margin-top: 10px; font-size: 9px; }
.result-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 18px; margin-top: 24px; }
.result-lower .cohort, .result-lower .contribution { margin-top: 0; }
.result-lower .cohort { padding: 20px; border: 1px solid var(--line); }
.result-lower .cohort-grid { grid-template-columns: 1fr; }
.result-lower .cohort-stat + .cohort-stat { border-top: 1px solid var(--line); border-left: 0; }
.result-lower > :only-child { grid-column: 1 / -1; }
.contribution { margin-top: 28px; padding: 20px; background: var(--callout); border-left: 3px solid var(--green); }
.contribution-kicker { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contribution h3 { margin: 5px 0; font-size: 16px; }
.contribution p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.collection-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.collection-form input { min-height: 42px; background: var(--surface); }
.collection-form button { padding: 0 15px; color: var(--on-accent); background: var(--green); border: 0; font-size: 12px; font-weight: 750; }
.sync-status { grid-column: 1 / -1; margin-top: 10px !important; }
.sync-success { color: var(--green) !important; }.sync-error { color: var(--red-dark) !important; }
.recovery-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 13px 20px; margin-top: 18px; padding: 18px 20px; background: color-mix(in srgb, var(--callout) 72%, var(--result-bg)); border: 1px solid color-mix(in srgb, var(--green) 42%, var(--line)); border-left: 3px solid var(--green); }
.recovery-card[hidden] { display: none; }
.recovery-ticket { grid-template-columns: 1fr; margin-top: 22px; padding: 16px 17px; border-color: var(--line); border-left-color: var(--muted); }
.recovery-ticket.is-ready { border-color: color-mix(in srgb, var(--green) 42%, var(--line)); border-left-color: var(--green); }
.recovery-ticket .recovery-code-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.recovery-ticket .recovery-code-wrap code { min-height: 40px; overflow: hidden; font-size: 10px; }
.recovery-ticket .recovery-code-wrap button:disabled { color: var(--muted); background: var(--soft); cursor: default; }
.recovery-ticket > small { grid-column: 1; }
.recovery-kicker { color: var(--green); font-family: Consolas, monospace; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.recovery-card h3 { margin: 5px 0; font-size: 15px; }
.recovery-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.recovery-card > small { grid-column: 1 / -1; color: var(--muted); font-size: 8px; }
.recovery-code-wrap { align-self: center; display: flex; align-items: stretch; }
.recovery-code-wrap code { display: grid; place-items: center; padding: 0 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); font-family: Consolas, monospace; font-size: 11px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.recovery-code-wrap button { min-height: 40px; padding: 0 12px; color: var(--on-accent); background: var(--green); border: 0; font-size: 10px; font-weight: 800; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  main { padding-bottom: 32px; }
  .overview-hero { grid-template-columns: 1fr; gap: 28px; }
  .overview-intro > p { max-width: 560px; }
  .delivery-board { grid-template-columns: 1fr; }
  .arrival-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .intro { grid-template-columns: 1fr; gap: 26px; }
  .eyebrow { margin-bottom: -8px; }
  .workspace { grid-template-columns: 1fr; }
  .manifest { border-right: 0; border-bottom: 1px solid var(--line); }
  .result, .result-card, .result-placeholder { min-height: 620px; }
}
@media (min-width: 901px) {
  .result-card { padding-top: 30px; padding-bottom: 30px; }
  .best-date { margin: 36px 0 26px; }
  .timeline { margin-bottom: 30px; }
  .explanation { margin-top: 22px; }
  .result-lower { margin-top: 20px; }
}
@media (max-width: 760px) {
  .brand small { display: none; }
  .arrival-row { grid-template-columns: 70px minmax(130px, 1fr) 90px; }
  .arrival-edd { display: none; }
  .arrival-tbc-note { grid-column: 3; text-align: right; }
  .result-lower { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  main { width: min(100% - 24px, 1180px); }
  .topbar { height: 58px; padding: 0 16px; }.topbar-tools > p { display: none; }
  .site-menu { position: fixed; top: 58px; right: 16px; left: 16px; width: auto; }
  .overview-hero { padding: 24px 4px; }
  .overview-headline h1 { font-size: 54px; }
  .overview-intro > p { font-size: 16px; }
  .overview-primary { width: 100%; }
  .overview-intro > small { max-width: none; }
  .overview-metrics { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
  .overview-metrics article { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 17px 20px; }
  .overview-metrics article + article { border-top: 1px solid var(--line); border-left: 0; }
  .overview-metrics strong { grid-row: 1 / 3; grid-column: 2; margin: 0; font-size: 32px; }
  .arrival-panel, .centre-panel { padding: 21px 18px; }
  .board-heading { align-items: flex-end; }
  .arrival-row { min-height: 78px; grid-template-columns: 62px minmax(110px, 1fr) 72px; gap: 10px; }
  .arrival-state { font-size: 8px; }
  .arrival-ship strong { font-size: 13px; }
  .arrival-date { text-align: right; }
  .arrival-date span { font-size: 7px; }
  .centre-row { grid-template-columns: minmax(100px, 1fr) 65px 68px; gap: 9px; }
  .overview-cta { display: block; padding: 22px; }
  .overview-cta button { width: 100%; min-width: 0; margin-top: 19px; }
  .overview-cta-actions { min-width: 0; }
  .overview-cta-actions .overview-recovery { margin-top: 6px; }
  .intro { padding: 24px 4px; }
  h1 { font-size: 54px; }
  .manifest, .result-card { padding: 25px 20px; }
  .fields { grid-template-columns: 1fr; }
  .vin-guide { grid-template-columns: 1fr; }
  .vin-guide > span { grid-column: 1; }
  .recovery-card { grid-template-columns: 1fr; }
  .recovery-card > small { grid-column: 1; }
  .recovery-code-wrap { display: grid; grid-template-columns: 1fr; }
  .recovery-code-wrap code { min-height: 44px; overflow-x: auto; }
  .recovery-ticket { margin-top: 18px; }
  .field-wide { grid-column: auto; }
  .edd-field { grid-column: auto; grid-template-columns: 1fr; }
  .date-separator { min-height: auto; place-items: start; }
  .stats { grid-template-columns: 1fr; }
  .collection-form { grid-template-columns: 1fr; }
  .cohort-grid { grid-template-columns: 1fr; }
  .cohort-stat + .cohort-stat { border-top: 1px solid var(--line); border-left: 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .topbar-tools { gap: 10px; }
  .info-modal { padding: 20px; }
  .modal-method { grid-template-columns: 1fr; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
