/* =====================================================
   AuctionCalc — Premium Dark Bento (admin preview)
   Floating cards · soft blue accents · restrained glass
   ===================================================== */

body.theme-bento,
html.theme-bento {
  color-scheme: dark;
  /* Keep html + body the same paint so mobile overscroll never shows a light gap */
  background-color: #08090D;
}

html.theme-bento {
  min-height: 100%;
  min-height: 100dvh;
}

body.theme-bento {
  /* Premium black-and-blue fintech tokens */
  --surface-base: #08090D;
  --surface-raised: #101827;
  --surface-elevated: #152238;
  --surface-overlay: #101827;
  --surface-hover: #1A2B45;
  --surface-active: #087CFF;
  --surface-card: #101827;
  --surface-input: #0C1422;
  --surface-selected: #087CFF;

  --sidebar-bg: #060910;
  --sidebar-border: rgba(36, 59, 96, 0.65);
  --sidebar-text: #F8FAFC;
  --sidebar-text-muted: rgba(165, 180, 200, 0.7);
  --topbar-bg: rgba(8, 9, 13, 0.88);

  --glass-bg: rgba(16, 24, 39, 0.92);
  --glass-border: #243B60;
  --glass-highlight: rgba(8, 124, 255, 0.1);
  --glass-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);

  --panel-gradient-blue: #101827;
  --panel-gradient-purple: #101827;
  --panel-gradient-success: #101827;
  --panel-gradient-subtle: transparent;
  --card-glow-blue: 0 0 0 1px rgba(8, 124, 255, 0.35), 0 10px 28px rgba(8, 124, 255, 0.12);
  --card-glow-highlight: none;
  --metric-glow: none;
  --metric-glow-success: none;
  --metric-glow-danger: none;
  --shadow-glow: 0 0 40px rgba(8, 124, 255, 0.14);

  --border-subtle: rgba(36, 59, 96, 0.55);
  --border-default: #243B60;
  --border-strong: rgba(59, 130, 246, 0.45);
  --border-focus: #087CFF;
  --divider-metallic: rgba(36, 59, 96, 0.8);
  --divider-vertical: rgba(36, 59, 96, 0.8);

  --text-primary: #F8FAFC;
  --text-secondary: #A5B4C8;
  --text-tertiary: #8A9BB2;
  --text-muted: #7B8CA6;

  --accent-primary: #087CFF;
  --accent-highlight: #3B82F6;
  --accent-glow: rgba(8, 124, 255, 0.35);
  --accent-primary-hover: #006AE0;
  --accent-success: #30D158;
  --accent-success-muted: rgba(48, 209, 88, 0.14);
  --accent-warning: #FFD60A;
  --accent-warning-muted: rgba(255, 214, 10, 0.12);
  --accent-danger: #FF453A;
  --accent-danger-muted: rgba(255, 69, 58, 0.12);
  --accent-info: #4DA3FF;
  --accent-info-muted: rgba(8, 124, 255, 0.18);

  --state-selected-bg: #087CFF;
  --state-selected-border: #087CFF;
  --state-selected-text: #FFFFFF;
  --state-focus-ring: 0 0 0 3px rgba(8, 124, 255, 0.35);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 28px 64px rgba(0, 0, 0, 0.55);

  --radius-lg: 16px;
  --radius-xl: 18px;
  --bento-gap: 14px;
  --bento-pad: 18px;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  background: var(--surface-base);
  background-color: #08090D;
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100%;
  min-height: 100dvh;
}

/* Drop the legacy cobalt/noise overlays — they left a mismatched “floating” panel look on mobile */
body.theme-bento::before,
body.theme-bento::after {
  display: none;
}

/* ---------- Shell ---------- */
body.theme-bento .app-container,
body.theme-bento #app,
body.theme-bento .main-content,
body.theme-bento .tab-content,
body.theme-bento .workspace {
  background: var(--surface-base);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  html.theme-bento,
  body.theme-bento {
    background-color: #08090D !important;
    min-height: 100dvh !important;
  }
  body.theme-bento .app-container,
  body.theme-bento #app,
  body.theme-bento .main-content {
    min-height: 100dvh;
    background: var(--surface-base);
  }
}

body.theme-bento .sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: width 200ms ease;
}
body.theme-bento .sidebar::after { display: none; }
body.theme-bento .sidebar-header {
  border-bottom-color: var(--sidebar-border);
  background: transparent;
}
body.theme-bento .sidebar-header::after { display: none; }
body.theme-bento .sidebar-section-label {
  color: var(--sidebar-text-muted);
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}
body.theme-bento .sidebar-item {
  color: var(--sidebar-text-muted);
  border-radius: 10px;
  min-height: 40px;
}
body.theme-bento .sidebar-item:hover {
  background: rgba(124, 183, 255, 0.06);
  color: var(--text-primary);
}
body.theme-bento .sidebar-item.active {
  background: #087CFF;
  color: #FFFFFF;
}
body.theme-bento .sidebar-item.active::before {
  display: none;
}
body.theme-bento .sidebar-item.active .sidebar-item-icon {
  color: #FFFFFF;
  opacity: 1;
}
body.theme-bento .sidebar-item-icon {
  color: inherit;
  opacity: 0.85;
}
body.theme-bento .sidebar-user-name { color: #F8FAFC !important; font-weight: 600; }
body.theme-bento .sidebar-user-role { color: #AAB6C8 !important; }
body.theme-bento .sidebar-avatar {
  background: #3769AD;
  color: #fff;
}

/* Sidebar reflow */
body.theme-bento { --sidebar-current-width: 64px; }
body.theme-bento .topbar {
  left: var(--sidebar-current-width);
  margin-left: 0;
  right: 0;
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-default);
  box-shadow: none;
  transition: left 200ms ease;
}
body.theme-bento .topbar::after { display: none; }
body.theme-bento .main-content {
  margin-left: var(--sidebar-current-width);
  transition: margin-left 200ms ease;
  background: var(--surface-base);
}
@media (min-width: 769px) {
  body.theme-bento:has(.sidebar:hover),
  body.theme-bento:has(.sidebar:focus-within) {
    --sidebar-current-width: 220px;
  }
  body.theme-bento .sidebar:hover,
  body.theme-bento .sidebar:focus-within {
    width: 220px;
  }
}
@media (max-width: 768px) {
  body.theme-bento { --sidebar-current-width: 0px; }
  body.theme-bento .topbar,
  body.theme-bento .main-content { left: 0; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-bento .sidebar,
  body.theme-bento .topbar,
  body.theme-bento .main-content { transition: none !important; }
}

body.theme-bento .topbar-brand,
body.theme-bento .topbar-title,
body.theme-bento .topbar-breadcrumb span { color: var(--text-primary); }
body.theme-bento .topbar-breadcrumb,
body.theme-bento .topbar-title { color: var(--text-secondary); }
body.theme-bento .topbar-logout-btn,
body.theme-bento .topbar-btn {
  color: var(--text-secondary);
  border-color: var(--border-default);
  background: var(--surface-elevated);
}
body.theme-bento .topbar-status {
  background: var(--accent-success-muted);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--accent-success);
  box-shadow: none;
}

/* ---------- Shared controls ---------- */
body.theme-bento .btn-primary {
  background: #087CFF;
  border: 1px solid #087CFF;
  color: #fff;
  box-shadow: none;
  font-weight: 700;
  border-radius: 12px;
}
body.theme-bento .btn-primary:hover:not(:disabled) {
  background: #006AE0;
  border-color: #006AE0;
  transform: none;
  box-shadow: 0 0 24px rgba(8, 124, 255, 0.35);
}
body.theme-bento .btn-secondary,
body.theme-bento .btn-ghost {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: none;
}
body.theme-bento .btn-secondary:hover:not(:disabled),
body.theme-bento .btn-ghost:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

body.theme-bento .input,
body.theme-bento input.input,
body.theme-bento select.input,
body.theme-bento select,
body.theme-bento textarea,
body.theme-bento .auction-field-input {
  background: var(--surface-input) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-default) !important;
  box-shadow: none !important;
  border-radius: 12px;
}
body.theme-bento .input::placeholder { color: var(--text-muted); }
body.theme-bento .input:focus,
body.theme-bento select:focus,
body.theme-bento textarea:focus {
  border-color: var(--border-focus) !important;
  box-shadow: var(--state-focus-ring) !important;
  outline: none;
}

/* Segmented / selected */
body.theme-bento .title-box,
body.theme-bento .market-btn,
body.theme-bento .bid-plan-exit-btn,
body.theme-bento .bid-plan-roi-btn,
body.theme-bento .bid-tag-btn,
body.theme-bento .hail-severity-btn {
  background: var(--surface-input) !important;
  border: 1px solid var(--border-default) !important;
  color: var(--text-secondary) !important;
  box-shadow: none !important;
  border-radius: 10px;
  font-weight: 600;
}
body.theme-bento .title-box:hover,
body.theme-bento .market-btn:hover,
body.theme-bento .bid-plan-exit-btn:hover,
body.theme-bento .bid-plan-roi-btn:hover,
body.theme-bento .bid-tag-btn:hover {
  background: var(--surface-hover) !important;
  color: var(--text-primary) !important;
}
body.theme-bento .title-box.active,
body.theme-bento .auction-title-boxes .title-box.active,
body.theme-bento .market-btn.active,
body.theme-bento .bid-plan-exit-btn.active,
body.theme-bento .bid-plan-roi-btn.active,
body.theme-bento .bid-plan-suggest-roi-btn.active,
body.theme-bento .bid-tag-btn.active,
body.theme-bento .hail-severity-btn.active {
  background: #087CFF !important;
  border-color: #087CFF !important;
  color: #FFFFFF !important;
}

