:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #1c1d1f;
  --muted: #62666d;
  --line: #dedcd6;
  --accent: #1f6f4a;
  --accent-text: #ffffff;
  --danger: #b3261e;
  --warn-bg: #fff4d6;
  --ok: #1f6f4a;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141517;
    --card: #1d1f22;
    --text: #ececec;
    --muted: #a0a4aa;
    --line: #34373c;
    --accent: #4fb985;
    --accent-text: #0d1a13;
    --danger: #f2827a;
    --warn-bg: #3a3220;
    --ok: #4fb985;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
main.wide { max-width: 1100px; }
h1 { font-size: 1.6rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
p.lead { color: var(--muted); margin: 0 0 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
label { display: block; font-weight: 600; margin: 14px 0 4px; }
label .opt { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: .9rem; margin: 2px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], textarea, select {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}
textarea { min-height: 90px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.radios { display: flex; gap: 16px; }
.radios label { font-weight: 400; display: flex; gap: 6px; align-items: center; margin: 0; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.slot {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  min-height: 140px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
}
.slot.filled { border-style: solid; border-color: var(--accent); aspect-ratio: 4 / 3; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .cap {
  position: relative;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  font-size: .9rem;
}
.slot .cap b { display: block; }
.slot input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slot .req { color: var(--danger); }
.slot-hint { color: var(--muted); font-size: .8rem; }

button, .btn {
  display: inline-block;
  font: inherit; font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  text-decoration: none;
}
button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
button:disabled { opacity: .6; cursor: default; }
.submit { width: 100%; padding: 16px; font-size: 1.05rem; }
.error { color: var(--danger); font-weight: 600; margin: 12px 0; }
.flash { background: var(--warn-bg); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.progress div { height: 100%; background: var(--accent); transition: width .2s; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.bad { color: var(--danger); }
.big-price { font-size: 2.4rem; font-weight: 700; margin: 8px 0; }

/* dealer pages */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .9rem; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: 8px; display: block; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .85rem; background: var(--bg); border: 1px solid var(--line); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.actions input { width: 160px; }
.table-wrap { overflow-x: auto; }

[v-cloak] { display: none; }
a { color: var(--accent); }


/* "Is this your car?" card built from the VIN decode */
.confirm { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 4px 0 6px; }
.confirm.yes { border-color: var(--ok); }
.confirm-q { margin: 0 0 2px; color: var(--muted); font-size: .9rem; }
.confirm-title { margin: 0; font-size: 1.15rem; font-weight: 700; }
.confirm .actions { margin-top: 10px; }
.confirm .actions button { padding: 8px 16px; }

/* Recalls on the details page: one line each, tap to read NHTSA's summary */
.recall { border-top: 1px solid var(--line); padding: 10px 0; }
.recall summary { cursor: pointer; font-weight: 600; }
.recall p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
