:root {
  --ink: #172033;
  --graphite: #253044;
  --deep: #111827;
  --line: rgba(23, 32, 51, 0.11);
  --muted: #667085;
  --paper: #f6f7fb;
  --pearl: #ffffff;
  --mist: #eef2f7;
  --emerald: #16836b;
  --forest: #1f4f46;
  --gold: #b98928;
  --gold-soft: #efe2bd;
  --aqua: #3b82b8;
  --danger: #b54740;
  --radius: 8px;
  --shadow: 0 12px 30px rgba(23, 32, 51, 0.06);
}

body[data-theme="dark"] {
  --ink: #eef2f7;
  --graphite: #d7dee9;
  --deep: #070b12;
  --line: rgba(226, 232, 240, 0.13);
  --muted: #9aa6b8;
  --paper: #0c111a;
  --pearl: #121926;
  --mist: #1a2230;
  --emerald: #35a88e;
  --forest: #78c6b4;
  --gold: #d5aa4d;
  --gold-soft: #e9d49b;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .nav-list button {
  color: #cbd5e1;
}

body[data-theme="dark"] .sidebar {
  background: #101722;
  border-right-color: rgba(226, 232, 240, 0.12);
}

body[data-theme="dark"] .brand-lockup,
body[data-theme="dark"] .sidebar-footer {
  color: #94a3b8;
}

body[data-theme="dark"] .sidebar-footer strong {
  color: #e2e8f0;
}

body[data-theme="dark"] .nav-list button {
  color: #cbd5e1;
}

body[data-theme="dark"] .nav-list button::before {
  background: #1f2937;
  color: #94a3b8;
}

body[data-theme="dark"] .nav-list button.active {
  background: rgba(53, 168, 142, 0.14);
  border-color: rgba(53, 168, 142, 0.26);
  color: #d8f3eb;
}

body[data-theme="dark"] .business-risk,
body[data-theme="dark"] .review-banner {
  background: #251e10;
}

body[data-theme="dark"] .segmented,
body[data-theme="dark"] .bridge-row {
  background: #171f2c;
}

body[data-theme="dark"] .segmented button {
  color: #cbd5e1;
}

body[data-theme="dark"] .segmented button.active {
  background: #eef2f7;
  color: #111827;
}

body[data-theme="dark"] .filter-grid select,
body[data-theme="dark"] .filter-grid input,
body[data-theme="dark"] .filter-actions button,
body[data-theme="dark"] .scenario-actions button,
body[data-theme="dark"] .model-inputs input,
body[data-theme="dark"] .model-inputs select,
body[data-theme="dark"] .allocation-inputs input,
body[data-theme="dark"] .header-select select,
body[data-theme="dark"] .header-controls button,
body[data-theme="dark"] .manual-resource-links a,
body[data-theme="dark"] .manual-hero-actions a {
  background-color: #121926;
  color: #f8fafc;
}

body[data-theme="dark"] .filter-actions button:last-child {
  background: #eef2f7;
  border-color: #eef2f7;
  color: #111827;
}

body[data-theme="dark"] .review-banner {
  background: #2b2414;
  color: #f8e7b8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body[data-auth="locked"] {
  overflow: hidden;
}

body[data-auth="locked"] .app-shell {
  display: none !important;
}

body[data-auth="unlocked"] .auth-gate {
  display: none;
}

.auth-gate {
  align-items: center;
  background:
    linear-gradient(rgba(8, 19, 31, 0.72), rgba(8, 19, 31, 0.86)),
    url("assets/business-development/04_lead_ecosystem.png") center / cover no-repeat;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 14px;
  justify-self: center;
  max-width: 470px;
  padding: 30px;
  width: 100%;
}

.auth-logo {
  height: 62px;
  width: auto;
}

.auth-card > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-card h1 {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  margin: 0;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.auth-card label {
  display: grid;
  gap: 7px;
}

.auth-card label span {
  color: var(--graphite);
  font-size: 12px;
  font-weight: 800;
}

.auth-card input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  padding: 13px 14px;
}

.auth-card button {
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  padding: 13px 16px;
}

.auth-card small {
  color: var(--danger);
  min-height: 18px;
}

body[dir="rtl"] {
  direction: rtl;
}

body[dir="rtl"] .nav-list button,
body[dir="rtl"] .data-table th,
body[dir="rtl"] .data-table td {
  text-align: right;
}

html,
body {
  max-width: 100%;
}

button,
select {
  font: inherit;
}

.app-shell {
  direction: ltr;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100%;
}

body[dir="rtl"] .sidebar,
body[dir="rtl"] .dashboard,
body[dir="rtl"] .filter-console {
  direction: rtl;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid var(--line);
  color: var(--ink);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  overflow-y: auto;
}

.brand-lockup {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand-logo {
  width: 86px;
  height: auto;
  display: block;
}

.nav-list {
  display: grid;
  flex: 1 1 auto;
  gap: 5px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  max-width: 100%;
}

.nav-list button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--graphite);
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
}

.nav-list button::before {
  content: attr(data-index);
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--muted);
  font-size: 11px;
}

.nav-list button.active {
  background: #eef4f2;
  border-color: rgba(22, 131, 107, 0.18);
  color: var(--forest);
}

.nav-list button.active::before {
  background: var(--forest);
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-footer strong {
  color: var(--graphite);
  font-weight: 500;
}

.dashboard {
  padding: 28px 368px 28px 28px;
  min-width: 0;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
  min-width: 0;
}

.header-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: end;
}

.header-controls button,
.header-select select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pearl);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  padding: 0 13px;
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.04);
}

.header-select {
  display: grid;
  gap: 4px;
}

.header-select span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.header-controls button:first-child {
  min-width: 74px;
}

.topbar > div:first-child {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--ink);
}

.topbar p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  max-width: 760px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.filter-console {
  background: var(--pearl);
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  bottom: 0;
  box-shadow: -14px 0 34px rgba(23, 32, 51, 0.07);
  display: grid;
  align-content: start;
  gap: 16px;
  margin: 0;
  overflow-y: auto;
  padding: 24px 18px;
  position: fixed;
  right: 0;
  top: 0;
  width: 340px;
  z-index: 20;
}

.filter-meta {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  justify-content: stretch;
  padding-bottom: 14px;
}

.filter-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-meta strong {
  color: var(--graphite);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

.presentation-bar {
  align-items: center;
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  gap: 12px;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 0.9fr) minmax(320px, 1.4fr) auto;
  margin: 0 0 18px;
  padding: 12px;
  position: sticky;
  top: 14px;
  z-index: 15;
}

.presentation-bar > div:first-child {
  display: grid;
  gap: 3px;
}

.presentation-bar span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.presentation-bar strong {
  color: var(--ink);
  font-size: 13px;
}

.presentation-scenarios,
.presentation-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  overflow-x: visible;
  padding-bottom: 2px;
}

.presentation-scenarios button,
.presentation-pages button,
.presentation-bar > button {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--graphite);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  min-height: 32px;
  padding: 0 12px;
}

.presentation-scenarios button.active,
.presentation-pages button.active {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #ffffff;
}

.presentation-bar > button {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

.filter-grid {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.filter-grid label,
.scenario-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.filter-grid label span,
.scenario-field > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
}

.scenario-field {
  min-width: 0;
}

.scenario-workspace,
.excel-refresh,
.audit-trail,
.export-pack,
.manual-resource,
.validation-warnings {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 9px;
  grid-column: 1 / -1;
  padding: 12px;
}

.scenario-workspace-head {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
}

.scenario-workspace-head span {
  color: var(--graphite);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.scenario-workspace-head small,
.scenario-status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.scenario-actions {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr 1fr;
}

.draft-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segmented {
  background: #f3f5f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr;
  min-height: 38px;
  padding: 2px;
}

.segmented button {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--graphite);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  min-width: 0;
  min-height: 34px;
  padding: 0 9px;
}

.segmented button.active {
  background: var(--graphite);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(23, 32, 51, 0.14);
}

.filter-grid select,
.filter-grid input,
.header-select select,
.filter-actions button,
.scenario-actions button,
.model-inputs input,
.model-inputs select,
.allocation-inputs input {
  appearance: none;
  -webkit-appearance: none;
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 38px;
  padding: 0 12px;
  width: 100%;
}

.filter-grid select,
.header-select select,
.model-inputs select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 16px,
    calc(100% - 11px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.filter-grid select:focus,
.filter-grid input:focus,
.filter-actions button:focus,
.scenario-actions button:focus,
.segmented button:focus,
.nav-list button:focus {
  outline: 2px solid rgba(59, 130, 184, 0.28);
  outline-offset: 2px;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-actions button {
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  min-width: 92px;
}

.filter-actions button:last-child {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #ffffff;
}

.scenario-actions button {
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  min-height: 34px;
  padding: 0 8px;
}

.scenario-actions button:first-child,
.scenario-actions button:last-child {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #ffffff;
}

.draft-actions button {
  font-size: 11px;
  padding: 0 5px;
}

.manual-resource-links,
.manual-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manual-resource-links a,
.manual-hero-actions a {
  align-items: center;
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--graphite);
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  min-height: 34px;
  padding: 0 10px;
  text-decoration: none;
}

.manual-resource-links a:first-child,
.manual-hero-actions a:first-child {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #ffffff;
}

.help-dot {
  align-items: center;
  background: rgba(23, 32, 51, 0.06);
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 999px;
  color: var(--muted);
  cursor: help;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  line-height: 1;
  margin-left: 6px;
  padding: 0;
  width: 18px;
}

body[dir="rtl"] .help-dot {
  margin-left: 0;
  margin-right: 6px;
}

.filter-grid label > span,
.model-inputs label > span,
.allocation-inputs label > span {
  align-items: center;
  display: inline-flex;
  gap: 4px;
  min-width: 0;
}

.help-dot:focus {
  outline: 2px solid rgba(59, 130, 184, 0.32);
  outline-offset: 2px;
}

body[data-theme="dark"] .help-dot {
  background: rgba(226, 232, 240, 0.08);
  border-color: rgba(226, 232, 240, 0.16);
  color: #cbd5e1;
}

.excel-refresh input[type="file"] {
  align-content: center;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.2;
  max-width: 100%;
  padding: 9px 10px;
  width: 100%;
}

.audit-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.audit-metric {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
}

.audit-metric span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
}

.audit-metric strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.1;
}

