:root { --brand:#003DA5; --brand-dark:#001E5C; --brand-light:#E6EDF7; --ink:#0F1A2E; --ink-soft:#33404F; --line:#C9D3E0; --bg-soft:#F4F7FB; --ok:#0B6B2E; --ok-bg:#E7F5EC; --warn:#8A4B00; --warn-bg:#FFF4E0; --bad:#9B1C1C; --bad-bg:#FDECEC; }
* { box-sizing: border-box; }
html { font-size: 19px; }
html.big { font-size: 23px; }
body { margin:0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background:#fff; line-height:1.6; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 18px; }
.skip { position:absolute; left:-9999px; } .skip:focus { left:12px; top:12px; background:#fff; padding:8px; z-index:9; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
a { color: var(--brand); }
:focus-visible { outline: 4px solid #FFB000; outline-offset: 2px; }

.top { border-bottom: 1px solid var(--line); padding: 12px 0; }
.top-inner { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.brand { font-weight: 800; font-size: 1.4rem; color: var(--brand); text-decoration: none; letter-spacing: -0.5px; }
.brand .tag { display:block; font-size: .75rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.text-size { font-size: .9rem; min-height: 48px; padding: 0 16px; border: 2px solid var(--brand); background: #fff; color: var(--brand); border-radius: 10px; font-weight: 700; cursor: pointer; }
.text-size[aria-pressed="true"] { background: var(--brand); color:#fff; }

.progress { margin: 22px 0 14px; }
.progress-label { margin: 0 0 6px; font-weight: 700; font-size: 1rem; }
.progress-track { height: 14px; background: var(--brand-light); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand); width: 0; transition: width .3s; }
.progress-steps { display:flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 10px 0 0; font-size: .8rem; color: var(--ink-soft); }
.progress-steps li.done { color: var(--ok); } .progress-steps li.now { color: var(--brand); font-weight: 800; }

.card { background:#fff; border: 2px solid var(--line); border-radius: 16px; padding: 26px 24px; }
.card h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 8px; }
.card h2 { font-size: 1.2rem; margin: 22px 0 8px; }
.help { color: var(--ink-soft); margin: 0 0 18px; font-size: 1rem; }
.small { font-size: .85rem; color: var(--ink-soft); }
.center { text-align: center; }

.choices { display:grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.choice { display:flex; align-items:center; gap: 10px; min-height: 64px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor:pointer; font-size: 1rem; font-weight: 600; background:#fff; color: var(--ink); text-align:left; }
.choice input { width: 24px; height: 24px; accent-color: var(--brand); flex: none; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.choice .em { font-size: 1.4rem; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; padding: 0; }

.field { margin-bottom: 16px; }
.field label { display:block; font-weight: 700; margin-bottom: 4px; }
.field .hint { display:block; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=number], input[type=url], input[type=date], select, textarea {
  width: 100%; font-size: 1rem; padding: 12px 14px; border: 2px solid #8C9AAE; border-radius: 10px; min-height: 56px; font-family: inherit; color: var(--ink); background:#fff; }
textarea { min-height: 170px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .card { padding: 20px 16px; } html { font-size: 18px; } }

.btn { font-size: 1.05rem; font-weight: 800; min-height: 60px; padding: 0 26px; border-radius: 12px; border: 2px solid var(--brand); cursor:pointer; }
.btn-next, .btn-primary { background: var(--brand); color:#fff; }
.btn-next:hover, .btn-primary:hover { background: var(--brand-dark); }
.btn-back, .btn-secondary { background:#fff; color: var(--brand); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-wide { width: 100%; margin: 6px 0; }
.btn-danger { background:#fff; color: var(--bad); border-color: var(--bad); }
.nav-buttons { display:flex; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.nav-buttons .btn { flex: 1; max-width: 300px; }
.link-btn { background:none; border:0; color: var(--brand); text-decoration: underline; font-size: inherit; cursor:pointer; padding: 6px; min-height: 44px; }

.tabs { display:flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.tab { flex: 1 1 180px; min-height: 56px; font-size: .95rem; font-weight: 700; border: 2px solid var(--line); border-radius: 10px; background:#fff; color: var(--ink); cursor: pointer; }
.tab[aria-selected="true"] { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }

.vehicle { border: 2px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 16px; background: var(--bg-soft); }
.vehicle h2 { margin-top: 0; }
.vehicle-done { display:flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.vehicle-done .name { font-weight: 800; font-size: 1.1rem; }

.note { border-radius: 10px; padding: 12px 14px; margin: 10px 0; font-size: .95rem; }
.note-ok { background: var(--ok-bg); color: var(--ok); }
.note-warn { background: var(--warn-bg); color: var(--warn); }
.note-bad { background: var(--bad-bg); color: var(--bad); }
.note-info { background: var(--brand-light); color: var(--brand-dark); }
.badge { display:inline-block; font-size: .75rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; vertical-align: middle; }
.badge-est { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn); }
.badge-check { background: var(--warn-bg); color: var(--warn); }
.badge-high { background: var(--ok-bg); color: var(--ok); } .badge-medium { background: var(--brand-light); color: var(--brand-dark); } .badge-low { background: var(--warn-bg); color: var(--warn); }

.otd { border: 2px solid var(--brand); border-radius: 14px; padding: 16px; margin: 14px 0; }
.otd h2 { margin: 0 0 4px; }
.otd-total { font-size: 1.6rem; font-weight: 800; color: var(--brand); margin: 6px 0 10px; }
.lines { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lines td { padding: 10px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.lines td.amt { text-align: right; font-weight: 700; white-space: nowrap; }
.lines .why { display:block; font-size: .8rem; color: var(--ink-soft); font-weight: 400; }
.lines tr.total td { border-top: 3px solid var(--ink); font-weight: 800; font-size: 1.05rem; }
.lines tr.unknown td.amt { color: var(--warn); }

.alias-box { border: 3px dashed var(--brand); border-radius: 14px; padding: 18px; text-align: center; margin: 12px 0; }
.alias-addr { font-size: 1.35rem; font-weight: 800; color: var(--brand); word-break: break-all; }
.email-preview { white-space: pre-wrap; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: .9rem; max-height: 340px; overflow: auto; }
.dealer-row { border: 2px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.btn-row { display:flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.btn-row .btn { flex: 1 1 200px; }

.cmp-wrap { overflow-x: auto; margin: 12px 0; }
.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .9rem; }
.cmp th, .cmp td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.cmp thead th { background: var(--brand); color: #fff; }
.cmp tbody th { background: var(--bg-soft); width: 22%; }
.cmp td.diff { background: var(--warn-bg); }

.spinner { width: 34px; height: 34px; border: 4px solid var(--brand-light); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .progress-fill { transition: none; } }
.foot { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 30px; padding: 18px 0; font-size: .85rem; color: var(--ink-soft); }
.foot .fine { font-size: .8rem; }
.hidden { display: none !important; }
@media (max-width: 620px) { .progress-steps { display: none; } .cmp-hint { display: block !important; } }
.cmp-hint { display: none; }

/* ---- Step 2: Send to Brieflot importer ---- */
.queue-title { margin-top: 6px !important; }
.vehicle.importing { border-style: dashed; border-color: var(--brand); background: #fff; }
.vehicle .src { margin-top: 2px; }
.import-panel { border: 3px solid var(--brand); border-radius: 16px; padding: 20px; margin: 10px 0 18px; background: #fff; }
.import-title { font-size: 1.45rem !important; margin: 0 0 6px !important; color: var(--brand-dark); }
.import-panel h3 { font-size: 1.1rem; margin: 20px 0 6px; }
.howto { list-style: none; counter-reset: how; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 16px 0 6px; }
.howto li { counter-increment: how; position: relative; background: var(--brand-light); border-radius: 14px; padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 4px; font-size: .95rem; }
.howto li::before { content: counter(how); position: absolute; top: -10px; left: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.howto-icon { font-size: 2rem; line-height: 1; }
.howto strong { font-size: 1.05rem; color: var(--brand-dark); }
.install { border-top: 1px solid var(--line); padding-top: 12px; }
.bm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0 12px; }
.bm-link { display: inline-flex; align-items: center; min-height: 60px; padding: 0 26px; border-radius: 999px; background: #FFD23F; color: #1a1300 !important; font-weight: 800; font-size: 1.15rem; text-decoration: none; border: 3px solid #1a1300; cursor: grab; box-shadow: 0 4px 0 #1a1300; }
.bm-link:active { cursor: grabbing; transform: translateY(2px); box-shadow: 0 2px 0 #1a1300; }
.drag-hint { font-weight: 700; color: var(--ink-soft); }
.steps-list { padding-left: 1.4em; margin: 10px 0; } .steps-list li { margin: 8px 0; }
.privacy { margin-top: 16px; }
.other-ways { margin-top: 6px; border: 2px solid var(--line); border-radius: 14px; padding: 6px 16px; background: var(--bg-soft); }
.other-ways > summary { font-weight: 700; min-height: 48px; display: flex; align-items: center; cursor: pointer; }
@media (max-width: 620px) { .howto { grid-template-columns: 1fr; } .drag-hint { display: none; } .import-panel { padding: 16px 12px; } }
