/* ================================================================
   components.css – Navbar, buttons, selects, badges, toasts, tabs
   ================================================================ */

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 0 var(--sp-5);
  background: rgba(8, 8, 10, 0.98);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  z-index: 200;
  position: relative;
}

/* Thin accent line at bottom */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.08) 20%,
    rgba(255,255,255,0.14) 50%,
    rgba(255,255,255,0.08) 80%,
    transparent 100%
  );
}

/* ── Brand ──────────────────────────────────────────────────── */
.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.navbar__logo { height: 40px; width: auto; max-width: 90px; object-fit: contain; opacity: 0.95; }

.navbar__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--c-text);
}
.navbar__wordmark em {
  color: var(--c-text-2);
  font-style: normal;
}

.navbar__separator {
  width: 1px;
  height: 20px;
  background: var(--c-border-mid);
  flex-shrink: 0;
}

/* ── Car identity ───────────────────────────────────────────── */
.car-identity { display: flex; flex-direction: column; gap: 1px; }

.car-identity__model {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1;
}

.car-identity__spec {
  font-size: var(--text-2xs);
  color: var(--c-text-3);
  letter-spacing: 0.03em;
}
.car-identity__spec .spec-dot  { color: var(--c-text-3); }
.car-identity__spec .spec-status { color: #ffffff; }

/* ── Navbar controls ────────────────────────────────────────── */
.navbar__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Nav tool (icon button with optional label) ────────────── */
.nav-tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font: 600 11px var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.nav-tool svg { flex-shrink: 0; opacity: 0.7; transition: opacity 0.2s; }
.nav-tool__label { font-size: 10px; }

.nav-tool:hover {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}
.nav-tool:hover svg { opacity: 1; }
.nav-tool:active { transform: scale(0.95); transition-duration: var(--t-feedback); }

/* Active / pressed state */
.nav-tool[aria-pressed="true"],
.nav-tool.nav-tool--active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.nav-tool[aria-pressed="true"] svg { opacity: 1; }

/* Lit state for lights button */
.nav-tool.nav-tool--lit {
  color: var(--c-active);
  background: rgba(255, 200, 60, 0.1);
  border-color: rgba(255, 200, 60, 0.3);
}
.nav-tool.nav-tool--lit svg { opacity: 1; stroke: var(--c-active); }

/* Accent variant (Open Hood) */
.nav-tool--accent {
  color: #ffffff;
  border-color: rgba(255,255,255,0.25);
}
.nav-tool--accent:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: var(--c-active);
}
.nav-tool--accent svg { opacity: 0.85; }

/* Icon-only (no label) — slightly smaller */
.nav-tool:not(:has(.nav-tool__label)) {
  padding: 6px 8px;
}

/* ── Notification dot ──────────────────────────────────────── */
.nav-notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #f43f5e;
  display: none;
}
.nav-notif-dot.has-notifs { display: block; }

/* ── Nav profile button ───────────────────────────────────── */
.nav-profile { position: relative; }
.nav-profile__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.6);
  font: 600 11px var(--font-display);
  letter-spacing: 0.03em;
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.nav-profile__btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}
.nav-profile__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  overflow: hidden; flex-shrink: 0;
}
.nav-profile__avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.nav-profile__name {
  font-size: 11px; max-width: 80px;
  overflow: hidden; text-overflow: ellipsis;
}
.nav-profile__chevron {
  opacity: 0.4; flex-shrink: 0; transition: transform 0.2s;
}
.nav-profile__btn:hover .nav-profile__chevron { opacity: 0.7; }

/* ── Profile dropdown menu ─────────────────────────────────── */
.nav-profile__dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 240px;
  background: rgba(14,14,18,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 6px;
  z-index: 300;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: dropdown-enter 0.15s ease-out;
}
.nav-profile__dropdown.visible { display: block; }
@keyframes dropdown-enter {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-profile__dropdown-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 8px;
}
.nav-profile__dropdown-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); flex-shrink: 0;
}
.nav-profile__dropdown-info { overflow: hidden; }
.nav-profile__dropdown-name {
  display: block; font: 600 12px var(--font-display);
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-profile__dropdown-email {
  display: block; font: 400 10px var(--font-body);
  color: rgba(255,255,255,0.35); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.nav-profile__dropdown-sep {
  height: 1px; margin: 4px 6px;
  background: rgba(255,255,255,0.06);
}

.nav-profile__dropdown-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px;
  border: none; border-radius: 6px;
  background: transparent; color: rgba(255,255,255,0.55);
  font: 500 12px var(--font-display);
  cursor: pointer; transition: all 0.15s;
  text-align: left;
}
.nav-profile__dropdown-item svg { opacity: 0.5; flex-shrink: 0; }
.nav-profile__dropdown-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}
.nav-profile__dropdown-item:hover svg { opacity: 0.8; }

