:root {
  --ink: #15201c;
  --ink-soft: #2a3832;
  --paper: #eef2ef;
  --paper-deep: #e2e8e4;
  --card: #fbfcfb;
  --line: #c5d0ca;
  --line-strong: #8fa39a;
  --amber: #c47a12;
  --amber-ink: #6d4308;
  --amber-soft: #f3e2c4;
  --pine: #16352c;
  --pine-mid: #1e4a3c;
  --pine-glow: #2f6b56;
  --good: #1c6b45;
  --low: #8a5a10;
  --bad: #8d2e2e;
  --muted: #5c6862;
  --field-bg: linear-gradient(180deg, #ffffff 0%, #f4f7f5 100%);
  --field-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(22, 53, 44, 0.06), 0 1px 2px rgba(22, 53, 44, 0.04);
  --field-focus: 0 0 0 3px rgba(196, 122, 18, 0.28);
  --shadow: 0 12px 32px rgba(21, 32, 28, 0.08);
  --shadow-lift: 0 18px 40px rgba(21, 32, 28, 0.12);
  --radius: 14px;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
  --display: "Nunito", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 320px at 8% -8%, rgba(47, 107, 86, 0.14), transparent 55%),
    radial-gradient(700px 280px at 92% 0%, rgba(196, 122, 18, 0.1), transparent 50%),
    linear-gradient(180deg, #f5f7f5 0%, var(--paper) 40%, var(--paper-deep) 100%);
  color: var(--ink);
  font: 15.5px/1.5 var(--font);
}
button, input, select, textarea { font: inherit; color: inherit; }
button {
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease, background-color 0.08s ease;
}
button:active:not(:disabled),
.btn:active:not(:disabled),
.chip:active,
.cat-card:active:not(:disabled),
.vehicle-chip:active,
.fit-tabs button:active,
.linkish:active,
.menu-btn:active,
.ghost-btn:active,
.mode-nav button:active,
.loc-btn:active,
.brand:active,
.drawer button:active,
.side button:active,
.foot-links button:active,
.text-btn:active {
  transform: translateY(2px) scale(0.97);
  filter: brightness(0.92);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.28) !important;
}
a { color: var(--pine-mid); }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pine);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 8px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ——— Masthead ——— */
.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, #123028 0%, var(--pine) 100%);
  color: #f4f7f5;
  border-bottom: 3px solid var(--amber);
  box-shadow: 0 8px 24px rgba(18, 48, 40, 0.28);
}
.mast-top, .mast-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  max-width: 1400px;
  margin: 0 auto;
}
.mast-top { padding-bottom: 6px; }
.mast-bar {
  padding-top: 6px;
  padding-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(244, 247, 245, 0.1);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: #0a0a0a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.brand-mark.sm { width: 22px; height: 22px; }
.brand-text {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}
.mast-links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  justify-content: flex-end;
}
.linkish {
  background: transparent;
  border: 0;
  color: #d7e4dd;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.linkish:hover, .linkish:focus-visible { background: rgba(255, 255, 255, 0.08); color: #fff; outline: none; }
.cart-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px 6px 14px;
  font-weight: 700;
  font-size: 13px;
}
.cart-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  font-size: 12px;
}
.menu-btn, .ghost-btn, .mode-nav button, .who button {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f7f5;
  border: 1px solid rgba(244, 247, 245, 0.28);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13px;
}
.ghost-btn.has-vehicle {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-preview {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f1a16;
  max-height: 240px;
}
.photo-preview img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
}
.flag.bad {
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}
.oem-panel {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #c9d8d0;
  background: linear-gradient(135deg, #f3f8f5, #e8f0eb);
}
.oem-panel--genuine {
  border-color: #b7c9a8;
  background: linear-gradient(135deg, #f4f7ea, #e8efd8);
}
.oem-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine-mid);
}
.oem-num {
  margin: 0 0 6px;
  font-size: 18px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
}
.oem-panel .muted { margin: 0; }
.oem-line {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--pine-mid);
  font-weight: 600;
}
.mode-nav { display: flex; gap: 6px; margin-left: auto; }
.mode-nav button.on {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.search-shell {
  flex: 1 1 360px;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(22, 53, 44, 0.08);
}
.search-shell input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  color: var(--ink);
  min-width: 0;
}
.search-shell input:focus { outline: none; }
.search-shell .text-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border-left: 1px solid var(--line);
}
.search-shell .btn {
  border-radius: 0;
  border: 0;
  padding: 0 14px;
}
.search-shell .btn.pine { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.loc-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px dashed rgba(244, 247, 245, 0.35);
  border-radius: 12px;
  padding: 6px 12px;
  color: #f4f7f5;
  min-width: 160px;
  text-align: left;
}
.loc-kicker {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8bfb4;
}
.loc-value { font-size: 13px; font-weight: 650; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who { font-size: 13px; display: flex; align-items: center; gap: 8px; color: #d7e4dd; }

/* ——— Drawer / modal ——— */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 88vw);
  background: #0f241e;
  color: #eef4f1;
  z-index: 50;
  padding: 72px 16px 24px;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer[hidden] { display: none !important; }
.drawer-title {
  margin: 0 8px 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8faba0;
}
.drawer button {
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.drawer button:hover { background: rgba(255, 255, 255, 0.08); }
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(12, 24, 20, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-root[hidden] { display: none !important; }
.modal {
  width: min(520px, 100%);
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
  overflow: hidden;
}
.modal.wide { width: min(720px, 100%); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #1a4035, var(--pine));
  color: #f4f7f5;
}
.modal-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}
.modal-x {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: inherit;
  border-radius: 8px;
  width: 32px;
  height: 32px;
}
.modal-body { padding: 18px; }

main {
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}
main.desk-wide { max-width: 1680px; }
main > .office-pad, main > .shop-pad { padding: 22px; }

h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}
h1.part-search { margin: 0 0 8px; }
h2 {
  font-family: var(--display);
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0;
}
.lede { margin: 0 0 14px; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

/* ——— Deep fields ——— */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.field-label > span:first-child {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field-hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.field-control {
  position: relative;
}
.field-control::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(196, 122, 18, 0), transparent);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.field-control:focus-within::before { opacity: 1; background: linear-gradient(90deg, transparent, var(--amber), transparent); }
.field input,
.field select,
.field textarea,
.entry-grid input,
.entry-grid select,
.form input,
.form select,
.form textarea,
.gate input,
.find input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--field-bg);
  border-radius: 11px;
  padding: 11px 12px;
  box-shadow: var(--field-shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:hover,
.field select:hover,
.form input:hover,
.form select:hover {
  border-color: var(--line-strong);
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.form input:focus,
.form select:focus,
.form textarea:focus,
.gate input:focus,
.search-shell input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: var(--field-shadow), var(--field-focus);
}
.field-assist {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.field-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 14px;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 247, 245, 0.9)),
    var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.field-group-title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine-mid);
  font-weight: 750;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.shop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}
