:root {
  color-scheme: dark;
  --paper: #000;
  --ink: #91c49f;
  --muted: #83a68c;
  --line: #285e38;
  --control-line: #38824d;
  --panel: #000;
  --selected: #07170c;
  --inverse: #000;
  --accent: #a7e5b7;
  --cta: #9ee7b1;
  --cta-ink: #07170c;
  --font: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #fff;
  --ink: #000;
  --muted: #000;
  --line: #aaa;
  --control-line: #000;
  --panel: #fff;
  --selected: #f2f2f2;
  --inverse: #fff;
  --accent: #000;
  --cta: #000;
  --cta-ink: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font: 13px/1.7 var(--font); color: var(--ink); background: var(--paper); }
::selection { background: var(--ink); color: var(--inverse); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .65; }
.topbar { padding: 18px 4vw; display: flex; align-items: center; flex-wrap: wrap; gap: 18px; border-bottom: 1px solid var(--control-line); background: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; letter-spacing: -.4px; white-space: nowrap; }
.brand-light { font-weight: 400; }
.mark { font-size: 20px; line-height: 1; margin-right: 3px; }
.pilot { font-size: 10px; white-space: nowrap; }
.pilot::before { content: "["; }
.pilot::after { content: "]"; }
.pilot i { display: none; }
nav { display: flex; gap: 14px; margin-left: auto; }
.nav { background: transparent; border: 0; border-bottom: 1px solid transparent; padding: 5px 0; font-size: 11px; }
.nav::before { content: none; }
.nav.active { border-bottom-color: var(--ink); font-weight: 700; }
.nav:hover { color: var(--accent); }
.theme-control { display: flex; gap: 0; border: 1px solid var(--control-line); }
.theme-button { background: var(--paper); color: var(--ink); border: 0; border-radius: 0; padding: 5px 9px; font-size: 10px; white-space: nowrap; }
.theme-button + .theme-button { border-left: 1px solid var(--control-line); }
.theme-button[aria-pressed="true"] { color: var(--inverse); background: var(--ink); }
.theme-button:hover { text-decoration: underline; }
main { max-width: 1380px; margin: auto; padding: 38px 4vw 58px; }
.intro { margin-bottom: 30px; max-width: 860px; }
.eyebrow { font-size: 10px; letter-spacing: 1.3px; margin: 0 0 13px; font-weight: 400; }
.eyebrow::before { content: "> "; }
h1 { font-size: clamp(25px, 3.3vw, 42px); line-height: 1.3; font-weight: 400; letter-spacing: -1px; margin: 0 0 15px; text-transform: uppercase; overflow-wrap: anywhere; }
.terminal-cursor { display: inline-block; animation: cursor 1.2s steps(1) infinite; }
@keyframes cursor { 50% { visibility: hidden; } }
.lead { font-size: 12px; line-height: 1.9; max-width: 790px; margin: 0; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr); gap: 28px; align-items: start; }
.search-card { background: var(--panel); padding: 24px; border: 1px solid var(--control-line); }
.card-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.card-heading h2 { font-size: 15px; font-weight: 400; margin: 0; }
.card-heading p { font-size: 10px; margin: 4px 0 0; }
.step { font-size: 12px; padding-top: 1px; }
.step::before { content: "["; }
.step::after { content: "]"; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.mode { position: relative; border: 1px solid var(--line); background: var(--panel); padding: 11px 12px; text-align: left; display: flex; flex-direction: column; gap: 4px; min-width: 0; border-radius: 0; }
.mode:last-child { grid-column: 1 / -1; }
.mode span { font-size: 9px; letter-spacing: .5px; }
.mode strong { font-size: 12px; font-weight: 400; padding-right: 10px; }
.mode small { font-size: 10px; line-height: 1.6; }
.mode:hover { border-color: var(--control-line); background: var(--selected); }
.mode.selected { border-color: var(--ink); background: var(--selected); }
.mode.selected::after { content: "*"; position: absolute; top: 7px; right: 9px; font-size: 16px; }
label { display: block; font-size: 12px; font-weight: 400; margin: 16px 0 8px; }
label::before { content: "> "; }
.optional { font-size: 10px; margin-left: 4px; }
input, select { width: 100%; padding: 11px 12px; border: 1px solid var(--control-line); background: var(--paper); color: var(--ink); min-width: 0; border-radius: 0; caret-color: var(--accent); }
input:focus, select:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
#vin, #identifier, #number, #plate { letter-spacing: 1px; text-transform: uppercase; }
input::placeholder { font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--muted); opacity: 1; }
.input-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; margin-top: 8px; }
.text-button { border: 0; background: transparent; color: var(--ink); padding: 4px 0; font-size: 11px; font-weight: 400; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--accent); }
.scope-note { font-size: 11px; line-height: 1.8; border-left: 1px solid var(--line); padding: 0 0 0 12px; margin-top: 21px; }
.primary { width: 100%; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); padding: 12px 15px; font-size: 13px; font-weight: 400; display: flex; align-items: center; justify-content: space-between; margin-top: 21px; text-transform: uppercase; }
.primary::before { content: ">"; margin-right: 10px; }
.primary span { margin-left: auto; font-size: 16px; }
.primary:hover, .primary:focus-visible { background: var(--ink); color: var(--inverse); }
#form-status { font-size: 11px; margin: 12px 0 0; min-height: 18px; }
.error { color: var(--ink) !important; font-weight: 700; }
.error::before { content: "[!] "; }
.side-panel { padding: 4px 0 0 10px; }
.side-panel h2 { font-size: 20px; line-height: 1.6; font-weight: 400; margin: 0 0 25px; }
.benefit { display: flex; gap: 14px; margin-bottom: 23px; }
.benefit > span { font-size: 18px; width: 22px; flex-shrink: 0; }
.benefit h3 { font-size: 12px; margin: 0 0 7px; font-weight: 400; }
.benefit p { font-size: 11px; margin: 0; line-height: 1.9; }
.honest-note { padding: 18px 0; border-top: 1px dashed var(--line); margin-top: 26px; }
.honest-note p { font-size: 11px; margin: 10px 0; }
.tag { font-size: 10px; letter-spacing: 1px; }
.tag::before { content: "[ "; }
.tag::after { content: " ]"; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-note { font-size: 11px; line-height: 1.8; }
footer { border-top: 1px solid var(--control-line); padding: 17px 4vw; display: flex; justify-content: space-between; gap: 15px; font-size: 10px; }
#connection-status::before { content: "> "; }
.page-heading { margin-bottom: 30px; }
.filter-row { max-width: 340px; margin-bottom: 25px; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.source-card, .report-section { background: var(--panel); border: 1px solid var(--line); padding: 22px; min-width: 0; }
.source-card h2 { font-size: 18px; margin: 12px 0; font-weight: 400; }
.source-card p { font-size: 12px; margin: 10px 0; }
.source-card .price { font-weight: 700; }
.badge { display: inline-block; font-size: 10px; font-weight: 400; padding: 0; background: transparent; color: var(--ink); }
.badge::before { content: "[ "; }
.badge::after { content: " ]"; }
.badge.connected, .badge.ok { font-weight: 700; }
.source-link { font-size: 11px; display: inline-block; margin-top: 10px; overflow-wrap: anywhere; }
.back { margin-bottom: 22px; }
.report-heading { margin-bottom: 25px; }
.report-heading h1 { font-size: 32px; }
.report-meta { font-size: 12px; overflow-wrap: anywhere; }
.report-actions { display: flex; gap: 18px; margin: 20px 0; flex-wrap: wrap; }
.report-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr); gap: 20px; }
.report-stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.report-section h2 { font-size: 15px; margin: 0 0 16px; font-weight: 400; }
.report-section h2::before { content: "// "; }
.report-section p, .report-section li { font-size: 12px; line-height: 1.85; }
.report-section ul { padding-left: 18px; }
.facts { margin: 0; }
.fact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 11px; }
.fact:last-child { border: 0; }
.fact dd { margin: 0; overflow-wrap: anywhere; }
.field-source { display: block; font-size: 9px; letter-spacing: .5px; margin-top: 4px; }
.field-source::before { content: "[ "; }
.field-source::after { content: " ]"; }
.warning-box { border-style: dashed; border-color: var(--control-line); }
.campaign { border-top: 1px dashed var(--line); padding: 14px 0; }
.campaign summary { font-size: 12px; font-weight: 400; cursor: pointer; line-height: 1.8; overflow-wrap: anywhere; }
.campaign p { white-space: pre-line; overflow-wrap: anywhere; }
.campaign-tag { font-size: 10px; margin: 0 0 8px; }
.provider-item { padding: 12px 0; border-top: 1px dashed var(--line); }
.provider-item:first-of-type { border-top: 0; }
.provider-item strong { font-size: 12px; font-weight: 400; }
.provider-item small { display: block; font-size: 10px; margin-top: 7px; }
.history-item { display: flex; align-items: center; gap: 20px; border: 1px solid var(--line); padding: 20px 24px; margin: 12px 0; background: var(--panel); }
.history-item .open-report { font-size: 15px; }
.history-item > div { flex: 1; min-width: 0; }
.history-item p { font-size: 11px; margin: 7px 0; }
.delete-report { background: transparent; border: 1px solid var(--line); color: var(--ink); font-size: 10px; padding: 7px 10px; }
.delete-report:hover { border-color: var(--ink); }
.empty { padding: 28px; border: 1px dashed var(--control-line); font-size: 12px; }
[hidden] { display: none !important; }
/* Clear entry point within the existing terminal themes. */
.intro { margin-bottom: 24px; }
#search-view h1 { text-transform: none; font-size: clamp(26px, 3vw, 38px); max-width: 780px; }
#search-view .lead { font-size: 14px; line-height: 1.7; }
.card-heading { margin-bottom: 18px; }
.card-heading h2 { font-size: 17px; font-weight: 700; }
.mode-picker { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.mode-picker summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; min-height: 36px; font-size: 12px; }
.mode-picker summary::-webkit-details-marker { display: none; }
.mode-change { text-decoration: underline; text-underline-offset: 4px; font-size: 11px; flex-shrink: 0; }
.mode-picker[open] .mode-change { color: var(--accent); }
.mode-picker .mode-grid { margin: 14px 0 0; }
#check-form label::before { content: none; }
#check-form label { font-size: 13px; }
#check-form input, #check-form select { min-height: 48px; font-size: 14px; }
.optional-fields { margin-top: 16px; }
.optional-fields summary, .coverage-details summary { font-size: 11px; cursor: pointer; padding: 8px 0; }
.optional-fields .optional { color: var(--muted); }
.order-primary { min-height: 54px; background: var(--cta); border-color: var(--cta); color: var(--cta-ink); font-size: 15px; font-weight: 700; text-transform: none; justify-content: center; gap: 14px; }
.order-primary::before { content: none; }
.order-primary span { margin: 0; font-size: inherit; }
.order-primary:hover, .order-primary:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--inverse); }
.order-primary:disabled { cursor: wait; opacity: .65; }
.order-note { margin: 9px 0 0; text-align: center; font-size: 11px; color: var(--muted); }
#form-status:empty { display: none; }
.report-limit { font-size: 11px; line-height: 1.7; margin: 20px 0 6px; color: var(--muted); }
.coverage-details .scope-note { margin: 8px 0 0; }
.side-panel h2 { font-size: 20px; line-height: 1.5; margin-bottom: 22px; }
.side-panel .benefit { margin-bottom: 20px; }
.side-panel .benefit h3 { font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.side-panel .benefit p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.side-panel .honest-note { font-size: 11px; padding: 16px 0 0; margin: 22px 0 12px; }
@media (max-width: 1080px) {
  nav { order: 3; width: 100%; margin: 0; gap: 24px; }
  .theme-control { margin-left: auto; }
}
@media (max-width: 800px) {
  main { padding-top: 28px; }
  .workspace, .report-layout { grid-template-columns: 1fr; }
  .side-panel { padding: 16px 0; }
  .side-panel h2 br { display: none; }
  .source-grid { grid-template-columns: 1fr; }
  .report-heading h1 { font-size: 27px; }
}
@media (max-width: 480px) {
  body { font-size: 12px; }
  .topbar { gap: 13px; padding: 16px 5vw; }
  .brand { font-size: 14px; }
  .pilot { display: block; order: 2; width: 100%; }
  .theme-button { font-size: 10px; padding: 5px 7px; }
  nav { gap: 15px; justify-content: space-between; }
  .nav { font-size: 10px; }
  main { padding: 26px 5vw 40px; }
  h1 { font-size: 25px; letter-spacing: -.7px; }
  .search-card, .report-section { padding: 17px; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode { padding: 11px 12px; }
  .mode strong { font-size: 12px; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .input-footer { flex-wrap: wrap; align-items: flex-start; }
  input::placeholder { font-size: 10px; }
  footer { flex-wrap: wrap; font-size: 9px; }
  .fact { grid-template-columns: 1fr 1fr; gap: 10px; }
  .history-item { padding: 17px; gap: 10px; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .terminal-cursor { animation: none; } }
@media print {
  :root, :root[data-theme="light"] { color-scheme: light; --paper: #fff; --panel: #fff; --ink: #000; --muted: #000; --line: #aaa; --control-line: #000; --selected: #fff; --inverse: #fff; --accent: #000; }
  .topbar, footer, .back, .report-actions, nav, #search-view, #sources-view, #history-view { display: none !important; }
  main { padding: 0; }
  .report-layout { display: block; }
  .report-section { break-inside: avoid; margin-bottom: 15px; }
  .campaign { break-inside: avoid; }
  .report-heading h1 { font-size: 25px; }
  details > div { display: block; }
  .terminal-cursor { animation: none; }
}

textarea { font: inherit; width: 100%; resize: vertical; color: var(--ink); background: var(--paper); border: 1px solid var(--control-line); padding: 12px; border-radius: 0; }
textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.equipment-section h3 { font-size: 13px; font-weight: 400; margin: 22px 0 10px; }
.option-row { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 11px; break-inside: avoid; }
.option-row[hidden] { display: none; }
.option-row code { font: inherit; font-weight: 700; }
.option-original { display: block; margin-top: 5px; opacity: .9; overflow-wrap: anywhere; }
.option-count { font-size: 10px !important; }
.build-import { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.build-import summary { cursor: pointer; font-size: 12px; }
@media print {
  .no-print, #option-filter, label[for="option-filter"], .option-count { display: none !important; }
  .equipment-section { break-inside: auto; }
  .option-row[hidden] { display: grid; }
}

#order-content{max-width:960px;margin:auto;overflow-wrap:anywhere}#order-content input{max-width:100%}.availability .provider-item{overflow-wrap:anywhere}

.screen-hidden { display: none; }
@media print { .saved-report-title { display: inline !important; } }

.automatic-specifications small { display: block; margin-top: 8px; }

.collection-status{border:1px solid var(--line);padding:18px 22px;margin-top:24px}.collection-status ul{margin:12px 0 0;padding-left:20px}.collection-status li{margin:6px 0}.automatic-specifications{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.automatic-specifications h3{font-size:1rem}

#form-status > button { display: block; margin-top: 8px; }
.collection-status[data-state="partial"], .collection-status[data-state="empty"], .collection-status[data-state="expired"] { border-style: dashed; }

/* Language selection uses native options; form and report nodes stay mounted. */
.language-picker{display:flex;align-items:center;gap:8px;margin:0;font-size:10px;white-space:nowrap}
.language-picker::before{content:none}
.language-picker select{margin:0;width:auto;max-width:155px;min-width:110px;min-height:30px;padding:4px 24px 4px 8px;font-size:11px;color:var(--ink);background:var(--paper);border:1px solid var(--control-line);border-radius:0}
.topbar>.language-picker{margin-left:auto}
.source-original-note{max-width:900px}
@media(max-width:1080px){.topbar>.language-picker{order:2}.topbar nav{flex-wrap:wrap;gap:10px 18px}}
@media(max-width:480px){.topbar>.pilot{width:auto;max-width:48%;white-space:normal}.topbar>.language-picker{order:2;margin-left:auto;gap:5px}.language-picker select{max-width:135px;min-width:105px}.topbar nav{justify-content:flex-start;gap:7px 15px}.nav{white-space:normal}.topbar{row-gap:9px}#search-view .intro{margin-bottom:18px}#search-view h1{font-size:25px}#search-view .lead{font-size:12px;line-height:1.6}.provider-item,.source-card,.fact{overflow-wrap:anywhere}}