/* Info tooltip portal */
html.ac-info-tooltips-portal .info-tooltip > .tooltip-content {
  display: none !important;
}
.ac-info-tooltip-portal {
  position: fixed;
  z-index: 100000;
  width: min(300px, calc(100vw - 16px));
  padding: 12px 14px;
  background: #242A35;
  color: #F8FAFC;
  border: 1px solid #343B4B;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.ac-info-tooltip-portal[hidden] { display: none !important; }
.ac-info-tooltip-portal .tooltip-title {
  display: block;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.ac-info-tooltip-portal .tooltip-text,
.ac-info-tooltip-portal .tooltip-text p { color: #AAB6C8; margin: 0; }
body.theme-bento .info-icon {
  background: #242A35;
  color: #AAB6C8;
  border: 1px solid #343B4B;
  cursor: pointer;
}
body.theme-bento .form-section { overflow: visible; }

/* =====================================================
   Bid Engine — floating Bento layout
   ===================================================== */
body.theme-bento #calculator .workspace {
  padding: 18px;
  max-width: 1360px;
}
body.theme-bento #calculator .workspace-split,
body.theme-bento #calculator .workspace-main {
  background: transparent;
}

/* Floating section cards */
body.theme-bento #calculator .form-section,
body.theme-bento #calculator .decision-panel,
body.theme-bento #calculator .bid-plan-controls,
body.theme-bento #calculator .lot-char-card,
body.theme-bento #calculator .lot-comps-accordion,
body.theme-bento #calculator .hail-repair-card {
  background: var(--surface-raised) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: 18px !important;
  box-shadow: var(--shadow-sm) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  margin-bottom: 0;
}
body.theme-bento #calculator .form-section::before,
body.theme-bento #calculator .decision-panel::before,
body.theme-bento #calculator .decision-panel::after,
body.theme-bento #calculator .form-section-header::after {
  display: none !important;
}
body.theme-bento #calculator .form-section:hover {
  border-color: var(--border-strong) !important;
}
body.theme-bento #calculator .form-section-header {
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 18px;
  cursor: pointer;
}
body.theme-bento #calculator .form-section-header:hover {
  background: rgba(124, 183, 255, 0.03);
}
body.theme-bento #calculator .form-section-title {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
body.theme-bento #calculator .form-section-body {
  padding: var(--bento-pad);
  background: transparent !important;
}

/* Vehicle Identification — primary focus card */
body.theme-bento #calculator #section-vehicle .vi-block-head {
  display: none; /* remove repeated Identify heading */
}
body.theme-bento #calculator .vi-section-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.theme-bento #calculator .vi-vin-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
body.theme-bento #calculator .vi-vin-field {
  width: 100%;
}
body.theme-bento #calculator .vi-market-compact {
  margin-bottom: 18px;
}
body.theme-bento #calculator .vi-vin-group > .vin-decode-btn {
  margin-top: 0;
}
body.theme-bento #calculator .vin-input-wrap .input,
body.theme-bento #calculator .input.input-lg {
  min-height: 48px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: #11151D !important;
  border-color: #343B4B !important;
}
body.theme-bento #calculator .vin-decode-btn,
body.theme-bento #calculator .vin-decode-btn.btn-primary {
  width: auto;
  min-width: 148px;
  max-width: 180px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 700;
  background: #087CFF !important;
  border-color: #087CFF !important;
  color: #fff !important;
  border-radius: 12px;
  white-space: nowrap;
  align-self: flex-start;
}
body.theme-bento #calculator .vin-decode-btn:hover:not(:disabled) {
  background: #0060D6 !important;
}
body.theme-bento #calculator .vin-decode-btn:disabled {
  opacity: 0.55;
}
body.theme-bento #calculator .vi-vin-helper {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: none;
  border: 0;
  padding: 0;
}
body.theme-bento #calculator .vi-vin-helper::before { display: none; }
body.theme-bento #calculator .vi-identify-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
body.theme-bento #calculator .vi-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7B879C;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.theme-bento #calculator .vi-or-divider::before,
body.theme-bento #calculator .vi-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.22);
}
body.theme-bento #calculator .vi-lot-decode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
body.theme-bento #calculator .vi-lot-field {
  flex: 1 1 160px;
  min-width: 140px;
}
body.theme-bento #calculator .vi-lot-auction-field {
  flex: 0 1 130px;
  min-width: 120px;
}
body.theme-bento #calculator .vi-lot-auction-field .select {
  min-height: 42px;
  width: 100%;
  background: #11151D !important;
  border-color: #343B4B !important;
}
body.theme-bento #calculator .lot-decode-btn {
  align-self: end;
}
body.theme-bento #calculator .vi-lot-helper {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
body.theme-bento #calculator .market-toggle-container {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
body.theme-bento #calculator .market-toggle-switch {
  display: inline-flex;
  background: #11151D;
  border: 1px solid #343B4B;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
body.theme-bento #calculator .market-btn {
  border-radius: 999px !important;
  min-height: 34px;
  padding: 6px 12px;
}
body.theme-bento #calculator .form-label,
body.theme-bento #calculator .auction-field-label,
body.theme-bento #calculator .cost-input-label,
body.theme-bento #calculator .bid-plan-label,
body.theme-bento #calculator .market-toggle-label {
  color: var(--text-secondary) !important;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

/* Compact empty market */
body.theme-bento #calculator .vi-market-intel.is-empty {
  background: transparent;
  border: 0;
  padding: 0;
}
body.theme-bento #calculator .vi-market-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(36, 42, 53, 0.65);
  border: 1px dashed #343B4B;
  border-radius: 14px;
}
body.theme-bento #calculator .vi-market-empty[hidden],
body.theme-bento #calculator .vi-market-populated[hidden] {
  display: none !important;
}
body.theme-bento #calculator .vi-market-empty-label {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-primary);
}
body.theme-bento #calculator .vi-market-empty-copy {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Populated market — bento metrics */
body.theme-bento #calculator .vi-market-intel:not(.is-empty) {
  background: transparent;
  border: 0;
  padding: 0;
}
body.theme-bento #calculator .vi-market-populated .vi-block-head {
  margin-bottom: 8px;
}
body.theme-bento #calculator .vi-block-title {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
}
/*
  Market behavior (90d) — Avg days / Median / Mileage.
  Intended to show MarketCheck DOM + median price + median mileage after decode,
  but nothing currently feeds it (displayMarketBehavior is never called), so it
  stays empty dashes. Hide in bento — Market Pricing already shows sales + DOM.
*/
body.theme-bento #calculator #market-behavior,
body.theme-bento #calculator .vi-market-behavior {
  display: none !important;
}
body.theme-bento #calculator .bento-metrics,
body.theme-bento #calculator .vi-market-behavior .vehicle-info-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--bento-gap);
  margin: 0;
}
body.theme-bento #calculator .vi-market-behavior .vehicle-spec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface-raised) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
body.theme-bento #calculator .vi-metric-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: none;
}
body.theme-bento #calculator .vi-market-behavior .vehicle-spec > span:last-child {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

body.theme-bento #calculator .lot-char-card,
body.theme-bento #calculator .lot-comps-accordion {
  margin-top: 0;
}
body.theme-bento #calculator .lot-char-head {
  background: rgba(36, 42, 53, 0.65);
  border-bottom-color: var(--border-default);
}
body.theme-bento #calculator .lot-char-label { color: var(--text-secondary); }
body.theme-bento #calculator .lot-char-value { color: var(--text-primary); }

/* Auction details — compact, content-height (no equal-height stretch) */
body.theme-bento #calculator #section-auction > .form-section-body {
  padding: 12px 14px 14px !important;
}
body.theme-bento #calculator #section-auction .auction-details-body {
  background: transparent !important;
  gap: 22px !important;
  display: flex;
  flex-direction: column;
}
body.theme-bento #calculator #section-auction .auction-group {
  margin: 0;
  padding: 0;
}
body.theme-bento #calculator .auction-group-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #A5B4C8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
body.theme-bento #calculator #section-auction .auction-group + .auction-group {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
body.theme-bento #calculator #section-auction .auction-details-grid {
  gap: 10px !important;
}
body.theme-bento #calculator .auction-field-card {
  background: #0C1422 !important;
  border: 1px solid #243B60 !important;
  box-shadow: none !important;
  padding: 10px 12px !important;
  gap: 6px;
  border-radius: 12px !important;
}
body.theme-bento #calculator .auction-field-card--full {
  margin-top: 10px;
}
body.theme-bento #calculator #section-auction .auction-field-input,
body.theme-bento #calculator #section-auction .select.auction-field-input {
  min-height: 40px !important;
  padding: 8px 10px !important;
}
body.theme-bento #calculator .auction-field-hint {
  color: var(--text-secondary) !important;
  border: 0;
  padding-top: 4px;
  margin: 0;
  font-size: 0.72rem;
}
body.theme-bento #calculator .auction-field-label,
body.theme-bento #calculator .auction-field-label .unit-hint {
  color: var(--text-secondary) !important;
  font-size: 0.78rem !important;
}
body.theme-bento #calculator .title-status-boxes {
  gap: 8px;
}
body.theme-bento #calculator .title-box {
  background: #101827 !important;
  border: 1px solid #243B60 !important;
  color: #A5B4C8 !important;
}
body.theme-bento #calculator .title-box.active {
  background: rgba(8, 124, 255, 0.18) !important;
  border-color: #087CFF !important;
  color: #F8FAFC !important;
}
body.theme-bento #calculator .zero-miles-btn {
  background: #101827 !important;
  border: 1px solid #243B60 !important;
  color: var(--text-secondary) !important;
  border-radius: 10px;
}
body.theme-bento #calculator .zero-miles-btn:hover,
body.theme-bento #calculator .zero-miles-btn.active {
  background: rgba(8, 124, 255, 0.18) !important;
  color: #9CC9FF !important;
  border-color: rgba(8, 124, 255, 0.45) !important;
}