.audit-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-height: 280px;
  overflow: auto;
}

.audit-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  padding: 12px;
}

.audit-table .data-table {
  margin: 0;
  min-width: 520px;
}

.audit-table .data-table th,
.audit-table .data-table td {
  font-size: 10px;
  line-height: 1.25;
  padding: 8px;
  vertical-align: top;
}

.audit-impact {
  color: var(--graphite);
  display: grid;
  gap: 2px;
  min-width: 150px;
}

.audit-impact b {
  color: var(--ink);
  font-weight: 800;
}

.export-pack-list {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr;
}

.export-pack-list span {
  align-items: center;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--graphite);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  min-height: 30px;
  padding: 0 10px;
}

.export-pack-list span::before {
  background: var(--aqua);
  border-radius: 999px;
  content: "";
  height: 6px;
  margin-right: 8px;
  width: 6px;
}

.validation-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.validation-pill {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 9px;
}

.validation-pill span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.validation-pill strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
}

.validation-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.validation-empty {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius);
  color: var(--graphite);
  font-size: 11px;
  line-height: 1.4;
  padding: 12px;
}

.validation-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--aqua);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  padding: 10px;
}

.validation-card.high {
  border-left-color: #dc2626;
  background: rgba(220, 38, 38, 0.05);
}

.validation-card.medium {
  border-left-color: var(--gold);
  background: rgba(208, 154, 44, 0.08);
}

.validation-card.low {
  border-left-color: var(--aqua);
}

.validation-card-head {
  align-items: start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.validation-card-head strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.validation-severity {
  border-radius: 999px;
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 5px 7px;
  text-transform: uppercase;
}

.validation-severity.high {
  background: #dc2626;
}

.validation-severity.medium {
  background: var(--gold);
}

.validation-severity.low {
  background: var(--aqua);
}

.validation-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin: 0;
}

.validation-card small {
  color: var(--graphite);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.model-inputs {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  padding-top: 12px;
}

.model-drivers {
  align-content: start;
}

.driver-section {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 9px;
  padding: 12px;
}

body[data-theme="dark"] .driver-section {
  background: rgba(15, 23, 42, 0.62);
}

.driver-section-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
}

.driver-section-head span {
  color: var(--graphite);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.driver-section-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.model-inputs label {
  display: grid;
  gap: 6px;
}

.model-inputs span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.model-inputs input,
.model-inputs select {
  min-height: 38px;
}

.driver-readout {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 5px;
  padding: 10px 12px;
}

.driver-readout span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.driver-readout strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.scenario-compare-panel {
  display: none;
  margin-bottom: 18px;
}

.scenario-compare-panel.active {
  display: block;
}

.scenario-compare-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.scenario-compare-card {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
}

.scenario-compare-card span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.scenario-compare-card strong {
  color: var(--ink);
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.scenario-compare-card small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.allocation-inputs {
  border-top: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  padding-top: 2px;
}

.allocation-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  grid-column: 1 / -1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.allocation-inputs label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.allocation-inputs span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.allocation-inputs input {
  min-height: 34px;
  padding: 0 9px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 340px;
}

.actions label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.actions select,
.actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pearl);
  color: var(--ink);
  padding: 0 12px;
  max-width: 100%;
}

.actions button {
  background: var(--graphite);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

#printBtn {
  font-size: 14px;
}

.review-banner {
  border-left: 4px solid var(--gold);
  background: #fff8e8;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--graphite);
  overflow-wrap: anywhere;
}

.analysis-notes {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.3fr 1fr 1fr;
  margin-bottom: 12px;
}

.analysis-note {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 92px;
  padding: 13px;
}

.analysis-note span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.analysis-note strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.analysis-note p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.kpi-card,
.panel {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.kpi-card {
  min-height: 104px;
  padding: 15px;
}

.kpi-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 9px;
}

.kpi-value {
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1;
  font-weight: 600;
  color: var(--ink);
}

