:root {
  --bg: #060806;
  --panel: #101711;
  --panel-2: #121922;
  --panel-3: #17121b;
  --line: rgba(176, 218, 190, 0.18);
  --text: #f2fff6;
  --muted: #aebfaf;
  --dim: #738275;
  --green: #49df8d;
  --cyan: #38c8ff;
  --amber: #f3ba4e;
  --rose: #ec5f8f;
  --violet: #9b78ff;
  --danger: #ff7474;
  --shadow: 0 24px 78px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* VoiceLife / BOS Color Tokens */
  --deep-navy: #0a1628;
  --rich-teal: #0d4f4f;
  --golden-accent: #d4a853;
  --golden-light: #f4e4c1;
  --soft-cream: #faf8f5;
  --slate-text: #2d3748;
  --muted-gray: #64748b;
  --gradient-start: #0a1628;
  --gradient-mid: #0d3d3d;
  --gradient-end: #164545;
  --success-green: #10b981;
  --warning-amber: #f59e0b;
  --danger-red: #ef4444;
  --bos-deep-ocean: hsl(210, 60%, 10%);
  --bos-ocean: hsl(210, 80%, 20%);
  --bos-ocean-light: hsl(200, 80%, 60%);
  --bos-cyan: hsl(185, 80%, 50%);
  --bos-gold: hsl(43, 96%, 56%);
  --bos-gold-light: hsl(48, 100%, 70%);
  --bos-emerald: hsl(160, 84%, 39%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(73, 223, 141, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(56, 200, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(6, 8, 6, 0.99), rgba(9, 17, 12, 0.99) 48%, rgba(18, 14, 25, 0.99));
  background-size: 54px 54px, 54px 54px, auto;
}

button {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 294px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(4, 8, 6, 0.92);
  backdrop-filter: blur(18px);
}

.brand-stack {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding-top: 18px;
}

.bio-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(73, 223, 141, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(73, 223, 141, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(73, 223, 141, 0.16), rgba(56, 200, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 26px rgba(73, 223, 141, 0.22);
}

.bio-mark::before,
.bio-mark::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 42px;
  border: 2px solid var(--green);
  border-top-color: var(--cyan);
  border-bottom-color: var(--rose);
  border-radius: 999px;
}

.bio-mark::before {
  transform: rotate(38deg);
}

.bio-mark::after {
  transform: rotate(-38deg);
}

.bio-mark span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(56, 200, 255, 0.85);
}

.bio-mark span:nth-child(1) { left: 9px; top: 10px; }
.bio-mark span:nth-child(2) { right: 9px; top: 10px; background: var(--green); }
.bio-mark span:nth-child(3) { right: 9px; bottom: 10px; background: var(--amber); }
.bio-mark span:nth-child(4) { left: 9px; bottom: 10px; background: var(--rose); }

.brand-stack h1,
.topbar h2,
.section-heading h3,
.panel h4 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.brand-stack h1 {
  font-size: 1.36rem;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-tabs {
  display: grid;
  gap: 9px;
  margin-top: 34px;
}

.nav-tab,
.icon-button,
.scenario {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(174, 191, 175, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.nav-tab {
  justify-content: flex-start;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
}

.nav-tab:hover,
.nav-tab.active,
.icon-button:hover,
.scenario:hover,
.scenario.active {
  border-color: rgba(73, 223, 141, 0.68);
  color: var(--text);
  background: rgba(73, 223, 141, 0.1);
}

.nav-tab:focus-visible,
.icon-button:focus-visible,
.scenario:focus-visible,
.path-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #04110a;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-size: 0.76rem;
  font-weight: 900;
}

.sidebar-note {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 34px;
  padding: 14px;
  border: 1px solid rgba(56, 200, 255, 0.24);
  border-radius: 8px;
  background: rgba(56, 200, 255, 0.055);
}

.sidebar-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(73, 223, 141, 0.8);
}

.main-panel {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 16, 12, 0.78);
  box-shadow: var(--shadow);
}

.topbar h2 {
  font-size: 2.15rem;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.icon-button {
  padding: 10px 13px;
  white-space: nowrap;
}

.icon-button svg {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 7px;
  color: #04110a;
  background: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-button.primary {
  border-color: rgba(56, 200, 255, 0.42);
  color: var(--text);
  background: rgba(56, 200, 255, 0.11);
}

.icon-button.primary svg {
  background: var(--cyan);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.status-strip > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.metric-label,
.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
  font-size: 1.28rem;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin: 24px 0 16px;
}

.section-heading h3 {
  max-width: 920px;
  font-size: 1.9rem;
}

.pill,
.panel-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pill {
  padding: 7px 11px;
  color: var(--cyan);
  border: 1px solid rgba(56, 200, 255, 0.32);
  background: rgba(56, 200, 255, 0.07);
}

.overview-grid,
.developer-grid,
.market-grid,
.pilot-grid,
.product-grid,
.capability-grid,
.positioning-grid,
.deliverable-grid,
.proof-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
}

.panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16, 23, 17, 0.94), rgba(17, 21, 29, 0.88));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
}