/* Costs */
body.theme-bento #calculator #section-costs .form-section-body {
  background: transparent !important;
}
body.theme-bento #calculator .cost-workflow-banner,
body.theme-bento #calculator .disclosure-intro-banner {
  background: rgba(36, 42, 53, 0.7) !important;
  border: 1px solid var(--border-default) !important;
  box-shadow: none !important;
  border-radius: 14px;
  padding: 12px 14px !important;
}
body.theme-bento #calculator .cost-workflow-header,
body.theme-bento #calculator .cost-workflow-header span,
body.theme-bento #calculator .disclosure-intro-header,
body.theme-bento #calculator .disclosure-intro-header span {
  color: var(--text-primary) !important;
}
body.theme-bento #calculator .cost-workflow-copy,
body.theme-bento #calculator .cost-workflow-copy span,
body.theme-bento #calculator .disclosure-intro-sub {
  color: var(--text-secondary) !important;
}
body.theme-bento #calculator .cost-workflow-copy a {
  color: #7CB7FF !important;
}
body.theme-bento #calculator .costs-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body.theme-bento #calculator .cost-input-card {
  background: var(--surface-elevated) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  padding: 14px !important;
}
/* Advanced Costs: licensing | misc fees side-by-side */
body.theme-bento #calculator #section-advanced .auction-details-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch;
}
body.theme-bento #calculator #section-advanced .misc-fees-card {
  grid-column: auto !important;
}
body.theme-bento #calculator #section-advanced .cost-input-card {
  height: 100%;
}
@media (max-width: 720px) {
  body.theme-bento #calculator #section-advanced .auction-details-grid-2 {
    grid-template-columns: 1fr !important;
  }
}
body.theme-bento #calculator .cost-input-label,
body.theme-bento #calculator .cost-input-hint,
body.theme-bento #calculator .cost-input-prefix,
body.theme-bento #calculator .cost-input-card .cost-input {
  color: var(--text-primary) !important;
}
body.theme-bento #calculator .cost-input-hint {
  color: var(--text-secondary) !important;
  opacity: 1 !important;
}
body.theme-bento #calculator .cost-input-value-wrap {
  background: #0C1422 !important;
  border: 1px solid #243B60 !important;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  min-height: 44px;
}
body.theme-bento #calculator .cost-input-value-wrap:focus-within {
  border-color: #087CFF !important;
  box-shadow: 0 0 0 3px rgba(8, 124, 255, 0.18);
}
body.theme-bento #calculator .cost-input-card .cost-input,
body.theme-bento #calculator .cost-input-value-wrap .input.cost-input,
body.theme-bento #calculator .cost-input-value-wrap input.cost-input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 10px 0 !important;
  min-height: 0 !important;
  width: 100%;
}
body.theme-bento #calculator .cost-input-card .cost-input:hover,
body.theme-bento #calculator .cost-input-card .cost-input:focus,
body.theme-bento #calculator .cost-input-value-wrap .input.cost-input:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
body.theme-bento #calculator .cost-input-icon {
  background: rgba(55, 105, 173, 0.22) !important;
  color: #7CB7FF !important;
  box-shadow: none !important;
}
body.theme-bento #calculator .cost-input-action {
  color: #7CB7FF !important;
}
body.theme-bento #calculator .hail-repair-card {
  background: var(--surface-elevated) !important;
  border: 1px solid #243B60 !important;
  margin-bottom: 18px !important;
}
body.theme-bento #calculator #section-costs .costs-input-grid {
  margin-top: 4px;
}

/* Disclosures */
body.theme-bento #calculator #section-disclosures .disclosure-details-body {
  background: transparent !important;
}
body.theme-bento #calculator .disclosure-flag {
  background: var(--surface-elevated) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
}
body.theme-bento #calculator .disclosure-flag:hover {
  background: var(--surface-hover) !important;
}
body.theme-bento #calculator .disclosure-flag::before {
  background: #11151D !important;
  border-color: #343B4B !important;
}
body.theme-bento #calculator .disclosure-flag.active {
  background: #263D60 !important;
  border-color: rgba(124, 183, 255, 0.35) !important;
}
body.theme-bento #calculator .disclosure-flag.active::before {
  background: #3769AD !important;
  border-color: #3769AD !important;
  color: #fff !important;
}
body.theme-bento #calculator .disclosure-flag-label,
body.theme-bento #calculator .disclosure-flag.active .disclosure-flag-label {
  color: var(--text-primary) !important;
}
body.theme-bento #calculator .disclosure-flag-adjust,
body.theme-bento #calculator .disclosure-flag.active .disclosure-flag-adjust {
  color: var(--text-secondary) !important;
}
body.theme-bento #calculator .disclosure-flag-positive,
body.theme-bento #calculator .disclosure-flag-positive.active {
  background: rgba(52, 211, 153, 0.1) !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
}
body.theme-bento #calculator .disclosure-flag-positive .disclosure-flag-label,
body.theme-bento #calculator .disclosure-flag-positive.active .disclosure-flag-label,
body.theme-bento #calculator .disclosure-flag-best {
  color: #34D399 !important;
}
body.theme-bento #calculator .disclosure-divider { color: var(--text-secondary) !important; }
body.theme-bento #calculator .disclosure-divider::before,
body.theme-bento #calculator .disclosure-divider::after {
  background: var(--border-default) !important;
}

/* Exit / ROI / CTA */
body.theme-bento #calculator .bid-plan-controls {
  padding: 16px 18px;
}
body.theme-bento #calculator #calculate-button,
body.theme-bento #calculator #save-estimate.btn-track-car:not(:disabled) {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  background: #087CFF !important;
  border-color: #087CFF !important;
  color: #fff !important;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(8, 124, 255, 0.35) !important;
}
body.theme-bento #calculator #calculate-button:hover:not(:disabled) {
  background: #0060D6 !important;
  box-shadow: 0 12px 32px rgba(8, 124, 255, 0.45) !important;
}

/* Decision / results bento */
body.theme-bento #calculator .workspace-aside {
  border-top: 0;
  margin-top: 4px;
}
body.theme-bento #calculator .decision-panel {
  background: #101827 !important;
  border: 1px solid #243B60 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.theme-bento #calculator .decision-panel-header {
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 18px;
}
body.theme-bento #calculator .decision-panel-title {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 750;
}
body.theme-bento #calculator .decision-panel-body { padding: 18px; }
body.theme-bento #calculator .results-placeholder-text { color: var(--text-secondary); }

/* Bidding Options by Exit Strategy
   #result.innerHTML replaces the padded decision-panel-body, so result-box
   must carry the inset — every child card stays parallel inside the panel. */
body.theme-bento #calculator #result.decision-panel {
  padding: 0 !important;
  overflow: visible; /* keep YOUR CEILING badge / tooltips unclipped */
}
body.theme-bento #calculator .result-box {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 16px !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}
body.theme-bento #calculator .result-box > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.theme-bento #calculator .result-header {
  background: #0C1422 !important;
  border: 1px solid #243B60 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  margin: 0 !important;
}
body.theme-bento #calculator .result-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
body.theme-bento #calculator .result-header-top h3 {
  margin: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 750 !important;
  color: #F8FAFC !important;
  letter-spacing: -0.02em;
}
body.theme-bento #calculator .result-header-top h3::before {
  content: "06  ";
  color: #087CFF;
  font-weight: 800;
}
body.theme-bento #calculator .result-protection-line {
  margin-top: 8px;
  color: #A5B4C8 !important;
  font-size: 0.82rem !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.theme-bento #calculator .result-protection-line svg {
  color: #087CFF;
  flex: 0 0 auto;
}
body.theme-bento #calculator .loc-summary-badge {
  background: rgba(8, 124, 255, 0.18) !important;
  border: 1px solid rgba(8, 124, 255, 0.45) !important;
  color: #9CC9FF !important;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}
body.theme-bento #calculator .bid-allocation-advice {
  background: #0C1422 !important;
  border: 1px solid #243B60 !important;
  border-left: 3px solid #087CFF !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
