/* Test-bench store. Self-contained: brand tokens are copied from style.css so the app's layout rules never leak in. */
:root {
  color-scheme: dark;
  --bg: #0b0f14; --bg-2: #101620; --bg-3: #161e2a; --line: #22303f; --text: #e6edf3; --muted: #8b9bb0;
  --accent: #64d2ff; --accent-2: #ff9d9d; --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s-card: #111925; --s-card-2: #151f2c; --s-line-2: #2c3a4c; --s-focus: #9ee2ff; --s-placeholder: #8494ab;
  --tier-starter: #86efac; --tier-serious: #93c5fd; --tier-pro: #c4b5fd; --tier-service: #f9a8d4;
  --s-rail: 336px; --header-h: 58px; --tabs-h: 60px; --stack: calc(var(--header-h) + var(--tabs-h));
}
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); }
* { box-sizing: border-box; }
html { height: auto; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: var(--sans); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--s-focus); outline-offset: 2px; }
/* Anything that can hold visually hidden text must be a containing block, or the absolutely positioned
   .sr-only span inside a horizontally scrolled card is measured against the page and widens the document. */
.s-btn, .s-chip, .s-tab, .s-kit, .s-prod, .s-group-toggle, .s-cart-row, .s-title { position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #05131a; padding: 8px 12px; border-radius: 8px; font-weight: 600; z-index: 50; }
.skip:focus { left: 12px; }
.logo { width: 26px; height: 26px; border-radius: 7px; background: #0b0f14; border: 1px solid var(--line); position: relative; overflow: hidden; flex: none; }
.logo::before { content: ""; position: absolute; left: 3px; right: 3px; top: 12px; height: 3px; background: var(--accent-2); border-radius: 2px; }
.logo::after { content: ""; position: absolute; left: 8px; top: 3px; width: 8px; height: 8px; border: 2px solid var(--accent); border-radius: 50%; }
.sibling { color: var(--accent); text-decoration: none; font-size: 12px; font-weight: 600; padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }
.sibling:hover { border-color: var(--accent); }

/* ---------- top bar ---------- */
.s-top { position: sticky; top: 0; z-index: 30; background: rgba(11,15,20,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.s-top-in { max-width: 1320px; margin: 0 auto; padding: 10px 24px; display: grid; grid-template-columns: auto minmax(200px, 520px) 1fr auto; gap: 16px; align-items: center; }
.s-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); border-radius: 8px; }
.s-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.s-brand .name { font-weight: 700; font-size: 15px; }
.s-brand-sub { color: var(--muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.s-search { position: relative; display: flex; align-items: center; }
.s-search-ico { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.s-search input { width: 100%; background: var(--bg-3); border: 1px solid var(--s-line-2); border-radius: 10px; padding: 9px 40px 9px 36px; font-size: 14px; color: var(--text); outline: none; transition: border-color .12s, background .12s; min-height: 38px; }
.s-search input::placeholder { color: var(--s-placeholder); }
.s-search input:focus { border-color: var(--accent); background: #0e1520; }
.s-search input:focus-visible { outline: 2px solid var(--s-focus); outline-offset: 1px; }
.s-search input::-webkit-search-cancel-button { display: none; }
.s-kbd { position: absolute; right: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; pointer-events: none; }
.s-search input:focus ~ .s-kbd, .s-search.has-q .s-kbd { display: none; }
.s-search-clear { position: absolute; right: 4px; width: 32px; height: 32px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.s-search-clear:hover { background: var(--bg-2); color: var(--text); }
.s-top-links { display: flex; gap: 8px; justify-content: flex-end; }
.s-cart-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--accent); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 38px; transition: background .12s, border-color .12s, color .12s; }
.s-cart-btn:hover { border-color: var(--accent); }
.s-cart-btn.full { background: var(--accent); color: #05131a; border-color: var(--accent); }
.s-cart-btn.full:hover { filter: brightness(1.08); }
.s-cart-btn svg { width: 18px; height: 18px; }
.s-cart-count { background: #05131a; color: var(--accent); border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.s-cart-count.bump { animation: bump .28s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- page frame ---------- */
.s-main { max-width: 1320px; margin: 0 auto; padding: 0 24px 40px; }
.s-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.s-sec-head h2, .s-section h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 4px; }
.s-sec-head .muted, .s-section > .s-sub { margin: 0; line-height: 1.5; max-width: 70ch; }

/* ---------- hero ---------- */
.s-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
.s-eyebrow { color: var(--accent); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.s-hero h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; max-width: 18ch; }
.s-hero-copy { min-width: 0; overflow-wrap: anywhere; }
.s-lede { font-size: 16px; line-height: 1.6; color: #c9d4e0; margin: 0 0 18px; max-width: 58ch; }
.s-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
.s-trust li { display: flex; align-items: flex-start; gap: 8px; }
.s-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; margin-top: 7px; }
.s-routes { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.s-route { width: 100%; text-decoration: none; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; text-align: left; background: var(--s-card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--text); cursor: pointer; font: inherit; transition: border-color .12s, background .12s, transform .12s; }
.s-route:hover { border-color: var(--s-line-2); background: var(--s-card-2); transform: translateY(-1px); }
.s-route.on { border-color: var(--accent); background: #0f1d27; }
.s-route .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #0b1119; border: 1px solid var(--line); }
.s-route .ico svg { width: 24px; height: 24px; }
.s-route .t { display: block; font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.s-route .d { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.s-route .m { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; text-align: right; line-height: 1.5; }
.s-route .m b { display: block; color: var(--text); font-weight: 600; }

/* ---------- kits ---------- */
.s-kits { padding: 22px 0 8px; }
.s-kit-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.s-kit { display: flex; flex-direction: column; gap: 8px; background: var(--s-card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; transition: border-color .12s; }
.s-kit:hover { border-color: var(--s-line-2); }
.s-kit.loaded { border-color: rgba(74,222,128,.5); }
.s-kit .k-eyebrow { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.s-kit h3 { font-weight: 700; font-size: 16px; line-height: 1.25; margin: 0; }
.s-kit .k-note { color: var(--muted); font-size: 13px; line-height: 1.45; flex: 1; margin: 0; }
.s-kit .k-price { font-family: var(--mono); font-size: 14px; color: var(--text); min-height: 36px; }
.s-kit .k-eyebrow.in { color: var(--ok); }
.s-kit .k-eyebrow .ke { display: inline-flex; align-items: center; gap: 5px; }
.s-kit .k-price .plus { color: var(--muted); font-weight: 500; }
.s-kit .k-price small { color: var(--muted); display: block; font-size: 11px; margin-top: 2px; font-family: var(--sans); }
.s-kit details { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 4px; }
.s-kit summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); list-style: none; display: flex; align-items: center; gap: 6px; padding: 6px 0; border-radius: 6px; min-height: 44px; }
.s-kit summary .n { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 1px 7px; font-weight: 500; }
.s-kit summary::-webkit-details-marker { display: none; }
.s-kit summary::before { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .12s; margin-left: 2px; }
.s-kit details[open] summary::before { transform: rotate(45deg); }
.s-kit .k-list { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.s-kit .k-list label { display: grid; grid-template-columns: 18px 1fr; gap: 2px 8px; align-items: center; font-size: 12.5px; line-height: 1.3; padding: 8px 4px; border-radius: 6px; cursor: pointer; }
.s-kit .k-list .kp { grid-column: 2; }
.s-kit .k-list label:hover { background: var(--bg-2); }
.s-kit .k-list input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.s-kit .k-list .kp { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.s-kit .k-list .kp.in { color: var(--ok); }
.s-kit .k-acts { display: flex; gap: 8px; align-items: center; }
.s-kit .k-btn { flex: 1; }
.s-kit .k-btn.loaded { border-color: rgba(248,113,113,.4); color: var(--text); background: transparent; }
.s-kit .k-btn.loaded:hover { border-color: var(--bad); color: var(--bad); }
.s-callout { margin: 32px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent-2); border-radius: 12px; background: var(--s-card); display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: baseline; }
.s-callout strong { font-size: 13px; font-weight: 700; white-space: nowrap; }
.s-callout p { margin: 0; color: #c9d4e0; font-size: 13.5px; line-height: 1.5; }

/* ---------- catalog + rail ---------- */
.s-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--s-rail); gap: 32px; align-items: start; padding-top: 24px; }
.s-catalog { min-width: 0; scroll-margin-top: calc(var(--header-h) + 8px); outline: none; order: 1; }
.s-cart { order: 2; }
@media (min-width: 1101px) and (max-width: 1200px) { :root { --s-rail: 300px; } }
.s-tabs-wrap { position: sticky; top: calc(var(--header-h) - 1px); z-index: 20; background: var(--bg); padding: 10px 0; margin: 0 0 8px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.s-tabs-wrap > * { min-width: 0; }
.s-tabs { display: flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.s-tab { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .12s, color .12s; white-space: nowrap; text-decoration: none; min-height: 38px; }
.s-tab:hover { color: var(--text); }
.s-tab[aria-current] { background: var(--bg-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--s-line-2); }
.s-tab .n { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 1px 7px; }
.s-results { display: flex; align-items: center; gap: 12px; font-size: 14px; min-height: 38px; }
.s-results b { font-weight: 700; }
.s-filters { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.s-chip { border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 11px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: border-color .12s, color .12s, background .12s; white-space: nowrap; min-height: 34px; }
.s-chip:hover { border-color: var(--s-line-2); color: var(--text); }
.s-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #0f1d27; }
.s-chip .sw { width: 8px; height: 8px; border-radius: 50%; }
.s-chip .n { font-family: var(--mono); font-size: 11px; opacity: .8; }

.s-section { padding: 22px 0 8px; }
.s-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.s-section > .s-sub { color: var(--muted); margin: 0 0 12px; }
.s-legend { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.s-legend b { font-weight: 600; color: var(--text); }
.s-jump { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.s-jump a { color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; min-height: 34px; display: inline-flex; align-items: center; }
.s-jump a:hover { color: var(--accent); border-color: var(--s-line-2); }
.s-group { margin: 22px 0 0; scroll-margin-top: calc(var(--stack) + 12px); }
.s-group-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; border-left: 3px solid var(--accent); padding-left: 12px; }
.s-group-head h3 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.s-group-toggle { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; padding: 4px 0; color: var(--text); cursor: pointer; text-align: left; border-radius: 6px; min-height: 36px; font: inherit; }
.s-group-toggle .chev { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .12s; margin: 0 6px 4px 2px; flex: none; }
.s-group-toggle[aria-expanded="false"] .chev { transform: rotate(-45deg); margin-bottom: 0; }
.s-group-head .cnt { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

/* product card */
.s-prod { display: flex; flex-direction: column; gap: 8px; background: var(--s-card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; position: relative; transition: border-color .12s, background .12s, box-shadow .12s; }
.s-prod:hover { border-color: var(--s-line-2); background: var(--s-card-2); }
.s-prod.in { border-color: rgba(74,222,128,.45); }
.s-prod-top { display: flex; align-items: flex-start; gap: 10px; }
.s-glyph { width: 40px; height: 40px; border-radius: 10px; background: rgba(139,155,176,.10); display: grid; place-items: center; flex: none; color: var(--muted); }
.s-glyph svg { width: 22px; height: 22px; }
.s-prod.tier-starter .s-glyph { color: var(--tier-starter); background: rgba(134,239,172,.10); } .s-prod.tier-serious .s-glyph { color: var(--tier-serious); background: rgba(147,197,253,.10); } .s-prod.tier-pro .s-glyph { color: var(--tier-pro); background: rgba(196,181,253,.10); } .s-prod.tier-service .s-glyph { color: var(--tier-service); background: rgba(249,168,212,.10); }
.s-vendor { font-size: 12.5px; color: var(--muted); font-weight: 600; flex: 1; min-width: 0; line-height: 1.3; padding-top: 2px; }
.s-dup { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.s-title { color: inherit; text-decoration: none; border-radius: 4px; }
.s-title:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.s-title .arr { color: var(--accent); font-weight: 500; font-size: 13px; margin-left: 4px; }
.s-title:hover .arr { color: var(--accent); }
.s-tier { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; flex: none; }
.s-tier.starter { color: var(--tier-starter); border-color: rgba(134,239,172,.35); }
.s-tier.serious { color: var(--tier-serious); border-color: rgba(147,197,253,.35); }
.s-tier.pro { color: var(--tier-pro); border-color: rgba(196,181,253,.35); }
.s-tier.service { color: var(--tier-service); border-color: rgba(249,168,212,.35); }
.s-prod h4 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; text-transform: none; color: var(--text); }
.s-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 3px 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.s-specs li:not(:last-child)::after { content: "·"; margin: 0 7px; opacity: .6; }
.s-why { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: #b9c6d6; }
.s-fill { flex: 1; }
.s-mention { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.s-prod-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.s-price { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.s-price .v { font-family: var(--mono); font-weight: 700; font-size: 19px; color: var(--text); letter-spacing: -.01em; overflow-wrap: anywhere; }
.s-price .v.long { font-size: 16px; }
.s-price .v.quote { color: var(--muted); font-weight: 500; }
.s-price .v.free { color: var(--ok); }
.s-price .q { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-btn { border: 1px solid var(--line); background: var(--bg-3); color: var(--text); font: inherit; font-weight: 600; font-size: 13px; padding: 8px 13px; border-radius: 9px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; min-height: 36px; transition: background .12s, border-color .12s, color .12s, transform .08s; }
.s-btn:hover { border-color: var(--s-line-2); background: #1b2531; }
.s-btn:active { transform: translateY(1px); }
.s-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.s-btn.primary { background: var(--accent); color: #05131a; border-color: var(--accent); }
.s-btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.s-btn.primary:disabled { background: transparent; color: var(--muted); border-color: var(--line); filter: none; }
.s-btn.ghost { background: transparent; }
.s-btn.add { min-width: 92px; border-color: rgba(100,210,255,.45); color: var(--accent); background: transparent; }
.s-btn.add:hover { background: #0f1d27; border-color: var(--accent); }
.s-btn.add[aria-pressed="true"] { background: #0f2a2a; border-color: var(--ok); color: var(--ok); }
svg.chk { width: 13px; height: 13px; vertical-align: -2px; flex: none; }

.s-empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; margin-top: 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.s-empty b { color: var(--text); }

/* ---------- list rail ---------- */
.s-cart { position: sticky; top: calc(var(--header-h) + 24px); background: var(--s-card); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h) - 48px); }
.s-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.s-cart-head h2 { font-size: 15px; font-weight: 700; margin: 0; }
.s-cart-close { display: none; border: 0; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; width: 40px; height: 40px; border-radius: 8px; margin: -8px -8px -8px 0; }
.s-cart-close:hover { background: var(--bg-3); color: var(--text); }
.s-cart-body { overflow: auto; padding: 8px 8px; flex: 1; min-height: 60px; scrollbar-width: thin; scrollbar-color: var(--s-line-2) transparent; position: relative; scroll-padding-bottom: 16px; }
.s-cart-body.more::after { content: ""; position: sticky; bottom: 0; display: block; height: 14px; margin-top: -14px; background: linear-gradient(to bottom, transparent, var(--s-card)); pointer-events: none; }
.s-cart-empty { color: var(--muted); font-size: 13px; padding: 18px 10px 14px; line-height: 1.5; margin: 0; }
.s-cart-sec { margin: 6px 0 10px; }
.s-cart-sec h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 6px 8px 4px; font-weight: 600; }
.s-cart-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 5px 4px 5px 8px; border-radius: 9px; }
.s-cart-row:hover { background: var(--bg-2); }
.s-cart-row .n { font-size: 13px; line-height: 1.3; min-width: 0; }
.s-cart-row .n .nn { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-cart-row .n small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.s-cart-row .p { font-family: var(--mono); font-size: 12px; color: var(--text); white-space: nowrap; }
.s-cart-row .p.quote { color: var(--muted); }
.s-cart-row .x { border: 0; background: transparent; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1; }
.s-cart-row .x:hover { color: var(--bad); background: rgba(248,113,113,.1); }
.s-cart-foot { border-top: 1px solid var(--line); padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.s-total { display: flex; flex-direction: column; gap: 2px; }
.s-total .lbl { color: var(--muted); font-size: 12px; }
.s-total .val { font-family: var(--mono); font-weight: 700; font-size: 17px; }
.s-total .mv { white-space: nowrap; }
.s-total .val .plus { color: var(--muted); font-size: 13px; font-weight: 500; }
.s-total-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.s-cart-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.s-cart-acts .primary { grid-column: 1 / -1; }

/* bottom bar (phone) + sheet */
.s-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(16,22,32,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; }
.s-bar-sum { display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; }
.s-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 35; }
.s-toast { position: fixed; right: max(24px, calc((100vw - 1320px) / 2 + 24px)); bottom: 24px; width: var(--s-rail); transform: translateY(8px); opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility 0s .15s; background: #1b2531; color: var(--text); border: 1px solid var(--s-line-2); border-radius: 12px; padding: 10px 14px; font-size: 13px; z-index: 34; display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }
.s-toast.show { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.s-toast-act { border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 4px; min-height: 32px; }
mark.s-hl { background: rgba(100,210,255,.22); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- footer ---------- */
.s-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.s-footer-in { max-width: 1320px; margin: 0 auto; padding: 22px 24px 32px; display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.s-footer p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; max-width: 78ch; }
.s-footer nav { display: flex; gap: 14px; }
.s-footer nav a { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600; }
.s-footer nav a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1279.98px) {
  .s-kit-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: thin; scrollbar-color: var(--s-line-2) transparent; }
  .s-kit { flex: 0 0 272px; scroll-snap-align: start; }
}
@media (max-width: 1100px) {
  .s-toast { right: 16px; left: 16px; bottom: 24px; width: auto; transform: translateY(12px); justify-content: space-between; }
  .s-body { grid-template-columns: minmax(0, 1fr); }
  .s-cart { position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 40; border-radius: 18px 18px 0 0; max-height: 82vh; transform: translateY(105%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; box-shadow: 0 -12px 40px rgba(0,0,0,.5); }
  .s-cart.open { transform: translateY(0); visibility: visible; transition-delay: 0s; }
  .s-cart-close { display: inline-grid; place-items: center; }
  .s-bar { display: flex; }
  body.has-list { padding-bottom: 76px; }
  body.has-list .s-toast { bottom: 88px; }
  .s-top-in { grid-template-columns: auto 1fr auto auto; }
}
@media (max-width: 900px) {
  .s-hero { grid-template-columns: 1fr; gap: 24px; padding: 30px 0 28px; }
  .s-hero h1 { max-width: none; }
  .s-top-links { display: none; }
  .s-top-in { grid-template-columns: auto 1fr auto; }
  .s-tabs-wrap { flex-wrap: wrap; }
  .s-callout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 56px; }
  body.scrolled:not(.has-tier) .s-filters { display: none; }
  .s-trust, .s-route .d, .s-legend { display: none; }
  .s-route .m { white-space: normal; }
  .s-kit { flex-basis: 250px; }
  .s-callout { padding: 12px 14px; }
  .s-main { padding: 0 16px 32px; }
  .s-top-in { padding: 9px 16px; gap: 10px; }
  .s-brand-sub { display: none; }
  .s-brand .name { font-size: 14px; }
  .s-search input { padding: 8px 30px 8px 32px; }
  .s-kbd { display: none; }
  .s-cart-label { display: none; }
  .s-cart-btn { padding: 10px 12px; min-height: 44px; }
  @media (max-width: 360px) { .s-brand-text { display: none; } .s-cart-row { grid-template-columns: 1fr auto; } .s-cart-row .p { grid-column: 1; white-space: normal; } .s-cart-row .x { grid-row: 1 / span 2; } }
  .s-hero h1 { font-size: 26px; }
  @media (max-width: 360px) { .s-hero h1 { font-size: 24px; } }
  .s-lede { font-size: 15px; }
  .s-route { grid-template-columns: 40px 1fr; }
  .s-route .m { grid-column: 2; text-align: left; }
  .s-kit-grid { grid-template-columns: 1fr; }
  .s-tabs-wrap { gap: 8px; }
  .s-tabs { width: 100%; }
  .s-tab { padding: 8px 8px; font-size: 13px; flex: 1 1 0; min-width: 0; justify-content: center; min-height: 40px; }
  .s-tab .n { display: none; }
  .s-filters { overflow-x: auto; width: 100%; padding: 2px 24px 4px 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .s-filters::-webkit-scrollbar { display: none; }
  .s-chip { min-height: 40px; padding: 8px 12px; }
  .s-jump a { min-height: 36px; }
  .s-grid { grid-template-columns: 1fr; }
  .s-btn { min-height: 42px; }
  .s-cart-close { width: 44px; height: 44px; }
  .s-cart-row .x { width: 40px; height: 40px; }
  .s-footer-in { padding: 20px 16px 28px; }
}
