/* ==========================================================================
   BV Simulatore — Main Stylesheet
   Adapted from designer template. All sizes in px (Oxygen sets 1rem=10px).
   All selectors scoped under #bv-sim for specificity.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

/* ─── Design tokens ─── */
#bv-sim {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface-sunken: #EFEEE9;
  --surface-dark: #1A1D23;
  --surface-dark-soft: #24272E;

  --text-primary: #1A1D23;
  --text-secondary: #6B6E76;
  --text-tertiary: #9B9DA3;
  --text-on-dark: #F6F5F1;
  --text-on-dark-secondary: #9B9DA3;

  --green-bg: #E8F5E2;
  --green: #2E7D32;
  --green-vivid: #00C853;
  --green-dark: #1B5E20;
  --green-glow: rgba(0, 200, 83, 0.12);

  --red-bg: #FDECEA;
  --red: #C62828;
  --red-vivid: #FF1744;
  --red-dark: #B71C1C;

  --amber-bg: #FFF8E1;
  --amber: #F9A825;
  --amber-dark: #F57F17;

  --accent: #3D5AFE;
  --accent-soft: rgba(61, 90, 254, 0.08);

  --border: #E3E2DD;
  --border-light: #EEEDEA;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-glow-green: 0 4px 32px rgba(46, 125, 50, 0.15);
  --shadow-glow-red: 0 4px 32px rgba(198, 40, 40, 0.15);

  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Fraunces', Georgia, serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset & base ─── */
#bv-sim *, #bv-sim *::before, #bv-sim *::after { box-sizing: border-box; }

#bv-sim {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  font-size: 15px;
}

/* ─── Animated entrance ─── */
@keyframes bv-fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bv-pulseGlow {
  0%, 100% { box-shadow: var(--shadow-md); }
  50% { box-shadow: var(--shadow-glow-green); }
}

#bv-sim .animate-in { animation: bv-fadeUp 0.5s var(--ease-out) both; }
#bv-sim .delay-1 { animation-delay: 0.05s; }
#bv-sim .delay-2 { animation-delay: 0.1s; }
#bv-sim .delay-3 { animation-delay: 0.15s; }
#bv-sim .delay-4 { animation-delay: 0.2s; }
#bv-sim .delay-5 { animation-delay: 0.25s; }

/* ═══════════════════════════════════════
   STEP 1 — STATUS HERO
   ═══════════════════════════════════════ */

#bv-sim .status-hero {
  background: var(--surface-dark);
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
}
#bv-sim .status-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(46,125,50,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Product context tags */
#bv-sim .product-context {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
#bv-sim .product-context .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-on-dark-secondary);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
#bv-sim .product-context .tag svg { width: 13px; height: 13px; opacity: 0.7; }
#bv-sim .product-context .tag.transport {
  background: rgba(61, 90, 254, 0.15);
  border-color: rgba(61, 90, 254, 0.2);
  color: #8FA4FF;
}
#bv-sim .product-context .tag.bus-type {
  background: rgba(249, 168, 37, 0.15);
  border-color: rgba(249, 168, 37, 0.2);
  color: #F9C846;
}
#bv-sim .product-context .separator {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}
#bv-sim .pending-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--amber-dark);
  background: var(--amber-bg);
  padding: 4px 10px;
  border-radius: 100px;
}
#bv-sim .pending-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: bv-pulse 2s ease-in-out infinite;
}
@keyframes bv-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Product title */
#bv-sim .product-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-on-dark);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

/* Profit display */
#bv-sim .profit-display {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
#bv-sim .profit-block { flex: 1; min-width: 180px; }
#bv-sim .profit-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-secondary);
  margin-bottom: 4px;
}
#bv-sim .profit-value {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
#bv-sim .profit-value.positive { color: var(--green-vivid); }
#bv-sim .profit-value.negative { color: var(--red-vivid); }

#bv-sim .margin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  margin-top: 6px;
}
#bv-sim .margin-badge.positive { background: rgba(0, 200, 83, 0.12); color: var(--green-vivid); }
#bv-sim .margin-badge.negative { background: rgba(255, 23, 68, 0.12); color: var(--red-vivid); }