body.theme-bento #calculator .bid-allocation-advice-title {
  color: #F8FAFC !important;
  font-weight: 750 !important;
  font-size: 0.88rem !important;
  margin-bottom: 4px;
  line-height: 1.3;
}
body.theme-bento #calculator .bid-allocation-advice-body,
body.theme-bento #calculator .bid-plan-advice-disclaimer {
  color: #A5B4C8 !important;
  font-size: 0.78rem !important;
  line-height: 1.4;
  margin: 0;
}
body.theme-bento #calculator .bid-plan-advice-disclaimer {
  margin-top: 6px !important;
}
/* Outer frame for Retail | Wholesale — inset so columns never kiss the panel edges */
body.theme-bento #calculator .exits-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px !important;
  padding: 16px !important;
  margin: 0 !important;
  width: 100%;
  box-sizing: border-box;
  background: #080F1C !important;
  border: 1px solid #243B60 !important;
  border-radius: 16px !important;
  align-items: stretch;
}
body.theme-bento #calculator .exit-column,
body.theme-bento #calculator .bidding-option,
body.theme-bento #calculator .plan-stat,
body.theme-bento #calculator .deal-snapshot,
body.theme-bento #calculator .bidding-plan-summary {
  background: #0C1422 !important;
  border: 1px solid #243B60 !important;
  border-radius: 14px !important;
  color: var(--text-primary);
  box-shadow: none !important;
}
body.theme-bento #calculator .exit-column {
  display: flex !important;
  flex-direction: column;
  padding: 16px !important;
  gap: 12px !important;
  border-top: 1px solid #243B60 !important;
  background: #0C1422 !important;
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  overflow: visible;
}
body.theme-bento #calculator .exit-column.retail-column,
body.theme-bento #calculator .exit-column.wholesale-column {
  border-top: 1px solid #243B60 !important;
  background: #0C1422 !important;
}
body.theme-bento #calculator .exit-column.bid-plan-active-exit {
  border-color: rgba(8, 124, 255, 0.7) !important;
  box-shadow: 0 0 0 1px rgba(8, 124, 255, 0.25), 0 12px 28px rgba(0, 0, 0, 0.28) !important;
}
body.theme-bento #calculator .exit-column.bid-plan-inactive-exit {
  opacity: 1 !important;
  filter: none !important;
  border-color: rgba(36, 59, 96, 0.7) !important;
  background: #0A1220 !important;
}
body.theme-bento #calculator .exit-column.bid-plan-inactive-exit .exit-value .value-amount,
body.theme-bento #calculator .exit-column.bid-plan-inactive-exit .bidding-option {
  opacity: 0.72;
}
body.theme-bento #calculator .exit-header {
  margin-bottom: 4px !important;
  gap: 8px;
}
body.theme-bento #calculator .exit-title {
  color: #F8FAFC !important;
  font-weight: 750 !important;
  font-size: 0.95rem !important;
}
body.theme-bento #calculator .exit-icon {
  color: #087CFF !important;
  filter: none !important;
}
body.theme-bento #calculator .exit-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #101827;
  border: 1px solid rgba(36, 59, 96, 0.85);
  border-radius: 12px;
  margin: 0;
  height: auto !important;
  min-height: 0;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
body.theme-bento #calculator .max-bid-value {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: #F8FAFC !important;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
}
body.theme-bento #calculator .exit-value .value-amount {
  font-size: 1.35rem !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #F8FAFC !important;
  text-shadow: none !important;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
body.theme-bento #calculator .value-label,
body.theme-bento #calculator .bid-label { color: var(--text-secondary) !important; }
body.theme-bento #calculator .bidding-options-container {
  display: flex !important;
  flex-direction: column;
  gap: 10px !important;
  padding: 10px 0 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
  overflow: visible;
}
body.theme-bento #calculator .bidding-option {
  position: relative;
  padding: 12px 14px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: auto !important;
  min-height: 56px;
  overflow: visible !important;
  width: 100%;
  box-sizing: border-box;
  transform: none !important;
  margin: 0;
  flex-shrink: 0;
}
body.theme-bento #calculator .bidding-option:hover {
  transform: none !important;
}
body.theme-bento #calculator .bidding-option .roi-label {
  color: #A5B4C8 !important;
  font-size: 0.84rem !important;
  font-weight: 650 !important;
}
body.theme-bento #calculator .bidding-option .bid-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  min-width: 0;
}
body.theme-bento #calculator .bidding-option .profit-value {
  margin: 0 !important;
  font-size: 0 !important;
  color: transparent !important;
}
body.theme-bento #calculator .bidding-option .profit-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.28);
  color: #30D158 !important;
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
body.theme-bento #calculator .bidding-option.bid-plan-active-row,
body.theme-bento #calculator .bid-plan-active-row {
  background: rgba(8, 124, 255, 0.14) !important;
  border-color: rgba(8, 124, 255, 0.55) !important;
  margin-top: 12px;
  padding-top: 18px !important;
}
body.theme-bento #calculator .bid-plan-ceiling-badge {
  position: absolute !important;
  top: -10px !important;
  left: 12px !important;
  background: #087CFF !important;
  color: #FFFFFF !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  padding: 3px 8px !important;
  line-height: 1.2;
  z-index: 2;
}
body.theme-bento #calculator .custom-roi-row {
  background: #101827 !important;
  border: 1px solid #243B60 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
body.theme-bento #calculator .profit-positive,
body.theme-bento #calculator .text-success { color: #34D399 !important; }
body.theme-bento #calculator .profit-negative,
body.theme-bento #calculator .text-danger { color: #F87171 !important; }

/* Market-Based Valuation — match bento surfaces; rows + footer share one column width */
body.theme-bento #calculator .market-pricing-notice {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  background: #0C1422 !important;
  border: 1px solid #243B60 !important;
  border-radius: 14px !important;
  padding: 16px !important;
  margin: 0 !important;
  width: 100%;
  box-sizing: border-box;
}
body.theme-bento #calculator .market-pricing-notice .market-pricing-header {
  margin: 0 !important;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}
body.theme-bento #calculator .market-pricing-notice .market-pricing-header strong {
  color: #F8FAFC !important;
  font-size: 0.92rem;
  font-weight: 750;
}
body.theme-bento #calculator .market-pricing-notice .vin-badge {
  background: #101827 !important;
  border: 1px solid #243B60 !important;
  color: #A5B4C8 !important;
  border-radius: 999px !important;
}
body.theme-bento #calculator .market-pricing-body {
  display: flex !important;
  flex-direction: column;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  box-sizing: border-box;
}
body.theme-bento #calculator .market-row {
  background: #101827 !important;
  border: 1px solid #243B60 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  width: 100%;
  box-sizing: border-box;
}
body.theme-bento #calculator .market-row.highlight,
body.theme-bento #calculator .market-row.adjusted,
body.theme-bento #calculator .market-row.retail-final,
body.theme-bento #calculator .market-row.wholesale {
  background: #101827 !important;
  border: 1px solid #243B60 !important;
  box-shadow: none !important;
}
body.theme-bento #calculator .market-row.retail-final {
  border-color: rgba(8, 124, 255, 0.45) !important;
  background: rgba(8, 124, 255, 0.08) !important;
}
body.theme-bento #calculator .market-row.wholesale {
  border-color: rgba(77, 163, 255, 0.35) !important;
}
body.theme-bento #calculator .market-row-label {
  color: #A5B4C8 !important;
  font-size: 0.82rem !important;
}
body.theme-bento #calculator .market-row-value {
  color: #F8FAFC !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
}
body.theme-bento #calculator .market-row.retail-final .market-row-value,
body.theme-bento #calculator .market-row-value.highlight,
body.theme-bento #calculator .market-row-value.green {
  color: #4DA3FF !important;
  font-size: 1.05rem !important;
}
body.theme-bento #calculator .market-row.wholesale .market-row-value,
body.theme-bento #calculator .market-row-value.orange {
  color: #9CC9FF !important;
  font-size: 1.05rem !important;
}
body.theme-bento #calculator .market-row-value.negative {
  color: #F87171 !important;
}
body.theme-bento #calculator .market-pricing-note {
  margin: 0 !important;
  padding: 12px 14px !important;
  background: #101827 !important;
  border: 1px solid #243B60 !important;
  border-radius: 12px !important;
  color: #A5B4C8 !important;
  font-size: 0.78rem !important;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  body.theme-bento #calculator .exits-grid {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
    gap: 12px !important;
  }
  body.theme-bento #calculator .result-box {
    padding: 14px !important;
    gap: 12px !important;
  }
  body.theme-bento #calculator .result-header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  body.theme-bento #calculator .bidding-option {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  body.theme-bento #calculator .bidding-option .bid-details {
    align-items: flex-start;
    text-align: left;
  }
  body.theme-bento #calculator .max-bid-value {
    white-space: normal !important;
    font-size: 1.02rem !important;
  }
  body.theme-bento #calculator .exit-value .value-amount {
    font-size: 1.2rem !important;
  }
}