.kpi-context {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.kpi-trend {
  color: var(--aqua);
  display: block;
  height: 28px;
  margin-top: 10px;
  max-width: 130px;
  width: 100%;
}

.kpi-trend polyline {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.content-grid.wide-left {
  grid-template-columns: 1.35fr 0.85fr;
}

.sensitivity-grid {
  margin-top: 14px;
}

.panel {
  padding: 17px;
  min-height: 350px;
  min-width: 0;
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.panel-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.panel-head span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: right;
}

.chart {
  min-height: 270px;
}

.chart.tall {
  min-height: 430px;
}

.sensitivity-summary {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 12px;
}

.sensitivity-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.sensitivity-summary strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.sensitivity-summary p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.sensitivity-cards {
  display: grid;
  gap: 10px;
}

.sensitivity-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 7px;
  padding: 12px;
}

.sensitivity-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sensitivity-card strong {
  color: var(--ink);
  font-size: 15px;
}

.sensitivity-card p,
.sensitivity-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.sensitivity-card b {
  color: var(--graphite);
}

.echarts-canvas {
  min-height: inherit;
  width: 100%;
}

.chart svg {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
}

.chart [data-tooltip] {
  cursor: crosshair;
}

.axis {
  stroke: var(--line);
  stroke-width: 1;
}

.bar-emerald {
  fill: var(--aqua);
}

.bar-gold {
  fill: var(--gold);
}

.bar-aqua {
  fill: var(--emerald);
}

.bar-forest {
  fill: var(--forest);
}

.line-emerald,
.line-gold,
.line-forest {
  fill: none;
  stroke-width: 3;
}

.line-emerald {
  stroke: var(--aqua);
}

.line-gold {
  stroke: var(--gold);
}

.line-forest {
  stroke: var(--emerald);
}

.chart-label {
  fill: var(--muted);
  font-size: 11px;
}

.chart-value {
  fill: var(--ink);
  font-size: 11px;
  font-weight: 500;
}

.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.chart-mode-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.chart-drilldown {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-top: 10px;
  padding: 9px 10px;
}

.chart-drilldown strong {
  color: var(--ink);
}

.chart-drilldown b {
  color: var(--ink);
  font-size: 14px;
}

.chart-drilldown.active {
  border-color: rgba(59, 130, 184, 0.35);
}

.business-workbench {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 14px;
}

.business-card {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
  padding: 15px;
}

.business-card > span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.business-card strong {
  display: block;
  margin-bottom: 6px;
}

.business-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.business-card ul {
  color: var(--ink);
  display: grid;
  font-size: 13px;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.business-interpretation,
.business-drivers,
.business-risk,
.business-assumptions {
  grid-column: span 3;
}

.business-data {
  grid-column: 1 / -1;
}

.business-risk {
  border-left: 4px solid var(--gold);
  background: #fffaf0;
}

.business-data,
.business-assumptions {
  overflow-x: hidden;
}

.business-assumptions .data-table,
.business-data .data-table {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  table-layout: auto;
}

.business-assumptions .data-table {
  font-size: 12px;
  min-width: 0;
}

.bd-page {
  display: none;
}

.bd-page.active {
  display: block;
}

.bd-hero {
  align-items: stretch;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #ffffff;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  margin-bottom: 14px;
  overflow: hidden;
}

.bd-hero-copy {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.bd-hero-copy span,
.bd-activity-list span,
.bd-sync-list span,
.bd-target-grid span {
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bd-hero h2 {
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.04;
  margin: 0;
  max-width: 780px;
}

.bd-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

.bd-hero img {
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  width: 100%;
}

.bd-hero-redesign {
  background:
    linear-gradient(135deg, rgba(7, 44, 33, 0.92), rgba(18, 37, 53, 0.92)),
    var(--deep);
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
}

.bd-hero-media {
  align-content: center;
  background: #ffffff;
  display: grid;
  justify-items: center;
  min-height: 330px;
  padding: 18px;
  position: relative;
}

.bd-hero-media img {
  filter: saturate(0.95) contrast(1.04);
  height: auto;
  max-height: 282px;
  object-fit: contain;
  width: 100%;
}

.bd-hero-badge {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
  left: 18px;
  padding: 12px 14px;
  position: absolute;
}

.bd-hero-badge span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bd-hero-badge strong {
  color: var(--ink);
  font-size: 18px;
}

.bd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.bd-hero-actions a,
.bd-hero-actions button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
}

.bd-hero-actions a:first-child {
  background: #ffffff;
  color: var(--deep);
}

.bd-image-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.bd-image-gallery figure {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.bd-image-gallery img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.bd-image-gallery figcaption {
  color: var(--graphite);
  font-size: 13px;
  font-weight: 800;
  padding: 11px 13px;
}

.bd-investor-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 14px;
}

.bd-metric-card {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 7px;
  min-height: 122px;
  padding: 15px;
}

.bd-metric-card span,
.bd-proof-copy span,
.bd-pathway span,
.bd-evidence-list span,
.bd-rhythm-grid span,
.bd-timeline-list span,
.bd-segment-tags b {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bd-metric-card strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.bd-metric-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.bd-proof-panel {
  align-items: stretch;
  background: linear-gradient(135deg, #fffaf0, #eef6f2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  margin-bottom: 14px;
  padding: 18px;
}

.bd-proof-copy {
  display: grid;
  gap: 8px;
  align-content: center;
}

.bd-proof-copy h3 {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.1;
  margin: 0;
}

.bd-proof-copy p {
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.bd-proof-metrics {
  min-width: 0;
}

.bd-pathway {
  counter-reset: bd-step;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.bd-pathway article {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 16px;
}

.bd-pathway strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.bd-pathway p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.bd-image-gallery-redesign {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bd-image-gallery-redesign figure {
  background: #ffffff;
}

.bd-image-gallery-redesign img {
  aspect-ratio: 16 / 9;
  background: #ffffff;
  object-fit: contain;
  padding: 14px;
}

.bd-main-grid,
.bd-section-grid {
  margin-bottom: 14px;
}

.bd-funnel {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.bd-funnel-summary {
  align-items: center;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 13px 14px;
}

.bd-funnel-summary strong {
  color: var(--ink);
  font-size: 18px;
}

.bd-funnel-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

.bd-funnel-row {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(150px, 0.95fr) minmax(140px, 1.4fr) 50px 70px;
}

.bd-funnel-row span {
  color: var(--graphite);
  font-size: 13px;
  font-weight: 700;
}

.bd-funnel-track {
  background: var(--mist);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.bd-funnel-track i {
  background: linear-gradient(90deg, var(--emerald), var(--aqua));
  display: block;
  height: 100%;
}

.bd-funnel-row strong,
.bd-funnel-row small {
  font-size: 12px;
}

.bd-funnel-row small {
  color: var(--muted);
}

.bd-sync-list,
.bd-target-grid {
  display: grid;
  gap: 10px;
}

.bd-sync-list article,
.bd-target-grid article {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  padding: 12px;
}

.bd-sync-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bd-sync-list strong,
.bd-target-grid strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.bd-sync-list p,
.bd-target-grid p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.bd-target-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.bd-section-grid .bd-target-grid article,
.bd-rhythm-grid article,
.bd-evidence-list article,
.bd-timeline-list article {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
  display: grid;
  gap: 5px;
  padding: 12px 0 0;
}

.bd-section-grid .bd-target-grid article:first-child,
.bd-rhythm-grid article:first-child,
.bd-evidence-list article:first-child,
.bd-timeline-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.bd-timeline-list,
.bd-rhythm-grid,
.bd-evidence-list {
  display: grid;
  gap: 12px;
}

.bd-timeline-list strong,
.bd-rhythm-grid strong,
.bd-evidence-list strong {
  color: var(--ink);
  font-size: 16px;
}

.bd-timeline-list p,
.bd-rhythm-grid p,
.bd-evidence-list p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.bd-segment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.bd-segment-tags b {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--graphite);
  padding: 7px 9px;
}

.bd-activity-list {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

.bd-activity-list span {
  flex: 1 0 100%;
}

.bd-activity-list b {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--graphite);
  font-size: 12px;
  padding: 7px 9px;
}

.bp-page {
  display: none;
}

.bp-page.active {
  display: block;
}

.bp-presentation {
  display: none;
}

.bp-presentation.active {
  display: grid;
  gap: 18px;
}

.bp-slide {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.bp-cover-slide {
  color: #ffffff;
  display: grid;
  min-height: 680px;
}

.bp-cover-image,
.bp-cover-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.bp-cover-image {
  filter: saturate(0.94) contrast(1.04);
  object-fit: cover;
}

.bp-cover-shade {
  background:
    linear-gradient(90deg, rgba(8, 20, 18, 0.92), rgba(8, 20, 18, 0.56) 48%, rgba(8, 20, 18, 0.16)),
    linear-gradient(0deg, rgba(8, 20, 18, 0.78), rgba(8, 20, 18, 0.04) 48%);
}

.bp-cover-content {
  align-content: center;
  display: grid;
  gap: 14px;
  max-width: 760px;
  padding: 42px;
  position: relative;
  z-index: 1;
}

.bp-deck-logo {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  height: 78px;
  object-fit: contain;
  padding: 7px;
  width: 78px;
}

.bp-slide-label,
.bp-slide-number,
.bp-act-grid span,
.bp-roadmap-cards span,
.bp-deck-metric span,
.bp-sync-grid span {
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bp-cover-content h2 {
  color: #ffffff;
  font-size: 58px;
  line-height: 0.98;
  margin: 0;
  max-width: 850px;
}

.bp-cover-content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.58;
  margin: 0;
  max-width: 700px;
}

.bp-deck-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.bp-deck-actions a,
.bp-deck-actions button {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

.bp-deck-actions .primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #12382f;
}

.bp-cover-metrics {
  align-self: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0 24px 24px;
  position: relative;
  z-index: 1;
}

.bp-deck-metric,
.bp-sync-grid article {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
}

.bp-deck-metric strong,
.bp-sync-grid strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.bp-deck-metric p,
.bp-sync-grid p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.42;
  margin: 0;
}

.bp-thesis-slide,
.bp-proof-slide,
.bp-platform-slide,
.bp-acts-slide,
.bp-chapter-slide,
.bp-economics-slide,
.bp-gallery-slide,
.bp-roadmap-slide,
.bp-close-slide {
  display: grid;
  gap: 26px;
  padding: 34px;
}

.bp-thesis-slide {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(237, 245, 241, 0.94)),
    var(--pearl);
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
}

.bp-proof-slide {
  background:
    linear-gradient(135deg, rgba(4, 23, 20, 0.98), rgba(18, 64, 55, 0.94)),
    var(--deep);
  grid-template-columns: minmax(300px, 0.58fr) minmax(0, 1.42fr);
}

.bp-proof-slide .bp-slide-copy h3,
.bp-proof-slide .bp-slide-copy p,
.bp-economics-slide .bp-slide-copy h3,
.bp-economics-slide .bp-slide-copy p {
  color: #ffffff;
}

.bp-slide-copy {
  align-content: center;
  display: grid;
  gap: 9px;
  min-width: 0;
}

.bp-slide-number {
  color: var(--gold);
  font-size: 13px;
}

.bp-slide-copy .bp-slide-label {
  color: var(--gold);
}

.bp-slide-copy h3 {
  color: var(--ink);
  font-size: 42px;
  line-height: 1.02;
  margin: 0;
}

.bp-slide-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
  margin: 0;
}

.bp-thesis-points {
  align-content: center;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bp-thesis-points article,
.bp-act-grid article,
.bp-roadmap-cards article {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
}

.bp-thesis-points strong,
.bp-act-grid strong,
.bp-roadmap-cards strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.bp-thesis-points span,
.bp-act-grid p,
.bp-roadmap-cards p,
.bp-platform-visual figcaption,
.bp-gallery-grid figcaption,
.bp-proof-grid figcaption,
.bp-act-visual-strip figcaption,
.bp-roadmap-visual-strip figcaption,
.bp-economics-photo figcaption,
.bp-stream-card p,
.bp-data-card p,
.bp-model-path p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.bp-data-strip,
.bp-proof-metric-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bp-thesis-data,
.bp-commercial-data,
.bp-operating-data,
.bp-roadmap-data,
.bp-model-path {
  grid-column: 1 / -1;
}

.bp-data-card,
.bp-model-path article,
.bp-stream-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(193, 171, 111, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(20, 35, 31, 0.08);
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 15px;
}

.bp-data-card span,
.bp-model-path span,
.bp-stream-card span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bp-data-card strong,
.bp-model-path strong,
.bp-stream-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.bp-data-card p,
.bp-model-path p,
.bp-stream-card p {
  font-size: 12px;
}

.bp-proof-metric-row .bp-data-card,
.bp-roadmap-data .bp-data-card {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.bp-proof-metric-row .bp-data-card strong,
.bp-proof-metric-row .bp-data-card p,
.bp-roadmap-data .bp-data-card strong,
.bp-roadmap-data .bp-data-card p {
  color: #ffffff;
}

.bp-proof-metric-row .bp-data-card p,
.bp-roadmap-data .bp-data-card p {
  color: rgba(255, 255, 255, 0.72);
}

.bp-proof-stack {
  align-content: center;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.bp-proof-hero,
.bp-proof-grid figure,
.bp-act-visual-strip figure,
.bp-roadmap-visual-strip figure {
  border: 1px solid rgba(212, 190, 135, 0.26);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(2, 12, 10, 0.22);
  margin: 0;
  min-width: 0;
  overflow: hidden;
}

.bp-proof-hero {
  position: relative;
}

.bp-proof-hero img {
  aspect-ratio: 16 / 7;
  display: block;
  object-fit: cover;
  width: 100%;
}

.bp-proof-hero figcaption {
  background: linear-gradient(90deg, rgba(5, 17, 15, 0.92), rgba(5, 17, 15, 0.28));
  bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  display: grid;
  gap: 4px;
  left: 0;
  padding: 16px;
  position: absolute;
  right: 0;
}

.bp-proof-hero figcaption strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.15;
}

.bp-proof-hero figcaption span {
  font-size: 12px;
  line-height: 1.45;
  max-width: 680px;
}

.bp-proof-grid,
.bp-act-visual-strip,
.bp-roadmap-visual-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bp-proof-grid figure {
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.bp-proof-grid img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.bp-proof-grid figure:nth-child(3) img {
  background: #f8faf8;
  object-fit: contain;
  padding: 10px;
}

.bp-proof-grid figcaption,
.bp-act-visual-strip figcaption,
.bp-roadmap-visual-strip figcaption {
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--graphite);
  font-weight: 800;
  padding: 10px 12px;
}

.bp-platform-slide {
  background: #0b2f27;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
}

.bp-platform-slide .bp-slide-copy h3,
.bp-platform-slide .bp-slide-copy p,
.bp-close-slide .bp-slide-copy h3,
.bp-close-slide .bp-slide-copy p {
  color: #ffffff;
}

.bp-platform-visual {
  align-self: center;
  background: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.bp-platform-visual img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  padding: 18px;
  width: 100%;
}

.bp-platform-visual figcaption {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 14px 16px;
}

.bp-model-path {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bp-model-path article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  min-height: 132px;
}

.bp-model-path strong,
.bp-model-path p {
  color: #ffffff;
}

.bp-model-path p {
  color: rgba(255, 255, 255, 0.72);
}

.bp-acts-slide {
  min-height: 640px;
}

.bp-act-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bp-act-thumb {
  aspect-ratio: 16 / 10;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  object-fit: contain;
  padding: 7px;
  width: 100%;
}

.bp-act-grid span,
.bp-roadmap-cards span,
.bp-chapter-card span {
  color: var(--gold);
}

.bp-chapter-ribbon {
  align-content: start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bp-chapter-ribbon span {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--graphite);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 9px;
}

.bp-act-visual-strip figure {
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(20, 35, 31, 0.08);
}

.bp-act-visual-strip img,
.bp-roadmap-visual-strip img {
  aspect-ratio: 16 / 8;
  background: #fbfaf6;
  display: block;
  object-fit: contain;
  padding: 12px;
  width: 100%;
}

.bp-gallery-slide {
  background: linear-gradient(135deg, #fbfaf6, #eef4f3);
}

.bp-chapter-slide {
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.96), rgba(239, 246, 243, 0.96)),
    var(--pearl);
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
}

.bp-chapter-platform,
.bp-chapter-close {
  background:
    linear-gradient(135deg, rgba(6, 35, 31, 0.97), rgba(14, 63, 55, 0.93)),
    var(--deep);
}

.bp-chapter-commercial {
  background:
    linear-gradient(135deg, #f8fbfa, #fff8eb);
}

.bp-chapter-discipline {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(31, 79, 70, 0.92)),
    var(--deep);
}

.bp-economics-slide {
  background:
    linear-gradient(135deg, rgba(8, 24, 22, 0.96), rgba(28, 79, 68, 0.92)),
    var(--deep);
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1.38fr);
}

.bp-economics-visual {
  align-content: center;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.bp-economics-photo {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  margin: 0;
  overflow: hidden;
}

.bp-economics-photo img {
  aspect-ratio: 16 / 7;
  display: block;
  object-fit: cover;
  width: 100%;
}

.bp-economics-photo figcaption {
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--graphite);
  font-weight: 800;
  padding: 12px 14px;
}

.bp-revenue-bars {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bp-stream-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.bp-stream-card strong,
.bp-stream-card p {
  color: #ffffff;
}

.bp-stream-card p {
  color: rgba(255, 255, 255, 0.72);
}

.bp-mini-bar {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.bp-mini-bar i {
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 5%;
}

.bp-commercial-data {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bp-chapter-intro {
  align-content: center;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.bp-chapter-intro h3 {
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
  margin: 0;
}

.bp-chapter-intro p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.bp-chapter-platform .bp-chapter-intro h3,
.bp-chapter-platform .bp-chapter-intro p,
.bp-chapter-discipline .bp-chapter-intro h3,
.bp-chapter-discipline .bp-chapter-intro p,
.bp-chapter-close .bp-chapter-intro h3,
.bp-chapter-close .bp-chapter-intro p {
  color: #ffffff;
}

.bp-chapter-visual {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(193, 171, 111, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(21, 36, 31, 0.11);
  margin: 8px 0 0;
  overflow: hidden;
}

.bp-chapter-platform .bp-chapter-visual,
.bp-chapter-discipline .bp-chapter-visual,
.bp-chapter-close .bp-chapter-visual {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.bp-chapter-visual img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.bp-chapter-platform .bp-chapter-visual img {
  background: #ffffff;
  object-fit: contain;
  padding: 12px;
}

.bp-chapter-grid {
  align-content: center;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.bp-chapter-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(193, 171, 111, 0.22);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(20, 35, 31, 0.08);
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
}

.bp-chapter-platform .bp-chapter-card,
.bp-chapter-discipline .bp-chapter-card,
.bp-chapter-close .bp-chapter-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.bp-chapter-card strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.16;
}

.bp-chapter-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.bp-chapter-card li {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  list-style: none;
  padding-left: 13px;
  position: relative;
}

.bp-chapter-card li::before {
  background: var(--gold);
  border-radius: 50%;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  top: 0.58em;
  width: 4px;
}

.bp-chapter-platform .bp-chapter-card strong,
.bp-chapter-discipline .bp-chapter-card strong,
.bp-chapter-close .bp-chapter-card strong {
  color: #ffffff;
}

.bp-chapter-platform .bp-chapter-card li,
.bp-chapter-discipline .bp-chapter-card li,
.bp-chapter-close .bp-chapter-card li {
  color: rgba(255, 255, 255, 0.74);
}

.bp-gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bp-gallery-grid figure {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.bp-gallery-grid img {
  aspect-ratio: 16 / 10;
  background: #ffffff;
  display: block;
  object-fit: contain;
  padding: 14px;
  width: 100%;
}

.bp-gallery-grid .bp-gallery-photo img {
  object-fit: cover;
  padding: 0;
}

.bp-gallery-grid .bp-gallery-diagram img {
  object-fit: contain;
}

.bp-gallery-grid figcaption {
  border-top: 1px solid var(--line);
  color: var(--graphite);
  font-weight: 800;
  padding: 12px 14px;
}

.bp-roadmap-slide {
  background:
    linear-gradient(135deg, rgba(16, 24, 39, 0.96), rgba(31, 79, 70, 0.94)),
    var(--deep);
}

.bp-roadmap-slide .bp-slide-copy h3,
.bp-roadmap-slide .bp-slide-copy p {
  color: #ffffff;
}

.bp-roadmap-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bp-roadmap-cards article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.bp-roadmap-cards strong {
  color: #ffffff;
}

.bp-roadmap-cards p {
  color: rgba(255, 255, 255, 0.72);
}

.bp-roadmap-visual-strip {
  align-items: start;
}

.bp-roadmap-visual-strip figure {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.bp-roadmap-visual-strip img {
  background: rgba(255, 255, 255, 0.94);
}

.bp-roadmap-visual-strip figcaption {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.bp-close-slide {
  background:
    linear-gradient(135deg, rgba(8, 25, 22, 0.94), rgba(12, 17, 26, 0.96)),
    var(--deep);
  grid-template-columns: minmax(260px, 0.66fr) minmax(0, 1.34fr);
}

.bp-close-slide .bp-slide-copy .bp-slide-label {
  color: var(--gold-soft);
}

.bp-close-metrics {
  align-content: center;
  display: grid;
}

.bp-sync-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-theme="dark"] .bp-thesis-slide,
body[data-theme="dark"] .bp-gallery-slide {
  background: #121926;
}

body[data-theme="dark"] .bp-thesis-points article,
body[data-theme="dark"] .bp-act-grid article,
body[data-theme="dark"] .bp-gallery-grid figure,
body[data-theme="dark"] .bp-act-visual-strip figure,
body[data-theme="dark"] .bp-proof-grid figure {
  background: #101722;
}

body[data-theme="dark"] .bp-platform-visual,
body[data-theme="dark"] .bp-platform-visual img,
body[data-theme="dark"] .bp-gallery-grid img,
body[data-theme="dark"] .bp-act-thumb,
body[data-theme="dark"] .bp-act-visual-strip img {
  background: #111827;
}

body[data-theme="dark"] .bp-platform-visual figcaption,
body[data-theme="dark"] .bp-proof-grid figcaption,
body[data-theme="dark"] .bp-act-visual-strip figcaption,
body[data-theme="dark"] .bp-data-card,
body[data-theme="dark"] .bp-economics-photo figcaption {
  background: #101722;
}

@media (max-width: 1100px) {
  .bp-cover-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bp-thesis-slide,
  .bp-proof-slide,
  .bp-platform-slide,
  .bp-economics-slide,
  .bp-chapter-slide,
  .bp-close-slide {
    grid-template-columns: 1fr;
  }

  .bp-act-grid,
  .bp-chapter-grid,
  .bp-roadmap-cards,
  .bp-act-visual-strip,
  .bp-roadmap-visual-strip,
  .bp-data-strip,
  .bp-proof-metric-row,
  .bp-commercial-data,
  .bp-model-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bp-sync-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .bp-cover-content h2 {
    font-size: 42px;
  }

  .bp-slide-copy h3 {
    font-size: 34px;
  }

  .bp-cover-metrics,
  .bp-thesis-points,
  .bp-chapter-grid,
  .bp-gallery-grid,
  .bp-proof-grid,
  .bp-revenue-bars {
    grid-template-columns: 1fr;
  }

  .bp-cover-slide {
    min-height: 0;
  }

  .bp-cover-content {
    padding: 28px;
  }
}

@media (max-width: 620px) {
  .bp-presentation.active {
    gap: 12px;
  }

  .bp-slide {
    min-height: 0;
  }

  .bp-cover-content,
  .bp-thesis-slide,
  .bp-proof-slide,
  .bp-platform-slide,
  .bp-acts-slide,
  .bp-chapter-slide,
  .bp-economics-slide,
  .bp-gallery-slide,
  .bp-roadmap-slide,
  .bp-close-slide {
    padding: 18px;
  }

  .bp-cover-content h2 {
    font-size: 31px;
  }

  .bp-cover-content p,
  .bp-slide-copy p {
    font-size: 13px;
  }

  .bp-slide-copy h3 {
    font-size: 27px;
  }

  .bp-chapter-intro h3 {
    font-size: 27px;
  }

  .bp-chapter-card {
    padding: 14px;
  }

  .bp-chapter-card li {
    font-size: 11px;
  }

  .bp-deck-actions,
  .bp-cover-metrics,
  .bp-act-grid,
  .bp-roadmap-cards,
  .bp-proof-grid,
  .bp-act-visual-strip,
  .bp-roadmap-visual-strip,
  .bp-data-strip,
  .bp-proof-metric-row,
  .bp-commercial-data,
  .bp-model-path,
  .bp-revenue-bars,
  .bp-sync-grid {
    grid-template-columns: 1fr;
  }

  .bp-deck-actions {
    display: grid;
  }

  .bp-cover-metrics {
    padding: 0 18px 18px;
  }

  .bp-proof-hero img {
    aspect-ratio: 4 / 3;
  }

  .bp-proof-hero figcaption {
    background: #081b18;
    position: static;
  }

  .bp-platform-visual img,
  .bp-gallery-grid img,
  .bp-act-visual-strip img,
  .bp-roadmap-visual-strip img {
    aspect-ratio: 4 / 3;
    padding: 10px;
  }

  .bp-gallery-grid .bp-gallery-photo img {
    padding: 0;
  }

  .bp-chapter-ribbon span {
    width: 100%;
  }
}

body[dir="rtl"] .bp-page {
  direction: ltr;
  text-align: left;
}

body[data-page="plan"] #plan[data-bp-lang="ar"] {
  direction: rtl;
  text-align: right;
}

body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-deck-title,
body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-cover-content,
body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-slide-copy,
body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-chapter-intro,
body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-chapter-card,
body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-data-card,
body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-stream-card,
body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-model-path article,
body[data-page="plan"] #plan[data-bp-lang="ar"] figcaption {
  text-align: right;
}

body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-deck-title,
body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-deck-header-actions,
body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-deck-actions {
  direction: rtl;
}

body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-cover-shade {
  background:
    linear-gradient(270deg, rgba(8, 20, 18, 0.92), rgba(8, 20, 18, 0.56) 48%, rgba(8, 20, 18, 0.16)),
    linear-gradient(0deg, rgba(8, 20, 18, 0.78), rgba(8, 20, 18, 0.04) 48%);
}

body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-cover-content {
  margin-left: auto;
  margin-right: 0;
}

body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-cover-content h2,
body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-slide-copy h3,
body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-chapter-intro h3 {
  letter-spacing: 0;
}

body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-cover-content h2 {
  font-size: clamp(42px, 4.1vw, 58px);
  line-height: 1.08;
}

body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-slide-copy h3 {
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.1;
}

body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-chapter-intro h3 {
  line-height: 1.12;
}

body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-chapter-card ul {
  padding-right: 0;
}

body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-chapter-card li {
  padding-left: 0;
  padding-right: 13px;
}

body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-chapter-card li::before {
  left: auto;
  right: 0;
}

body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-deck-metric strong,
body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-data-card strong,
body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-stream-card strong,
body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-sync-grid strong {
  direction: ltr;
  unicode-bidi: isolate;
}

@media (max-width: 720px) {
  body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-cover-content h2 {
    font-size: 32px;
  }

  body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-slide-copy h3,
  body[data-page="plan"] #plan[data-bp-lang="ar"] .bp-chapter-intro h3 {
    font-size: 28px;
  }
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 5px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  max-width: 220px;
  overflow-wrap: anywhere;
  padding: 9px 7px;
  text-align: left;
  vertical-align: top;
}

#valuationSensitivityTable {
  max-width: 100%;
  overflow-x: auto;
}

#valuationSensitivityTable .data-table {
  display: none;
}

.manual-page {
  display: grid;
  gap: 16px;
}

.manual-hero {
  background: linear-gradient(135deg, var(--graphite), #253044);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #ffffff;
  display: grid;
  gap: 10px;
  padding: 24px;
}

.manual-hero span,
.manual-card span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-hero h2 {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
  margin: 0;
}

.manual-hero p,
.manual-card p,
.manual-card li {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin: 0;
}

.manual-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-card {
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  padding: 18px;
}

.manual-card ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

body[dir="rtl"] .manual-card ol {
  padding-left: 0;
  padding-right: 18px;
}

.manual-panel {
  min-height: 0;
}

.manual-table {
  max-width: 100%;
}

.manual-table .data-table,
.manual-table .data-table thead,
.manual-table .data-table tbody,
.manual-table .data-table tr,
.manual-table .data-table td {
  display: block;
}

.manual-table .data-table thead {
  display: none;
}

.manual-table .data-table tbody {
  display: grid;
  gap: 10px;
}

.manual-table .data-table tr {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 12px;
}

.manual-table .data-table td {
  border: 0;
  color: var(--graphite);
  display: grid;
  gap: 3px;
  line-height: 1.45;
  max-width: none;
  overflow-wrap: anywhere;
  padding: 0;
}

.manual-table .data-table td::before {
  color: var(--muted);
  content: "Detail";
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-panel:first-of-type .data-table td:nth-child(1)::before {
  content: "Page";
}

.manual-panel:first-of-type .data-table td:nth-child(2)::before {
  content: "Purpose";
}

.manual-panel:first-of-type .data-table td:nth-child(3)::before {
  content: "Main items";
}

.manual-panel:first-of-type .data-table td:nth-child(4)::before {
  content: "Dynamic drivers";
}

.manual-panel:first-of-type .data-table td:nth-child(5)::before {
  content: "How to use";
}

.manual-panel:nth-of-type(2) .data-table td:nth-child(1)::before,
.manual-panel:nth-of-type(3) .data-table td:nth-child(1)::before {
  content: "Area";
}

.manual-panel:nth-of-type(2) .data-table td:nth-child(2)::before {
  content: "Field";
}

.manual-panel:nth-of-type(2) .data-table td:nth-child(3)::before {
  content: "Explanation";
}

.manual-panel:nth-of-type(2) .data-table td:nth-child(4)::before {
  content: "What changes";
}

.manual-panel:nth-of-type(3) .data-table td:nth-child(2)::before {
  content: "Button / control";
}

.manual-panel:nth-of-type(3) .data-table td:nth-child(3)::before {
  content: "What it does";
}

.manual-panel:nth-of-type(3) .data-table td:nth-child(4)::before {
  content: "When to use";
}

.manual-readable {
  gap: 20px;
}

.manual-hero-readable {
  background:
    linear-gradient(135deg, rgba(20, 31, 45, 0.98), rgba(9, 65, 52, 0.95)),
    var(--graphite);
  overflow: hidden;
  position: relative;
}

.manual-hero-readable::after {
  background: linear-gradient(90deg, transparent, rgba(219, 183, 103, 0.55), transparent);
  bottom: 0;
  content: "";
  height: 1px;
  left: 24px;
  position: absolute;
  right: 24px;
}

.manual-start-grid,
.manual-page-cards,
.manual-control-grid,
.manual-flow-list {
  display: grid;
  gap: 12px;
}

.manual-start-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.manual-page-cards,
.manual-control-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manual-flow-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.manual-start-grid article,
.manual-page-cards article,
.manual-control-grid article,
.manual-flow-list article {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
}

.manual-start-grid span,
.manual-page-cards span,
.manual-flow-list span,
.manual-section-head span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-start-grid strong,
.manual-page-cards h4,
.manual-control-grid h4 {
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
}

.manual-start-grid p,
.manual-page-cards p,
.manual-control-grid p,
.manual-flow-list p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
}

.manual-page-cards b {
  color: var(--graphite);
  font-weight: 800;
}

.manual-section {
  display: grid;
  gap: 14px;
}

.manual-section-head {
  display: grid;
  gap: 6px;
  max-width: 920px;
}

.manual-section-head h3 {
  color: var(--graphite);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  margin: 0;
}

.manual-section-head p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.manual-meeting-flow {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.data-table th {
  color: var(--muted);
  font-weight: 500;
}

.table-input {
  width: 74px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  padding: 0 8px;
}

#burnTable,
#plStatementTable,
#cashflowStatementTable {
  max-width: 100%;
  overflow: visible;
}

#burnTable .data-table,
#burnTable .data-table thead,
#burnTable .data-table tbody,
#burnTable .data-table tr,
#burnTable .data-table td,
#plStatementTable .data-table,
#plStatementTable .data-table thead,
#plStatementTable .data-table tbody,
#plStatementTable .data-table tr,
#plStatementTable .data-table td,
#cashflowStatementTable .data-table,
#cashflowStatementTable .data-table thead,
#cashflowStatementTable .data-table tbody,
#cashflowStatementTable .data-table tr,
#cashflowStatementTable .data-table td {
  display: block;
}

#burnTable .data-table,
#plStatementTable .data-table,
#cashflowStatementTable .data-table {
  min-width: 0;
}

#burnTable .data-table thead,
#plStatementTable .data-table thead,
#cashflowStatementTable .data-table thead {
  display: none;
}

#burnTable .data-table tbody,
#plStatementTable .data-table tbody,
#cashflowStatementTable .data-table tbody {
  display: grid;
  gap: 10px;
}

#burnTable .data-table tr,
#plStatementTable .data-table tr,
#cashflowStatementTable .data-table tr {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
}

#burnTable .data-table td,
#plStatementTable .data-table td,
#cashflowStatementTable .data-table td {
  border: 0;
  color: var(--graphite);
  display: grid;
  gap: 3px;
  line-height: 1.35;
  max-width: none;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0;
}

#burnTable .data-table td:first-child,
#plStatementTable .data-table td:first-child,
#cashflowStatementTable .data-table td:first-child {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-column: 1 / -1;
  padding: 8px 10px;
}

#burnTable .data-table td::before,
#plStatementTable .data-table td::before,
#cashflowStatementTable .data-table td::before {
  color: var(--muted);
  content: "Value";
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#burnTable .data-table td:nth-child(1)::before {
  content: "Month";
}

#burnTable .data-table td:nth-child(2)::before {
  content: "Opening cash";
}

#burnTable .data-table td:nth-child(3)::before {
  content: "Revenue";
}