.nav-profile__dropdown-item--danger { color: #f43f5e; }
.nav-profile__dropdown-item--danger svg { stroke: #f43f5e; opacity: 0.7; }
.nav-profile__dropdown-item--danger:hover {
  background: rgba(244,63,94,0.08);
  color: #fb7185;
}

/* Build cost badge in navbar */
.build-cost-badge {
  display: none; /* hidden when $0 */
  align-items: center;
  padding: 4px 8px; border-radius: 5px;
  border: 1px solid rgba(74,222,128,0.2);
  background: rgba(74,222,128,0.06);
  transition: all 0.3s;
}
.build-cost-badge__value {
  font-size: 11px; font-weight: 700;
  color: #4ade80;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.build-cost-badge.has-cost {
  display: flex;
  border-color: rgba(74,222,128,0.3);
  background: rgba(74,222,128,0.08);
}

/* Tiny color picker inputs in navbar */
.nav-color-input {
  width: 22px; height: 22px;
  padding: 0; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px; background: transparent;
  cursor: pointer; vertical-align: middle;
}
.nav-color-input::-webkit-color-swatch-wrapper { padding: 1px; }
.nav-color-input::-webkit-color-swatch { border: none; border-radius: 3px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px var(--sp-4);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast),
    opacity var(--t-fast),
    transform 130ms cubic-bezier(0.4, 0, 0.6, 1);
}

.btn:hover   { transform: translateY(-1px); }
.btn:active  { transform: scale(0.96); transition-duration: var(--t-feedback); }
.btn:disabled { opacity: 0.28; pointer-events: none; }

/* Focus ring — WCAG 2.4.7 visible focus, ≥3:1 contrast, distinct from the
   active/selected state (playbook §7 accessibility). Keyboard-only via
   :focus-visible so pointer clicks don't show the ring. */
.btn:focus-visible {
  outline: 2px solid var(--c-accent-bright);
  outline-offset: 2px;
}

/* Primary — white fill */
.btn--primary {
  background: var(--c-text);
  color: var(--c-text-inv);
  border-color: transparent;
  font-weight: 700;
}
/* Selected state — green fill to signal "this part is applied to your build". */
.btn--installed {
  background: rgba(40, 200, 130, 0.18);
  color: #4ade80;
  border-color: rgba(40, 200, 130, 0.55);
  font-weight: 700;
}
.btn--installed:hover {
  background: rgba(40, 200, 130, 0.28);
  border-color: rgba(40, 200, 130, 0.75);
  box-shadow: 0 2px 10px rgba(40, 200, 130, 0.20);
}
.btn--primary:hover {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.15);
}
.btn--primary:active {
  animation: installBounce 0.3s ease-out;
}
@keyframes installBounce {
  0% { transform: scale(1); }
  40% { transform: scale(0.9); }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--c-text-2);
  border-color: var(--c-border-mid);
}
.btn--outline:hover {
  border-color: var(--c-border-bright);
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.04);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--c-text-3);
  border-color: transparent;
}
.btn--ghost:hover {
  color: var(--c-text-2);
  background: rgba(255, 255, 255, 0.04);
}

/* Danger */
.btn--danger {
  background: transparent;
  color: var(--c-error);
  border-color: rgba(248, 113, 113, 0.25);
}
.btn--danger:hover { background: rgba(248, 113, 113, 0.08); }

/* Installed — gold solid */
.btn--installed {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
  font-weight: 700;
}
.btn--installed:hover {
  background: var(--c-active);
  color: #0a0a0a;
  border-color: var(--c-active);
  transform: none;
}

/* Active / toggled */
.btn--active,
.btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.10);
  color: var(--c-text);
  border-color: var(--c-border-bright);
}

/* Lit state — warm amber glow for lights toggle */
.btn--lit {
  background: rgba(255, 200, 60, 0.12);
  border-color: rgba(255, 200, 60, 0.4);
  color: var(--c-active);
  box-shadow: 0 0 12px rgba(255, 180, 40, 0.2);
  animation: litPulse 2s ease-in-out infinite;
}
@keyframes litPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 180, 40, 0.2); }
  50% { box-shadow: 0 0 20px rgba(255, 180, 40, 0.35); }
}

/* Sizes */
.btn--xs  { padding: 4px 10px; font-size: var(--text-2xs); letter-spacing: 0.05em; }
.btn--sm  { padding: 5px var(--sp-3); font-size: var(--text-xs); }
.btn--lg  { padding: var(--sp-3) var(--sp-5); font-size: var(--text-sm); }

/* ── Icon button ────────────────────────────────────────────── */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--c-text-3);
  font-size: 14px;
  flex-shrink: 0;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast),
    transform 130ms cubic-bezier(0.4, 0, 0.6, 1);
}
.icon-btn:active { transform: scale(0.88); transition-duration: var(--t-feedback); }
.icon-btn:hover {
  border-color: var(--c-border-mid);
  color: var(--c-text-2);
  background: rgba(255, 255, 255, 0.05);
}
.icon-btn.active {
  border-color: var(--c-border-bright);
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text);
}

/* ── Selects ────────────────────────────────────────────────── */
.select {
  appearance: none;
  background: var(--c-surface-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-md);
  color: var(--c-text);
  padding: 6px 28px 6px var(--sp-3);
  font-size: var(--text-xs);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  min-width: 120px;
  transition: border-color var(--t-fast);
}
.select:hover, .select:focus {
  border-color: var(--c-border-bright);
  outline: none;
}
/* Restore a keyboard focus ring the :focus rule above suppresses (#A8 / WCAG 2.4.7). */
.select:focus-visible { outline: 2px solid var(--c-accent-bright); outline-offset: 2px; }
.select option { background: var(--c-surface-2); color: var(--c-text); }