/* Advanced options quieter */
body.theme-bento #calculator .vi-advanced-details {
  border: 1px solid var(--border-default);
  border-radius: 14px;
  background: rgba(28, 32, 41, 0.6);
}
body.theme-bento #calculator .vi-advanced-summary {
  color: var(--text-secondary);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.82rem;
}
body.theme-bento #calculator .donor-mode-card--slim {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Ask assistant */
body.theme-bento .help-assistant-fab {
  background: #242A35 !important;
  border: 1px solid #343B4B !important;
  color: #F8FAFC !important;
  box-shadow: var(--shadow-md) !important;
}
body.theme-bento .help-assistant-root {
  bottom: 20px;
  right: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  body.theme-bento #calculator .bento-metrics,
  body.theme-bento #calculator .vi-market-behavior .vehicle-info-specs,
  body.theme-bento #calculator .costs-input-grid,
  body.theme-bento #calculator .auction-details-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  body.theme-bento #calculator .workspace { padding: 12px; }
  body.theme-bento #calculator .vi-vin-group { align-items: stretch; }
  body.theme-bento #calculator .vin-decode-btn { width: 100%; max-width: none; }
  body.theme-bento #calculator .bento-metrics,
  body.theme-bento #calculator .vi-market-behavior .vehicle-info-specs,
  body.theme-bento #calculator .costs-input-grid,
  body.theme-bento #calculator .auction-details-grid-2,
  body.theme-bento #calculator .disclosure-flags {
    grid-template-columns: 1fr !important;
  }
  body.theme-bento #calculator .vi-market-empty {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  body.theme-bento #calculator #calculate-button { width: 100%; }
  body.theme-bento #calculator .flex.gap-3.mt-4,
  body.theme-bento #calculator .bento-actions-row {
    flex-direction: column;
  }
  body.theme-bento #calculator .flex.gap-3.mt-4 .btn,
  body.theme-bento #calculator .bento-actions-row .btn { width: 100%; }
  body.theme-bento #calculator .result-box {
    padding: 12px !important;
    gap: 12px !important;
  }
  body.theme-bento #calculator .exits-grid {
    padding: 12px !important;
  }
  body.theme-bento #calculator .exit-column {
    padding: 14px !important;
  }
  body.theme-bento #calculator .market-row {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  body.theme-bento #calculator .vi-decode-overlay {
    padding: 16px;
  }
  body.theme-bento #calculator .vi-decode-overlay-panel {
    width: min(100%, 420px);
    padding: 22px 18px 18px;
  }
}

/* =====================================================
   Reference dashboard layout (numbered bento grid)
   ===================================================== */
body.theme-bento #calculator .workspace {
  max-width: 1400px;
  padding: 16px 18px 28px;
  background:
    radial-gradient(900px 480px at 78% 18%, rgba(8, 124, 255, 0.16), transparent 60%),
    #08090D;
}

/* Numbered card titles like the mockup */
body.theme-bento #calculator #section-vehicle .form-section-title::before { content: "01  "; color: #087CFF; font-weight: 800; }
body.theme-bento #calculator #section-pricing .form-section-title::before { content: "02  "; color: #087CFF; font-weight: 800; }
body.theme-bento #calculator #section-auction .form-section-title::before { content: "03  "; color: #087CFF; font-weight: 800; }
body.theme-bento #calculator #section-costs .form-section-title::before { content: "04  "; color: #087CFF; font-weight: 800; }
body.theme-bento #calculator #section-advanced .form-section-title::before { content: ""; }
body.theme-bento #calculator #section-disclosures .form-section-title::before,
body.theme-bento #calculator #section-strategy .form-section-title::before { content: "05  "; color: #087CFF; font-weight: 800; }
body.theme-bento #calculator .decision-panel-title::before { content: "06  "; color: #087CFF; font-weight: 800; }

body.theme-bento #calculator .form-section-toggle { opacity: 0.45; }

/*
  Floating cards — navy depth + blue outline.
  No backdrop blur here: the card background is solid, so a blur behind it is
  never visible, yet it made the browser keep every card as its own GPU surface
  and re-blur the page under it. When that fell behind (card resized, scrolling,
  busy machine) part of a card showed as bare page background — a black band
  over the fields. `isolation` keeps each card's own stacking order as before.
*/
body.theme-bento #calculator .form-section,
body.theme-bento #calculator .decision-panel,
body.theme-bento #calculator .bid-plan-controls {
  background: #101827 !important;
  border: 1px solid #243B60 !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate;
}
body.theme-bento #calculator .form-section:hover,
body.theme-bento #calculator .decision-panel:hover {
  border-color: rgba(59, 130, 246, 0.55) !important;
}
body.theme-bento #calculator .form-section:focus-within {
  border-color: rgba(8, 124, 255, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(8, 124, 255, 0.18), 0 12px 32px rgba(0, 0, 0, 0.38) !important;
}

/*
  Full-width bento flow:
  01 Vehicle
  02 Pricing | 03 Auction
  04 Costs (full, Advanced Costs nested)
  05 Buyer Adjustments (full)
  Calculate → 06 Max Bid (scroll target)
*/
body.theme-bento #calculator .workspace-split {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  align-items: stretch;
}
body.theme-bento #calculator .workspace-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}
body.theme-bento #calculator .workspace-aside {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  display: contents; /* Max Bid is parked after Calculate in main flow */
}
body.theme-bento #calculator .bento-mid-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px;
  min-width: 0;
}
body.theme-bento #calculator .bento-mid-row > .form-section,
body.theme-bento #calculator .bento-mid-row > #section-strategy,
body.theme-bento #calculator .bento-mid-row > #section-pricing {
  margin: 0;
  min-width: 0;
  width: 100%;
}
body.theme-bento #calculator #result.decision-panel {
  width: 100%;
  scroll-margin-top: 72px;
}
body.theme-bento #calculator .bento-deal-summary {
  width: 100%;
}

/* Avoid a second empty “market” strip under VIN — Market Pricing owns that */
body.theme-bento #calculator #vi-market-intel.is-empty {
  display: none;
}

@media (min-width: 980px) {
  body.theme-bento #calculator .workspace {
    max-width: 1440px;
  }
  body.theme-bento #calculator .bento-mid-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "pricing auction"
      "costs costs"
      "detect detect"
      "strategy strategy";
    gap: 14px;
    align-items: stretch;
  }
  body.theme-bento #calculator .bento-mid-row > #section-pricing { grid-area: pricing; }
  body.theme-bento #calculator .bento-mid-row > #section-auction { grid-area: auction; }
  body.theme-bento #calculator .bento-mid-row > #section-costs { grid-area: costs; }
  body.theme-bento #calculator .bento-mid-row > #vehicle-detection { grid-area: detect; }
  body.theme-bento #calculator .bento-mid-row > #section-strategy { grid-area: strategy; }
  /* Equal-height pair: pricing compresses to content; auction stays compact */
  body.theme-bento #calculator .bento-mid-row > #section-pricing,
  body.theme-bento #calculator .bento-mid-row > #section-auction {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }
  body.theme-bento #calculator .bento-mid-row > #section-pricing > .form-section-body {
    flex: 1 1 auto;
  }
  body.theme-bento #calculator .bento-mid-row > #section-auction > .form-section-body {
    flex: 0 0 auto;
  }
  body.theme-bento #calculator .bento-mid-row > #section-costs,
  body.theme-bento #calculator .bento-mid-row > #section-strategy {
    height: auto;
    display: flex;
    flex-direction: column;
  }
}

/* Advanced Costs nested inside Costs as a subsection */
body.theme-bento #calculator #section-costs #section-advanced {
  margin-top: 14px !important;
  background: #0C1422 !important;
  border: 1px solid #243B60 !important;
  box-shadow: none !important;
  border-radius: 14px !important;
}
body.theme-bento #calculator #section-costs #section-advanced > .form-section-header {
  padding: 12px 14px !important;
}
body.theme-bento #calculator #section-costs #section-advanced .form-section-title {
  font-size: 0.9rem !important;
}

body.theme-bento #calculator #section-strategy > .form-section-body > #section-disclosures {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.theme-bento #calculator #section-strategy > .form-section-body > #section-disclosures > .form-section-header {
  display: none;
}

/* —— Decoded vehicle hero (photo + characteristics) —— */
body.theme-bento #calculator .workspace-split.is-decoded #vi-identify {
  display: none;
}
body.theme-bento #calculator .vi-change-vin-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(10, 11, 16, 0.7);
}
body.theme-bento #calculator .workspace-split.is-decoded .vi-change-vin-bar {
  display: flex;
}
body.theme-bento #calculator .vi-change-vin-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
body.theme-bento #calculator .vi-change-vin-label {
  font-size: 0.72rem;
  color: #4DA3FF;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.theme-bento #calculator .vi-change-vin-value {
  font-size: 1.35rem;
  font-weight: 750;
  color: #F8FAFC;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
body.theme-bento #calculator .vi-change-vin-vin {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: #7EB6FF;
  letter-spacing: 0.04em;
}
body.theme-bento #calculator .vi-change-vin-btn {
  flex: 0 0 auto;
}
/* In-card stepper stays hidden — full-screen veil owns decode feedback */
body.theme-bento #calculator .vi-decode-progress {
  display: none !important;
}

/* Full-screen decode veil */
body.theme-bento #calculator.is-decoding .workspace {
  pointer-events: none;
  user-select: none;
}
body.theme-bento #calculator .vi-decode-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
body.theme-bento #calculator .vi-decode-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.theme-bento #calculator .vi-decode-overlay.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
body.theme-bento #calculator .vi-decode-overlay[hidden] {
  display: none !important;
}
body.theme-bento #calculator .vi-decode-overlay.is-active[hidden] {
  display: flex !important;
}
body.theme-bento #calculator .vi-decode-overlay-panel {
  width: min(420px, 100%);
  background: #101827;
  border: 1px solid #243B60;
  border-radius: 18px;
  padding: 28px 26px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
