/* ==========================================================================
   SolvaDesk — Australia V2G & Amber SmartShift Payback Workbench
   Aesthetic: Australian Smart-Grid & Clean-Energy Telemetry (#071318 / #0c1f26)
   ========================================================================== */

:root {
  --bg-canvas: #071318;
  --bg-surface: #0c1f26;
  --bg-elevated: #112a33;
  --bg-input: #08171d;
  --bg-hover: #153440;

  --border-subtle: rgba(148, 197, 209, 0.13);
  --border-emerald: rgba(16, 185, 129, 0.32);
  --border-amber: rgba(245, 158, 11, 0.32);

  --text-primary: #ecf6f9;
  --text-secondary: #9bb8c2;
  --text-muted: #648490;

  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-dim: rgba(16, 185, 129, 0.14);

  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-dim: rgba(245, 158, 11, 0.14);

  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --cyan-dim: rgba(6, 182, 212, 0.14);

  --rose: #f43f5e;
  --rose-dim: rgba(244, 63, 94, 0.14);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-panel: 0 14px 34px rgba(0, 0, 0, 0.36);
}

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

html {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.10), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(6, 182, 212, 0.08), transparent 38%),
    linear-gradient(rgba(16, 185, 129, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  overflow-x: hidden;
}

.mono,
.num-input,
.kpi-value,
.telemetry-pill,
.stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--emerald-bright);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #6ee7b7;
}

/* Top Telemetry Header & Breadcrumb */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 19, 24, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.crumb-sep {
  color: var(--text-muted);
}

.crumb-current {
  color: var(--text-secondary);
}

.telemetry-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.73rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.telemetry-pill.live {
  border-color: var(--border-emerald);
  background: var(--emerald-dim);
  color: var(--emerald-bright);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 6px var(--emerald-bright);
}

/* Main Shell */
.shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
}

/* Hero Intro */
.hero {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-bright);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3.1vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--text-primary);
  max-width: 940px;
}

.hero-sub {
  margin: 0;
  max-width: 860px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* Vehicle Preset Bar */
.preset-strip-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-panel);
}

.preset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.preset-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.preset-btn {
  appearance: none;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.8rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.preset-btn:hover {
  background: var(--bg-hover);
  border-color: rgba(16, 185, 129, 0.4);
}

.preset-btn.active {
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.18), rgba(12, 31, 38, 0.95));
  border-color: var(--emerald);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.preset-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.preset-name {
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.25;
}

.preset-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.12rem 0.38rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-bright);
  white-space: nowrap;
}

.preset-badge.neutral {
  background: rgba(148, 197, 209, 0.12);
  color: var(--text-secondary);
}

.preset-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* Workbench Split Layout */
.workbench-grid {
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

/* Left Column: Input Controls */
.controls-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-panel);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.step-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
  background: var(--cyan-dim);
  color: var(--cyan-bright);
  border: 1px solid rgba(6, 182, 212, 0.28);
}

.control-group {
  margin-bottom: 1rem;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.control-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.control-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.num-input-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.18rem 0.5rem;
  gap: 0.25rem;
  transition: border-color 0.15s ease;
}

.num-input-wrap:focus-within {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.18);
}

.unit-prefix,
.unit-suffix {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  user-select: none;
}

.num-input {
  width: 68px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: right;
  outline: none;
  padding: 0.12rem 0;
  -moz-appearance: textfield;
}

.num-input::-webkit-outer-spin-button,
.num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Custom Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid rgba(148, 197, 209, 0.15);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--emerald-bright);
  border: 2px solid var(--bg-canvas);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4), 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.12s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

input[type="range"].amber-slider::-webkit-slider-thumb {
  background: var(--amber-bright);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4), 0 2px 6px rgba(0, 0, 0, 0.5);
}

input[type="range"].cyan-slider::-webkit-slider-thumb {
  background: var(--cyan-bright);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.4), 0 2px 6px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--emerald-bright);
  border: 2px solid var(--bg-canvas);
  cursor: pointer;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.chip-btn {
  appearance: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.22rem 0.52rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.14s ease;
}

.chip-btn:hover {
  border-color: var(--emerald);
  color: var(--text-primary);
}

.chip-btn.active {
  background: var(--emerald-dim);
  border-color: var(--emerald);
  color: var(--emerald-bright);
}

/* Segmented Source Selector */
.source-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.source-tab {
  appearance: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.45rem;
  color: var(--text-secondary);
  font-size: 0.77rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  line-height: 1.25;
  transition: all 0.14s ease;
}