/* ── Paint picker button (navbar) ───────────────────────────── */
.paint-picker-btn .paint-picker-swatch {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--c-paint);
  flex-shrink: 0;
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-size: var(--text-2xs);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
}
.badge--popular   { background: #1e2d1e; color: #4caf50; border: 1px solid #2d4a2d; }
.badge--premium   { background: #2d1e0a; color: #e08040; border: 1px solid #4a2d0a; }
.badge--new       { background: rgba(74,222,128,0.08);  color: var(--c-success);  border: 1px solid rgba(74,222,128,0.18); }
.badge--track     { background: #2d1010; color: #e03f3f; border: 1px solid #4a1010; }
.badge--installed { background: rgba(74,222,128,0.10);  color: var(--c-success);  border: 1px solid rgba(74,222,128,0.25); }
.badge--prereq    { background: rgba(255,180,40,0.10);  color: #ffb428;            border: 1px solid rgba(255,180,40,0.30); }

/* ── Navbar action button overrides ────────────────────────── */
#save-build-btn:hover,
#share-build-btn:hover {
  border-color: rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.04);
}

#compare-btn {
  border-color: rgba(255,255,255,0.33);
  color: #ffffff;
}
#compare-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tab-btn {
  flex: 1;
  padding: 10px var(--sp-2);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--t-tab), border-color var(--t-tab), background var(--t-tab);
  margin-bottom: -1px;
}
.tab-btn:hover { color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.02); }
.tab-btn.active {
  color: #fff;
  border-bottom-color: #ffffff;
}
/* Focus ring — distinct from the active underline (playbook §5 v26 / §7). */
.tab-btn:focus-visible {
  outline: 2px solid var(--c-accent-bright);
  outline-offset: -2px;
}

/* ── Toast notifications ────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  z-index: 9999;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-lg);
  font-size: var(--text-xs);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  /* Layered shadow + brand glow (playbook §4 v56): contact + elevation + glow. */
  box-shadow:
    0 1px 3px  rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 60px   var(--c-active-glow);   /* brand-tinted glow (was off-brand purple sample) */
  pointer-events: auto;
  max-width: 300px;
  color: var(--c-text);
  animation: toast-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Severity icon (shape + colour, replaces the colour-only dot). */
.toast__icon { width: 16px; height: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.toast__icon svg { width: 100%; height: 100%; display: block; }

.toast--success { border-left: 2px solid var(--c-success); }
.toast--success .toast__icon { color: var(--c-success); }
.toast--error   { border-left: 2px solid var(--c-error); }
.toast--error   .toast__icon { color: var(--c-error); }
.toast--info    { border-left: 2px solid var(--c-text-3); }
.toast--info    .toast__icon { color: var(--c-text-2); }
.toast--warning, .toast--warn { border-left: 2px solid var(--c-warning); }
.toast--warning .toast__icon, .toast--warn .toast__icon { color: var(--c-warning); }

/* Message text grows; close button sits at the trailing edge (toast.js emits these) */
.toast__message { flex: 1 1 auto; min-width: 0; }
.toast__close {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin: -4px -6px -4px 0; padding: 0;
  border: none; background: none; cursor: pointer;
  color: var(--c-text-3); font-size: 16px; line-height: 1;
  border-radius: var(--r-sm);
  transition: color var(--t-feedback), background var(--t-feedback);
}
.toast__close:hover { color: var(--c-text-1); background: rgba(255, 255, 255, 0.08); }
.toast__close:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; }

@keyframes toast-in  { from { opacity: 0; transform: translateX(16px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(16px) scale(0.97); } }
.toast--removing { animation: toast-out var(--t-exit) forwards; }

/* ── Search input ───────────────────────────────────────────── */
.search-input {
  width: 100%;
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: var(--text-xs);
  padding: var(--sp-2) var(--sp-3);
  transition: border-color var(--t-fast);
}
.search-input::placeholder { color: var(--c-text-3); }
.search-input:focus {
  outline: none;
  border-color: var(--c-border-mid);
  background: var(--c-surface-2);
}
/* Visible 2px focus ring for keyboard nav (playbook §5 v19 / §7, WCAG 2.4.7). */
.search-input:focus-visible {
  outline: 2px solid var(--c-accent-bright);
  outline-offset: 1px;
}

/* ── Nav separator ──────────────────────────────────────────── */
.nav-sep {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ── Paint panel (floating below navbar) ───────────────────── */
.paint-panel {
  position: absolute;
  top: var(--header-h);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  z-index: 190;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  border-top: none;
  min-width: 480px;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.paint-panel--open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.pp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}
.pp-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-2);
}
.pp-close {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--c-text-3);
  font-size: 16px; cursor: pointer; border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.pp-close:hover { color: var(--c-text); background: rgba(255,255,255,0.06); }

