*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 9999px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #0e0f12;
  --bg-mid: #12141a;
  --surface: #181b22;
  --elevated: #22262f;
  --border: rgba(255, 255, 255, 0.07);
  --border-soft: rgba(255, 255, 255, 0.09);
  --text: #f1f2f4;
  --muted: rgba(241, 242, 244, 0.52);
  --accent: #ffab00;
  --accent-dim: rgba(255, 171, 0, 0.16);
  --bar-bg: rgba(255, 255, 255, 0.09);
  --link-accent: #8ec5ff;
  --viewer-bg: #0a0b0e;
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] {
  --bg: #f3f4f0;
  --bg-mid: #eef0ea;
  --surface: #ffffff;
  --elevated: #f4f5f1;
  --border: rgba(26, 29, 22, 0.1);
  --border-soft: rgba(26, 29, 22, 0.08);
  --text: #1a1d16;
  --muted: rgba(26, 29, 22, 0.52);
  --accent: #e09200;
  --accent-dim: rgba(255, 171, 0, 0.18);
  --bar-bg: rgba(26, 29, 22, 0.08);
  --link-accent: #1a6fd4;
  --viewer-bg: #e8eae4;
  --shadow-md: 0 10px 40px rgba(26, 29, 22, 0.08);
}

html { background: var(--bg); scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-mid);
  padding:
    max(20px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(40px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  border-radius: var(--radius-pill);
}
.skip-link:focus { left: 16px; top: 16px; }

.wrap { max-width: 1100px; margin: 0 auto; }

.breadcrumb { margin-bottom: 20px; font-size: 0.8125rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  list-style: none;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: '›';
  margin-right: 4px;
  opacity: 0.55;
}
.breadcrumb a {
  color: var(--link-accent);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover { text-decoration: underline; }

.page-head { margin-bottom: 22px; }
.page-head__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 8px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.page-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  color: var(--accent);
}
.tag--muted { background: var(--elevated); color: var(--muted); border: 1px solid var(--border-soft); }
.tag--pegasus { background: rgba(142, 197, 255, 0.14); color: var(--link-accent); }
.tag--hsw {
  background: rgba(255, 120, 48, 0.18);
  color: #ff8a2a;
}
.tag--bennys {
  background: rgba(220, 60, 80, 0.16);
  color: #e8a040;
}
.panel--imani { border-color: rgba(120, 200, 255, 0.22); }
.panel--bennys { border-color: rgba(220, 60, 80, 0.22); }

/* Shared compact upgrade kit (Imani + HSW) */
.upgrade-kit-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.upgrade-kit {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--elevated);
  overflow: hidden;
}
.upgrade-kit--hsw { border-color: rgba(255, 138, 42, 0.18); }
.upgrade-kit--imani { border-color: rgba(120, 200, 255, 0.18); }

.upgrade-kit__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  user-select: none;
}
.upgrade-kit__summary::-webkit-details-marker { display: none; }
.upgrade-kit__summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.upgrade-kit[open] > .upgrade-kit__summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.upgrade-kit__title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}
.upgrade-kit__count {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border-soft);
  margin-right: 6px;
}
.upgrade-kit__lede {
  margin: 0;
  padding: 0 14px 10px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  border-bottom: 1px solid var(--border-soft);
}

.upgrade-kit__hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 138, 42, 0.35);
  background: linear-gradient(145deg, rgba(255, 120, 48, 0.1), var(--elevated));
}
.upgrade-kit__hero--imani {
  border-color: rgba(120, 200, 255, 0.35);
  background: linear-gradient(145deg, rgba(120, 200, 255, 0.1), var(--elevated));
}
.upgrade-kit__eyebrow {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.upgrade-kit__choice {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(120, 200, 255, 0.32);
  background: rgba(120, 200, 255, 0.04);
}
.upgrade-kit__choice-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.upgrade-kit__pill {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 171, 0, 0.16);
  color: var(--accent);
  border: 1px solid rgba(255, 171, 0, 0.28);
}

.upgrade-kit__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.upgrade-kit__list--choice {
  gap: 8px;
}
@media (min-width: 640px) {
  .upgrade-kit__list--choice {
    grid-template-columns: 1fr 1fr;
  }
}

.upgrade-kit__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
}
.upgrade-kit__list--choice .upgrade-kit__row {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--surface);
}
.upgrade-kit__row--highlight {
  background: rgba(120, 200, 255, 0.05);
}
.upgrade-kit--hsw .upgrade-kit__row--highlight {
  background: rgba(255, 120, 48, 0.06);
}