#burnTable .data-table td:nth-child(4)::before {
  content: "Operating burn";
}

#burnTable .data-table td:nth-child(5)::before {
  content: "Net burn";
}

#burnTable .data-table td:nth-child(6)::before {
  content: "Closing cash";
}

#plStatementTable .data-table td:nth-child(1)::before,
#cashflowStatementTable .data-table td:nth-child(1)::before {
  content: "Year";
}

#plStatementTable .data-table td:nth-child(2)::before {
  content: "Revenue";
}

#plStatementTable .data-table td:nth-child(3)::before {
  content: "COGS";
}

#plStatementTable .data-table td:nth-child(4)::before {
  content: "Gross profit";
}

#plStatementTable .data-table td:nth-child(5)::before {
  content: "OPEX";
}

#plStatementTable .data-table td:nth-child(6)::before {
  content: "EBITDA";
}

#plStatementTable .data-table td:nth-child(7)::before {
  content: "Tax";
}

#plStatementTable .data-table td:nth-child(8)::before {
  content: "Net profit";
}

#cashflowStatementTable .data-table td:nth-child(2)::before {
  content: "Capital raised";
}

#cashflowStatementTable .data-table td:nth-child(3)::before {
  content: "Cash in";
}

#cashflowStatementTable .data-table td:nth-child(4)::before {
  content: "Cash out";
}