.pp-body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  /* Three sections (OEM / Basic / Popular) + custom row can exceed
     viewport on shorter screens. Cap and scroll inside the body so
     the header + close button stay anchored. */
  max-height: calc(100vh - var(--header-h) - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pp-section {
  margin-bottom: var(--sp-3);
}
.pp-section:last-of-type { margin-bottom: 0; }
.pp-section + .pp-section {
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.pp-label {
  font-family: var(--font-display);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: var(--sp-2);
}
/* Section labels (OEM / Basic / Popular) get the brand-yellow accent
   so users can scan between sections quickly. */
.pp-section-label {
  color: var(--c-active);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.pp-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.pp-swatch {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 8px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.pp-swatch:hover {
  border-color: var(--c-border-bright);
  background: rgba(255,255,255,0.04);
}
.pp-swatch--active {
  border-color: #ffffff;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}

.pp-swatch__color {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.pp-swatch__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  text-align: left;
}
.pp-swatch__name {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  color: var(--c-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.pp-swatch__code {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--c-text-3);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.pp-divider {
  height: 1px;
  background: var(--c-border);
  margin: var(--sp-3) 0;
}

.pp-custom-row {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-end;
}
.pp-custom-group { flex: 1; }
.pp-finish-group { flex-shrink: 0; }

.pp-custom-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.pp-color-native {
  width: 32px; height: 32px;
  padding: 0; border: 1px solid var(--c-border-mid);
  border-radius: var(--r-md);
  background: transparent;
  cursor: pointer;
}
.pp-color-native::-webkit-color-swatch-wrapper { padding: 2px; }
.pp-color-native::-webkit-color-swatch { border: none; border-radius: 4px; }

.pp-hex-input {
  width: 90px;
  background: var(--c-surface-1);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 6px var(--sp-2);
  transition: border-color var(--t-fast);
}
.pp-hex-input:focus {
  outline: none;
  border-color: var(--c-border-bright);
  background: var(--c-surface-2);
}
/* Keyboard focus ring for the hex code field (#A8 / WCAG 2.4.7). */
.pp-hex-input:focus-visible { outline: 2px solid var(--c-accent-bright); outline-offset: 1px; }

.pp-finish-select {
  min-width: 100px;
}

/* ================================================================
   ENRICHMENT UI — added 2026-05-01 with the data-enrichment phase
   (sound modal, install videos, CARB warnings, dyno cards, weight
   badges, tag chips, owner-thread blocks, tune-required cards,
   power-gains tables, build calculator, comparison view).
   ================================================================ */

/* ── Tag chips ──────────────────────────────────────────────── */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  cursor: default;
  font-family: inherit;
  line-height: 1.4;
}
.tag-chip--clickable {
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.tag-chip--clickable:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}
.tag-chip--gold     { background: rgba(255,255,255,0.18); color: var(--c-active); border-color: rgba(255,255,255,0.35); }
.tag-chip--red      { background: rgba(220,38,38,0.18);  color: #fca5a5; border-color: rgba(220,38,38,0.4); }
.tag-chip--green    { background: rgba(34,197,94,0.18);  color: #86efac; border-color: rgba(34,197,94,0.35); }
.tag-chip--silver   { background: rgba(180,180,200,0.14); color: #d4d4d8; border-color: rgba(180,180,200,0.28); }
.tag-chip--blue     { background: rgba(59,130,246,0.2);  color: #93c5fd; border-color: rgba(59,130,246,0.4); }
.tag-chip--neutral  { /* inherits default from .tag-chip */ }
.tag-chip--more {
  cursor: default;
  background: transparent;
  border-color: transparent;
  color: rgba(255,255,255,0.5);
}
.tag-chip--active {
  background: rgba(255,255,255,0.22) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.4) !important;
}

/* ── CARB compliance warning badge ──────────────────────────── */
.carb-warning {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
/* Amber — installable, just race/track-only on public roads */
.carb-warning--offroad {
  background: #f59e0b;
  color: #1a1a1a;
}
/* Red — state-blocked (legal/shipping problem in named states) */
.carb-warning--blocked {
  background: rgba(220,38,38,0.92);
  color: #fff;
}
/* Legacy default — keep amber so any consumer not using the variant
   class still renders something readable. */
.carb-warning:not(.carb-warning--blocked):not(.carb-warning--offroad) {
  background: #f59e0b;
  color: #1a1a1a;
}

/* ── Tune-required warning card ─────────────────────────────── */
.tune-warning {
  margin: 8px 0;
  padding: 10px 12px;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.32);
  border-radius: var(--r-md);
  color: #fca5a5;
  font-size: 12px;
}
.tune-warning__head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #fecaca;
  margin-bottom: 4px;
}
.tune-warning__icon { font-size: 14px; }
.tune-warning__body { color: rgba(252,165,165,0.85); }
.tune-warning__tunes { margin-top: 4px; opacity: 0.85; }
.tune-warning__note { margin-top: 6px; font-style: italic; opacity: 0.85; }
.tune-warning__link {
  margin-top: 6px;
  background: transparent;
  border: 1px solid rgba(252,165,165,0.4);
  color: #fecaca;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
  font-family: inherit;
}
.tune-warning__link:hover {
  background: rgba(220,38,38,0.16);
  border-color: rgba(252,165,165,0.7);
}

/* ── Dyno data card ─────────────────────────────────────────── */
.dyno-card {
  margin: 8px 0;
  padding: 10px 12px;
  background: rgba(132,204,22,0.06);
  border: 1px solid rgba(132,204,22,0.28);
  border-radius: var(--r-md);
  color: rgba(255,255,255,0.85);
}
.dyno-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #d9f99d;
  margin-bottom: 6px;
}
.dyno-card__gains {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.dyno-card__hp,
.dyno-card__tq {
  font-size: 18px;
  font-weight: 700;
  color: #84cc16;
  letter-spacing: 0.01em;
}
.dyno-card__tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 6px;
  background: rgba(132,204,22,0.18);
  color: #84cc16;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.dyno-card__notes {
  font-size: 11px;
  opacity: 0.8;
  margin: 4px 0;
}
.dyno-card__source {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: #a3e635;
  text-decoration: none;
}
.dyno-card__source:hover { text-decoration: underline; }

/* ── Weight savings badge ──────────────────────────────────── */
.weight-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(34,211,238,0.14);
  color: #67e8f9;
  border: 1px solid rgba(34,211,238,0.32);
  border-radius: 4px;
  white-space: nowrap;
}

/* ── Owner build threads ───────────────────────────────────── */
.owner-threads {
  margin: 10px 0;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
}
.owner-threads__head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.owner-threads__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.owner-thread {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-sm);
  color: rgba(255,255,255,0.78);
  font-size: 11px;
  text-decoration: none;
  transition: background-color var(--t-fast);
}
.owner-thread:hover { background: rgba(255,255,255,0.07); color: #fff; }
.owner-thread__title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-thread__site { font-size: 10px; opacity: 0.6; }

/* ── Confidence / data-quality badge ───────────────────────── */
.data-confidence {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.data-confidence--limited {
  background: rgba(245,158,11,0.16);
  color: #fcd34d;
}
.data-confidence--curated {
  background: rgba(99,102,241,0.16);
  color: #a5b4fc;
}

/* ── Prerequisites cascade (Stage 3/4 hardware tunes) ──────── */
.prerequisites {
  margin: 10px 0;
  padding: 10px 12px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: var(--r-md);
}
.prerequisites__head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fcd34d;
  margin-bottom: 6px;
}
.prerequisites__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prerequisites__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}
.prerequisites__num {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,158,11,0.2);
  color: #fcd34d;
  border-radius: 50%;
  font-weight: 700;
  font-size: 10px;
}
.prerequisites__text { line-height: 1.45; }

/* ── Tune slot: power gains table ──────────────────────────── */
.power-gains {
  margin: 10px 0;
  padding: 10px 12px;
  background: rgba(132,204,22,0.05);
  border: 1px solid rgba(132,204,22,0.22);
  border-radius: var(--r-md);
}
.power-gains__head {
  font-size: 12px;
  font-weight: 700;
  color: #d9f99d;
  margin-bottom: 8px;
}
.power-gains__unit {
  font-size: 10px;
  font-weight: 600;
  color: rgba(217,249,157,0.6);
  letter-spacing: 0.04em;
  margin-left: 4px;
}
.power-gains__corner {
  font-size: 9px !important;
  color: rgba(255,255,255,0.4) !important;
  font-weight: 700;
}
.power-gains__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.power-gains__table th,
.power-gains__table td {
  padding: 4px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}
.power-gains__table thead th {
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.power-gains__table tbody th {
  text-align: left;
  font-weight: 700;
  color: #a3e635;
}
.power-gains__notes {
  font-size: 10px;
  font-style: italic;
  margin-top: 6px;
  opacity: 0.7;
}

/* ── Tune cost callout + variants dropdown ─────────────────── */
.tune-cost-callout {
  margin: 10px 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: var(--r-md);
  font-size: 11px;
}
.tune-cost-callout__total {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.tune-cost-callout__total > span:first-child {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tune-cost-callout__total strong {
  color: var(--c-active);
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-display, inherit);
  text-align: right;
}
.tune-cost-callout__hardware {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.22);
  opacity: 0.92;
}
.tune-cost-callout__hardware > span:first-child {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.tune-cost-callout__hardware > span:last-child {
  text-align: right;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}

.variants-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}
.variants-dropdown__select {
  flex: 1;
  background: rgba(255,255,255,0.06);
  color: var(--c-text);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-sm);
  padding: 4px 6px;
  font-family: inherit;
  font-size: 11px;
}

/* ── Media buttons (sound / install / reviews) ─────────────── */
.btn--media {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}
.btn--media:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
}
.btn--sound-yt:hover  { color: var(--c-active); }
.btn--install:hover   { color: #93c5fd; }
.btn--reviews:hover   { color: #c4b5fd; }

/* ── Media modal ───────────────────────────────────────────── */
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.78);
  /* Glass blur standardized to ModVision's 18px panel blur (playbook §4 v45). */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: media-modal-fade-in 0.18s ease-out;
}
@keyframes media-modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.media-modal__panel {
  width: min(900px, 95vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: rgba(18,18,22,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  overflow: hidden;
}
.media-modal__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.media-modal__title-block { flex: 1; min-width: 0; }
.media-modal__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-modal__subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.media-modal__close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.media-modal__close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.media-modal__tabs {
  display: flex;
  gap: 4px;
  padding: 8px 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.media-modal__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.media-modal__tab:hover { color: rgba(255,255,255,0.9); }
.media-modal__tab--active {
  color: #fff;
  border-bottom-color: var(--c-cta);
}
.media-modal__tab-emoji { font-size: 14px; }
.media-modal__tab-count {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
}

.media-modal__chips {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.media-modal__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: rgba(255,255,255,0.78);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.media-modal__chip:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.media-modal__chip--active {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.5);
  color: var(--c-active);
}

.media-modal__player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
}
.media-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-modal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.media-modal__creator { font-weight: 600; color: rgba(255,255,255,0.78); }
.media-modal__caption { opacity: 0.8; text-align: right; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 600px) {
  .media-modal__panel { width: 95vw; max-height: 92vh; }
  .media-modal__title { font-size: 13px; }
  .media-modal__chip { font-size: 10px; }
}

/* ── Compare mode (slot detail) ────────────────────────────── */
.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: rgba(255,255,255,0.78);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.compare-toggle:hover { background: rgba(255,255,255,0.12); color: #fff; }
.compare-toggle--active {
  background: rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.5);
  color: #a5b4fc;
}

.compare-checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 2px solid rgba(255,255,255,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.slot-part-card[data-compare-mode="on"] .compare-checkbox { display: inline-flex; }
.compare-checkbox--on {
  background: #6366f1;
  border-color: #a5b4fc;
  color: #fff;
}

.compare-fab {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #6366f1;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99,102,241,0.42);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.compare-fab:hover { transform: translateX(-50%) translateY(-2px); }
.compare-fab[hidden] { display: none; }

/* ── Curated review summary (slot-card details dropdown) ─────────────── */
.review-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: var(--sp-2) 0;
  padding: 10px 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-sm);
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-text-2);
}
.review-summary__one-liner {
  font-style: italic;
  color: #ffffff;
  font-size: 12.5px;
  line-height: 1.45;
}
.review-summary__use-cases {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.review-summary__use-case {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: var(--r-xs);
  font-size: 11.5px;
}
.review-summary__use-case--best {
  background: rgba(34,197,94,0.08);
  border-left: 2px solid rgba(34,197,94,0.55);
}
.review-summary__use-case--worst {
  background: rgba(220,38,38,0.08);
  border-left: 2px solid rgba(220,38,38,0.55);
}
.review-summary__use-label {
  font-size: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.review-summary__details {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 6px;
}
.review-summary__details > .review-summary__summary {
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text-2);
  padding: 4px 0;
  user-select: none;
}
.review-summary__details > .review-summary__summary::-webkit-details-marker { display: none; }
.review-summary__details > .review-summary__summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  font-size: 9px;
  transition: transform var(--t-fast);
  color: var(--c-text-3);
}
.review-summary__details[open] > .review-summary__summary::before { transform: rotate(90deg); }
.review-summary__details[open] > .review-summary__summary { color: #ffffff; }
.review-summary__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}
@media (max-width: 360px) {
  .review-summary__split { grid-template-columns: 1fr; }
}
.review-summary__col-head {
  font-size: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.review-summary__col--praise .review-summary__col-head    { color: #86efac; }
.review-summary__col--complaints .review-summary__col-head { color: #fca5a5; }
.review-summary__list {
  margin: 0;
  padding-left: 16px;
  font-size: 11.5px;
  line-height: 1.45;
}
.review-summary__list li { margin-bottom: 3px; }
.review-summary__quotes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.review-summary__quote {
  margin: 0;
  padding: 6px 10px;
  border-left: 2px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  font-style: italic;
  font-size: 11.5px;
  line-height: 1.5;
}
.review-summary__quote cite {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 10px;
  color: var(--c-text-3);
  letter-spacing: 0.02em;
}
.review-summary__lineage {
  font-size: 10.5px;
  color: var(--c-text-3);
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
/* ── Build calculator (right-panel) ────────────────────────── */
.tune-budget {
  margin-top: var(--sp-4);
  padding: 12px 14px;
  background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.24);
  border-radius: var(--r-md);
}
.tune-budget__head {
  font-size: 12px;
  font-weight: 700;
  color: #fcd34d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.tune-budget__list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-size: 11px;
  color: rgba(255,255,255,0.78);
}
.tune-budget__list li {
  padding: 2px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.tune-budget__sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  margin: 8px 0 4px;
}
.tune-budget__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.18);
  font-size: 13px;
  font-weight: 700;
  color: #fcd34d;
}
.tune-budget__total span:last-child { font-size: 16px; }

/* Spacing when rendered above the build list (right-panel placement). */
.tune-budget { margin-bottom: var(--sp-3); }

/* Empty-intersection warning variant — red accent. */
.tune-budget--warn {
  background: rgba(220,38,38,0.06);
  border-color: rgba(220,38,38,0.32);
}
.tune-budget--warn .tune-budget__head { color: #fca5a5; }

/* View-all-compatible-tunes CTA button. */
.tune-budget__cta {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  padding: 6px 10px;
  margin-top: 8px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: var(--r-sm);
  color: #fcd34d;
  font: 600 11px var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t-fast);
}
.tune-budget__cta:hover {
  background: rgba(245,158,11,0.22);
  border-color: rgba(245,158,11,0.6);
}
.tune-budget--warn .tune-budget__cta {
  background: rgba(220,38,38,0.12);
  border-color: rgba(220,38,38,0.4);
  color: #fca5a5;
}
.tune-budget--warn .tune-budget__cta:hover {
  background: rgba(220,38,38,0.22);
  border-color: rgba(220,38,38,0.6);
}

/* ════════════════════════════════════════════════════════════════════
   Shipping warning badge — user-location-aware
   See js/shipping-filter.js → renderShippingBadge().
   Sits beside the existing CARB compliance badge (renderCarbBadge).
   ════════════════════════════════════════════════════════════════════ */
.part-card__shipping-row,
.slot-part__shipping-row {
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.shipping-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  cursor: help;
  border: 1px solid transparent;
  max-width: 100%;
  white-space: normal;
  text-overflow: ellipsis;
  overflow: hidden;
}
.shipping-badge--warn {
  background: rgba(255,255,255, 0.10);
  border-color: rgba(255,255,255, 0.30);
  color: var(--c-active);
}
.shipping-badge--block {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #f87171;
}

/* ════════════════════════════════════════════════════════════════════
   Maintenance section in Advisor tab — engine-specific known issues.
   See js/right-panel.js → renderMaintenanceBlock().
   ════════════════════════════════════════════════════════════════════ */
.maint-section {
  margin: 0 0 12px;
  padding: 12px;
  background: rgba(255,255,255, 0.04);
  border: 1px solid rgba(255,255,255, 0.15);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.maint-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.maint-section__title {
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--c-active);
}
.maint-section__engine {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-text-3);
}
.maint-section__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.maint-item {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid rgba(255,255,255,0.10);
  border-radius: 6px;
}
.maint-item--critical { border-left-color: #f87171; background: rgba(248,113,113,0.04); }
.maint-item--high     { border-left-color: var(--c-active); }
.maint-item--medium   { border-left-color: #60a5fa; }
.maint-item--maintenance { border-left-color: #9ca3af; opacity: 0.95; }

.maint-item__icon {
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
}
.maint-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.maint-item__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.maint-item__sev {
  font-size: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.maint-item__desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--c-text-2);
}
.maint-item__fix {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 5px;
}
.maint-item__fix-label {
  font-size: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.maint-item__fix-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-1);
}
.maint-item__fix-cost {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--c-text-3);
  margin-left: auto;
}
.maint-item__cta {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.30);
  color: #60a5fa;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.maint-item__cta:hover {
  background: rgba(96, 165, 250, 0.22);
  border-color: rgba(96, 165, 250, 0.50);
}
.maint-item__picks {
  font-size: 10px;
  font-style: italic;
  color: var(--c-text-3);
  margin-top: 2px;
}


/* ── Buyer-critical badges (added 2026-05-08) ──────────────────────── */

.hp-gain-badge,
.sound-db-badge,
.install-time-badge,
.warranty-badge,
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-family: var(--font-mono);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--c-text-2);
  white-space: nowrap;
}
.hp-gain-badge {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.25);
}
.sound-db-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.25);
}
.install-time-badge {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.25);
}
.warranty-badge {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.10);
  border-color: rgba(139, 92, 246, 0.25);
}
.rating-badge {
  color: #facc15;
  background: rgba(250, 204, 21, 0.08);
  border-color: rgba(250, 204, 21, 0.20);
  letter-spacing: 0.5px;
}