.upgrade-kit__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}
.upgrade-kit__icon--hsw {
  color: #ff8a2a;
  background: rgba(255, 120, 48, 0.12);
  border: 1px solid rgba(255, 138, 42, 0.2);
}
.upgrade-kit__icon--imani {
  color: #78c8ff;
  background: rgba(120, 200, 255, 0.12);
  border: 1px solid rgba(120, 200, 255, 0.2);
}
.upgrade-kit__svg { display: block; }

.upgrade-kit__main { min-width: 0; }
.upgrade-kit__name {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}
.upgrade-kit__desc {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}
.upgrade-kit__cost {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 171, 0, 0.14);
  color: var(--accent);
  border: 1px solid rgba(255, 171, 0, 0.2);
  white-space: nowrap;
}
.upgrade-kit__cost--muted {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--border-soft);
  font-weight: 600;
}

/* Tabbed upgrade explorer (summary chips → panels) */
.upgrade-explorer {
  margin-top: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--elevated);
  overflow: hidden;
}
.upgrade-explorer--hsw { border-color: rgba(255, 138, 42, 0.2); }
.upgrade-explorer--imani { border-color: rgba(120, 200, 255, 0.2); }

.upgrade-explorer__header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--surface), var(--elevated));
}
.upgrade-explorer--hsw .upgrade-explorer__header {
  background: linear-gradient(180deg, rgba(255, 120, 48, 0.06), var(--elevated));
}
.upgrade-explorer--imani .upgrade-explorer__header {
  background: linear-gradient(180deg, rgba(120, 200, 255, 0.06), var(--elevated));
}
.upgrade-explorer__tier {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.upgrade-explorer--hsw .upgrade-explorer__tier { color: #ff8a2a; }
.upgrade-explorer--imani .upgrade-explorer__tier { color: #78c8ff; }
.upgrade-explorer__hint {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.upgrade-explorer__nav {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--border-soft);
}
.upgrade-explorer__tab {
  appearance: none;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 108px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.upgrade-explorer__tab:hover {
  border-color: var(--border);
}
.upgrade-explorer--hsw .upgrade-explorer__tab.is-active {
  border-color: rgba(255, 138, 42, 0.5);
  background: rgba(255, 120, 48, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 42, 0.15);
}
.upgrade-explorer--imani .upgrade-explorer__tab.is-active {
  border-color: rgba(120, 200, 255, 0.45);
  background: rgba(120, 200, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(120, 200, 255, 0.12);
}
.upgrade-explorer__tab-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.upgrade-explorer__tab.is-active .upgrade-explorer__tab-label {
  color: var(--text);
}
.upgrade-explorer__tab-value {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}
.upgrade-explorer--hsw .upgrade-explorer__tab.is-active .upgrade-explorer__tab-value { color: #ff8a2a; }
.upgrade-explorer--imani .upgrade-explorer__tab.is-active .upgrade-explorer__tab-value { color: #78c8ff; }

.upgrade-explorer__panels {
  padding: 0;
}
.upgrade-explorer__panel {
  padding: 14px 16px 16px;
}
.upgrade-explorer__panel[hidden] {
  display: none !important;
}
.upgrade-explorer__panel-lede {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.upgrade-explorer__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 14px;
  margin: 0;
}
.upgrade-explorer__fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.upgrade-explorer__fact dt {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.upgrade-explorer__fact dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.upgrade-explorer__panel .upgrade-kit__list {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.upgrade-explorer__panel .upgrade-kit__row:first-child {
  border-top: none;
}

.imani-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 8px;
}
.imani-head h2 { margin: 0; }
.imani-head__tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(120, 200, 255, 0.14);
  color: #78c8ff;
  border: 1px solid rgba(120, 200, 255, 0.28);
}

.imani-summary {
  display: grid;
  gap: 14px;
  margin: 16px 0 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(120, 200, 255, 0.2);
  background: linear-gradient(145deg, rgba(120, 200, 255, 0.08), var(--elevated));
}
@media (min-width: 640px) {
  .imani-summary {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}
.imani-summary__badge--full {
  border-color: rgba(120, 200, 255, 0.35);
  background: linear-gradient(145deg, rgba(120, 200, 255, 0.14), rgba(120, 200, 255, 0.04));
}
.imani-summary__badge--standard {
  border-color: rgba(120, 200, 255, 0.22);
}
.imani-summary__badge--jammer {
  border-color: rgba(120, 200, 255, 0.18);
  background: linear-gradient(145deg, rgba(120, 200, 255, 0.06), var(--elevated));
}
.imani-summary__tier {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #78c8ff;
  margin-bottom: 4px;
}
.imani-summary__hint {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.imani-summary__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px 14px;
  margin: 0;
}
.imani-summary__fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.imani-summary__fact dt {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.imani-summary__fact dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.imani-choice__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .imani-choice__grid { grid-template-columns: 1fr 1fr; }
}

.imani-foot {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  line-height: 1.55;
}
.tag--imani {
  background: rgba(120, 200, 255, 0.16);
  color: #78c8ff;
}
.panel--hsw {
  border-color: rgba(255, 138, 42, 0.28);
  padding: 0;
  overflow: hidden;
}
.panel--hsw.hsw-panel {
  background: var(--surface);
}

.hsw-panel__title {
  margin: 0;
  padding: 20px 22px 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff8a2a;
}

.hsw-panel__shell {
  margin: 14px 22px 22px;
  border: 1px solid rgba(255, 138, 42, 0.22);
  border-radius: 16px;
  background: var(--elevated);
  overflow: hidden;
}

.hsw-panel__tabs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255, 120, 48, 0.06), var(--elevated));
}
@media (min-width: 640px) {
  .hsw-panel__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: visible;
  }
}
.hsw-panel__tab {
  appearance: none;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 108px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.hsw-panel__tab:hover {
  border-color: var(--border);
}
.hsw-panel__tab.is-active {
  border-color: rgba(255, 138, 42, 0.5);
  background: rgba(255, 120, 48, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 42, 0.15);
}
.hsw-panel__tab-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hsw-panel__tab.is-active .hsw-panel__tab-label {
  color: var(--text);
}
.hsw-panel__tab-value {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}
.hsw-panel__tab.is-active .hsw-panel__tab-value {
  color: #ff8a2a;
}

.hsw-panel__content {
  padding: 16px;
}
.hsw-tabpanel[hidden] { display: none !important; }

.hsw-versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px 12px;
  align-items: stretch;
  margin-bottom: 16px;
}
@media (max-width: 559px) {
  .hsw-versus {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hsw-versus__bridge {
    flex-direction: row !important;
    padding: 8px 0 !important;
  }
  .hsw-versus__arrow { transform: rotate(90deg); }
}
.hsw-versus__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.hsw-versus__card:hover { border-color: rgba(255, 138, 42, 0.4); }
.hsw-versus__card--hsw {
  border-color: rgba(255, 138, 42, 0.35);
  background: linear-gradient(160deg, rgba(255, 120, 48, 0.1), var(--elevated));
}
.hsw-versus__card.is-current {
  box-shadow: inset 0 0 0 2px rgba(255, 138, 42, 0.35);
}
.hsw-versus__role {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hsw-versus__card--hsw .hsw-versus__role { color: #ff8a2a; }
.hsw-versus__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hsw-versus__id { font-size: 0.74rem; color: var(--muted); }
.hsw-versus__bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 4px;
}
.hsw-versus__arrow {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff8a2a;
}
.hsw-versus__bridge-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hsw-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 560px) {
  .hsw-overview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hsw-fact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--elevated);
}
.hsw-fact-card__label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hsw-fact-card__value {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.hsw-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
@media (min-width: 720px) {
  .hsw-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hsw-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: var(--elevated);
}
.hsw-step__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 120, 48, 0.16);
  color: #ff8a2a;
  font-size: 0.78rem;
  font-weight: 800;
}
.hsw-step__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.hsw-step__body strong {
  font-size: 0.82rem;
  font-weight: 700;
}
.hsw-step__body span {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.hsw-convert-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 138, 42, 0.4);
  background: linear-gradient(145deg, rgba(255, 120, 48, 0.12), var(--elevated));
  margin-bottom: 12px;
}
@media (max-width: 559px) {
  .hsw-convert-card { grid-template-columns: auto 1fr; }
  .hsw-convert-card__price { grid-column: 1 / -1; justify-self: start; }
}
.hsw-convert-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 120, 48, 0.16);
  border: 1px solid rgba(255, 138, 42, 0.28);
  color: #ff8a2a;
}
.hsw-convert-card__eyebrow {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.hsw-convert-card__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hsw-convert-card__desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.hsw-convert-card__price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.hsw-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.hsw-tile-grid--featured {
  margin-bottom: 14px;
}
.hsw-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: var(--elevated);
}
.hsw-tile--featured {
  border-color: rgba(255, 138, 42, 0.4);
  background: linear-gradient(160deg, rgba(255, 120, 48, 0.08), var(--elevated));
}
.hsw-tile__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 120, 48, 0.12);
  border: 1px solid rgba(255, 138, 42, 0.22);
  color: #ff8a2a;
}
.hsw-ui__svg { display: block; }
.hsw-tile__name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}
.hsw-tile__desc {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}
.hsw-tile__stages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.hsw-tile__stages li {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 120, 48, 0.12);
  color: #ff8a2a;
  border: 1px solid rgba(255, 138, 42, 0.2);
}