#cashflowStatementTable .data-table td:nth-child(5)::before {
  content: "Burn";
}

#cashflowStatementTable .data-table td:nth-child(6)::before {
  content: "Net cash flow";
}

#cashflowStatementTable .data-table td:nth-child(7)::before {
  content: "Closing cash";
}

#cashflowStatementTable .data-table td:nth-child(8)::before {
  content: "Runway";
}

.bridge {
  display: grid;
  gap: 12px;
}

.bridge-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  background: #f7f9fc;
  border-radius: var(--radius);
}

.bridge-row strong {
  font-size: 20px;
}

.note-list {
  display: grid;
  gap: 10px;
}

.note {
  border-left: 3px solid var(--gold);
  background: var(--mist);
  padding: 11px 12px;
  border-radius: var(--radius);
  font-size: 13px;
}

.note.warning {
  background: #fff6df;
  border-left-color: var(--gold);
  color: #253044;
}

.note.warning strong {
  color: #111827;
}

.gauge {
  min-height: 280px;
  display: grid;
  place-items: center;
}

.gauge-ring {
  width: min(270px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--aqua) 0 82%, var(--mist) 82% 100%);
  display: grid;
  place-items: center;
}

.gauge-center {
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pearl);
  display: grid;
  place-items: center;
  text-align: center;
}

