:root {
  --canvas: #0b1824;
  --surface: #152637;
  --surface-2: #102334;
  --surface-3: #1c3447;
  --ink: #f4f8fc;
  --soft: #b9cbd9;
  --quiet: #8ea5b6;
  --line: #3b5368;
  --line-strong: #507086;
  --accent: #78c8c3;
  --accent-deep: #0b2938;
  --accent-soft: #28515b;
  --teal-light: #bdece8;
  --amber: #f3cd81;
  --amber-soft: #3a2c16;
  --green: #8fd4af;
  --green-soft: #17382d;
  --red: #f3a6a0;
  --red-soft: #3e242b;
  --header-start: #185b83;
  --header-end: #12354e;
  --shadow: 0 22px 60px rgba(0, 0, 0, .24);
  --radius: 16px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  --canvas: #f4f8fc;
  --surface: #ffffff;
  --surface-2: #e7eff5;
  --surface-3: #eef4f8;
  --ink: #20394d;
  --soft: #526477;
  --quiet: #6e8291;
  --line: #dbe4ea;
  --line-strong: #aec5d6;
  --accent: #166a65;
  --accent-deep: #ffffff;
  --accent-soft: #d6efed;
  --teal-light: #12354e;
  --amber: #a86505;
  --amber-soft: #fff3d6;
  --green: #237a4b;
  --green-soft: #e7f5ec;
  --red: #b42318;
  --red-soft: #fdedea;
  --header-start: #e0eef7;
  --header-end: #d6efed;
  --shadow: 0 18px 48px rgba(33, 68, 91, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible, label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.symbol-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }

.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px; background: linear-gradient(165deg, #153d5a, #0e2539 70%); border-right: 1px solid #2b4c63; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 25px; color: #edf6fc; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: #0b2938; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: #fff; }
.avatar img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: #fff; }
html[data-brand="pms"] .brand-mark { padding: 0; background: #fff; }
html[data-brand="pms"] .pilot-badge { border-color: var(--accent); }
.brand strong { display: block; font-size: 18px; letter-spacing: -.35px; }
.brand small { display: block; margin-top: 3px; color: #b0cddd; font-size: 9px; font-weight: 800; letter-spacing: 1.9px; }
.side-nav { display: grid; gap: 7px; }
.nav-button { width: 100%; min-height: 64px; padding: 8px 12px; border: 0; border-radius: 11px; background: transparent; color: #c5d7e4; display: flex; align-items: center; gap: 12px; text-align: left; font-weight: 650; }
.nav-button:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-button.is-active { background: var(--accent); color: #0b2938; }
.nav-copy { min-width: 0; display: grid; gap: 3px; }
.nav-copy strong { font-size: 14px; }
.nav-copy small { color: currentColor; font-size: 10px; font-weight: 550; opacity: .78; }
.nav-button em { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 20px; background: rgba(255,255,255,.16); font-size: 11px; font-style: normal; text-align: center; }
.nav-button.is-active em { background: rgba(11,41,56,.14); }
.sidebar-note { margin-top: auto; padding: 14px 12px; border: 1px solid #315775; border-radius: 12px; background: #0b263b; color: #d8e7f1; display: flex; align-items: center; gap: 10px; }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 13px; }
.sidebar-note small { margin-top: 2px; color: #a9c6d9; font-size: 11px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(143,212,175,.12); }

.workspace { min-width: 0; }
.topbar { min-height: 78px; padding: 13px clamp(18px, 3vw, 40px); background: linear-gradient(110deg, var(--header-start), var(--header-end)); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar h1 { margin: 2px 0 0; color: var(--ink); font-size: 23px; letter-spacing: -.5px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: 1.8px; }
html[data-theme="light"] .topbar .eyebrow { color: #166a65; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.pms-app-switcher { position: fixed; top: calc(86px + env(safe-area-inset-top)); right: 18px; z-index: 80; }
.pms-app-switcher[hidden] { display: none; }
.pms-app-switcher summary { min-height: 42px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-3); color: var(--ink); display: inline-flex; align-items: center; float: right; font-size: 12px; font-weight: 850; cursor: pointer; list-style: none; box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.pms-app-switcher summary::-webkit-details-marker { display: none; }
.pms-app-switcher summary::after { content: "▾"; margin-left: 8px; color: var(--accent); }
.pms-app-switcher[open] summary { border-color: var(--accent); }
.pms-app-switcher nav { position: absolute; top: calc(100% + 8px); right: 0; width: 220px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 4px; }
.pms-app-switcher a, .pms-app-switcher span { min-height: 42px; padding: 0 12px; border-radius: 8px; color: var(--ink); display: flex; align-items: center; text-decoration: none; font-size: 13px; font-weight: 750; }
.pms-app-switcher a:hover, .pms-app-switcher a:focus-visible { background: var(--accent-soft); color: var(--teal-light); }
.pms-app-switcher span { background: var(--accent); color: #0b2938; }
.pilot-badge { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface-3); color: var(--teal-light); font-size: 11px; font-weight: 750; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-3); color: var(--ink); display: grid; place-items: center; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: #0b2938; font-size: 12px; font-weight: 850; }

.view { display: none; padding: clamp(20px, 3vw, 40px); animation: reveal .22s ease-out; }
.view.is-active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }
.search-hero { max-width: 1180px; margin: 0 auto 24px; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(circle at 85% 5%, rgba(120,200,195,.16), transparent 30%), linear-gradient(135deg, var(--surface), var(--surface-2)); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); align-items: end; gap: 34px; box-shadow: var(--shadow); overflow: hidden; }
.section-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-light); font-size: 12px; font-weight: 750; }
.section-kicker svg { width: 17px; }
.search-hero h2 { max-width: 720px; margin: 16px 0; font-size: clamp(38px, 6vw, 68px); line-height: .98; letter-spacing: -3px; }
.search-hero h2 span { color: var(--accent); }
.search-hero p { max-width: 700px; margin: 0; color: var(--soft); font-size: 17px; line-height: 1.65; }
.simple-hero { max-width: 920px; grid-template-columns: 1fr; padding-block: 30px; }
.simple-hero h2 { margin: 12px 0 9px; font-size: clamp(36px, 6vw, 58px); line-height: 1.02; }
.simple-search-card { max-width: 920px; }
.hero-metrics { display: grid; grid-template-columns: 1fr; gap: 1px; border: 1px solid var(--line); border-radius: 14px; background: var(--line); overflow: hidden; }
.hero-metrics div { padding: 17px 20px; background: var(--surface-2); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hero-metrics strong { color: var(--amber); font-size: 25px; }
.hero-metrics span { color: var(--soft); font-size: 12px; }

.request-card, .table-card { max-width: 1180px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.card-heading { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-heading > div { display: flex; align-items: center; gap: 15px; }
.card-heading h3 { margin: 0; font-size: 19px; }
.card-heading p { margin: 4px 0 0; color: var(--soft); font-size: 13px; }
.step-number { color: var(--amber); font: 800 13px ui-monospace, monospace; }
.secure-note { padding: 5px 9px; border-radius: 7px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 750; }
.easy-step { padding: 26px 24px; border-bottom: 1px solid var(--line); }
.easy-step-heading { display: flex; align-items: center; gap: 14px; }
.easy-step-heading > span { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #0b2938; display: grid; place-items: center; flex: 0 0 auto; font-size: 19px; font-weight: 900; }
.easy-step-heading h4 { margin: 0; font-size: 21px; }
.easy-step-heading p { margin: 4px 0 0; color: var(--soft); font-size: 13px; }
.form-grid { padding: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.easy-step .form-grid { padding: 20px 0 0; }
.simple-grid { grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr); }
.single-input-grid { grid-template-columns: 1fr; }
.easy-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.location-fields { max-width: 580px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.optional-fields { max-width: 580px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 7px; min-width: 0; }
.field-wide { grid-column: auto; }
.field > span { color: var(--soft); font-size: 12px; font-weight: 700; }
.field input, .field select { width: 100%; min-height: 54px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface-2); color: var(--ink); font-size: 16px; }
.quick-start .field input { min-height: 64px; font-size: 19px; }
.field input::placeholder { color: var(--quiet); }
.input-with-icon { position: relative; }
.input-with-icon svg { position: absolute; left: 13px; top: 14px; width: 19px; color: var(--quiet); pointer-events: none; }
.input-with-icon input { padding-left: 42px; }
.upload-field { position: relative; grid-row: span 2; min-height: 122px; padding: 15px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: 11px; overflow: hidden; }
.upload-field input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-field span strong, .upload-field span small { display: block; }
.upload-field span small { max-width: 130px; margin-top: 4px; color: var(--quiet); font-size: 11px; line-height: 1.35; }
.upload-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
#photo-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; pointer-events: none; }
.field-help { color: var(--quiet); font-size: 12px; line-height: 1.4; }
.field-help.is-error { color: var(--red); font-weight: 750; }
.quick-examples { margin-top: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quick-examples > span { margin-right: 2px; color: var(--soft); font-size: 12px; font-weight: 700; }
.quick-examples button { min-height: 40px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 12px; font-weight: 700; }
.quick-examples button:hover { border-color: var(--accent); background: var(--accent-soft); }
.simple-search-card > .quick-examples { margin: 0; padding: 17px 24px; border-bottom: 1px solid var(--line); }
.location-actions { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.location-actions button { min-height: 50px; }
.location-actions > span { color: var(--quiet); font-size: 12px; }
.location-actions > span.is-ready { color: var(--green); font-weight: 750; }
.location-actions > span.is-error { color: var(--red); font-weight: 750; }
.more-options { max-width: 620px; margin-top: 8px; }
.more-options summary { width: fit-content; min-height: 42px; padding: 11px 13px; border-radius: 10px; color: var(--teal-light); cursor: pointer; font-size: 13px; font-weight: 750; }
.more-options summary:hover { background: var(--surface-2); }
.more-options summary small { color: var(--quiet); font-weight: 500; }
.simple-more { max-width: none; margin: 0; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.simple-more summary { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; }
.simple-more[open] { padding-bottom: 24px; }
.privacy-notice { padding: 16px 24px; border-bottom: 1px solid var(--line); }
.privacy-notice summary { cursor: pointer; color: var(--teal-light); font-size: 13px; font-weight: 750; }
.privacy-notice p { max-width: 780px; margin: 12px 0 2px; color: var(--soft); font-size: 12px; line-height: 1.65; }
.form-footer { padding: 18px 24px; border-top: 1px solid var(--line); background: var(--surface-2); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.form-footer p { margin: 0; color: var(--soft); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.form-footer p svg { width: 17px; color: var(--green); }
.primary-button, .secondary-button { min-height: 46px; padding: 0 17px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; text-decoration: none; }
.primary-button { border: 1px solid var(--accent); background: var(--accent); color: #0b2938; }
.primary-button:hover { filter: brightness(1.08); }
.secondary-button { border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); }
.secondary-button:hover { border-color: var(--accent); }
.primary-button.compact { min-height: 42px; padding: 0 14px; font-size: 13px; }
.full { width: 100%; }
.find-button { min-width: 220px; min-height: 56px; font-size: 17px; }
.simple-footer { border-top: 0; }
.simple-footer .find-button { width: 100%; min-height: 66px; font-size: 20px; }
.nav-button:disabled, .mobile-nav button:disabled { opacity: .45; cursor: not-allowed; }

.search-progress { max-width: 1180px; margin: 22px auto 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.search-progress[hidden] { display: none; }
.progress-orbit { width: 54px; height: 54px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; display: grid; place-items: center; animation: spin 1s linear infinite; }
.progress-orbit svg { color: var(--accent); animation: reverse-spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes reverse-spin { to { transform: rotate(-360deg); } }
.search-progress h3 { margin: 4px 0; font-size: 17px; }
.search-progress > div > p:last-child { margin: 0; color: var(--soft); font-size: 12px; }
.search-progress ol { display: flex; gap: 8px; padding: 0; margin: 0; list-style: none; }
.search-progress li { padding: 7px 10px; border-radius: 8px; background: var(--surface-2); color: var(--quiet); font-size: 11px; }
.search-progress li.is-running { background: var(--accent-soft); color: var(--teal-light); }

.dashboard-intro, .results-header { max-width: 1180px; margin: 0 auto 22px; display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.view-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.dashboard-intro h2, .results-header h2 { margin: 6px 0 7px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -1.7px; }
.dashboard-intro p:last-child, .results-header p:last-child { margin: 0; color: var(--soft); }
.stat-grid { max-width: 1180px; margin: 0 auto 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-grid article { min-height: 126px; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, var(--surface), var(--surface-2)); display: grid; align-content: space-between; }
.stat-grid span, .stat-grid small { color: var(--soft); font-size: 12px; }
.stat-grid strong { color: var(--accent); font-size: 34px; letter-spacing: -1px; }
.table-toolbar { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.table-toolbar h3 { margin: 0; }
.table-toolbar p { margin: 4px 0 0; color: var(--quiet); font-size: 12px; }
.filter { display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 12px; }
.filter select { min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); }
.request-list { display: grid; }
.request-row { width: 100%; padding: 17px 22px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; grid-template-columns: 1fr 1.6fr .8fr .8fr auto; align-items: center; gap: 15px; text-align: left; }
.request-row:last-child { border-bottom: 0; }
.request-row:hover { background: var(--surface-2); }
.request-row strong, .request-row small { display: block; }
.request-row small { margin-top: 4px; color: var(--quiet); font-size: 11px; }
.request-row > span { color: var(--soft); font-size: 12px; }
.request-row svg { color: var(--accent); }
.status { width: fit-content; padding: 5px 8px; border-radius: 7px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-confirmed { background: var(--green-soft); color: var(--green); }
.status-listed { background: var(--accent-soft); color: var(--teal-light); }
.status-review { background: var(--amber-soft); color: var(--amber); }

.trust-banner { max-width: 1180px; margin: 0 auto 18px; padding: 17px 19px; border: 1px solid #3f716e; border-radius: 13px; background: var(--accent-soft); display: flex; align-items: center; gap: 14px; }
.trust-banner > svg { width: 25px; height: 25px; color: var(--accent); flex-shrink: 0; }
.trust-banner div { flex: 1; }
.trust-banner strong, .trust-banner span { display: block; }
.trust-banner span { margin-top: 4px; color: var(--soft); font-size: 12px; }
.trust-banner .confidence { margin: 0; padding: 6px 10px; border-radius: 20px; background: var(--surface); color: var(--teal-light); font-size: 11px; font-weight: 800; }
.result-layout { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.result-stack { display: grid; gap: 12px; }
.empty-results { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--soft); }
.result-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.result-card.is-best { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent), 0 12px 35px rgba(0,0,0,.14); }
.result-card header { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.result-card h3 { width: 100%; margin: 8px 0 2px; font-size: 20px; }
.part-label { color: var(--soft); font-size: 12px; }
.best-badge { padding: 4px 7px; border-radius: 6px; background: var(--accent); color: #0b2938; font-size: 9px; font-weight: 900; letter-spacing: .6px; }
.result-meta { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--soft); font-size: 12px; }
.result-meta span { display: flex; align-items: center; gap: 6px; }
.result-meta svg { width: 15px; }
.result-price { min-width: 150px; display: grid; align-content: space-between; justify-items: end; }
.result-price strong { color: var(--amber); font-size: 24px; }
.result-price small { color: var(--quiet); font-size: 10px; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.result-actions button, .result-actions a { min-height: 39px; padding: 0 11px; border-radius: 8px; font-size: 12px; }
.result-message-card { min-height: 150px; align-items: center; }
.result-message-card .result-actions { align-self: center; margin: 0; }
.stock-panel { grid-column: 1 / -1; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); display: grid; gap: 9px; }
.stock-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.stock-panel > header > div { display: grid; gap: 3px; }
.stock-panel > header strong { font-size: 13px; }
.stock-panel > header small, .stock-note { color: var(--quiet); font-size: 9px; }
.stock-kicker { color: var(--teal-light); font-size: 9px; font-weight: 850; letter-spacing: 1px; }
.stock-offer { padding-top: 9px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.stock-offer > div { display: grid; gap: 3px; }
.stock-offer span { color: var(--soft); font-size: 11px; }
.stock-offer b { color: var(--amber); font-size: 13px; text-align: right; }
.stock-offer a { color: var(--teal-light); font-size: 10px; font-weight: 750; text-decoration: none; }
.stock-panel.is-loading, .stock-panel.is-error { min-height: 64px; display: flex; align-items: center; justify-content: center; }
.stock-panel.is-error { color: var(--soft); flex-direction: column; gap: 4px; }
.stock-panel.is-error span { font-size: 11px; }
.stock-note { margin: 2px 0 0; }
.price-loader { width: 44px; height: 44px; justify-self: end; border: 4px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: price-spin .8s linear infinite; }
@keyframes price-spin { to { transform: rotate(360deg); } }
.fitment-panel { position: sticky; top: 96px; padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, var(--surface), var(--surface-2)); }
.fitment-panel h3 { margin: 9px 0; font-size: 22px; letter-spacing: -.5px; }
.fitment-panel > p:not(.eyebrow) { color: var(--soft); font-size: 13px; line-height: 1.6; }
.fitment-panel dl { margin: 18px 0; }
.fitment-panel dl div { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.fitment-panel dt { color: var(--quiet); font-size: 11px; }
.fitment-panel dd { margin: 0; text-align: right; font-size: 12px; font-weight: 700; }

.price-board { max-width: 1180px; margin: 22px auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.price-board-heading { padding: 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.price-board-heading h3 { margin: 6px 0; font-size: 24px; }
.price-board-heading p:last-child { max-width: 720px; margin: 0; color: var(--soft); font-size: 13px; line-height: 1.55; }
.best-price { min-width: 150px; padding: 13px 16px; border: 1px solid #3f716e; border-radius: 12px; background: var(--accent-soft); text-align: right; }
.best-price span, .best-price strong, .best-price small { display: block; }
.best-price span { color: var(--soft); font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.best-price strong { margin: 3px 0; color: var(--teal-light); font-size: 25px; }
.best-price small { color: var(--quiet); font-size: 10px; }
.price-form { padding: 18px 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(140px, 1fr) 115px 115px minmax(145px, 1fr) minmax(180px, 1.2fr) auto; align-items: end; gap: 12px; }
.price-form .field { gap: 7px; }
.price-form .field > span { font-size: 11px; }
.price-form .primary-button { min-height: 47px; padding-inline: 16px; white-space: nowrap; }
.money-input { min-height: 47px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-2); display: flex; align-items: center; }
.money-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(120,200,195,.1); }
.money-input > span { padding-left: 12px; color: var(--soft); }
.money-input input { min-width: 0; border: 0; background: transparent; box-shadow: none; }
.money-input input:focus { box-shadow: none; }
.price-list { display: grid; }
.empty-prices { margin: 0; padding: 24px 22px; color: var(--soft); text-align: center; }
.price-row { padding: 17px 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(150px, 1fr) minmax(330px, 1.7fr) auto; align-items: center; gap: 18px; }
.price-row.is-lowest { background: linear-gradient(90deg, var(--accent-soft), transparent 58%); box-shadow: inset 4px 0 0 var(--accent); }
.price-row > div:first-child strong, .price-row > div:first-child small { display: block; }
.price-row > div:first-child small { margin-top: 4px; color: var(--quiet); font-size: 10px; }
.price-row dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.price-row dl div { display: grid; gap: 3px; }
.price-row dt { color: var(--quiet); font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.price-row dd { margin: 0; font-size: 14px; font-weight: 750; }
.price-row-actions { display: flex; align-items: center; gap: 10px; }
.price-row-actions .secondary-button, .price-row-actions .primary-button { width: auto; min-height: 38px; padding-inline: 12px; font-size: 11px; }
.text-button { border: 0; background: transparent; color: var(--quiet); font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.text-button:hover { color: var(--ink); }
.price-safety { margin: 0; padding: 13px 22px; background: var(--surface-2); color: var(--quiet); font-size: 10px; line-height: 1.5; }

.shopping-stats { max-width: 1180px; margin: 0 auto 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shopping-stats article { min-height: 118px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, var(--surface), var(--surface-2)); display: grid; align-content: space-between; }
.shopping-stats span, .shopping-stats small { color: var(--soft); font-size: 11px; }
.shopping-stats strong { color: var(--accent); font-size: 29px; letter-spacing: -1px; }
.shopping-list { max-width: 1180px; margin: 0 auto; display: grid; gap: 14px; }
.shopping-empty { padding: clamp(30px, 7vw, 70px); border: 1px dashed var(--line-strong); border-radius: 17px; background: var(--surface); display: grid; justify-items: center; text-align: center; }
.shopping-empty > svg { width: 45px; height: 45px; color: var(--accent); }
.shopping-empty h3 { margin: 15px 0 5px; font-size: 24px; }
.shopping-empty p { margin: 0 0 18px; color: var(--soft); }
.shopping-store-group { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.shopping-store-heading { padding: 19px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--surface), var(--accent-soft)); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.shopping-store-heading h3 { margin: 5px 0 3px; font-size: 22px; }
.shopping-store-heading span { color: var(--soft); font-size: 12px; }
.shopping-store-heading > div:last-child { display: grid; grid-template-columns: auto auto; align-items: center; justify-items: end; gap: 2px 12px; }
.shopping-store-heading > div:last-child strong { color: var(--teal-light); font-size: 21px; }
.shopping-store-heading > div:last-child small { color: var(--quiet); font-size: 10px; }
.shopping-store-heading > div:last-child a { grid-column: 1 / -1; min-height: 36px; margin-top: 5px; padding-inline: 13px; font-size: 11px; }
.shopping-store-items { display: grid; }
.shopping-item { padding: 17px 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(190px, 1.6fr) 70px minmax(150px, .8fr) auto; align-items: center; gap: 16px; }
.shopping-item:last-child { border-bottom: 0; }
.shopping-item.is-bought { opacity: .58; background: var(--surface-2); }
.shopping-item.is-bought .shopping-item-copy h4 { text-decoration: line-through; }
.shopping-check { display: grid; justify-items: center; gap: 5px; color: var(--soft); font-size: 9px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.shopping-check input { width: 22px; height: 22px; accent-color: var(--accent); }
.shopping-check input:disabled { cursor: not-allowed; opacity: .45; }
.shopping-item-copy h4 { margin: 0; font-size: 16px; }
.shopping-item-copy p { margin: 4px 0 0; color: var(--soft); font-size: 11px; }
.shopping-item-copy small { display: block; margin-top: 5px; color: var(--quiet); font-size: 10px; }
.fit-check { width: fit-content; margin-top: 10px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--soft); display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 750; cursor: pointer; }
.fit-check:has(input:checked) { border-color: #3f716e; background: var(--green-soft); color: var(--green); }
.fit-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.shopping-quantity { display: grid; gap: 4px; color: var(--quiet); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.shopping-quantity input { min-height: 39px; padding: 7px; text-align: center; }
.shopping-item-price { display: grid; justify-items: end; gap: 4px; }
.shopping-item-price strong { color: var(--amber); font-size: 18px; }
.shopping-item-price small { color: var(--quiet); font-size: 9px; text-align: right; }
.shopping-item-actions { display: flex; align-items: center; gap: 9px; }
.shopping-item-actions .secondary-button { min-height: 37px; padding-inline: 12px; font-size: 11px; }
.shopping-item > .stock-panel { grid-column: 1 / -1; }
.shopping-privacy { max-width: 1180px; margin: 14px auto 0; color: var(--quiet); font-size: 10px; line-height: 1.5; text-align: center; }

.supplier-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.supplier-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.supplier-card.featured { grid-column: 1 / -1; border-color: #3f716e; background: linear-gradient(135deg, var(--surface), var(--accent-soft)); }
.supplier-top { display: flex; align-items: center; gap: 12px; }
.supplier-top > div { flex: 1; min-width: 0; }
.supplier-top h3 { margin: 0; font-size: 16px; }
.supplier-top p { margin: 4px 0 0; color: var(--quiet); font-size: 11px; }
.store-mark { width: 44px; height: 44px; border-radius: 11px; background: #1e7b42; color: white; display: grid; place-items: center; font-weight: 850; }
.store-mark.blue { background: #185b83; }
.store-mark.gold { background: #9a6517; }
.supplier-answer { margin: 20px 0; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr; align-items: center; gap: 7px 12px; }
.supplier-answer span { color: var(--quiet); font-size: 10px; text-transform: uppercase; letter-spacing: .8px; }
.supplier-answer strong { font-size: 13px; }
.supplier-actions { display: flex; justify-content: flex-end; gap: 8px; }
.supplier-copy { min-height: 44px; color: var(--soft); font-size: 13px; line-height: 1.6; }
.store-finder-card { max-width: 920px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); border: 1px solid #3f716e; border-radius: 18px; background: radial-gradient(circle at 90% 0, rgba(120,200,195,.16), transparent 36%), linear-gradient(145deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.store-finder-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--accent); color: #0b2938; display: grid; place-items: center; }
.store-finder-icon svg { width: 29px; height: 29px; }
.store-finder-card h3 { margin: 7px 0 9px; font-size: clamp(25px, 4vw, 38px); letter-spacing: -1px; }
.store-finder-card p:last-child { max-width: 680px; margin: 0; color: var(--soft); line-height: 1.65; }
.store-finder-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; }
.nearby-stores-panel { max-width: 920px; margin: 18px auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.shopping-nearby-stores { max-width: 1180px; margin-top: 22px; }
.nearby-stores-heading { padding: 20px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--surface), var(--accent-soft)); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nearby-stores-heading h3 { margin: 5px 0 4px; font-size: 22px; }
.nearby-stores-heading p:last-child { margin: 0; color: var(--soft); font-size: 12px; line-height: 1.5; }
.nearby-store-list { display: grid; }
.nearby-store-card { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nearby-store-card:last-child { border-bottom: 0; }
.nearby-store-copy { min-width: 0; display: flex; align-items: flex-start; gap: 13px; }
.nearby-store-copy h4 { margin: 0; font-size: 16px; }
.nearby-store-copy p { margin: 5px 0; color: var(--soft); font-size: 12px; }
.nearby-store-copy small { display: block; margin-top: 3px; color: var(--quiet); font-size: 10px; }
.store-number { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--teal-light); display: grid; place-items: center; }
.store-number svg { width: 18px; height: 18px; }
.nearby-store-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; }
.nearby-store-actions .primary-button, .nearby-store-actions .secondary-button { min-height: 39px; padding-inline: 14px; font-size: 11px; }
.nearby-store-message { min-height: 112px; padding: 24px; color: var(--soft); display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.nearby-store-message strong, .nearby-store-message span { display: block; }

.mobile-nav { display: none; }
.request-dialog { position: relative; width: min(520px, calc(100% - 24px)); max-height: 88vh; padding: 28px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.request-dialog::backdrop { background: rgba(4, 11, 17, .78); backdrop-filter: blur(3px); }
.request-dialog h2 { margin: 8px 0; font-size: 28px; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; }
.dialog-subtitle { color: var(--soft); }
.dialog-status { margin: 15px 0; }
.about-dialog { width: min(680px, calc(100% - 24px)); }
.about-sections { margin: 22px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.about-sections section { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.about-sections h3 { margin: 0 0 6px; font-size: 14px; }
.about-sections p { margin: 0; color: var(--soft); font-size: 12px; line-height: 1.55; }
.site-footer { max-width: 1180px; margin: 0 auto; padding: 20px clamp(20px, 3vw, 40px) 30px; border-top: 1px solid var(--line); color: var(--quiet); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer div { display: grid; gap: 4px; }
.site-footer strong { color: var(--soft); font-size: 12px; }
.site-footer span { font-size: 10px; }
.site-footer .text-button { color: var(--teal-light); white-space: nowrap; }
.timeline { margin: 22px 0; }
.timeline > div { position: relative; min-height: 62px; display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.timeline > div:not(:last-child)::before { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline > div > span { position: relative; z-index: 1; width: 16px; height: 16px; border: 3px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.timeline .done > span { border-color: var(--green); background: var(--green); }
.timeline .current > span { border-color: var(--amber); box-shadow: 0 0 0 5px rgba(243,205,129,.12); }
.timeline p { margin: -2px 0 0; }
.timeline strong, .timeline small { display: block; }
.timeline small { margin-top: 4px; color: var(--quiet); font-size: 11px; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: 360px; padding: 13px 16px; border: 1px solid #3f716e; border-radius: 11px; background: #17382d; color: #dff5e9; box-shadow: var(--shadow); font-size: 13px; font-weight: 650; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding: 20px 12px; }
  .brand { padding-inline: 4px; }
  .nav-button { padding-inline: 10px; }
  .search-hero { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: repeat(3, 1fr); }
  .hero-metrics div { display: grid; justify-items: start; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .simple-grid { grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); }
  .easy-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-fields, .optional-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-field { grid-row: span 2; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .result-layout { grid-template-columns: 1fr; }
  .fitment-panel { position: static; }
  .price-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-form .primary-button { width: auto; justify-self: start; }
  .price-row { grid-template-columns: minmax(120px, .8fr) minmax(300px, 1.7fr); }
  .price-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .shopping-item { grid-template-columns: auto minmax(170px, 1fr) 70px minmax(150px, .8fr); }
  .shopping-item-actions { grid-column: 2 / -1; justify-content: flex-end; }
  .supplier-answer { grid-template-columns: auto 1fr; }
  .request-row { grid-template-columns: 1fr 1.2fr .8fr auto; }
  .request-row > span:nth-of-type(2) { display: none; }
}

@media (max-width: 700px) {
  .app-shell { display: block; padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .topbar { min-height: 66px; padding: 10px 14px; }
  .topbar h1 { font-size: 19px; }
  .topbar .eyebrow, .pilot-badge { display: none; }
  .pms-app-switcher { top: calc(74px + env(safe-area-inset-top)); right: 10px; }
  .pms-app-switcher summary { min-height: 40px; padding-inline: 11px; }
  .pms-app-switcher nav { width: min(220px, calc(100vw - 20px)); }
  .view { padding: 16px 12px 24px; }
  .search-hero { margin-bottom: 14px; padding: 24px 18px; border-radius: 15px; }
  .search-hero h2 { margin: 13px 0; font-size: 40px; letter-spacing: -2px; }
  .simple-hero { padding: 20px 17px; }
  .simple-hero h2 { margin: 8px 0; font-size: 34px; }
  .search-hero p { font-size: 14px; }
  .hero-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-metrics div { padding: 11px; }
  .hero-metrics strong { font-size: 20px; }
  .hero-metrics span { font-size: 9px; }
  .card-heading { padding: 17px; align-items: start; }
  .secure-note { display: none; }
  .easy-step { padding: 22px 17px; }
  .easy-step-heading { align-items: flex-start; }
  .easy-step-heading > span { width: 38px; height: 38px; font-size: 17px; }
  .easy-step-heading h4 { font-size: 19px; }
  .form-grid { padding: 17px; grid-template-columns: 1fr; gap: 14px; }
  .easy-step .form-grid, .simple-grid, .easy-fields, .location-fields, .optional-fields { grid-template-columns: 1fr; }
  .upload-field { grid-row: auto; min-height: 96px; }
  .quick-examples { align-items: stretch; }
  .quick-examples > span { width: 100%; }
  .quick-examples button { min-height: 46px; }
  .simple-search-card > .quick-examples, .simple-more, .privacy-notice { padding-inline: 17px; }
  .form-footer { padding: 15px 17px; display: grid; }
  .primary-button { width: 100%; }
  .search-progress { padding: 17px; grid-template-columns: auto 1fr; }
  .search-progress ol { grid-column: 1 / -1; }
  .dashboard-intro, .results-header { align-items: start; flex-direction: column; gap: 14px; }
  .view-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .view-actions .primary-button, .view-actions .secondary-button { width: 100%; }
  .dashboard-intro .primary-button { width: auto; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-grid article { min-height: 108px; padding: 14px; }
  .stat-grid strong { font-size: 27px; }
  .table-toolbar { align-items: start; flex-direction: column; }
  .request-row { padding: 15px; grid-template-columns: 1fr auto; }
  .request-row > *:nth-child(2), .request-row > *:nth-child(3), .request-row > *:nth-child(4) { display: none; }
  .trust-banner { align-items: start; flex-wrap: wrap; }
  .trust-banner .confidence { margin-left: 39px; }
  .result-card { grid-template-columns: 1fr; gap: 12px; }
  .result-price { justify-items: start; }
  .result-actions { width: 100%; }
  .result-actions > * { flex: 1; }
  .stock-panel > header, .stock-offer { align-items: flex-start; flex-direction: column; }
  .stock-offer > div:last-child { display: flex; align-items: center; gap: 12px; }
  .price-board-heading { align-items: stretch; flex-direction: column; }
  .best-price { text-align: left; }
  .price-form { grid-template-columns: 1fr; }
  .price-form .primary-button { width: 100%; }
  .price-row { grid-template-columns: 1fr; gap: 12px; }
  .price-row dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-row-actions { grid-column: auto; justify-content: flex-start; }
  .shopping-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .shopping-stats article { min-height: 100px; padding: 14px; }
  .shopping-stats strong { font-size: 24px; }
  .shopping-store-heading { align-items: flex-start; flex-direction: column; }
  .shopping-store-heading > div:last-child { width: 100%; justify-items: start; }
  .shopping-store-heading > div:last-child a { width: 100%; }
  .shopping-item { grid-template-columns: auto 1fr; gap: 12px; }
  .shopping-quantity { grid-column: 2; width: 82px; }
  .shopping-item-price { grid-column: 2; justify-items: start; }
  .shopping-item-price small { text-align: left; }
  .shopping-item-actions { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
  .supplier-grid { grid-template-columns: 1fr; }
  .supplier-card.featured { grid-column: auto; }
  .supplier-answer { grid-template-columns: auto 1fr; }
  .supplier-actions { display: grid; }
  .store-finder-card { grid-template-columns: 1fr; }
  .store-finder-actions { grid-column: auto; display: grid; }
  .nearby-stores-heading, .nearby-store-card { align-items: stretch; flex-direction: column; }
  .nearby-stores-heading .secondary-button { width: 100%; }
  .nearby-store-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nearby-store-actions .primary-button, .nearby-store-actions .secondary-button { width: 100%; }
  .about-sections { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .mobile-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #132536; display: grid; grid-template-columns: repeat(4, 1fr); }
  .mobile-nav button { min-height: 56px; border: 0; border-radius: 13px; background: transparent; color: #bccfdd; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; }
  .mobile-nav button.is-active { background: #24515e; color: #8edbd2; font-weight: 750; }
  .mobile-nav svg { width: 20px; height: 20px; }
  .toast { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