.panel-large {
  grid-row: span 2;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel h4 {
  font-size: 1.27rem;
}

.panel-tag {
  padding: 6px 9px;
  border: 1px solid rgba(174, 191, 175, 0.2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.panel-tag.green {
  color: var(--green);
  border-color: rgba(73, 223, 141, 0.35);
  background: rgba(73, 223, 141, 0.08);
}

.panel-tag.cyan {
  color: var(--cyan);
  border-color: rgba(56, 200, 255, 0.35);
  background: rgba(56, 200, 255, 0.08);
}

.panel-tag.amber {
  color: var(--amber);
  border-color: rgba(243, 186, 78, 0.35);
  background: rgba(243, 186, 78, 0.08);
}

.panel-tag.rose {
  color: var(--rose);
  border-color: rgba(236, 95, 143, 0.35);
  background: rgba(236, 95, 143, 0.08);
}

.bio-map {
  position: relative;
  min-height: 398px;
  overflow: hidden;
  border: 1px solid rgba(176, 218, 190, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(176, 218, 190, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(176, 218, 190, 0.07) 1px, transparent 1px),
    linear-gradient(145deg, rgba(6, 11, 8, 0.98), rgba(16, 15, 26, 0.92));
  background-size: 36px 36px, 36px 36px, auto;
}

.rail {
  position: absolute;
  height: 2px;
  transform-origin: center;
  background: linear-gradient(90deg, transparent, rgba(73, 223, 141, 0.74), rgba(56, 200, 255, 0.55), transparent);
}

.rail-a {
  width: 54%;
  left: 24%;
  top: 49%;
}

.rail-b {
  width: 42%;
  left: 21%;
  top: 34%;
  transform: rotate(-27deg);
}

.rail-c {
  width: 44%;
  right: 14%;
  top: 62%;
  transform: rotate(31deg);
}

.bio-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 150px;
  min-height: 82px;
  padding: 13px;
  border: 1px solid rgba(56, 200, 255, 0.32);
  border-radius: 8px;
  text-align: center;
  background: rgba(8, 16, 12, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.bio-node strong {
  font-size: 0.98rem;
}

.bio-node span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.node-core {
  left: calc(50% - 75px);
  top: calc(50% - 44px);
  border-color: rgba(73, 223, 141, 0.62);
}

.node-a { left: 8%; top: 12%; }
.node-b { right: 8%; top: 16%; }
.node-c { left: 11%; bottom: 12%; }
.node-d { right: 8%; bottom: 12%; }

.stack-list,
.check-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list li,
.check-list li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  line-height: 1.45;
}

.stack-list li span,
.check-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(73, 223, 141, 0.56);
}

.danger-list li span {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(255, 116, 116, 0.5);
}

.plain-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.bridge-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 14px;
  margin-bottom: 14px;
}

.bridge-summary h4 {
  max-width: 940px;
  margin-bottom: 14px;
  font-size: 1.58rem;
  line-height: 1.15;
}

.bridge-verdict {
  display: grid;
  align-content: center;
  min-height: 206px;
}

.bridge-verdict strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 1.85rem;
  line-height: 1.05;
}

.bridge-verdict span {
  color: var(--muted);
  line-height: 1.55;
}

.capability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.capability-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.capability-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(176, 218, 190, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.042);
  font-size: 0.9rem;
  line-height: 1.2;
}

.bridge-panel,
.governance-panel,
.commercial-panel,
.outcome-panel {
  margin-top: 14px;
}

.bridge-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.bridge-flow div,
.event-pipeline div,
.module-list div,
.question-grid div,
.guardrail-grid div,
.path-card,
.roadmap div {
  padding: 14px;
  border: 1px solid rgba(174, 191, 175, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.042);
}