.gauge-center strong {
  font-size: 42px;
}

.chart-tooltip {
  background: var(--deep);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: none;
  font-size: 12px;
  max-width: 240px;
  padding: 8px 10px;
  pointer-events: none;
  position: fixed;
  z-index: 9999;
}

.chart-tooltip strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}

body[data-presentation="true"] {
  background: var(--paper);
}

body[data-presentation="true"] .app-shell {
  display: block;
}

body[data-presentation="true"] .sidebar,
body[data-presentation="true"] .filter-console,
body[data-presentation="true"] .review-banner,
body[data-presentation="true"] .scenario-compare-panel {
  display: none !important;
}

body[data-presentation="true"] .dashboard {
  margin: 0 auto;
  max-width: 1480px;
  padding: 30px 38px 46px;
}

body[data-presentation="true"] .topbar {
  align-items: center;
  background: transparent;
  margin-bottom: 14px;
}

body[data-presentation="true"] .header-select,
body[data-presentation="true"] #languageToggle,
body[data-presentation="true"] #themeToggle {
  display: none;
}

body[data-presentation="true"] #presentationToggle {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #ffffff;
}

body[data-presentation="true"] .presentation-bar {
  display: grid;
}

body[data-presentation="true"] h1 {
  font-size: clamp(34px, 3.2vw, 52px);
}

body[data-presentation="true"] .eyebrow {
  font-size: 13px;
}

body[data-presentation="true"] .analysis-notes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

body[data-presentation="true"] .analysis-note {
  min-height: 124px;
}

body[data-presentation="true"] .kpi-grid {
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 14px;
}

body[data-presentation="true"] .kpi-card {
  min-height: 126px;
  padding: 18px;
}

body[data-presentation="true"] .kpi-value {
  font-size: clamp(28px, 2.6vw, 42px);
}

body[data-presentation="true"] .panel {
  min-height: 430px;
  padding: 20px;
}

body[data-presentation="true"] .chart {
  min-height: 360px;
}

body[data-presentation="true"] .chart.tall {
  min-height: 470px;
}

body[data-presentation="true"] .chart-drilldown,
body[data-presentation="true"] .business-assumptions,
body[data-presentation="true"] .business-data {
  display: none !important;
}

body[data-presentation="true"] .business-workbench {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-presentation="true"] .business-interpretation,
body[data-presentation="true"] .business-drivers,
body[data-presentation="true"] .business-risk {
  grid-column: span 1;
}