/* Quick stats row */
#bv-sim .quick-stats { display: flex; gap: 24px; flex-wrap: wrap; }
#bv-sim .quick-stat { text-align: center; }
#bv-sim .quick-stat .qs-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-on-dark);
  line-height: 1.2;
}
#bv-sim .quick-stat .qs-label {
  font-size: 11px;
  color: var(--text-on-dark-secondary);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
#bv-sim .stats-divider {
  width: 100%; height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 18px 0 14px;
}

/* Warning / error badges */
#bv-sim .badge-warn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  color: var(--amber-dark); background: var(--amber-bg);
  padding: 3px 8px; border-radius: 4px;
}
#bv-sim .badge-error {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  color: var(--red-dark); background: var(--red-bg);
  padding: 3px 8px; border-radius: 4px;
}

/* ═══════════════════════════════════════
   STEP 2 — DETAILS PANEL (collapsible)
   ═══════════════════════════════════════ */

#bv-sim .details-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 14px;
  overflow: hidden;
}
#bv-sim .details-panel summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s;
}
#bv-sim .details-panel summary::-webkit-details-marker { display: none; }
#bv-sim .details-panel summary::before {
  content: '';
  width: 18px; height: 18px;
  background: var(--surface-sunken);
  border-radius: 4px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236B6E76' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.25s var(--ease-out);
}
#bv-sim .details-panel[open] summary::before { transform: rotate(180deg); }
#bv-sim .details-panel summary:hover { color: var(--text-primary); }
#bv-sim .details-panel .panel-body { padding: 0 20px 18px; }

/* Breakdown rows (JS-generated) */
#bv-sim .brow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}
#bv-sim .brow:last-child { border-bottom: none; }
#bv-sim .brow .left { color: var(--text-secondary); font-weight: 400; }
#bv-sim .brow .right {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  color: var(--text-primary);
  text-align: right;
}
#bv-sim .brow.total {
  border-top: 2px solid var(--text-primary);
  border-bottom: none;
  padding-top: 10px; margin-top: 4px;
}
#bv-sim .brow.total .left { font-weight: 600; color: var(--text-primary); }
#bv-sim .brow.total .right { font-weight: 700; font-size: 14px; }

/* Meta tables (JS-generated) */
#bv-sim .meta-table { margin: 4px 0; }
#bv-sim .meta-table .row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
  border-bottom: 1px dashed var(--border-light);
}
#bv-sim .meta-table .row:last-child { border-bottom: none; }
#bv-sim .meta-table .row .left { color: var(--text-tertiary); }
#bv-sim .meta-table .row .right {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Calc steps (JS-generated) */
#bv-sim .step { margin-bottom: 12px; }
#bv-sim .step__label {
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════
   STEP 3 — SIMULATION FORM
   ═══════════════════════════════════════ */

#bv-sim .sim-section { margin-top: 14px; }
#bv-sim .sim-section-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
#bv-sim .sim-section-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
#bv-sim .sim-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

/* Form grid */
#bv-sim .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
#bv-sim .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#bv-sim .form-group.full-width { grid-column: 1 / -1; }
#bv-sim .form-group label {
  font-size: 12px; font-weight: 500;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 4px;
}
#bv-sim .form-group label .hint {
  font-weight: 400;
  color: var(--text-tertiary);
  font-size: 11px;
}

#bv-sim .form-input {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 500;
  color: var(--text-primary);
  background: var(--surface-sunken);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
#bv-sim .form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
#bv-sim .form-input::placeholder { color: var(--text-tertiary); font-weight: 400; }

/* Input with prefix */
#bv-sim .input-wrapper { position: relative; }
#bv-sim .input-wrapper .prefix {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 14px; color: var(--text-tertiary);
  pointer-events: none;
}
#bv-sim .input-wrapper .form-input { padding-left: 28px; }

/* Form divider */
#bv-sim .form-divider {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0;
}
#bv-sim .form-divider span {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-tertiary); white-space: nowrap;
}
#bv-sim .form-divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border-light);
}