/* Benny's Original Motor Works panel */
.panel--bennys.bennys-panel {
  margin-top: 0;
}
.bennys-panel__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #e8a040;
}
.bennys-panel__shell {
  margin-top: 12px;
  border: 1px solid rgba(220, 60, 80, 0.2);
  border-radius: 16px;
  background: var(--elevated);
  overflow: hidden;
}
.bennys-panel__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(220, 60, 80, 0.06);
}
.bennys-panel__tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.bennys-panel__tab:hover { color: var(--text); }
.bennys-panel__tab.is-active {
  border-color: rgba(220, 60, 80, 0.35);
  background: rgba(220, 60, 80, 0.12);
  color: var(--text);
}
.bennys-panel__tab-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bennys-panel__tab.is-active .bennys-panel__tab-label { color: #e8a040; }
.bennys-panel__tab-value {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}
.bennys-panel__tab.is-active .bennys-panel__tab-value { color: var(--text); }
.bennys-panel__content { padding: 16px; }
.bennys-tabpanel[hidden] { display: none !important; }
.bennys-panel__lede {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.bennys-versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px 12px;
  align-items: stretch;
  margin-bottom: 12px;
}
.bennys-versus + .bennys-versus { margin-top: 4px; }
@media (max-width: 559px) {
  .bennys-versus {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bennys-versus__bridge {
    flex-direction: row !important;
    padding: 8px 0 !important;
  }
  .bennys-versus__arrow { transform: rotate(90deg); }
}
.bennys-versus__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.bennys-versus__card:hover { border-color: rgba(220, 60, 80, 0.4); }
.bennys-versus__card--custom {
  border-color: rgba(220, 60, 80, 0.35);
  background: linear-gradient(160deg, rgba(220, 60, 80, 0.1), var(--elevated));
}
.bennys-versus__card.is-current {
  box-shadow: inset 0 0 0 2px rgba(232, 160, 64, 0.35);
}
.bennys-versus__role {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bennys-versus__card--custom .bennys-versus__role { color: #e8a040; }
.bennys-versus__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bennys-versus__id { font-size: 0.74rem; color: var(--muted); }
.bennys-versus__cost {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2px;
}
.bennys-versus__bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 4px;
}
.bennys-versus__arrow {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e8a040;
}
.bennys-versus__bridge-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.bennys-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 560px) {
  .bennys-overview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.bennys-fact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--elevated);
}
.bennys-fact-card__label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bennys-fact-card__value {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.bennys-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
@media (min-width: 720px) {
  .bennys-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bennys-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.bennys-step__num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(220, 60, 80, 0.14);
  color: #e8a040;
  font-size: 0.78rem;
  font-weight: 800;
}
.bennys-step__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  line-height: 1.4;
}
.bennys-step__body strong { font-weight: 700; }
.bennys-step__body span { color: var(--muted); font-size: 0.76rem; }

.bennys-convert-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
a.bennys-convert-option:hover { border-color: rgba(220, 60, 80, 0.35); }
.bennys-convert-option__name {
  font-weight: 700;
  font-size: 0.9rem;
  grid-column: 1;
}
.bennys-convert-option__id {
  font-size: 0.72rem;
  color: var(--muted);
  grid-column: 1;
}
.bennys-convert-option__cost {
  font-weight: 800;
  color: var(--accent);
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.bennys-convert-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(220, 60, 80, 0.35);
  background: linear-gradient(145deg, rgba(220, 60, 80, 0.1), var(--elevated));
}
@media (max-width: 559px) {
  .bennys-convert-card { grid-template-columns: 1fr; }
  .bennys-convert-card__price { justify-self: start; }
}
.bennys-convert-card__eyebrow {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.bennys-convert-card__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.bennys-convert-card__desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.bennys-convert-card__price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.bennys-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.bennys-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: var(--elevated);
}
.bennys-tile__name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.bennys-tile__desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .hero-grid:not(.hero-grid--with-stats) {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    align-items: stretch;
  }
  .hero-grid.hero-grid--with-stats {
    grid-template-columns: minmax(0, 1fr) var(--hero-stats-width, 392px);
    align-items: stretch;
  }
  html.is-layout-dev .hero-grid.hero-grid--with-stats {
    grid-template-columns: minmax(0, 1fr) 10px var(--hero-stats-width, 392px);
  }
}
.hero-grid--image-only {
  max-width: 640px;
}
@media (min-width: 768px) {
  .hero-grid--image-only { grid-template-columns: 1fr; }
}
.hero-grid--image-only .hero-img { max-height: 360px; }