.bridge-flow div {
  min-height: 190px;
}

.bridge-flow strong,
.event-pipeline strong,
.roadmap strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #04110a;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.bridge-flow span,
.event-pipeline span {
  display: block;
  margin-top: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.bridge-flow p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.positioning-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
  margin-bottom: 14px;
}

blockquote {
  margin: 0;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--green);
  color: var(--text);
  font-size: 1.24rem;
  font-weight: 750;
  line-height: 1.4;
}

.deliverable-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.deliverable-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.deliverable-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.deliverable-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.kpi-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.kpi-card strong {
  display: block;
  margin: 9px 0 12px;
  font-size: 1.35rem;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(174, 191, 175, 0.14);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.bar.cyan i {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.bar.amber i {
  background: linear-gradient(90deg, var(--amber), var(--rose));
}

.bar.rose i {
  background: linear-gradient(90deg, var(--rose), var(--violet));
}

.event-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.event-pipeline div {
  min-height: 190px;
}

.event-pipeline small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.scenario-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.scenario {
  justify-content: flex-start;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
}

.scenario span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #04110a;
  background: var(--amber);
  font-size: 0.74rem;
  font-weight: 900;
}

.proof-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

.developer-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.code-block {
  margin: 0;
  overflow: auto;
  min-height: 330px;
  padding: 18px;
  border: 1px solid rgba(73, 223, 141, 0.24);
  border-radius: 8px;
  color: #cff8df;
  background: #040906;
  font-size: 0.88rem;
  line-height: 1.65;
}

.module-list,
.question-grid,
.path-options,
.guardrail-grid {
  display: grid;
  gap: 10px;
}

.module-list strong,
.question-grid strong,
.path-card strong,
.guardrail-grid strong {
  display: block;
  margin-bottom: 6px;
}

.module-list span,
.question-grid span,
.path-card span,
.guardrail-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.event-log {
  display: grid;
  gap: 9px;
}

.event-log div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(176, 218, 190, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.event-log time,
.event-log span {
  color: var(--muted);
  font-size: 0.86rem;
}

.event-log strong {
  color: var(--green);
  font-size: 0.82rem;
}

.market-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

.question-grid,
.guardrail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guardrail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap {
  display: grid;
  gap: 12px;
}

.roadmap div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 86px;
}

.roadmap strong {
  width: 56px;
  height: 56px;
  font-size: 1.15rem;
}

.roadmap span {
  color: var(--muted);
  line-height: 1.5;
}

.path-card {
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.path-card:hover,
.path-card.selected {
  border-color: rgba(73, 223, 141, 0.55);
  background: rgba(73, 223, 141, 0.08);
}

.path-card.selected {
  box-shadow: inset 3px 0 0 var(--green);
}

.commercial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-definition {
  display: grid;
  align-content: center;
  min-height: 245px;
}

.product-card-grid,
.revenue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.product-card {
  position: relative;
  min-height: 242px;
  padding: 58px 16px 16px;
}

.product-card strong,
.revenue-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.product-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.product-card em,
.revenue-grid em {
  display: block;
  color: var(--green);
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.revenue-panel,
.bottom-grid {
  margin-top: 14px;
}

.revenue-grid div {
  min-height: 180px;
  padding: 16px;
  border: 1px solid rgba(174, 191, 175, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.042);
}

.revenue-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.money-card {
  position: relative;
  min-height: 246px;
  padding: 16px;
}

.money-card strong {
  margin-top: 34px;
  font-size: 1.05rem;
}

.money-card p {
  margin: 0 0 13px;
  color: var(--muted);
  line-height: 1.5;
}

.money-card em {
  display: block;
  color: var(--green);
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.money-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #04110a;
  background: var(--amber);
  font-size: 0.82rem;
  font-weight: 950;
}

.capital-note {
  margin: 14px 0 0;
  padding: 13px 14px;
  border: 1px solid rgba(243, 186, 78, 0.24);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(243, 186, 78, 0.055);
  line-height: 1.5;
}

.footer-note {
  margin-top: 28px;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

.agenda-fallback {
  position: fixed;
  right: 22px;
  top: 22px;
  z-index: 20;
  width: min(520px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(73, 223, 141, 0.4);
  border-radius: 8px;
  color: var(--text);
  background: rgba(7, 13, 9, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.44);
}

.agenda-fallback > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.agenda-fallback button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(174, 191, 175, 0.22);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.agenda-fallback textarea {
  width: 100%;
  min-height: 240px;
  resize: vertical;
  padding: 12px;
  border: 1px solid rgba(176, 218, 190, 0.2);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.26);
  font: inherit;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .app-shell {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    height: auto;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .main-panel {
    order: 1;
  }

  .brand-stack {
    min-height: 0;
    padding-top: 0;
  }

  .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .nav-tab {
    flex: 0 0 auto;
    width: auto;
    min-height: 40px;
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .nav-icon {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .sidebar-note {
    display: none;
  }
}

@media (max-width: 900px) {
  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar h2 {
    font-size: 1.62rem;
  }

  .section-heading h3 {
    font-size: 1.45rem;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .status-strip,
  .kpi-grid,
  .overview-grid,
  .developer-grid,
  .market-grid,
  .pilot-grid,
  .product-grid,
  .bridge-hero,
  .capability-grid,
  .positioning-grid,
  .deliverable-grid,
  .product-card-grid,
  .revenue-grid,
  .commercial-grid,
  .split-layout,
  .event-pipeline,
  .bridge-flow,
  .scenario-row,
  .question-grid,
  .guardrail-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .panel-large {
    grid-row: auto;
  }

  .bio-map {
    min-height: 560px;
  }

  .node-core {
    left: calc(50% - 75px);
    top: calc(50% - 41px);
  }

  .node-a { left: 7%; top: 6%; }
  .node-b { right: 7%; top: 24%; }
  .node-c { left: 7%; bottom: 24%; }
  .node-d { right: 7%; bottom: 6%; }

  .rail-a {
    width: 68%;
    left: 16%;
  }

  .rail-b {
    width: 60%;
    left: 18%;
  }

  .rail-c {
    width: 62%;
    right: 16%;
  }
}


@media (max-width: 640px) {
  .main-panel {
    padding: 16px;
  }

  .sidebar {
    padding: 12px 14px;
  }

  .brand-stack {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .brand-stack h1 {
    font-size: 1rem;
  }

  .eyebrow {
    font-size: 0.66rem;
  }

  .bio-mark {
    width: 40px;
    height: 40px;
  }

  .bio-mark::before,
  .bio-mark::after {
    width: 8px;
    height: 30px;
  }

  .nav-tab {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 0.85rem;
  }


  .topbar,
  .panel,
  .status-strip > div,
  .kpi-card {
    padding: 15px;
  }

  .pill,
  .panel-tag {
    white-space: normal;
  }

  .bio-node {
    width: 132px;
  }

  .node-core {
    left: calc(50% - 66px);
  }

  .event-log div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .code-block {
    font-size: 0.78rem;
  }

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

  .product-card-grid,
  .revenue-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .sidebar,
  .topbar-actions,
  .scenario-row {
    display: none;
  }

  .app-shell,
  .status-strip,
  .overview-grid,
  .kpi-grid,
  .developer-grid,
  .market-grid,
  .product-grid,
  .pilot-grid,
  .split-layout {
    display: block;
  }

  .main-panel {
    padding: 0;
  }

  .panel,
  .topbar,
  .status-strip > div,
  .kpi-card {
    margin-bottom: 12px;
    color: #111;
    background: #fff;
    box-shadow: none;
  }

  .view {
    display: block;
    break-inside: avoid;
  }
}

.topbar-logo {
  height: 110px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45));
}

/* VoiceLife / BOS Font Color Utilities */
.text-deep-navy { color: var(--deep-navy); }
.text-rich-teal { color: var(--rich-teal); }
.text-golden-accent { color: var(--golden-accent); }
.text-golden-light { color: var(--golden-light); }
.text-soft-cream { color: var(--soft-cream); }
.text-slate-text { color: var(--slate-text); }
.text-muted-gray { color: var(--muted-gray); }
.text-success-green { color: var(--success-green); }
.text-warning-amber { color: var(--warning-amber); }
.text-danger-red { color: var(--danger-red); }
.text-bos-deep-ocean { color: var(--bos-deep-ocean); }
.text-bos-ocean { color: var(--bos-ocean); }
.text-bos-ocean-light { color: var(--bos-ocean-light); }
.text-bos-cyan { color: var(--bos-cyan); }
.text-bos-gold { color: var(--bos-gold); }
.text-bos-gold-light { color: var(--bos-gold-light); }
.text-bos-emerald { color: var(--bos-emerald); }