.source-tab span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.source-tab.active {
  background: var(--amber-dim);
  border-color: var(--amber);
  color: var(--amber-bright);
}

.source-tab.active span {
  color: var(--text-primary);
}

/* Right Column: Telemetry Outputs & Visuals */
.results-col {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.15rem;
  box-shadow: var(--shadow-panel);
  position: relative;
  overflow: hidden;
}

.kpi-card.primary-emerald {
  border-color: var(--border-emerald);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.13) 0%, rgba(12, 31, 38, 0.98) 62%);
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.kpi-value {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.kpi-card.primary-emerald .kpi-value {
  color: var(--emerald-bright);
}

.kpi-sub {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Annual Net V2G Breakdown Bar */
.ledger-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-panel);
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: center;
}

.ledger-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
}

.ledger-item-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.38rem;
  margin-bottom: 0.25rem;
}

.dot-emerald {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.dot-amber {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.dot-rose {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
}

.dot-cyan {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.ledger-item-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
}

.val-pos {
  color: var(--emerald-bright);
}

.val-spike {
  color: var(--amber-bright);
}

.val-cost {
  color: #fda4af;
}

.ledger-item-detail {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.clamp-notice {
  margin-top: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-amber);
  color: var(--amber-bright);
  font-size: 0.79rem;
  display: none;
}

.clamp-notice.visible {
  display: block;
}

/* Battery Health & Warranty Telemetry Strip */
.battery-health-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.2rem;
  box-shadow: var(--shadow-panel);
}

.bh-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.bh-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.bh-sub {
  font-size: 0.79rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.warranty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--emerald-dim);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-bright);
}

.warranty-badge.caution {
  background: var(--amber-dim);
  border-color: var(--border-amber);
  color: var(--amber-bright);
}

.cycle-meter-track {
  height: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  margin-bottom: 0.55rem;
}

.cycle-seg-drive {
  background: var(--cyan);
  height: 100%;
  transition: width 0.2s ease;
}

.cycle-seg-v2g {
  background: var(--emerald);
  height: 100%;
  transition: width 0.2s ease;
}

.bh-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.77rem;
  color: var(--text-secondary);
}

/* SVG Chart Cards */
.chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-panel);
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.chart-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.chart-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Energy Flow Schematic Strip */
.flow-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.9rem;
}

.flow-node {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.flow-node-title {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.flow-node-val {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.flow-arrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--emerald-bright);
  padding: 0 0.25rem;
}

.svg-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-hover-readout {
  margin-top: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Action Bar (CSV + Pro Simulator CTA) */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(17, 42, 51, 0.95), rgba(12, 31, 38, 0.98));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
}

.action-btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-secondary,
.btn-pro {
  appearance: none;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.16s ease;
}

.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--cyan-bright);
  background: var(--bg-hover);
}

.btn-pro {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #04130e;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.btn-pro:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.pro-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.1rem 0.38rem;
  border-radius: 4px;
  background: rgba(4, 19, 14, 0.22);
  color: #03120d;
  text-transform: uppercase;
}

/* Reference Comparison & Authoritative FAQ */
.info-section {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.35rem;
}

.spec-table-wrap {
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.spec-table th,
.spec-table td {
  padding: 0.62rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--emerald-bright);
  font-size: 1.05rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Pro Beta Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 12, 16, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  background: var(--bg-surface);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.modal-close {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-family: var(--font-mono);
}

.modal-feature-list {
  margin: 0.85rem 0 1.1rem;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.modal-feature-list li {
  margin-bottom: 0.4rem;
}

.modal-form-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.modal-select,
.modal-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.58rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-sans);
}

.modal-input {
  flex: 1 1 180px;
}

.modal-confirm-msg {
  display: none;
  margin-top: 0.8rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--emerald-dim);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-bright);
  font-size: 0.83rem;
}

.modal-confirm-msg.visible {
  display: block;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .preset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .workbench-grid {
    grid-template-columns: 1fr;
  }
  .info-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .preset-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .ledger-grid {
    grid-template-columns: 1fr 1fr;
  }
  .flow-strip {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .flow-arrow {
    display: none;
  }
  .source-tabs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .preset-grid {
    grid-template-columns: 1fr;
  }
  .ledger-grid {
    grid-template-columns: 1fr;
  }
  .shell {
    padding: 1.2rem 0.9rem 3rem;
  }
}
