:root {
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #dde2ea;
  --bg: #f5f7fa;
  --card: #ffffff;
  --brand: #c2410c;
  --brand-ink: #ffffff;
  --brand-soft: #fff1e8;
  --ok: #166534;
  --warn-bg: #fff7d6;
  --warn-line: #e8c547;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.45; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.proto-banner {
  background: #1d2433;
  color: #fff;
  font-size: 14px;
  padding: 8px 16px;
  text-align: center;
}

.site-head { background: var(--card); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 800; font-size: 20px; color: var(--brand); }
.brand-sub { color: var(--muted); font-size: 14px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding-top: 24px; padding-bottom: 24px; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }

.panel, .cart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cart { position: sticky; top: 16px; }
@media (max-width: 860px) { .cart { position: static; } }

.progress { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; }
.progress li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.progress li.done { background: #e8f3ec; color: var(--ok); border-color: #b9dcc5; }
.progress li.now { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }

h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.2; }
h3 { margin: 22px 0 8px; font-size: 16px; }
.lead { color: var(--muted); margin: 0 0 16px; }

.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 560px) { .choices.two { grid-template-columns: 1fr; } .choices.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.choice {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  text-align: left; width: 100%; padding: 14px 16px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--card); color: inherit; font: inherit; cursor: pointer;
  text-decoration: none;
}
.choice:hover { border-color: #b8c0cd; }
.choice:focus-visible { outline: 3px solid #f7b38b; outline-offset: 2px; }
.choice.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.choice-title { display: block; font-weight: 650; }
.choice-desc { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.choice-price { font-weight: 650; white-space: nowrap; }
.choice.small { justify-content: center; text-align: center; padding: 12px 6px; }

.field { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.field select, .field input { font: inherit; color: var(--ink); padding: 9px 10px; border: 1px solid #c7ceda; border-radius: 8px; background: #fff; min-width: 0; }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.check { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.check input { width: 18px; height: 18px; }

.tank-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tank-table th, .tank-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.tank-table select { width: 100%; font: inherit; padding: 6px; border-radius: 6px; border: 1px solid #c7ceda; }

.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #c7ceda; background: #fff; font-size: 18px; cursor: pointer; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 700; font-size: 18px; }
.sides { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 6px; }

.note { background: var(--bg); border-left: 4px solid #9aa4b5; padding: 10px 12px; border-radius: 6px; font-size: 14px; margin: 14px 0; }
.note.warn { background: var(--warn-bg); border-left-color: var(--warn-line); }
.note.flag { background: #fdecec; border-left-color: #d14343; }
details.help { margin-top: 14px; font-size: 14px; color: var(--muted); }
details.help summary { cursor: pointer; color: var(--ink); font-weight: 600; }

.error { color: #b42318; min-height: 1.2em; margin: 12px 0 0; font-weight: 600; }
.nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.nav #back { margin-right: auto; }
.btn { font: inherit; border-radius: 10px; padding: 10px 18px; cursor: pointer; border: 1px solid transparent; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--brand); color: var(--brand-ink); font-weight: 650; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn[hidden] { display: none; }

.cart h2 { font-size: 18px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-sku { color: var(--muted); font-size: 12px; font-family: ui-monospace, Menlo, monospace; }
.cart-total { display: flex; justify-content: space-between; font-weight: 750; padding-top: 12px; font-size: 16px; }
.cart-empty, .cart-note { color: var(--muted); font-size: 13px; }

.review-answers { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.review-answers li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 6px 0; font-size: 14px; }
.linkish { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.review-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.review-table td, .review-table th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.review-table td:last-child, .review-table th:last-child { text-align: right; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.foot { color: var(--muted); font-size: 13px; padding-bottom: 32px; }
code { font-size: 12px; }