.hero-aside {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  width: 100%;
  min-height: 100%;
}

.hero-resize-handle {
  display: none;
  position: relative;
  width: 10px;
  margin: 0 -2px;
  cursor: col-resize;
  touch-action: none;
  z-index: 2;
  border-radius: 6px;
  background: transparent;
  transition: background 0.15s ease;
}
.hero-resize-handle::after {
  content: '';
  position: absolute;
  inset: 12px 3px;
  border-radius: 4px;
  background: var(--border);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.hero-resize-handle:hover::after,
.hero-resize-handle:focus-visible::after,
body.is-hero-resizing .hero-resize-handle::after {
  background: rgba(255, 171, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 171, 0, 0.35);
}
html.is-layout-dev .hero-grid.hero-grid--with-stats .hero-resize-handle {
  display: block;
}

.hero-layout-readout {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 171, 0, 0.35);
  background: rgba(18, 18, 20, 0.94);
  box-shadow: var(--shadow-md);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text);
}
.hero-layout-readout.is-visible { display: block; }
.hero-layout-readout__title {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.hero-layout-readout__values {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.hero-layout-readout__hint {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 8px;
}
.hero-layout-readout__copy {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.hero-layout-readout__copy:hover {
  border-color: rgba(255, 171, 0, 0.45);
}

body.is-hero-resizing {
  cursor: col-resize;
  user-select: none;
}
body.is-hero-resizing * {
  cursor: col-resize !important;
}

@media (max-width: 767px) {
  html.is-layout-dev .hero-grid.hero-grid--with-stats .hero-resize-handle {
    display: none;
  }
  .hero-grid.hero-grid--with-stats {
    grid-template-columns: 1fr;
  }
}
.hero-stats {
  flex: 1 1 auto;
  width: 100%;
  margin-bottom: 0;
  padding: 14px 12px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.hero-grid.hero-grid--with-stats .hero-media {
  min-width: 0;
  width: 100%;
  align-self: stretch;
  min-height: 100%;
  height: 100%;
}
.hero-stats h2 {
  font-size: 0.68rem;
  margin-bottom: 8px;
}
.hero-stats .panel-lede--compact {
  font-size: 0.68rem;
  line-height: 1.4;
  margin-bottom: 10px;
}
.hero-stats .stats-bars {
  gap: 12px;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .hero-stats {
    padding: 18px 20px;
  }
  .hero-stats h2 {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }
  .hero-stats .panel-lede--compact {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }
  .hero-stats .stat-row {
    display: grid;
    grid-template-columns: 108px 1fr 36px;
    grid-template-rows: auto;
    gap: 10px;
    align-items: center;
    font-size: 0.76rem;
    line-height: 1.3;
  }
  .hero-stats .stat-row > span:first-child,
  .hero-stats .stat-row > span:last-child,
  .hero-stats .stat-row .bar-track {
    grid-column: auto;
    grid-row: auto;
  }
  .hero-stats .stat-row .bar-track {
    height: 8px;
  }
  .hero-stats .fact-grid--hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    font-size: 0.8rem;
  }
  .hero-stats .fact-grid--hero dt {
    font-size: 0.68rem;
  }
  .hero-stats .fact-grid--hero dd {
    font-size: 0.82rem;
  }
}
@media (max-width: 767px) {
  .hero-stats .stat-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 6px;
    align-items: center;
    font-size: 0.65rem;
    line-height: 1.25;
  }
  .hero-stats .stat-row > span:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .hero-stats .stat-row > span:last-child {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.68rem;
  }
  .hero-stats .stat-row .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 6px;
  }
}
@media (min-width: 768px) {
  .hero-grid.hero-grid--with-stats .hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    height: 100%;
  }
  .hero-grid.hero-grid--with-stats .hero-img {
    width: 100%;
    max-height: min(400px, 48vh);
    min-height: 0;
    padding: 16px 18px;
    object-fit: contain;
  }
}