.part-card__buyer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.part-card__buyer-row:empty {
  display: none;
}

.own-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.own-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.own-chip--warn {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.10);
  border: 1px solid rgba(251, 113, 133, 0.30);
}
.own-chip--info {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.10);
  border: 1px solid rgba(96, 165, 250, 0.30);
}

.part-card__details {
  margin-top: 6px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 5px;
  background: rgba(255,255,255,0.02);
}
.part-card__details-toggle {
  font-size: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-3);
  padding: 5px 8px;
  cursor: pointer;
  list-style: none;
}
.part-card__details-toggle::marker { display: none; }
.part-card__details-toggle::-webkit-details-marker { display: none; }
.part-card__details[open] .part-card__details-toggle {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pre-purchase-details {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pp-block {
  font-size: 11px;
  color: var(--c-text-2);
}
.pp-head {
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-1);
  margin-bottom: 4px;
}
.pp-block--gotchas {
  padding: 6px 8px;
  background: rgba(251, 113, 133, 0.06);
  border-left: 3px solid rgba(251, 113, 133, 0.5);
  border-radius: 3px;
}
.pp-list {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
}
.pp-list li {
  margin-bottom: 3px;
  line-height: 1.4;
}
.pp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pp-tag {
  font-size: 9px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  color: var(--c-text-2);
}
.pp-specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin: 0;
}
.pp-specs dt {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-text-3);
  text-transform: capitalize;
}
.pp-specs dd {
  margin: 0;
  font-size: 11px;
  color: var(--c-text-1);
}
.btn--forums {
  /* matches existing media buttons */
}

