/* ============================================================
   OLYMPO Financial Plan — Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --bg-page: #f8f9fb;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f4f8;
  --bg-header: #1e2d45;
  --bg-hover: #f5f7fa;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --accent: #1d4ed8;
  --accent-light: #3b82f6;
  --accent-faint: #eff6ff;

  --green: #16a34a;
  --green-faint: #f0fdf4;
  --red: #dc2626;
  --red-faint: #fef2f2;
  --amber: #d97706;
  --amber-faint: #fffbeb;

  --fac-padel: #0ea5e9;
  --fac-pool: #06b6d4;
  --fac-gym: #8b5cf6;
  --fac-squash: #f59e0b;
  --fac-ice: #3b82f6;

  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.fnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.fnav--scrolled {
  box-shadow: var(--shadow-md);
}

.fnav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 24px;
}

.fnav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fnav__logo-mark {
  width: 32px;
  height: 32px;
  background: var(--bg-header);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.fnav__logo-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.fnav__logo-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.fnav__links {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.fnav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.fnav__link:hover {
  color: var(--accent);
  background: var(--accent-faint);
}

.fnav__back {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.fnav__back:hover {
  background: var(--accent);
  color: #fff;
}

.fnav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.fnav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.25s;
}

.fnav__burger.open span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.fnav__burger.open span:nth-child(2) { opacity: 0; }
.fnav__burger.open span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* ============================================================
   SCENARIO BAR (sticky below nav)
   ============================================================ */
.scenario-bar {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.scenario-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.scenario-bar__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.scenario-bar__tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-surface-alt);
  padding: 3px;
  border-radius: var(--radius-md);
}

.stab {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.stab__mult {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-right: 4px;
}

.stab:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.04);
}

.stab--active {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(29,78,216,0.3);
}

.stab--active .stab__mult {
  color: rgba(255,255,255,0.7);
}

.scenario-bar__indicator {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.scenario-bar__sep {
  color: var(--border-strong);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.report-section {
  padding: 80px 0;
}

.report-section--alt {
  background: var(--bg-surface-alt);
}

.report-section:first-of-type {
  padding-top: 140px; /* account for nav + bar */
}

.section-head {
  margin-bottom: 40px;
}

.report-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-faint);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.report-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.report-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ============================================================
   KPI GRID (Executive Summary)
   ============================================================ */
.summary-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  transition: border-color 0.15s;
}

.kpi-cell:hover {
  border-color: var(--border-strong);
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}

.kpi-unit {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.kpi-delta {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.delta-pos {
  color: var(--green);
  background: var(--green-faint);
}

.delta-neg {
  color: var(--red);
  background: var(--red-faint);
}

.kpi-cell--revenue .kpi-value { color: var(--accent); }
.kpi-cell--profit .kpi-value { color: var(--green); }
.kpi-cell--cost .kpi-value { color: var(--amber); }
.kpi-cell--highlight {
  border-color: var(--accent);
  background: var(--accent-faint);
}
.kpi-cell--highlight .kpi-value { color: var(--accent); }

/* Summary aside */
.summary-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.summary-legal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.summary-legal__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.summary-legal p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.summary-facilities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sfac-dot {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  border-left: 3px solid var(--c);
}

/* ============================================================
   ACCORDION (Unit Economics)
   ============================================================ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s;
}

.accordion-item:hover {
  border-color: var(--border-strong);
}

.accordion-item.open {
  border-color: var(--accent);
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  transition: background 0.15s;
}

.accordion-header:hover {
  background: var(--bg-hover);
}

.acc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.acc-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 160px;
}

.acc-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 80px;
}

.acc-stat-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.acc-stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.acc-chevron {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.accordion-item.open .acc-chevron {
  transform: rotate(90deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-item.open .accordion-body {
  max-height: 600px;
}

.accordion-content {
  padding: 0 20px 24px;
  border-top: 1px solid var(--border);
}

.unit-grid {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 24px;
  margin-top: 20px;
}

/* Pricing model box */
.pricing-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table td {
  padding: 5px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--bg-surface-alt);
}

.pricing-table td:first-child {
  color: var(--text-secondary);
}

.pricing-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-primary);
}

/* Calculation table */
.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.calc-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 8px 10px;
  text-align: right;
  border-bottom: 2px solid var(--border);
}

.calc-table th:first-child {
  text-align: left;
}

.calc-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--bg-surface-alt);
}

.calc-table td:first-child {
  color: var(--text-secondary);
}

.calc-table td:not(:first-child) {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
}

.calc-table .active-col {
  background: var(--accent-faint);
}

.calc-table .highlight-row td {
  font-weight: 600;
  color: var(--accent);
  border-bottom-color: var(--border);
}

.calc-table .profit-row td {
  font-weight: 600;
  color: var(--green);
}

/* Unit aside */
.unit-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.unit-img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 3/2;
}

.unit-capex, .unit-opex-badge {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-alt);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.unit-capex-val, .unit-opex-badge span:first-child {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.unit-capex-lbl, .unit-opex-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   DATA TABLES (shared)
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  background: var(--bg-surface-alt);
}

.data-table th:not(:first-child) {
  text-align: right;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--bg-surface-alt);
}

.data-table td:not(:first-child) {
  text-align: right;
  font-family: var(--font-mono);
}

.data-table .fac-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  margin-right: 8px;
}

.data-table .active-col {
  background: var(--accent-faint);
}