.hero-media, .hero-viewer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  padding: 14px;
  background: transparent;
}

.viewer-shell {
  background: var(--viewer-bg);
  min-height: min(52vh, 480px);
  position: relative;
}
.viewer-shell--3d { min-height: min(52vh, 480px); }
.vehicle-glb-root { width: 100%; height: min(52vh, 480px); display: block; }
.vehicle-glb-canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.viewer-placeholder {
  display: grid;
  place-items: center;
  min-height: min(42vh, 360px);
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.viewer-hint {
  padding: 10px 14px 14px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.price-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.price-hero--list {
  border-color: rgba(255, 171, 0, 0.35);
  background: linear-gradient(145deg, var(--accent-dim), var(--surface));
}
.price-hero__label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.price-hero--list .price-hero__label { color: var(--accent); }
.price-hero__amount {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.price-hero--list .price-hero__amount { color: var(--accent); }
.price-hero__amount--muted { color: var(--muted); font-size: 1.1rem; }
.price-hero__note { font-size: 0.78rem; color: var(--muted); }
.price-hero__sell {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}
.price-hero__sell-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.price-hero__sell-old {
  text-decoration: line-through;
  opacity: 0.65;
}
.price-hero__sell-cap {
  font-weight: 700;
  color: var(--text);
}
.sell-cap-hint {
  font-size: 0.72rem;
  color: var(--muted);
}
.sell-cap-hint summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  list-style: none;
  width: fit-content;
}
.sell-cap-hint summary::-webkit-details-marker { display: none; }
.sell-cap-hint summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s ease;
}
.sell-cap-hint[open] summary::before { transform: rotate(90deg); }
.sell-cap-hint p {
  margin: 6px 0 0;
  line-height: 1.45;
  max-width: 42rem;
}
.sell-cap-hint a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.perf-card {
  background: var(--elevated);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 16px;
}
.perf-card--muted { opacity: 0.85; }
.perf-card__label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.perf-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.perf-card__rank {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.vehicle-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 800px) {
  .content-grid { grid-template-columns: 1.2fr 0.8fr; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.panel h2 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.panel-lede {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.55;
}

.stats-bars { display: grid; gap: 10px; margin-bottom: 18px; }
.stat-row {
  display: grid;
  grid-template-columns: 88px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.stat-row span:last-child {
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.bar-track {
  height: 8px;
  background: var(--bar-bg);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 171, 0, 0.4), var(--accent));
  border-radius: var(--radius-pill);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px 18px;
  font-size: 0.85rem;
}
.fact-grid dt { color: var(--muted); font-size: 0.72rem; margin-bottom: 2px; }
.fact-grid dd { font-weight: 600; }

.tool-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
@media (min-width: 480px) {
  .tool-actions { flex-direction: row; flex-wrap: wrap; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { border-color: var(--accent); background: var(--accent-dim); }
.btn--primary {
  background: var(--accent-dim);
  border-color: rgba(255, 171, 0, 0.4);
  color: var(--accent);
}
.btn--ghost { background: transparent; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.variant-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  touch-action: manipulation;
}
.variant-pill:hover { border-color: var(--accent); background: var(--accent-dim); }
.variant-pill.is-current {
  border-color: rgba(255, 171, 0, 0.45);
  background: var(--accent-dim);
  color: var(--accent);
  pointer-events: none;
}
.variant-pill__id {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.similar-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--elevated);
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
  touch-action: manipulation;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .similar-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
  }
}
.similar-card__thumb {
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  display: grid;
  place-items: center;
}
.similar-card__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.similar-card__fallback {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted);
}
.similar-card__name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}
.similar-card__meta { font-size: 0.72rem; color: var(--muted); }

.data-fresh {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
}
.data-fresh a { color: var(--link-accent); font-weight: 600; }

@media (max-width: 639px) {
  .stat-row { grid-template-columns: 72px 1fr 32px; gap: 8px; font-size: 0.72rem; }
  .page-head__top { flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
}

/* Handling deep panel */
.panel--handling.handling-deep-panel {
  margin-top: 0;
}
.handling-deep-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.handling-deep-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.handling-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.handling-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--elevated);
}
.handling-badge--offroad { border-color: rgba(120, 180, 80, 0.45); color: #9fd06a; }
.handling-badge--armor { border-color: rgba(100, 140, 220, 0.45); color: #8ab4f8; }
.handling-badge--electric { border-color: rgba(80, 200, 220, 0.45); color: #6dd5ed; }

.handling-deep__shell {
  margin-top: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  background: var(--elevated);
}
.handling-deep__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
}
.handling-deep__tab {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 12px 10px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.handling-deep__tab:hover { color: var(--text); }
.handling-deep__tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.handling-deep__panels { padding: 16px; }
.handling-deep__panel { display: none; }
.handling-deep__panel.is-active { display: block; }

.handling-deep__grid {
  display: grid;
  gap: 0;
  margin: 0;
}
@media (min-width: 640px) {
  .handling-deep__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
}
.handling-deep__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.handling-deep__row:last-child { border-bottom: none; }
.handling-deep__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
.handling-deep__value {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
}
.handling-deep__note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}
.handling-deep__empty {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.handling-flag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.handling-flag {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.handling-flag__label {
  font-weight: 700;
  font-size: 0.88rem;
}
.handling-flag__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.handling-flag__id {
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.75;
}

.mod-tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.mod-tip {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.mod-tip--performance { border-color: rgba(232, 160, 64, 0.35); }
.mod-tip--armor { border-color: rgba(100, 140, 220, 0.35); }
.mod-tip--offroad { border-color: rgba(120, 180, 80, 0.35); }
.mod-tip__label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.mod-tip__desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.unit-toggle {
  appearance: none;
  border: 1px solid var(--border-soft);
  background: var(--elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
}
.unit-toggle[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.unit-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 0 4px;
  border-top: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}
.page-jump__link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.page-jump__link:hover { color: var(--text); border-color: var(--border-soft); }
.page-jump__link.is-active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border-soft));
  background: var(--accent-dim);
}

.verdict-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.verdict-chip {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--elevated);
}
.verdict-chip--defense { border-color: rgba(100, 140, 220, 0.4); color: #8ab4f8; }
.verdict-chip--performance { border-color: rgba(232, 160, 64, 0.4); color: #e8a040; }
.verdict-chip--terrain { border-color: rgba(120, 180, 80, 0.4); color: #9fd06a; }
.verdict-chip--workshop { border-color: rgba(255, 138, 42, 0.4); color: #ff8a2a; }
.verdict-chip--handling { border-color: rgba(120, 200, 255, 0.35); color: #78c8ff; }

.panel--workshops {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--border-soft));
}
.workshops__shell {
  margin-top: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  background: var(--elevated);
}
.workshops__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
}
.workshops__tab {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 12px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.workshops__tab:hover { color: var(--text); }
.workshops__tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.workshops__panels { padding: 0; }
.workshops__panel { display: none; padding: 16px; }
.workshops__panel.is-active { display: block; }
.workshop-pane__lede {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
.handling-flag--meta {
  border-color: color-mix(in srgb, #78c8ff 25%, var(--border-soft));
}

/* —— Livery gallery —— */
.panel--liveries .livery-gallery {
  display: grid;
  gap: 14px;
}
.livery-gallery__stage {
  background: var(--viewer-bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-md) - 6px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  position: relative;
}
.livery-gallery__main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.livery-gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.livery-angles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.livery-angles__btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.livery-angles__btn:hover {
  color: var(--text);
  border-color: var(--border-soft);
}
.livery-angles__btn.is-active {
  color: #111;
  background: var(--accent);
  border-color: transparent;
}
.livery-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding: 2px;
}
.livery-picker__btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--elevated);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  display: grid;
  gap: 6px;
}
.livery-picker__btn:hover {
  border-color: var(--border-soft);
}
.livery-picker__btn.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.livery-picker__btn img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  background: var(--viewer-bg);
  display: block;
}
.livery-picker__name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
}
.livery-picker__btn.is-active .livery-picker__name {
  color: var(--text);
}
@media (max-width: 640px) {
  .livery-picker {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    max-height: 260px;
  }
}