/* ── Round-2 buyer-critical UI (2026-05-09) ─────────────────────── */

.labor-cost-badge,
.shipping-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-family: var(--font-mono);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--c-text-2);
  white-space: nowrap;
}
.labor-cost-badge {
  color: #fb923c;
  background: rgba(249, 115, 22, 0.10);
  border-color: rgba(249, 115, 22, 0.25);
}
.shipping-info-badge {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.10);
  border-color: rgba(148, 163, 184, 0.25);
}

.resale-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-family: var(--font-mono);
  border-radius: 4px;
  white-space: nowrap;
}
.resale-badge--positive {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.resale-badge--negative {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.10);
  border: 1px solid rgba(251, 113, 133, 0.25);
}
.resale-badge--neutral {
  color: var(--c-text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.track-db-warning,
.year-fit-alert {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
  padding: 5px 8px;
  font-size: 11px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.06);
  border-left: 3px solid rgba(251, 191, 36, 0.5);
  color: var(--c-text-2);
  line-height: 1.4;
}
.track-db-warning__icon,
.year-fit-alert__icon {
  flex-shrink: 0;
}

.cf-warning {
  margin-top: 4px;
  padding: 6px 8px;
  font-size: 11px;
  border-radius: 4px;
  background: rgba(251, 113, 133, 0.06);
  border-left: 3px solid rgba(251, 113, 133, 0.5);
  color: var(--c-text-2);
}
.cf-warning__head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fb7185;
  margin-bottom: 3px;
}
.cf-warning__body {
  line-height: 1.4;
}
.cf-warning__dealers {
  margin-top: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--c-text-3);
}