body[data-presentation="true"] .data-table {
  font-size: 12px;
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    order: 1;
    position: relative;
    height: auto;
    gap: 14px;
    max-width: 100vw;
    overflow: hidden;
  }

  .nav-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    max-width: calc(100vw - 32px);
  }

  .nav-list button {
    flex: 0 0 auto;
    white-space: nowrap;
    width: auto;
  }

  .sidebar-footer {
    display: none;
  }

  .topbar {
    flex-direction: column;
  }

  .presentation-bar {
    grid-template-columns: 1fr;
    position: relative;
    top: auto;
  }

  body[data-presentation="true"] .dashboard {
    padding: 18px;
  }

  body[data-presentation="true"] .topbar {
    align-items: stretch;
  }

  body[data-presentation="true"] .analysis-notes,
  body[data-presentation="true"] .business-workbench {
    grid-template-columns: 1fr;
  }

  body[data-presentation="true"] .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #valuationSensitivityTable .data-table {
    display: none;
  }

  .sensitivity-cards {
    display: grid;
    gap: 10px;
  }

  .dashboard {
    display: flex;
    flex-direction: column;
    order: 2;
    padding: 18px;
  }

  .topbar {
    order: 1;
  }

  .presentation-bar {
    order: 2;
  }

  .review-banner {
    order: 3;
  }

  .analysis-notes {
    order: 4;
  }

  .scenario-compare-panel {
    order: 5;
  }

  .page {
    order: 6;
  }

  .filter-console {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: visible;
    order: 7;
    padding: 16px;
    position: relative;
    right: auto;
    top: auto;
    width: auto;
  }

  .header-controls {
    width: 100%;
  }

  .header-controls button {
    flex: 1;
  }

  .topbar p:last-child {
    max-width: 100%;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-field {
    grid-column: 1 / -1;
  }

  .filter-actions {
    grid-column: 1 / -1;
  }

  .model-inputs,
  .allocation-inputs,
  .analysis-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions {
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(145px, 1fr));
  }

  .content-grid,
  .content-grid.wide-left {
    grid-template-columns: 1fr;
  }

  .business-workbench {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-grid {
    grid-template-columns: 1fr;
  }

  .manual-start-grid,
  .manual-page-cards,
  .manual-control-grid,
  .manual-flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-hero,
  .bd-hero-redesign,
  .bd-image-gallery,
  .bd-proof-panel,
  .bd-target-grid,
  .bp-command-panel,
  .bp-system-grid,
  .bp-sync-panel,
  .bp-hero,
  .bp-thesis-panel,
  .bp-system-panel,
  .bp-sync-panel {
    grid-template-columns: 1fr;
  }

  .bd-investor-strip,
  .bd-pathway,
  .bp-kpi-grid,
  .bp-image-grid,
  .bp-roadmap-system,
  .bp-sync-grid,
  .bp-investor-strip,
  .bp-chapter-flow,
  .bp-engine-grid,
  .bp-strategy-grid,
  .bp-roadmap,
  .bp-image-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-funnel-row {
    grid-template-columns: minmax(130px, 1fr) minmax(120px, 1fr) 42px 64px;
  }

  .scenario-compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-interpretation,
  .business-data,
  .business-drivers,
  .business-risk,
  .business-assumptions {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .sidebar {
    padding: 16px;
  }

  .dashboard {
    padding: 16px;
  }

  .header-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .header-select {
    grid-column: 1 / -1;
  }

  .header-select select {
    width: 100%;
  }

  .brand-logo {
    width: 82px;
  }

  .brand-lockup {
    gap: 6px;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .filter-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-meta strong {
    text-align: left;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .segmented button {
    min-height: 34px;
  }

  .filter-actions {
    flex-direction: column;
  }

  .model-inputs,
  .allocation-inputs,
  .analysis-notes {
    grid-template-columns: 1fr;
  }

  .business-workbench {
    grid-template-columns: 1fr;
  }

  .scenario-compare-grid {
    grid-template-columns: 1fr;
  }

  .manual-hero {
    padding: 18px;
  }

  .manual-start-grid,
  .manual-page-cards,
  .manual-control-grid,
  .manual-flow-list {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 22px;
  }

  .bd-hero-copy {
    padding: 20px;
  }

  .bd-investor-strip,
  .bd-pathway,
  .bd-sync-list,
  .bd-image-gallery-redesign,
  .bp-command-actions,
  .bp-kpi-grid,
  .bp-image-grid,
  .bp-roadmap-system,
  .bp-sync-grid,
  .bp-investor-strip,
  .bp-thesis-grid,
  .bp-chapter-flow,
  .bp-engine-grid,
  .bp-strategy-grid,
  .bp-roadmap,
  .bp-sync-grid,
  .bp-image-band {
    grid-template-columns: 1fr;
  }

  .bp-command-panel {
    padding: 15px;
  }

  .bp-command-copy {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .bp-command-logo {
    width: 112px;
  }

  .bp-command-copy h2 {
    font-size: 25px;
  }

  .bp-thesis-list article {
    grid-template-columns: 1fr;
  }

  .bp-photo-frame,
  .bp-map-panel img,
  .bp-image-grid img {
    aspect-ratio: 4 / 3;
  }

  .bp-photo-badge {
    bottom: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 9px 10px;
  }

  .bp-chapter-table {
    min-width: 760px;
  }

  .bp-hero {
    min-height: 0;
  }

  .bp-hero-copy {
    padding: 20px;
  }

  .bp-hero-copy h2 {
    font-size: 30px;
  }

  .bp-hero-visual {
    align-items: stretch;
    gap: 10px;
    min-height: 0;
    padding: 16px;
  }

  .bp-hero-visual img {
    max-height: 220px;
  }

  .bp-system-card,
  .bp-system-card-a,
  .bp-system-card-b,
  .bp-system-card-c {
    animation: none;
    bottom: auto;
    left: auto;
    max-width: none;
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
  }

  .bp-thesis-panel,
  .bp-system-panel,
  .bp-roadmap-section,
  .bp-sync-panel {
    padding: 15px;
  }

  .bp-thesis-panel h3,
  .bp-section-head h3,
  .bp-system-copy h3,
  .bp-roadmap-copy h3,
  .bp-sync-panel h3 {
    font-size: 22px;
  }

  .bd-proof-panel {
    padding: 15px;
  }

  .bd-proof-copy h3 {
    font-size: 22px;
  }

  .bd-funnel-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .bd-funnel-summary span {
    text-align: left;
  }

  .bd-hero img {
    min-height: 210px;
  }

  .bd-funnel-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .bd-funnel-row strong,
  .bd-funnel-row small {
    justify-self: start;
  }

  .manual-table .data-table {
    min-width: 0;
  }

  .business-assumptions .data-table,
  .business-data .data-table {
    min-width: 0;
  }

  #valuationSensitivityTable .data-table {
    display: none;
  }

  .sensitivity-cards {
    display: grid;
    gap: 10px;
  }

  .actions label,
  .actions select,
  .actions button {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

body[data-page="plan"] {
  background:
    linear-gradient(135deg, #f9f5ec 0%, #f4f7f4 48%, #eef3f1 100%),
    var(--paper);
}

body[data-page="plan"] .app-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}

body[data-page="plan"] .filter-console,
body[data-page="plan"] .review-banner,
body[data-page="plan"] .analysis-notes,
body[data-page="plan"] .scenario-compare-panel,
body[data-page="plan"] .topbar,
body[data-page="plan"] .presentation-bar {
  display: none !important;
}

body[data-page="plan"] .dashboard {
  margin: 0 auto;
  max-width: none;
  overflow: visible;
  padding: 24px 34px 52px !important;
}

body[data-page="plan"] .bp-presentation.active {
  display: grid;
  gap: 26px;
  margin: 0 auto;
  max-width: 1360px;
}

.bp-deck-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(212, 190, 135, 0.42);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(21, 36, 31, 0.1);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 12px;
  position: sticky;
  top: 16px;
  z-index: 12;
}

.bp-deck-title {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.bp-deck-title img {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 44px;
  object-fit: contain;
  padding: 5px;
  width: 44px;
}

.bp-deck-title div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bp-deck-title span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bp-deck-title strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.1;
}

.bp-deck-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bp-deck-header-actions a,
.bp-deck-header-actions button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--graphite);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  text-decoration: none;
}

.bp-deck-header-actions a {
  background: var(--forest);
  border-color: var(--forest);
  color: #ffffff;
}

body[data-page="plan"] .bp-slide {
  border: 1px solid rgba(193, 171, 111, 0.26);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(17, 31, 27, 0.14);
  min-height: clamp(620px, 56vw, 780px);
}

body[data-page="plan"] .bp-cover-slide {
  min-height: clamp(720px, 62vw, 880px);
}

body[data-page="plan"] .bp-cover-shade {
  background:
    linear-gradient(90deg, rgba(5, 17, 15, 0.96), rgba(7, 31, 27, 0.72) 48%, rgba(7, 31, 27, 0.18)),
    linear-gradient(0deg, rgba(5, 17, 15, 0.76), rgba(5, 17, 15, 0.08) 58%);
}

body[data-page="plan"] .bp-cover-content {
  align-content: start;
  gap: 16px;
  max-width: 790px;
  padding: 70px 56px;
}

body[data-page="plan"] .bp-cover-content h2 {
  font-size: clamp(50px, 4.6vw, 66px);
  line-height: 0.96;
}

body[data-page="plan"] .bp-cover-content p {
  font-size: 17px;
  line-height: 1.62;
}

body[data-page="plan"] .bp-cover-metrics {
  bottom: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  position: absolute;
  right: 30px;
  width: min(700px, calc(100% - 60px));
}

body[data-page="plan"] .bp-deck-metric,
body[data-page="plan"] .bp-sync-grid article {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.26);
  padding: 16px;
}

body[data-page="plan"] .bp-deck-metric strong,
body[data-page="plan"] .bp-sync-grid strong {
  font-size: 27px;
}

body[data-page="plan"] .bp-thesis-slide,
body[data-page="plan"] .bp-proof-slide,
body[data-page="plan"] .bp-platform-slide,
body[data-page="plan"] .bp-acts-slide,
body[data-page="plan"] .bp-chapter-slide,
body[data-page="plan"] .bp-economics-slide,
body[data-page="plan"] .bp-gallery-slide,
body[data-page="plan"] .bp-roadmap-slide,
body[data-page="plan"] .bp-close-slide {
  gap: 30px;
  padding: 46px;
}

body[data-page="plan"] .bp-slide-copy h3 {
  font-size: clamp(42px, 4vw, 60px);
  line-height: 0.98;
}

body[data-page="plan"] .bp-slide-copy p {
  font-size: 16px;
  max-width: 620px;
}

body[data-page="plan"] .bp-thesis-slide {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

body[data-page="plan"] .bp-proof-slide {
  grid-template-columns: minmax(330px, 0.58fr) minmax(0, 1.42fr);
}

body[data-page="plan"] .bp-economics-slide {
  grid-template-columns: minmax(340px, 0.62fr) minmax(0, 1.38fr);
}

body[data-page="plan"] .bp-chapter-slide {
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1.38fr);
}

body[data-page="plan"] .bp-chapter-card {
  padding: 18px;
}

body[data-page="plan"] .bp-chapter-card li {
  font-size: 11.5px;
}

body[data-page="plan"] .bp-thesis-points {
  gap: 16px;
}

body[data-page="plan"] .bp-thesis-points article,
body[data-page="plan"] .bp-act-grid article,
body[data-page="plan"] .bp-roadmap-cards article {
  border-color: rgba(193, 171, 111, 0.22);
  box-shadow: 0 16px 40px rgba(31, 47, 41, 0.07);
  padding: 22px;
}

body[data-page="plan"] .bp-platform-slide {
  background:
    linear-gradient(135deg, rgba(4, 28, 24, 0.98), rgba(17, 68, 58, 0.94)),
    var(--deep);
}

body[data-page="plan"] .bp-platform-visual {
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

body[data-page="plan"] .bp-platform-visual img {
  padding: 24px;
}

body[data-page="plan"] .bp-act-grid,
body[data-page="plan"] .bp-roadmap-cards,
body[data-page="plan"] .bp-act-visual-strip,
body[data-page="plan"] .bp-roadmap-visual-strip,
body[data-page="plan"] .bp-data-strip,
body[data-page="plan"] .bp-proof-metric-row,
body[data-page="plan"] .bp-commercial-data,
body[data-page="plan"] .bp-model-path,
body[data-page="plan"] .bp-revenue-bars {
  gap: 14px;
}

body[data-page="plan"] .bp-data-card strong,
body[data-page="plan"] .bp-stream-card strong {
  font-size: 24px;
}

body[data-page="plan"] .bp-act-grid article:nth-child(2),
body[data-page="plan"] .bp-act-grid article:nth-child(4),
body[data-page="plan"] .bp-roadmap-cards article:nth-child(2),
body[data-page="plan"] .bp-roadmap-cards article:nth-child(4) {
  transform: translateY(26px);
}

body[data-page="plan"] .bp-chapter-ribbon {
  border-top: 1px solid rgba(193, 171, 111, 0.26);
  padding-top: 16px;
}

body[data-page="plan"] .bp-chapter-ribbon span {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(193, 171, 111, 0.22);
}

body[data-page="plan"] .bp-gallery-grid {
  align-items: start;
  gap: 18px;
}

body[data-page="plan"] .bp-gallery-grid figure:nth-child(2),
body[data-page="plan"] .bp-gallery-grid figure:nth-child(5) {
  transform: translateY(34px);
}

body[data-page="plan"] .bp-gallery-grid figure {
  box-shadow: 0 22px 54px rgba(23, 37, 32, 0.12);
}

body[data-page="plan"] .bp-gallery-grid img {
  aspect-ratio: 16 / 11;
  padding: 18px;
}

body[data-page="plan"] .bp-close-slide {
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
}

body[data-page="plan"] .bp-sync-grid {
  gap: 16px;
}

body[data-theme="dark"][data-page="plan"] {
  background: #0f1720;
}

body[data-theme="dark"][data-page="plan"] .bp-deck-header {
  background: rgba(16, 23, 34, 0.9);
  border-color: rgba(212, 190, 135, 0.22);
}

body[data-theme="dark"][data-page="plan"] .bp-deck-title img,
body[data-theme="dark"][data-page="plan"] .bp-deck-header-actions a,
body[data-theme="dark"][data-page="plan"] .bp-deck-header-actions button {
  background: #111827;
}

@media (max-width: 1180px) {
  body[data-page="plan"] .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="plan"] .dashboard {
    padding: 18px 20px 40px !important;
  }

  body[data-page="plan"] .bp-cover-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(620px, calc(100% - 48px));
  }

  body[data-page="plan"] .bp-thesis-slide,
  body[data-page="plan"] .bp-proof-slide,
  body[data-page="plan"] .bp-platform-slide,
  body[data-page="plan"] .bp-economics-slide,
  body[data-page="plan"] .bp-chapter-slide,
  body[data-page="plan"] .bp-close-slide {
    grid-template-columns: 1fr;
  }

  body[data-page="plan"] .bp-act-grid,
  body[data-page="plan"] .bp-chapter-grid,
  body[data-page="plan"] .bp-roadmap-cards,
  body[data-page="plan"] .bp-act-visual-strip,
  body[data-page="plan"] .bp-roadmap-visual-strip,
  body[data-page="plan"] .bp-data-strip,
  body[data-page="plan"] .bp-proof-metric-row,
  body[data-page="plan"] .bp-commercial-data,
  body[data-page="plan"] .bp-model-path,
  body[data-page="plan"] .bp-revenue-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-page="plan"] .dashboard {
    padding: 12px 12px 30px !important;
  }

  body[data-page="plan"] .bp-presentation.active {
    gap: 14px;
  }

  .bp-deck-header {
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    position: static;
  }

  .bp-deck-title {
    justify-content: flex-start;
  }

  .bp-deck-header,
  .bp-deck-header-actions {
    display: grid;
  }

  .bp-deck-header-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bp-deck-header-actions a,
  .bp-deck-header-actions button {
    min-width: 0;
    padding: 8px 9px;
    text-align: center;
  }

  body[data-page="plan"] .bp-slide,
  body[data-page="plan"] .bp-cover-slide {
    min-height: 0;
  }

  body[data-page="plan"] .bp-cover-content,
  body[data-page="plan"] .bp-thesis-slide,
  body[data-page="plan"] .bp-proof-slide,
  body[data-page="plan"] .bp-platform-slide,
  body[data-page="plan"] .bp-acts-slide,
  body[data-page="plan"] .bp-chapter-slide,
  body[data-page="plan"] .bp-economics-slide,
  body[data-page="plan"] .bp-gallery-slide,
  body[data-page="plan"] .bp-roadmap-slide,
  body[data-page="plan"] .bp-close-slide {
    padding: 22px;
  }

  body[data-page="plan"] .bp-cover-content h2 {
    font-size: 36px;
    line-height: 1;
  }

  body[data-page="plan"] .bp-slide-copy h3 {
    font-size: 31px;
  }

  body[data-page="plan"] .bp-cover-metrics {
    grid-template-columns: 1fr;
    padding: 0 22px 22px;
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
  }

  body[data-page="plan"] .bp-act-grid,
  body[data-page="plan"] .bp-chapter-grid,
  body[data-page="plan"] .bp-roadmap-cards,
  body[data-page="plan"] .bp-gallery-grid,
  body[data-page="plan"] .bp-proof-grid,
  body[data-page="plan"] .bp-act-visual-strip,
  body[data-page="plan"] .bp-roadmap-visual-strip,
  body[data-page="plan"] .bp-data-strip,
  body[data-page="plan"] .bp-proof-metric-row,
  body[data-page="plan"] .bp-commercial-data,
  body[data-page="plan"] .bp-model-path,
  body[data-page="plan"] .bp-revenue-bars,
  body[data-page="plan"] .bp-sync-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="plan"] .bp-act-grid article:nth-child(2),
  body[data-page="plan"] .bp-act-grid article:nth-child(4),
  body[data-page="plan"] .bp-roadmap-cards article:nth-child(2),
  body[data-page="plan"] .bp-roadmap-cards article:nth-child(4),
  body[data-page="plan"] .bp-gallery-grid figure:nth-child(2),
  body[data-page="plan"] .bp-gallery-grid figure:nth-child(5) {
    transform: none;
  }
}

@media print {
  body {
    background: var(--pearl);
  }

  .sidebar,
  .topbar,
  .actions,
  .filter-console,
  .auth-gate,
  .review-banner {
    display: none;
  }

  .app-shell {
    display: block;
  }

  .dashboard {
    padding: 0;
  }

  .page {
    display: block !important;
    page-break-after: always;
  }

  .page::before {
    content: attr(data-title) "\A" attr(data-subtitle);
    white-space: pre-line;
    display: block;
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
  }

  .panel,
  .kpi-card {
    box-shadow: none;
  }

  .manual-hero,
  .manual-card {
    box-shadow: none;
  }

  .manual-grid {
    grid-template-columns: 1fr;
  }

  .manual-table {
    overflow: visible;
  }

  .manual-table .data-table {
    font-size: 10px;
    min-width: 0;
  }

  .manual-table .data-table th,
  .manual-table .data-table td {
    max-width: none;
    padding: 6px 5px;
  }
}