/* Advanced toggle */
#bv-sim .advanced-toggle { grid-column: 1 / -1; margin-top: 2px; }
#bv-sim .advanced-toggle summary {
  font-size: 12px; font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 4px;
  user-select: none; transition: color 0.2s;
}
#bv-sim .advanced-toggle summary:hover { color: var(--text-secondary); }
#bv-sim .advanced-toggle summary::-webkit-details-marker { display: none; }
#bv-sim .advanced-toggle summary::after {
  content: '\203A'; font-size: 14px;
  transition: transform 0.2s var(--ease-out);
}
#bv-sim .advanced-toggle[open] summary::after { transform: rotate(90deg); }
#bv-sim .advanced-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 12px;
}

/* ═══════════════════════════════════════
   STEP 4 — IMPACT / DELTA DISPLAY
   ═══════════════════════════════════════ */

#bv-sim .impact-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 14px;
}
#bv-sim .impact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#bv-sim .impact-card.active-up {
  border-color: var(--green);
  box-shadow: var(--shadow-glow-green);
}
#bv-sim .impact-card.active-down {
  border-color: var(--red);
  box-shadow: var(--shadow-glow-red);
}
#bv-sim .impact-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 4px;
}
#bv-sim .impact-delta {
  font-family: var(--font-mono);
  font-size: 26px; font-weight: 700; line-height: 1.2;
}
#bv-sim .impact-delta.delta-up { color: var(--green); }
#bv-sim .impact-delta.delta-down { color: var(--red); }
#bv-sim .impact-abs {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--text-tertiary); margin-top: 2px;
}

/* Breakeven badge & extra stats row */
#bv-sim .breakeven-badge {
  grid-column: 1 / -1;
  background: var(--surface-sunken);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
#bv-sim .breakeven-badge .be-label { font-size: 13px; color: var(--text-secondary); }
#bv-sim .breakeven-badge .be-value {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 700;
  color: var(--green-dark);
}

/* Pullman-specific occupancy strip */
#bv-sim .pullman-stats {
  grid-column: 1 / -1;
  display: flex; gap: 20px; flex-wrap: wrap;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}
#bv-sim .pullman-stat-label { font-size: 12px; color: var(--text-tertiary); }
#bv-sim .pullman-stat-value {
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 600; color: var(--text-primary);
}

/* ═══════════════════════════════════════
   STEP 5 — DECISION BAR
   ═══════════════════════════════════════ */

#bv-sim #decision-bar {
  margin-top: 14px;
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  transition: all 0.4s var(--ease-out);
  position: relative; overflow: hidden;
}
#bv-sim #decision-bar::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0.04; pointer-events: none;
}

#bv-sim #decision-bar.neutral {
  background: var(--surface);
  border: 1.5px dashed var(--border);
}
#bv-sim #decision-bar.neutral #decision-text { color: var(--text-tertiary); font-size: 14px; }

#bv-sim #decision-bar.good {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
  border: none;
  box-shadow: var(--shadow-glow-green);
  animation: bv-pulseGlow 3s ease-in-out infinite;
}
#bv-sim #decision-bar.good::before {
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.15), transparent 70%);
  opacity: 1;
}

#bv-sim #decision-bar.bad {
  background: linear-gradient(135deg, #B71C1C 0%, #C62828 100%);
  border: none;
  box-shadow: var(--shadow-glow-red);
}
#bv-sim #decision-bar.bad::before {
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.12), transparent 70%);
  opacity: 1;
}

#bv-sim #decision-bar.warn {
  background: linear-gradient(135deg, #F57F17 0%, #F9A825 100%);
  border: none;
}

#bv-sim .decision-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 12px;
}
#bv-sim #decision-bar.good .decision-icon { background: rgba(255,255,255,0.15); }
#bv-sim #decision-bar.bad .decision-icon { background: rgba(255,255,255,0.15); }
#bv-sim #decision-bar.warn .decision-icon { background: rgba(255,255,255,0.2); }
#bv-sim #decision-bar.neutral .decision-icon { background: var(--surface-sunken); }