.pp-block--extras {
  padding: 6px 8px;
  background: rgba(96, 165, 250, 0.06);
  border-left: 3px solid rgba(96, 165, 250, 0.5);
  border-radius: 3px;
}
.pp-block--maintenance,
.pp-block--return,
.pp-block--wheel {
  padding: 6px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 3px;
}
.pp-text {
  font-size: 11px;
  color: var(--c-text-2);
  line-height: 1.4;
}

/* ── Round-3 final-decision UI (2026-05-09) ──────────────────────── */

.swapback-badge,
.mto-badge,
.financing-badge,
.cold-start-badge,
.tool-cost-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-family: var(--font-mono);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--c-text-2);
  white-space: nowrap;
}
.swapback-badge--green {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.25);
}
.swapback-badge--amber {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.25);
}
.swapback-badge--red {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.10);
  border-color: rgba(251, 113, 133, 0.25);
}
.mto-badge {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.10);
  border-color: rgba(168, 85, 247, 0.25);
}
.financing-badge {
  color: #34d399;
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.25);
}
.cold-start-badge {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.10);
  border-color: rgba(96, 165, 250, 0.25);
}
.tool-cost-badge {
  color: #d4d4aa;
  background: rgba(202, 138, 4, 0.10);
  border-color: rgba(202, 138, 4, 0.25);
}