body.theme-bento #calculator .vi-decode-overlay-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(8, 124, 255, 0.2);
  border-top-color: #087CFF;
  animation: vi-spin 0.75s linear infinite;
}
body.theme-bento #calculator .vi-decode-overlay-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: #F8FAFC;
  letter-spacing: -0.02em;
  text-align: center;
}
body.theme-bento #calculator .vi-decode-overlay-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.theme-bento #calculator .vi-decode-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #A5B4C8;
}
body.theme-bento #calculator .vi-decode-step.is-active {
  color: #F8FAFC;
  font-weight: 600;
}
body.theme-bento #calculator .vi-decode-step.is-done {
  color: #3B82F6;
}
body.theme-bento #calculator .vi-decode-step-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex: 0 0 auto;
  position: relative;
}
body.theme-bento #calculator .vi-decode-step.is-active .vi-decode-step-icon {
  border-color: #087CFF;
  border-top-color: transparent;
  animation: vi-spin 0.7s linear infinite;
}
body.theme-bento #calculator .vi-decode-step.is-done .vi-decode-step-icon {
  border-color: #087CFF;
  background: #087CFF;
}
@keyframes vi-spin {
  to { transform: rotate(360deg); }
}

body.theme-bento #calculator .workspace-split.is-decoded #section-vehicle .form-section-body {
  gap: 12px;
}
body.theme-bento #calculator .lot-char-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.theme-bento #calculator .lot-char-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (min-width: 900px) {
  body.theme-bento #calculator .lot-char-hero.has-photo {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
      "photo info"
      "thumbs carfax";
    row-gap: 10px;
  }
  /* Row 1: photo beside the full details table. Row 2: thumbnails beside the Carfax card. */
  body.theme-bento #calculator .lot-char-hero.has-photo .lot-char-gallery {
    display: contents;
  }
  body.theme-bento #calculator .lot-char-hero.has-photo .lot-char-photo {
    grid-area: photo;
    align-self: stretch;
    aspect-ratio: auto;
    height: auto;
  }
  /* Never shorter than 4:3; grows with the table so neither side scrolls */
  body.theme-bento #calculator .lot-char-hero.has-photo .lot-char-photo::before {
    content: "";
    display: block;
    padding-top: 75%;
  }
  body.theme-bento #calculator .lot-char-hero.has-photo .lot-char-photo img {
    position: absolute;
    inset: 0;
  }
  body.theme-bento #calculator .lot-char-hero.has-photo .lot-char-thumbs {
    grid-area: thumbs;
  }
  body.theme-bento #calculator .lot-char-hero.has-photo .lot-char-info {
    grid-area: info;
  }
  body.theme-bento #calculator .lot-char-hero.has-photo .lot-char-info > .lot-char-grid {
    display: flex;
    flex-direction: column;
  }
  body.theme-bento #calculator .lot-char-hero.has-photo .lot-char-row {
    flex: 1 1 auto;
  }
  /* Compact rows so the whole table fits beside a 4:3 photo */
  body.theme-bento #calculator .lot-char-hero.has-photo .lot-char-cell {
    padding: 6px 12px;
    min-height: 0;
    grid-template-columns: minmax(86px, 36%) minmax(0, 1fr);
  }
  body.theme-bento #calculator .lot-char-hero.has-photo .lot-char-label {
    font-size: 0.74rem;
  }
  body.theme-bento #calculator .lot-char-hero.has-photo .lot-char-value {
    font-size: 0.82rem;
    line-height: 1.25;
  }
  body.theme-bento #calculator .lot-char-hero.has-photo .lot-char-thumbs {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    grid-auto-rows: 1fr;
    align-self: stretch;
  }
  body.theme-bento #calculator .lot-char-hero.has-photo .lot-char-thumb {
    aspect-ratio: auto;
    height: 100%;
    min-height: 56px;
  }
  body.theme-bento #calculator .lot-char-hero.has-photo > .carfax-cta-host {
    grid-area: carfax;
    margin-top: 0;
    min-width: 0;
    display: flex;
  }
  body.theme-bento #calculator .lot-char-hero.has-photo > .carfax-cta-host[hidden] {
    display: none;
  }
  body.theme-bento #calculator .lot-char-hero.has-photo > .carfax-cta-host > .carfax-cta {
    flex: 1 1 auto;
    margin: 0;
  }
}
body.theme-bento #calculator .lot-char-photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 9, 13, 0.62);
  color: #F8FAFC;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s ease, border-color 0.15s ease;
}
body.theme-bento #calculator .lot-char-photo-nav:hover {
  background: rgba(8, 124, 255, 0.85);
  border-color: rgba(8, 124, 255, 0.9);
}
body.theme-bento #calculator .lot-char-photo-nav.is-prev { left: 12px; }
body.theme-bento #calculator .lot-char-photo-nav.is-next { right: 12px; }
body.theme-bento #calculator .lot-char-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  height: auto;
  min-height: 0;
}
body.theme-bento #calculator .lot-char-photo {
  width: 100%;
  flex: 0 0 auto;
  height: auto;
  /* Auction lot photos are 4:3 landscape — the same shape means no bars and nothing cut off */
  aspect-ratio: 4 / 3;
  min-height: 0;
  max-height: none;
  border: 1px solid #243B60 !important;
  border-radius: 16px;
  overflow: hidden;
  background: #0A0B10;
  position: relative;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
body.theme-bento #calculator .workspace-split.has-photo .lot-char-photo {
  min-height: 0;
  max-height: none;
}
body.theme-bento #calculator .lot-char-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
body.theme-bento #calculator .lot-char-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  cursor: default;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  min-height: 0;
  max-height: none;
}
body.theme-bento #calculator .lot-char-photo-count {
  position: absolute;
  left: auto;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  background: rgba(8, 124, 255, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
}
body.theme-bento #calculator .lot-char-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  flex: 0 0 auto;
}
body.theme-bento #calculator .lot-char-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #243B60;
  background: #0A0B10;
  padding: 0;
  cursor: pointer;
}
body.theme-bento #calculator .lot-char-thumb.is-active {
  border-color: #087CFF;
  box-shadow: 0 0 0 1px rgba(8, 124, 255, 0.45);
}
body.theme-bento #calculator .lot-char-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.theme-bento #calculator .lot-char-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
body.theme-bento #calculator .lot-char-head {
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.theme-bento #calculator .lot-char-head-kicker {
  font-size: 0.72rem;
  color: #4DA3FF;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.theme-bento #calculator .lot-char-head-title {
  font-size: 1.35rem;
  font-weight: 750;
  color: #F8FAFC;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
body.theme-bento #calculator .lot-char-vin-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: #7EB6FF;
  letter-spacing: 0.04em;
}
body.theme-bento #calculator .carfax-return-banner {
  margin: 12px 16px 0;
}
body.theme-bento #calculator .carfax-return-banner .carfax-cta {
  margin: 0;
}
body.theme-bento #calculator .carfax-cta-host {
  margin-top: 12px;
}
body.theme-bento #calculator .carfax-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #243B60;
  background: linear-gradient(135deg, rgba(8, 124, 255, 0.14), rgba(12, 20, 34, 0.9));
}
body.theme-bento #calculator .carfax-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 180px;
}
body.theme-bento #calculator .carfax-cta-copy strong {
  color: #F8FAFC;
  font-size: 0.92rem;
  font-weight: 700;
}
body.theme-bento #calculator .carfax-cta-copy span {
  color: #A5B4C8;
  font-size: 0.8rem;
  line-height: 1.35;
}
body.theme-bento #calculator .carfax-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.theme-bento #calculator .carfax-cta-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: #087CFF;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}
body.theme-bento #calculator .carfax-cta-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
body.theme-bento #calculator .carfax-cta-btn.carfax-cta-secondary {
  background: #152238;
  border: 1px solid #243B60;
}
body.theme-bento #calculator .carfax-cta.is-failed {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.25);
}
body.theme-bento #calculator .carfax-cta.is-ready {
  border-color: rgba(52, 211, 153, 0.4);
}
/* Portfolio → Carfax Reports */
#purchased .carfax-lib-vehicle {
  font-weight: 600;
}
#purchased .carfax-lib-vin {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  opacity: 0.7;
  margin-top: 2px;
}
#purchased .carfax-lib-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
#purchased .carfax-lib-actions a.btn,
#purchased .carfax-inventory a.btn {
  text-decoration: none;
}
#purchased .carfax-lib-note {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0 0 12px;
}
#purchased .carfax-inventory {
  margin-top: 32px;
}
#purchased .carfax-inventory .wi-panel-title .badge {
  margin-left: 8px;
  vertical-align: middle;
}
#purchased .carfax-inv-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
#purchased .carfax-inv-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(127, 144, 170, 0.3);
  border-radius: 12px;
}
#purchased .carfax-inv-stats strong {
  font-size: 1.15rem;
  font-weight: 700;
}
#purchased .carfax-inv-stats span {
  font-size: 0.78rem;
  opacity: 0.7;
}
body.theme-bento #calculator .lot-char-grid {
  background: #0C1422;
  border: 1px solid #243B60;
  border-radius: 14px;
  overflow: hidden;
  flex: 1 1 auto;
}
body.theme-bento #calculator .lot-char-label {
  color: #A5B4C8 !important;
}
body.theme-bento #calculator .lot-char-value {
  color: #F8FAFC !important;
  font-weight: 650;
}
body.theme-bento #calculator .lot-char-row {
  border-bottom: 1px solid rgba(36, 59, 96, 0.7);
}
body.theme-bento #calculator .lot-char-row:last-child {
  border-bottom: 0;
}
body.theme-bento #calculator .lot-char-info .info-icon {
  color: #3B82F6 !important;
  border-color: rgba(59, 130, 246, 0.55) !important;
  background: rgba(8, 124, 255, 0.12) !important;
}
body.theme-bento #calculator .lot-char-pill.is-auction {
  background: rgba(8, 124, 255, 0.18) !important;
  border-color: rgba(8, 124, 255, 0.45) !important;
  color: #9CC9FF !important;
}
body.theme-bento #calculator .vi-change-vin-btn {
  border-color: rgba(8, 124, 255, 0.45) !important;
  color: #9CC9FF !important;
}
body.theme-bento #calculator .vi-change-vin-btn:hover {
  background: rgba(8, 124, 255, 0.14) !important;
}