#bv-sim #decision-text {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  line-height: 1.3; margin-bottom: 10px;
}
#bv-sim #decision-bar.good #decision-text,
#bv-sim #decision-bar.bad #decision-text,
#bv-sim #decision-bar.warn #decision-text { color: #fff; }

#bv-sim #decision-reasons {
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 16px; padding: 0;
}
#bv-sim #decision-reasons li {
  font-size: 13px; padding-left: 16px;
  position: relative; line-height: 1.4;
}
#bv-sim #decision-bar.good #decision-reasons li,
#bv-sim #decision-bar.bad #decision-reasons li,
#bv-sim #decision-bar.warn #decision-reasons li { color: rgba(255,255,255,0.8); }
#bv-sim #decision-bar.neutral #decision-reasons li { color: var(--text-tertiary); }
#bv-sim #decision-reasons li::before {
  content: '\2192'; position: absolute; left: 0; font-size: 12px;
}
#bv-sim #decision-reasons:empty { display: none; }

#bv-sim #decision-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  padding: 10px 24px;
  border-radius: 100px; border: none;
  cursor: pointer; transition: all 0.2s;
}
#bv-sim #decision-cta:disabled { opacity: 0.4; cursor: not-allowed; }
#bv-sim #decision-cta.btn-primary { background: #fff; color: var(--green-dark); }
#bv-sim #decision-cta.btn-primary:hover:not(:disabled) {
  background: rgba(255,255,255,0.9); transform: translateY(-1px);
}
#bv-sim #decision-cta.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
#bv-sim #decision-cta.btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,0.2); }

/* ═══════════════════════════════════════
   DEBUG PANEL
   ═══════════════════════════════════════ */

#bv-sim .bv-debug-panel {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  overflow: hidden;
}
#bv-sim .bv-debug-panel > summary {
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 6px;
  user-select: none;
}
#bv-sim .bv-debug-panel > summary::-webkit-details-marker { display: none; }
#bv-sim .bv-debug-panel > summary::before { content: '\2699'; font-size: 13px; }

#bv-sim .bv-debug-body {
  padding: 0 18px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.6;
}
#bv-sim .bv-debug-section { margin-bottom: 14px; }
#bv-sim .bv-debug-section-title {
  font-weight: 600; color: var(--text-primary);
  font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px; padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

/* Legacy debug row support */
#bv-sim .bv-debug-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px; padding: 2px 0;
  align-items: baseline;
  font-size: 11px;
}
#bv-sim .bv-debug-label { color: var(--text-secondary); }
#bv-sim .bv-debug-formula { font-size: 10px; color: var(--text-tertiary); font-style: italic; text-align: right; }
#bv-sim .bv-debug-value { font-family: var(--font-mono); font-weight: 500; color: var(--text-primary); text-align: right; min-width: 80px; }
#bv-sim .bv-debug-row.missing .bv-debug-value { color: var(--red); }
#bv-sim .bv-debug-row.zero .bv-debug-value { color: var(--amber); }
#bv-sim .bv-debug-row.result { background: rgba(61, 90, 254, 0.06); border-radius: 3px; padding: 2px 6px; }
#bv-sim .bv-debug-row.result .bv-debug-value { color: var(--accent); font-weight: 600; }
#bv-sim .bv-debug-sep { border: none; border-top: 1px dashed var(--border); margin: 6px 0; }

/* WS Form search card */
#bv-sim .bv-search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 16px;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 640px) {
  #bv-sim { padding: 12px 10px 60px; }
  #bv-sim .status-hero { padding: 20px 18px; }
  #bv-sim .product-title { font-size: 18px; }
  #bv-sim .profit-value { font-size: 30px; }
  #bv-sim .quick-stats { gap: 16px; }
  #bv-sim .form-grid,
  #bv-sim .advanced-fields { grid-template-columns: 1fr; }
  #bv-sim .impact-strip { grid-template-columns: 1fr; }
  #bv-sim #decision-bar { padding: 20px; }
  #bv-sim #decision-text { font-size: 16px; }
  #bv-sim .bv-debug-row { grid-template-columns: 1fr auto; }
  #bv-sim .bv-debug-formula { display: none; }
}

/* ─── Focus visible ─── */
#bv-sim :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