/* Mini bar in table cell */
.mini-bar {
  height: 8px;
  background: var(--bg-surface-alt);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  min-width: 80px;
}

.mini-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--pct);
  background: var(--c);
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* Table row types */
.table-subtotal td {
  font-weight: 600;
  border-top: 2px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.table-misc td {
  color: var(--text-muted);
  font-style: italic;
}

.table-total td {
  font-weight: 700;
  border-top: 2px solid var(--border);
  background: var(--bg-surface-alt);
}

/* P&L table specific */
.pl-table { width: 100%; }

.pl-table .group-header td {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-top: 20px;
  border-bottom: 1px solid var(--border);
  background: none;
}

.pl-table .indent td:first-child {
  padding-left: 28px;
}

.pl-table .subtotal-row td {
  font-weight: 700;
  border-top: 1px solid var(--border);
}

.pl-table .total-row td {
  font-weight: 700;
  font-size: 16px;
}

.pl-table .cost { color: var(--red); }
.pl-table .profit { color: var(--green); }

.pl-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--amber-faint);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================================
   CAPEX & GANTT TIMELINE
   ============================================================ */
.capex-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.gantt {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.gantt-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.gantt-months {
  display: flex;
  justify-content: space-between;
  padding-left: 110px;
  margin-bottom: 12px;
}

.gantt-months span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.gantt-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.gantt-label {
  width: 110px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.gantt-track {
  flex: 1;
  height: 24px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.gantt-build {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--start) / 48 * 100%);
  width: calc((var(--end) - var(--start)) / 48 * 100%);
  background: var(--c);
  border-radius: var(--radius-sm);
  opacity: 0.85;
}

.gantt-revenue {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--start) / 48 * 100%);
  width: calc((var(--end) - var(--start)) / 48 * 100%);
  background: var(--c);
  opacity: 0.2;
  border-radius: var(--radius-sm);
  border-top: 2px dashed var(--c);
}

/* ============================================================
   5-YEAR PROJECTION
   ============================================================ */
.projection-table .recovery-year td {
  background: var(--green-faint);
}

.capex-bar-cell {
  position: relative;
  min-width: 100px;
}

.capex-bar-track {
  height: 16px;
  background: var(--bg-surface-alt);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.capex-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 8px;
  transition: width 0.6s ease;
  min-width: 2px;
}

.capex-bar-label {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

.proj-chart-wrap {
  margin-top: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.chart-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* ============================================================
   SCENARIO COMPARISON
   ============================================================ */
.scenario-table .active-col {
  background: var(--accent-faint);
}

.sensitivity-note {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.sensitivity-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sensitivity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sensitivity-grid > div {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 10px 12px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* ============================================================
   BREAK-EVEN
   ============================================================ */
.be-table { width: 100%; }

.be-safety {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.be-safety.safe { color: var(--green); background: var(--green-faint); }
.be-safety.moderate { color: var(--amber); background: var(--amber-faint); }
.be-safety.risky { color: var(--red); background: var(--red-faint); }

.be-bar {
  height: 16px;
  background: var(--bg-surface-alt);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  min-width: 120px;
}

.be-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--be-pct);
  background: var(--amber);
  border-radius: 8px;
  opacity: 0.6;
  transition: width 0.6s ease;
}

.be-bar::after {
  content: '';
  position: absolute;
  left: var(--be-pct);
  top: 0;
  bottom: 0;
  right: 0;
  border-top: 2px dashed var(--green);
  opacity: 0.4;
}

/* ============================================================
   FOOTER
   ============================================================ */
.report-footer {
  background: var(--bg-header);
  padding: 40px 0;
  margin-top: 40px;
}

.report-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.report-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.report-footer__brand span:last-child {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.report-footer__docs {
  display: flex;
  gap: 16px;
  align-items: center;
}

.report-footer__docs a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.report-footer__docs a:hover { color: #fff; }

.docs-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-footer__docs span:not(.docs-label) {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.report-footer__legal {
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  margin-top: 8px;
}

.report-footer__legal small {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .summary-layout {
    grid-template-columns: 1fr;
  }
  .summary-aside {
    display: none;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .unit-grid {
    grid-template-columns: 1fr 1fr;
  }
  .unit-aside {
    display: none;
  }
  .capex-layout {
    grid-template-columns: 1fr;
  }
  .sensitivity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .fnav__links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    overflow-y: auto;
  }
  .fnav__links.open { display: flex; }
  .fnav__link { padding: 12px 16px; font-size: 15px; }
  .fnav__back { display: none; }
  .fnav__burger { display: flex; }

  .scenario-bar__inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 16px;
  }
  .scenario-bar__label { display: none; }
  .scenario-bar__indicator { display: none; }
  .stab { font-size: 12px; padding: 5px 10px; }
  .stab__mult { display: none; }

  .report-section:first-of-type { padding-top: 130px; }
  .report-section { padding: 48px 0; }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .kpi-value { font-size: 22px; }
  .kpi-cell { padding: 14px; }

  .unit-grid {
    grid-template-columns: 1fr;
  }

  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 10px; }

  .gantt-label { width: 80px; font-size: 11px; }

  .report-footer__inner { flex-direction: column; text-align: center; }
  .report-footer__docs { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .scenario-bar__tabs { width: 100%; justify-content: center; }
  .acc-stat { display: none; }
  .acc-name { min-width: 0; }
}