/* Average price + auction history — parallel cards under hero */
body.theme-bento #calculator .lot-char-analytics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (min-width: 900px) {
  /* Same column split as the photo / details row so the card edges line up */
  body.theme-bento #calculator .lot-char-analytics {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    column-gap: 14px;
  }
}
body.theme-bento #calculator .lot-char-price-chart,
body.theme-bento #calculator .lot-char-history-host {
  width: 100%;
  min-width: 0;
  height: 100%;
}
body.theme-bento #calculator .lot-price-chart-card,
body.theme-bento #calculator .lot-history-card {
  background: #101827;
  border: 1px solid #243B60;
  border-radius: 14px;
  padding: 14px 14px 10px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
body.theme-bento #calculator .lot-history-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.theme-bento #calculator .lot-history-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
body.theme-bento #calculator .lot-history-card .lot-intel-table {
  width: 100%;
}
body.theme-bento #calculator .lot-history-card .lot-intel-pill.is-sold {
  background: rgba(8, 124, 255, 0.18) !important;
  border-color: rgba(8, 124, 255, 0.45) !important;
  color: #9CC9FF !important;
}
body.theme-bento #calculator .lot-char-pill.is-insurance,
body.theme-bento #calculator .lot-intel-pill.is-insurance {
  background: rgba(8, 124, 255, 0.18) !important;
  border-color: rgba(8, 124, 255, 0.45) !important;
  color: #9CC9FF !important;
}
body.theme-bento #calculator .lot-char-photo-empty .lot-char-photo-empty-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
body.theme-bento #calculator .lot-char-photo-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: #087CFF;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}
body.theme-bento #calculator .lot-char-photo-link:hover {
  background: #0060D6;
}
body.theme-bento #calculator .lot-char-link {
  color: #4DA3FF !important;
  font-size: 0.76rem;
  font-weight: 600;
  margin-left: 6px;
  text-decoration: none;
}
body.theme-bento #calculator .lot-char-link:hover {
  text-decoration: underline;
}
body.theme-bento #calculator .lot-char-seller {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}
body.theme-bento #calculator .lot-char-seller-name {
  color: #F8FAFC;
  font-weight: 650;
}
body.theme-bento #calculator .lot-price-chart-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
body.theme-bento #calculator .lot-price-chart-title .info-icon,
body.theme-bento #calculator .lot-history-title .info-icon {
  color: #3B82F6 !important;
  border-color: rgba(59, 130, 246, 0.55) !important;
  background: rgba(8, 124, 255, 0.12) !important;
}
body.theme-bento #calculator .lot-price-chart-title .tooltip-content {
  font-weight: 400;
}
body.theme-bento #calculator .lot-price-chart-stage {
  position: relative;
}
body.theme-bento #calculator .lot-price-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  cursor: crosshair;
}
body.theme-bento #calculator .lot-price-chart-line {
  stroke: #087CFF;
  stroke-width: 2.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-width 160ms ease, filter 160ms ease;
}
body.theme-bento #calculator .lot-price-chart-card.is-hovering .lot-price-chart-line {
  stroke-width: 3.25;
  filter: drop-shadow(0 0 6px rgba(8, 124, 255, 0.45));
}
body.theme-bento #calculator .lot-price-chart-area {
  fill: url(#lotPriceAreaFill);
  opacity: 0.9;
  transition: opacity 160ms ease;
}
body.theme-bento #calculator .lot-price-chart-card.is-hovering .lot-price-chart-area {
  opacity: 1;
}
body.theme-bento #calculator .lot-price-chart-dot {
  fill: #087CFF;
  stroke: #101827;
  stroke-width: 2;
  transition: r 160ms ease, fill 160ms ease, filter 160ms ease;
}
body.theme-bento #calculator .lot-price-chart-dot.is-hot {
  fill: #5BA8FF;
  filter: url(#lotPriceDotGlow);
}
body.theme-bento #calculator .lot-price-chart-hit {
  fill: transparent;
  stroke: none;
  pointer-events: all;
}
body.theme-bento #calculator .lot-price-chart-guide {
  stroke: rgba(91, 168, 255, 0.55);
  stroke-width: 1.25;
  stroke-dasharray: 3 4;
  pointer-events: none;
  transition: opacity 120ms ease;
}
body.theme-bento #calculator .lot-price-chart-active {
  fill: #E8F2FF;
  stroke: #087CFF;
  stroke-width: 2.5;
  filter: url(#lotPriceDotGlow);
  pointer-events: none;
  transition: cx 90ms ease, cy 90ms ease, opacity 120ms ease;
}
body.theme-bento #calculator .lot-price-chart-tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(8, 14, 28, 0.92);
  border: 1px solid rgba(8, 124, 255, 0.45);
  color: #F8FAFC;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: opacity 120ms ease, transform 90ms ease;
}
body.theme-bento #calculator .lot-price-chart-grid {
  stroke: rgba(165, 180, 200, 0.16);
  stroke-width: 1;
}
body.theme-bento #calculator .lot-price-chart-axis {
  fill: #A5B4C8;
  font-size: 9px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}
body.theme-bento #calculator .lot-price-chart-view-stats {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #087CFF;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  text-align: center;
}
body.theme-bento #calculator .lot-price-chart-view-stats:hover {
  color: #3B82F6;
  text-decoration: underline;
}
body.theme-bento #calculator .lot-price-chart-empty {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
body.theme-bento #calculator .lot-comps-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin: 0 0 12px;
}
body.theme-bento #calculator .lot-comps-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}
body.theme-bento #calculator .lot-comps-filter select {
  min-width: 140px;
  background: #0A0B10;
  border: 1px solid rgba(8, 124, 255, 0.28);
  color: #F8FAFC;
  border-radius: 10px;
  padding: 8px 10px;
}
body.theme-bento #calculator .lot-comps-filter-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: #A5B4C8;
  font-weight: 600;
  padding-bottom: 10px;
}
body.theme-bento #calculator .lot-comp-card.is-filtered-out,
body.theme-bento #calculator .lot-comp-card[hidden] {
  display: none !important;
}