.find {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 600;
  font-size: 13px;
}
.chip.on { background: var(--pine); color: #f6f3ea; border-color: var(--pine); }
.part {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.part:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.part h2 { font-size: 16px; font-family: var(--font); font-weight: 700; }
.sku { font-family: Consolas, "SF Mono", monospace; color: var(--amber-ink); font-size: 12px; }
.price { font-size: 20px; font-weight: 750; font-family: var(--display); }
.was { color: var(--muted); text-decoration: line-through; font-size: 13px; margin-right: 6px; }
.stock { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #efe6d4; font-weight: 650; }
.stock.good { background: #d9efe3; color: var(--good); }
.stock.low { background: #f8e7c4; color: var(--low); }
.stock.bad, .stock.wait { background: #f6dede; color: var(--bad); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn {
  background: linear-gradient(180deg, #d9922a 0%, var(--amber) 100%);
  color: #1a1d16;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 4px 10px rgba(196, 122, 18, 0.28);
}
.btn:hover:not(:disabled) {
  filter: brightness(1.05);
}
.btn:active:not(:disabled) {
  background: linear-gradient(180deg, #a86810 0%, #8f580e 100%);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
}
.btn.compact { padding: 0 14px; font-size: 13px; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
  box-shadow: none;
}
.btn.ghost:active:not(:disabled) {
  background: #e4ebe7;
  border-color: var(--line-strong);
}
.btn.pine {
  background: linear-gradient(180deg, var(--pine-mid), var(--pine));
  color: #f6f3ea;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 4px 12px rgba(22, 53, 44, 0.3);
}
.btn.pine:active:not(:disabled) {
  background: linear-gradient(180deg, #0f241e, #0a1a15);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.layout { display: grid; grid-template-columns: 230px 1fr; gap: 16px; }
.side button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
}
.side button.on, .side button:hover { background: #dfe8e3; }
.side-k {
  margin: 12px 8px 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.side .perm-tag {
  display: block;
  margin: 8px;
  font-size: 11px;
  color: var(--pine-mid);
  background: #e4efe9;
  border-radius: 8px;
  padding: 6px 8px;
}
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: #eef3f0; }
.flag { display: inline-block; padding: 2px 7px; border-radius: 999px; background: #efe6d4; font-size: 12px; }
.flag.good { background: #d9efe3; color: var(--good); }
.flag.bad { background: #f6dede; color: var(--bad); }
.flag.wait { background: #f8e7c4; color: var(--low); }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 650; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 8px;
}
input[type="radio"], input[type="checkbox"] { width: auto; }
.choice { display: flex; gap: 16px; margin: 10px 0; }
.choice label { display: flex; align-items: center; gap: 6px; margin: 0; }
.rankline { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.note {
  background: linear-gradient(90deg, #f8efd8, #fbf6ea);
  border-left: 4px solid var(--amber);
  padding: 12px 14px;
  margin: 12px 0;
  border-radius: 0 12px 12px 0;
}
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.boards strong { display: block; font-size: 28px; line-height: 1.1; font-family: var(--display); }
pre {
  background: #1a1d16;
  color: #f3efe6;
  padding: 12px;
  border-radius: 10px;
  overflow: auto;
  font-size: 12px;
}
.error { color: var(--bad); }
.cart { position: sticky; top: 88px; }
.ticket { margin-top: 14px; }
.step { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.step span {
  background: #efe8d8;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}
.carrier-bar { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.carrier-scroll {
  max-height: min(62vh, 640px);
  overflow: auto;
  border: 1px solid #d5d8de;
  border-radius: 8px;
  background: #fff;
}
.carrier-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: visible;
  table-layout: fixed;
  font-size: 13px;
}
.carrier-grid th, .carrier-grid td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 1px solid #d5d8de;
  border-bottom: 1px solid #d5d8de;
  padding: 7px 8px;
  vertical-align: middle;
}
.carrier-grid th:first-child, .carrier-grid td:first-child { border-left: none; }
.carrier-grid th:nth-child(1), .carrier-grid td:nth-child(1) { width: 13%; }
.carrier-grid th:nth-child(2), .carrier-grid td:nth-child(2) { width: 16%; }
.carrier-grid th:nth-child(3), .carrier-grid td:nth-child(3) { width: 9%; }
.carrier-grid th:nth-child(4), .carrier-grid td:nth-child(4) { width: 8%; }
.carrier-grid th:nth-child(5), .carrier-grid td:nth-child(5) { width: 7%; }
.carrier-grid th:nth-child(6), .carrier-grid td:nth-child(6) { width: 8%; }
.carrier-grid th:nth-child(7), .carrier-grid td:nth-child(7) { width: 8%; }
.carrier-grid th:nth-child(8), .carrier-grid td:nth-child(8) { width: 9%; }
.carrier-grid th:nth-child(9), .carrier-grid td:nth-child(9) { width: 7%; }
.carrier-grid th:nth-child(10), .carrier-grid td:nth-child(10) { width: 7%; }
.carrier-grid th:nth-child(11), .carrier-grid td:nth-child(11) { width: 8%; }
.carrier-grid th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4f1ea;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 0 #d5d8de;
}
.carrier-grid th.num, .carrier-grid td.num { text-align: right; }
.carrier-grid tbody tr { cursor: pointer; }
.carrier-grid tbody tr:nth-child(odd) td { background: #fff; }
.carrier-grid tbody tr:nth-child(even) td { background: #e9ecf2; }
.carrier-grid tbody tr:hover td { background: #f8efd8; }
.carrier-grid th.sort-asc::after { content: " \2191"; }
.carrier-grid th.sort-desc::after { content: " \2193"; }
.entry { padding: 14px 16px 12px; }
.entry-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: end;
}
.entry-head {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 750;
}
.entry-grid > div.span-2 { grid-column: span 2; }
.entry-grid > div.span-3 { grid-column: span 3; }
.entry-grid > div.span-6 { grid-column: span 6; }
.entry-grid label { font-size: 11px; margin-bottom: 2px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.entry-grid input, .entry-grid select { padding: 9px 10px; font-size: 13px; border-radius: 10px; background: var(--field-bg); box-shadow: var(--field-shadow); }
.entry-actions { margin-top: 12px; }
.peek-row { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.peek-row input { flex: 1; min-width: 0; }
.peek-row .btn { padding: 5px 8px; }
@media print {
  .mast, .side, .no-print, .entry, .site-foot, .drawer, .modal-root { display: none !important; }
  .layout { display: block; }
  main { padding: 0; max-width: none; }
  .carrier-scroll { max-height: none; overflow: visible; border: 0; }
  .carrier-grid th { position: static; cursor: default; }
  .carrier-grid tbody tr { cursor: default; }
}
.qty { width: 72px; }
.gate { max-width: 480px; margin: 40px auto; }

/* ——— Landing ——— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: end;
  padding: 48px 22px 36px;
  color: #f7faf8;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(10, 28, 22, 0.92) 0%, rgba(18, 48, 40, 0.78) 42%, rgba(18, 48, 40, 0.45) 100%),
    repeating-linear-gradient(-18deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 14px),
    radial-gradient(circle at 78% 40%, rgba(196, 122, 18, 0.35), transparent 42%),
    linear-gradient(160deg, #0c1f19, #1a4a3a 55%, #0f2a22);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 40% 50% at 85% 70%, rgba(255, 255, 255, 0.06), transparent),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  animation: grain 18s linear infinite;
}
@keyframes grain {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 120px 80px; }
}
.hero-inner { max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0d9a8;
  margin-bottom: 14px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.5vw, 52px);
  max-width: 14ch;
  animation: rise 0.7s ease both;
}
.hero .lede { color: #c9dbd3; font-size: 17px; animation: rise 0.7s 0.08s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.fitment-panel {
  margin: 0;
  position: relative;
  z-index: 2;
  animation: rise 0.65s 0.12s ease both;
}
.vehicle-first {
  margin: 0;
  padding: 28px 22px 8px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(61, 140, 110, 0.18), transparent 55%),
    linear-gradient(180deg, #16352c 0%, #0f241e 70%, var(--bg) 100%);
}
.vehicle-first .fitment-panel {
  margin: 0;
  max-width: none;
  width: 100%;
}
.vehicle-first .fit-tabs button {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 247, 245, 0.22);
  color: #d7e4dd;
}
.vehicle-first .fit-tabs button.on {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.vehicle-first .field-group,
.vehicle-first .fitment-panel > .field-group {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
}
.vehicle-first .field-group-title { color: var(--ink); }
.ymm-picker {
  grid-template-columns: 1fr;
}
.ymm-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 14px;
  align-items: end;
  width: 100%;
}
.ymm-go-wrap {
  display: flex;
  align-items: end;
  min-height: 100%;
}
.ymm-go-wrap .fit-go {
  width: 100%;
  white-space: nowrap;
  flex-shrink: 0;
}
.ymm-engine-typed {
  grid-column: 1 / -1;
}
@media (min-width: 1100px) {
  .ymm-row {
    grid-template-columns: minmax(110px, 0.9fr) minmax(140px, 1.2fr) minmax(160px, 1.4fr) minmax(150px, 1.3fr) 96px;
    align-items: end;
  }
  .ymm-row .field-hint,
  .ymm-row .field-assist {
    display: none;
  }
  .ymm-row .field-label {
    margin-bottom: 4px;
  }
  .ymm-go-wrap {
    padding-bottom: 0;
  }
  .ymm-go-wrap .fit-go {
    width: 96px;
    min-height: 44px;
  }
}
.fit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.fit-tabs button {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-soft);
}
.fit-tabs button.on {
  background: var(--pine);
  border-color: var(--pine);
  color: #f4f7f5;
}
.fit-go {
  align-self: end;
  min-height: 44px;
  padding-inline: 22px;
}

.section {
  padding: 36px 22px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-head p { margin: 4px 0 0; color: var(--muted); max-width: 48ch; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, #ffffff, #eef3f0);
  box-shadow: var(--shadow);
  min-height: 96px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--pine-glow);
}
.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #f4f7f5;
  background: linear-gradient(145deg, #2f6b55, #1a3d32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 4px 10px rgba(26, 61, 50, 0.18);
}
.cat-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}
.cat-icon--brake { background: linear-gradient(145deg, #8b3a3a, #5c2222); }
.cat-icon--battery { background: linear-gradient(145deg, #3a6b8b, #1e4058); }
.cat-icon--oil { background: linear-gradient(145deg, #8b7a3a, #5c4e1e); }
.cat-icon--engine { background: linear-gradient(145deg, #4a5568, #2d3748); }
.cat-icon--cool { background: linear-gradient(145deg, #2b6cb0, #1a365d); }
.cat-icon--air { background: linear-gradient(145deg, #38a169, #276749); }
.cat-icon--light { background: linear-gradient(145deg, #d69e2e, #975a16); }
.cat-icon--suspension { background: linear-gradient(145deg, #718096, #4a5568); }
.cat-icon--tire { background: linear-gradient(145deg, #2d3748, #1a202c); }
.cat-icon--wiper { background: linear-gradient(145deg, #319795, #234e52); }
.cat-icon--hvac { background: linear-gradient(145deg, #4299e1, #2b6cb0); }
.cat-icon--ignition { background: linear-gradient(145deg, #ed8936, #c05621); }
.cat-icon--exhaust { background: linear-gradient(145deg, #a0aec0, #4a5568); }
.cat-icon--steer { background: linear-gradient(145deg, #667eea, #434190); }
.cat-icon--axle { background: linear-gradient(145deg, #5a67d8, #3c366b); }
.cat-icon--trans { background: linear-gradient(145deg, #9f7aea, #553c9a); }
.cat-icon--body { background: linear-gradient(145deg, #48bb78, #276749); }
.cat-icon--tools { background: linear-gradient(145deg, #ed64a6, #97266d); }
.cat-card strong {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.how-card {
  padding: 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.how-num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}

.promo-band {
  margin: 8px 22px 0;
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(110deg, #1a4035 0%, #245647 55%, #3a2a12 100%);
  color: #f4f7f5;
  box-shadow: var(--shadow-lift);
}
.promo-band .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 650;
}
.promo-actions { display: flex; flex-direction: column; gap: 8px; }

.reviews-band {
  background:
    linear-gradient(180deg, rgba(22, 53, 44, 0.04), transparent),
    var(--paper);
}
.review-stats {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.review-stats .score {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 800;
  color: var(--pine);
}
.review-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.review-card {
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  min-height: 160px;
}
.review-card .who-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.brand-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brand-chip {
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 750;
  font-family: var(--display);
  letter-spacing: 0;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}

.doordash-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
}

.chat-log {
  max-height: 280px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
}
.bubble.agent { background: #e7efeb; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.customer { background: var(--amber-soft); align-self: flex-end; border-bottom-right-radius: 4px; }

.vehicle-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vehicle-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 650;
  font-size: 13px;
}
.vehicle-chip.on { border-color: var(--pine); background: #e4efe9; color: var(--pine); }

.site-foot {
  margin-top: 24px;
  padding: 28px 22px;
  background: #0f241e;
  color: #c9dbd3;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: space-between;
  align-items: center;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.foot-brand strong { color: #fff; font-family: var(--display); }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.foot-links a, .foot-links button {
  color: #c9dbd3;
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  text-decoration: none;
}
.foot-links a:hover, .foot-links button:hover { color: #fff; }

.perm-matrix {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.perm-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f7f5;
  border: 1px solid var(--line);
  font-size: 13px;
}
.perm-row strong { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pine); }

@media (max-width: 1000px) {
  .how-grid { grid-template-columns: 1fr; }
  .promo-band { grid-template-columns: 1fr; }
  .shop, .layout { grid-template-columns: 1fr; }
  .cart { position: static; }
  .mast-links .linkish:nth-child(n+3) { display: none; }
}
@media (max-width: 700px) {
  .mast-top { flex-wrap: wrap; }
  .loc-btn { width: 100%; }
  .mode-nav { margin-left: 0; }
  .hero { display: none !important; }
  .vehicle-first { padding-top: 16px; }
}