.vin-alert {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
  padding: 5px 8px;
  font-size: 11px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.06);
  border-left: 3px solid rgba(168, 85, 247, 0.5);
  color: var(--c-text-2);
  line-height: 1.4;
}

.prop65-warning {
  margin-top: 4px;
  padding: 5px 8px;
  font-size: 10px;
  border-radius: 3px;
  background: rgba(251, 113, 133, 0.06);
  border-left: 3px solid rgba(251, 113, 133, 0.5);
  color: var(--c-text-3);
  line-height: 1.35;
}

.pp-block--extras-cost,
.pp-block--drone,
.pp-block--failure,
.pp-block--installer {
  padding: 6px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 3px;
}
.pp-block--failure {
  background: rgba(251, 191, 36, 0.06);
  border-left: 3px solid rgba(251, 191, 36, 0.4);
}
.pp-note {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--c-text-3);
  margin-top: 4px;
}

/* ── Round-4 buyer UI (2026-05-09) ────────────────────────────────── */

.pp-block--usecase {
  padding: 6px 8px;
  background: rgba(96, 165, 250, 0.04);
  border-radius: 3px;
}
.usecase-best { color: #4ade80; }
.usecase-worst { color: #fb7185; }

.pp-block--support,
.pp-block--sellers,
.pp-block--resources {
  padding: 6px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 3px;
}
.bs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
}
.bs-link {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.12s;
}
.bs-link:hover { color: #93c5fd; text-decoration: underline; }
.pp-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 4px;
}
.pp-resource-links a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.20);
  border-radius: 3px;
  color: #93c5fd;
  text-decoration: none;
  transition: background 0.12s;
}
.pp-resource-links a:hover {
  background: rgba(96, 165, 250, 0.15);
}

/* ── slot-part-card buyer-row (matches part-card__buyer-row) ─────── */
.slot-part__buyer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.slot-part__buyer-row:empty { display: none; }
.slot-part__buyer-details {
  margin-top: 6px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 5px;
  background: rgba(255,255,255,0.02);
}
.slot-part__buyer-details-toggle {
  font-size: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-3);
  padding: 5px 8px;
  cursor: pointer;
  list-style: none;
}
.slot-part__buyer-details-toggle::marker { display: none; }
.slot-part__buyer-details-toggle::-webkit-details-marker { display: none; }
.slot-part__buyer-details[open] .slot-part__buyer-details-toggle {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ── Compact card layout — buyer info inside collapsible (2026-05-09) ─ */
.slot-part__buyer-details {
  margin-top: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  background: rgba(255,255,255,0.02);
}
.slot-part__buyer-details-toggle {
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-2);
  padding: 6px 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.slot-part__buyer-details-toggle:hover {
  color: var(--c-text-1);
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
}
.slot-part__buyer-details-toggle::marker { display: none; content: ''; }
.slot-part__buyer-details-toggle::-webkit-details-marker { display: none; }
.slot-part__buyer-details[open] .slot-part__buyer-details-toggle {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--c-text-1);
}
.slot-part__buyer-content {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slot-part__buyer-content .slot-part__buyer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

/* ── Profile avatars ─────────────────────────────────────────────
   One image style for every avatar surface (nav, front-page pill,
   profile modal, settings card, community feed). The 50% radius on the
   image itself keeps it circular even when the container isn't clipped. */
.mv-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
/* Camera badge + uploading state on the editable profile-modal avatar. */
.profile-avatar-edit { transition: filter .15s ease; }
.profile-avatar-edit:hover { filter: brightness(1.08); }
.profile-avatar-edit__cam {
  position: absolute; right: -2px; bottom: -2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #1a1a1f; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
}
.profile-avatar-edit.is-uploading { opacity: 0.55; pointer-events: none; }