/* Market pricing — compressed to sit parallel with Auction Details */
body.theme-bento #calculator #section-pricing .form-section-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.theme-bento #calculator #section-pricing .pricing-state-group {
  margin: 0;
}
body.theme-bento #calculator #section-pricing .pricing-state-group .form-label {
  margin-bottom: 4px;
  font-size: 0.78rem;
}
body.theme-bento #calculator #section-pricing .form-helper {
  font-size: 0.72rem;
  margin-top: 4px;
  line-height: 1.35;
  color: #A5B4C8;
}
body.theme-bento #calculator #section-pricing .pricing-state-select {
  min-height: 40px !important;
  padding: 8px 10px !important;
}
body.theme-bento #calculator .decision-panel {
  flex: 1 1 auto;
  min-height: 240px;
}
body.theme-bento #calculator .workspace-aside #section-pricing,
body.theme-bento #calculator .workspace-aside .decision-panel {
  width: 100%;
}
body.theme-bento #calculator #section-pricing .market-pricing-card-redesign {
  background: #0C1422 !important;
  border: 1px solid #243B60 !important;
  border-radius: 12px !important;
  padding: 14px 14px !important;
  margin: 0 !important;
  box-shadow: none !important;
  flex: 1 1 auto;
  min-height: 0;
}
/* Grow when visible — never force display (JS toggles inline show/hide) */
body.theme-bento #calculator #section-pricing #inferred-pricing-display:not([style*="display: none"]):not([style*="display:none"]) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.theme-bento #calculator #section-pricing .market-card-header {
  margin-bottom: 8px !important;
  padding-bottom: 8px !important;
}
body.theme-bento #calculator #section-pricing .market-card-title {
  font-size: 0.84rem !important;
}
body.theme-bento #calculator #section-pricing .market-card-price {
  font-size: 2rem !important;
  margin: 6px 0 12px !important;
  line-height: 1.1 !important;
  text-shadow: none !important;
  letter-spacing: -0.03em;
}
body.theme-bento #calculator #section-pricing .market-card-stats {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px !important;
  margin-top: 0 !important;
}
body.theme-bento #calculator #section-pricing .market-stat {
  padding: 12px 12px !important;
  gap: 4px !important;
  background: #101827 !important;
  border: 1px solid rgba(36, 59, 96, 0.85) !important;
  border-radius: 10px !important;
  flex: 1 1 auto;
}
body.theme-bento #calculator #section-pricing .market-stat-icon {
  display: none !important;
}
body.theme-bento #calculator #section-pricing .market-stat-value {
  font-size: 1rem !important;
  color: #F8FAFC !important;
}
body.theme-bento #calculator #section-pricing .market-stat-label {
  font-size: 0.68rem !important;
  color: #A5B4C8 !important;
}
body.theme-bento #calculator #section-pricing .spec-match-note {
  margin-top: 8px !important;
  padding: 6px 10px !important;
  font-size: 0.72rem !important;
  background: rgba(8, 124, 255, 0.1) !important;
  border: 1px solid rgba(8, 124, 255, 0.3) !important;
  color: #9CC9FF !important;
  border-radius: 8px !important;
}
body.theme-bento #calculator #section-pricing .pricing-cards-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
body.theme-bento #calculator #section-pricing .kpi-card,
body.theme-bento #calculator #section-pricing .pricing-cards-row .kpi-card {
  background: #0C1422 !important;
  border: 1px solid #243B60 !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
}
body.theme-bento #calculator #section-pricing .kpi-value {
  color: #F8FAFC !important;
  font-size: 1.05rem !important;
  font-weight: 750 !important;
}
body.theme-bento #calculator #section-pricing .kpi-label {
  color: #A5B4C8 !important;
  font-size: 0.72rem !important;
}
body.theme-bento #calculator #section-pricing .market-card-badge,
body.theme-bento #calculator #section-pricing .badge-success,
body.theme-bento #calculator #section-pricing .mileage-adj-status.above-average,
body.theme-bento #calculator #section-pricing .mileage-adj-status.below-average {
  background: rgba(8, 124, 255, 0.18) !important;
  border: 1px solid rgba(8, 124, 255, 0.45) !important;
  color: #9CC9FF !important;
  font-size: 0.65rem !important;
  padding: 3px 8px !important;
}
body.theme-bento #calculator #section-pricing .mileage-adj-total-value.positive,
body.theme-bento #calculator #section-pricing .mileage-adj-total-value.negative,
body.theme-bento #calculator #section-pricing .text-success {
  color: #3B82F6 !important;
}
body.theme-bento #calculator #section-pricing .mileage-adjustment-redesign {
  background: #0C1422 !important;
  border: 1px solid #243B60 !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  margin: 0 !important;
}
body.theme-bento #calculator #section-pricing #calculator-override-section {
  margin-top: 4px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  flex: 0 0 auto;
}
body.theme-bento #calculator #section-pricing .price-override-toggle,
body.theme-bento #calculator #section-pricing #price-override-toggle-label {
  margin: 0 !important;
  padding: 8px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.theme-bento #calculator #section-pricing .price-override-toggle:hover,
body.theme-bento #calculator #section-pricing .price-override-toggle.active {
  background: transparent !important;
  border: 0 !important;
}
body.theme-bento #calculator #section-pricing .price-override-label {
  color: #A5B4C8 !important;
  font-size: 0.82rem !important;
}
body.theme-bento #calculator #section-pricing .price-override-toggle.active .price-override-label {
  color: #F8FAFC !important;
}
body.theme-bento #calculator #section-pricing .price-override-toggle .toggle-track,
body.theme-bento #calculator #section-pricing .override-adjust-toggle .toggle-track {
  background: #152238 !important;
  border: 1px solid #243B60 !important;
}
body.theme-bento #calculator #section-pricing input:checked + .toggle-track,
body.theme-bento #calculator #section-pricing .price-override-toggle.active .toggle-track,
body.theme-bento #calculator #section-pricing .price-override-toggle input:checked + .toggle-track {
  background: #087CFF !important;
  border-color: #087CFF !important;
}
@media (max-width: 720px) {
  body.theme-bento #calculator #section-pricing .pricing-cards-row,
  body.theme-bento #calculator #section-pricing .market-card-stats {
    grid-template-columns: 1fr;
  }
}

/* Deal summary footer bar */
body.theme-bento #calculator .bento-deal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(90deg, #071B38 0%, #0A2A55 55%, #071B38 100%);
  border: 1px solid rgba(8, 124, 255, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
body.theme-bento #calculator .bento-deal-summary[hidden] { display: none !important; }
body.theme-bento #calculator .bento-deal-summary .bento-sum-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.65);
  margin-bottom: 4px;
}
body.theme-bento #calculator .bento-deal-summary .bento-sum-value {
  font-size: 1.05rem;
  font-weight: 750;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}
body.theme-bento #calculator .bento-deal-summary .bento-sum-value.is-profit {
  color: #30D158;
}

/* Strategy card contains disclosures + exit/ROI */
body.theme-bento #calculator #section-strategy > .form-section-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
body.theme-bento #calculator #section-strategy #bid-engine-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 6px !important;
  padding: 0;
  position: relative;
  z-index: 2;
  overflow: visible;
  flex: 0 0 auto;
}
body.theme-bento #calculator #section-strategy .bid-tag-btn {
  position: relative;
  z-index: 1;
  overflow: visible;
  margin: 0;
}
/* Keep tag tooltips below the chips so they don't collide with Exit strategy */
body.theme-bento #calculator #section-strategy .bid-tag-tooltip {
  top: calc(100% + 8px);
  bottom: auto;
}
body.theme-bento #calculator #section-strategy .bid-tag-tooltip::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: rgba(36, 59, 96, 0.95);
}
body.theme-bento #calculator #section-strategy #section-disclosures,
body.theme-bento #calculator #section-strategy .bid-plan-controls {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.theme-bento #calculator #section-strategy #section-disclosures .form-section-header {
  display: none;
}

body.theme-bento #calculator .cost-input-action,
body.theme-bento #calculator .cost-workflow-copy a {
  color: #4DA3FF !important;
}

body.theme-bento #calculator .zero-miles-btn:hover,
body.theme-bento #calculator .zero-miles-btn.active {
  background: #087CFF !important;
  color: #FFFFFF !important;
  border-color: #087CFF !important;
}

body.theme-bento #calculator .disclosure-flag.active {
  background: rgba(8, 124, 255, 0.16) !important;
  border-color: rgba(8, 124, 255, 0.45) !important;
}
body.theme-bento #calculator .disclosure-flag.active::before {
  background: #087CFF !important;
  border-color: #087CFF !important;
}

/* Salvage / rebuilt disclosure lock */
body.theme-bento #calculator .disclosure-locked-message,
body.theme-bento #calculator #disclosure-salvage-lock {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px !important;
  background: rgba(8, 124, 255, 0.1) !important;
  border: 1px solid rgba(8, 124, 255, 0.35) !important;
  border-radius: 14px !important;
  color: #A5B4C8 !important;
  font-size: 0.86rem !important;
  line-height: 1.45;
}
body.theme-bento #calculator .disclosure-locked-message .lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(8, 124, 255, 0.18);
  color: #087CFF !important;
  font-size: 0 !important;
}
body.theme-bento #calculator .disclosure-locked-message .lock-icon svg {
  display: block;
}
body.theme-bento #calculator .disclosure-locked-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
body.theme-bento #calculator .disclosure-locked-copy strong {
  color: #F8FAFC;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Bid plan controls inside Buyer Adjustments */
body.theme-bento #calculator #section-strategy .bid-plan-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 !important;
  margin: 10px 0 0 !important;
  position: relative;
  z-index: 1;
  clear: both;
}
body.theme-bento #calculator #section-strategy .bid-plan-section {
  background: #0C1422;
  border: 1px solid #243B60;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
body.theme-bento #calculator .bid-plan-required {
  background: rgba(8, 124, 255, 0.18) !important;
  color: #9CC9FF !important;
  border: 1px solid rgba(8, 124, 255, 0.4) !important;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.theme-bento #calculator .bid-plan-roi-hint {
  color: #A5B4C8 !important;
  font-size: 0.78rem !important;
  margin: 0;
}
body.theme-bento #calculator .bid-plan-exit-toggle,
body.theme-bento #calculator .bid-plan-roi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 900px) {
  body.theme-bento #calculator #section-strategy .bid-plan-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1179px) {
  body.theme-bento #calculator .bento-deal-summary {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  body.theme-bento #calculator .bento-deal-summary {
    grid-template-columns: 1fr;
  }
  body.theme-bento #calculator .bento-mid-row {
    display: flex;
    flex-direction: column;
  }
}

/* =====================================================
   Large monitors — scale the whole app so a 1920–4K screen shows the
   same layout as a ~1500px laptop, just bigger (instead of tiny + empty sides).
   Media queries read the real screen width; layout inside sees width ÷ zoom.
   ===================================================== */
@media (min-width: 1680px) {
  html.theme-bento { zoom: 1.1; }
}
@media (min-width: 1880px) {
  html.theme-bento { zoom: 1.25; }
}
@media (min-width: 2200px) {
  html.theme-bento { zoom: 1.4; }
}
@media (min-width: 2400px) {
  html.theme-bento { zoom: 1.6; }
}
@media (min-width: 3000px) {
  html.theme-bento { zoom: 1.9; }
}
@media (min-width: 3600px) {
  html.theme-bento { zoom: 2.2; }
}
