:root {
  color-scheme: light;
  --nc-teal-950: #03191a;
  --nc-teal-900: #06292a;
  --nc-teal-800: #073b3a;
  --nc-teal-700: #0b5755;
  --nc-teal-500: #1eafa1;
  --nc-teal-400: #55d6c2;
  --nc-paper: #f6f2ea;
  --nc-surface: #ffffff;
  --nc-ink: #1b1a17;
  --nc-ink-sub: #5c615a;
  --nc-line: #d7ddd7;
  --nc-white: #f4f1ea;
  --nc-dark-text: #c8d2cb;
  --nc-dark-sub: #9fb0ab;
  --nc-dark-line: #13332f;
  --nc-dark-surf: #071817;
  --nc-gold: #c9a85c;
  --nc-gold-deep: #846826;
  --bg: var(--nc-paper);
  --surface: var(--nc-surface);
  --surface-soft: #fbf8f1;
  --ink: var(--nc-ink);
  --muted: var(--nc-ink-sub);
  --line: var(--nc-line);
  --teal: var(--nc-teal-700);
  --teal-dark: var(--nc-teal-900);
  --accent: var(--nc-gold-deep);
  --shadow: 0 1px 0 rgba(27, 26, 23, 0.04);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--nc-dark-line);
  background: linear-gradient(90deg, var(--nc-teal-950) 0 calc(100% - 5px), var(--nc-teal-400) calc(100% - 5px) 100%);
  color: var(--nc-white);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.nav-close {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--nc-teal-400);
  color: var(--nc-teal-950);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 3px;
  color: var(--nc-dark-sub);
  font-size: 12px;
  font-family: Menlo, monospace;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--nc-dark-text);
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(85, 214, 194, 0.12);
  color: var(--nc-white);
  text-decoration: none;
}

.sidebar-panel {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--nc-dark-line);
  border-radius: 8px;
  background: rgba(7, 24, 23, 0.65);
  color: var(--nc-dark-sub);
  font-size: 13px;
  font-family: Menlo, monospace;
}

.main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 28px 56px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding-bottom: 14px;
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(14px);
}

.icon-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-right: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle {
  place-items: center;
  gap: 3px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--nc-teal-700);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  min-height: 430px;
  padding: 34px;
  border: 1px solid var(--nc-dark-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--nc-white);
  background:
    linear-gradient(90deg, rgba(3, 25, 26, 0.98) 0%, rgba(3, 25, 26, 0.92) 54%, rgba(3, 25, 26, 0.58) 100%),
    url("assets/novocube-ops-hero.png") center / cover;
}

.ds-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 24px;
  min-height: 430px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #03191a;
  color: #f4f1ea;
  box-shadow: var(--shadow);
}

.ds-hero > * {
  min-width: 0;
}

.ds-hero p {
  color: #c8d2cb;
}

.ds-hero h1 {
  max-width: 10em;
}

.ds-hero .quick-actions a {
  border-color: rgba(85, 214, 194, 0.24);
  background: rgba(7, 24, 23, 0.9);
  color: #f4f1ea;
}

.hero-section .quick-actions a {
  border-color: rgba(85, 214, 194, 0.22);
  background: rgba(7, 24, 23, 0.86);
  color: var(--nc-white);
}

.ds-hero .quick-actions span {
  color: #9fb0ab;
}

.hero-section .quick-actions span {
  color: var(--nc-dark-sub);
}

.ds-hero-figure {
  margin: 0;
  min-width: 0;
  align-self: center;
}

.ds-hero-figure img,
.gallery-grid img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.ds-hero-figure img {
  border: 1px solid rgba(85, 214, 194, 0.22);
  border-radius: 8px;
  background: #071817;
}

.section-block {
  margin-top: 28px;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-section .eyebrow,
.ds-hero .eyebrow {
  color: var(--nc-teal-400);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11em;
  margin-bottom: 14px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

h3 {
  margin-bottom: 12px;
  font-size: 17px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-section p {
  color: var(--nc-dark-text);
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.hero-copy p {
  max-width: 660px;
  margin-bottom: 18px;
}

.hero-bp-button {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  width: min(430px, 100%);
  min-height: 62px;
  margin-bottom: 18px;
  padding: 0 18px;
  border: 1px solid rgba(85, 214, 194, 0.32);
  border-radius: 8px;
  background: var(--nc-teal-400);
  color: var(--nc-teal-950);
  text-decoration: none;
}

.hero-bp-button:hover {
  text-decoration: none;
  background: #6fe4d2;
}

.hero-bp-button span {
  color: var(--nc-teal-950);
  font-family: Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-bp-button strong {
  font-size: 18px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: auto;
}

.quick-actions a {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(11, 87, 85, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: none;
}

.quick-actions a:hover {
  border-color: var(--nc-teal-500);
  text-decoration: none;
}

.quick-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quick-actions strong {
  font-size: 15px;
}

.summary-grid {
  display: grid;
  gap: 10px;
}

.summary-grid article {
  padding: 18px;
  border: 1px solid rgba(85, 214, 194, 0.18);
  border-radius: 8px;
  background: rgba(7, 24, 23, 0.86);
  box-shadow: none;
}

.summary-grid span,
.summary-grid small {
  display: block;
  color: var(--nc-dark-sub);
}

.summary-grid strong {
  display: block;
  margin: 5px 0;
  color: var(--nc-white);
  font-size: 24px;
}

.ops-action-panel {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(85, 214, 194, 0.24);
  border-radius: 8px;
  background: rgba(7, 24, 23, 0.72);
}

.ops-action-panel h2 {
  margin: 0;
  color: var(--nc-white);
  font-size: 20px;
}

.ops-action-list {
  display: grid;
  gap: 10px;
}

.ops-action-list article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(85, 214, 194, 0.18);
  border-radius: 8px;
  background: rgba(3, 25, 26, 0.55);
}

.ops-action-list span {
  color: var(--nc-teal-400);
  font-family: Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-action-list strong {
  color: var(--nc-white);
  font-size: 15px;
  line-height: 1.4;
}

.ops-action-list small {
  color: var(--nc-dark-sub);
  line-height: 1.5;
}

.ops-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.ops-status-strip article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.ops-status-strip span,
.source-links span {
  display: block;
  color: var(--accent);
  font-family: Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-status-strip strong {
  display: block;
  margin: 7px 0;
  color: var(--ink);
  font-size: 18px;
}

.ops-status-strip small {
  color: var(--muted);
  line-height: 1.55;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading p,
.list-heading p {
  max-width: 760px;
  margin-bottom: 0;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.asset-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.card-heading {
  margin-bottom: 10px;
}

.card-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-family: Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.asset-card .link-row {
  margin-top: auto;
}

.principle-grid,
.token-grid,
.component-grid,
.bp-system-grid,
.bp-system-links,
.token-usage-grid,
.component-preview-grid,
.quality-grid,
.usage-grid,
.ds-metric-row,
.voice-grid,
.theme-grid,
.website-grid {
  display: grid;
  gap: 16px;
}

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

.ds-metric-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.principle-grid article,
.ds-metric-row article,
.token-panel,
.component-grid article,
.bp-system-grid article,
.token-usage-grid article,
.component-sample,
.quality-grid article,
.usage-grid article,
.voice-grid article,
.website-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.principle-grid span,
.ds-metric-row span,
.component-grid span,
.bp-system-grid span,
.bp-system-links span,
.token-usage-grid span,
.quality-grid span,
.usage-grid span,
.website-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.principle-grid strong,
.usage-grid strong,
.website-grid strong {
  display: block;
  font-size: 19px;
}

.ds-metric-row strong {
  display: block;
  color: var(--nc-teal-700);
  font-size: 34px;
  line-height: 1;
}

.ds-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  border: 1px solid var(--nc-dark-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--nc-dark-line);
}

.ds-status-strip div {
  min-width: 0;
  padding: 16px;
  background: var(--surface);
}

.ds-status-strip span,
.token-usage-grid span,
.component-sample > span,
.quality-grid span {
  display: block;
  color: var(--accent);
  font-family: Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ds-status-strip strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--ink);
  font-size: 18px;
}

.ds-status-strip small {
  color: var(--muted);
  line-height: 1.5;
}

.ds-index {
  position: sticky;
  top: 56px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 242, 234, 0.9);
  backdrop-filter: blur(14px);
}

.ds-index a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(11, 87, 85, 0.16);
  border-radius: 8px;
  background: var(--surface);
  color: var(--teal-dark);
  font-family: Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.ds-index a:hover {
  border-color: var(--nc-teal-500);
  text-decoration: none;
}

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

.token-grid {
  grid-template-columns: 1.25fr 1fr 1fr;
}

.swatch-grid,
.type-scale {
  display: grid;
  gap: 10px;
}

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

.swatch-grid div,
.type-scale div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.swatch-grid span {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--swatch);
}

.swatch-grid strong,
.type-scale strong {
  overflow-wrap: anywhere;
}

.swatch-grid small,
.type-scale span,
.type-scale small {
  color: var(--muted);
}

.font-spec {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(11, 87, 85, 0.2);
  border-radius: 8px;
  background: #f4efe5;
}

.font-spec strong {
  color: var(--teal-dark);
  font-size: 18px;
}

.font-spec span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.type-scale strong {
  color: var(--nc-teal-700);
  font-size: min(var(--type-size), 15vw);
  line-height: 1.08;
  letter-spacing: 0;
}

.type-scale span {
  font-family: Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.type-scale small {
  font-size: 12px;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.theme-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.source-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.source-panel h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
}

.source-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.source-links {
  display: grid;
  gap: 10px;
}

.source-links a {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 14px;
  border: 1px solid rgba(11, 87, 85, 0.18);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  text-decoration: none;
}

.source-links a:hover {
  border-color: var(--nc-teal-500);
  text-decoration: none;
}

.update-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.update-template article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.update-template span {
  color: var(--accent);
  font-family: Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.update-template strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 18px;
}

.update-template p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.theme-card {
  min-width: 0;
  padding: 22px;
  border-radius: 8px;
}

.theme-card span,
.website-grid span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
}

.theme-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.theme-card p {
  margin-bottom: 0;
}

.theme-dark {
  border: 1px solid #13332f;
  background: #03191a;
  color: #f4f1ea;
}

.theme-dark span {
  color: #55d6c2;
}

.theme-dark p {
  color: #c8d2cb;
}

.theme-light {
  border: 1px solid #d7ddd7;
  background: #f6f2ea;
  color: #1b1a17;
}

.theme-light span {
  color: #846826;
}

.token-usage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.token-usage-grid strong,
.quality-grid strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 17px;
}

.token-usage-grid p,
.quality-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.layout-system-grid {
  grid-template-columns: 1.2fr 1fr 0.9fr;
}

.layout-preview,
.spacing-panel {
  min-width: 0;
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.layout-preview > span,
.spacing-panel > span,
.dos-grid span {
  color: var(--accent);
  font-family: Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.layout-preview strong,
.spacing-panel strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.layout-preview div {
  display: grid;
  gap: 10px;
  min-height: 110px;
  padding: 14px;
  border: 1px solid rgba(11, 87, 85, 0.18);
  border-radius: 8px;
  background: var(--surface-soft);
}

.layout-preview-hero div {
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: 28px 1fr;
}

.layout-preview-hero i:first-child {
  grid-column: 1;
  background: var(--nc-teal-700);
}

.layout-preview-hero i:nth-child(2) {
  grid-column: 1;
  background: #dfe7e1;
}

.layout-preview-hero i:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / 3;
  background: var(--nc-teal-950);
}

.layout-preview-content div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-preview-content i:first-child {
  grid-column: 1 / -1;
  background: #dfe7e1;
}

.layout-preview-content i:not(:first-child) {
  background: var(--nc-paper);
}

.layout-preview i {
  display: block;
  min-height: 34px;
  border: 1px solid rgba(11, 87, 85, 0.14);
  border-radius: 6px;
}

.spacing-bars {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(11, 87, 85, 0.18);
  border-radius: 8px;
  background: var(--surface-soft);
}

.spacing-bars i {
  display: block;
  height: calc(var(--space) * 2.2);
  border-radius: 6px 6px 0 0;
  background: var(--nc-teal-700);
}

.component-preview-grid {
  grid-template-columns: 1.4fr 1fr 0.72fr;
  margin-bottom: 16px;
}

.component-sample {
  min-height: 176px;
}

.component-sample-title {
  background: var(--nc-teal-950);
  color: var(--nc-white);
}

.component-sample-title h3 {
  margin: 12px 0;
  color: var(--nc-white);
  font-size: 26px;
  line-height: 1.14;
}

.component-sample-title p {
  margin-bottom: 0;
  color: var(--nc-dark-sub);
}

.component-sample-stack {
  display: grid;
  align-content: center;
  border-left: 5px solid var(--nc-teal-500);
}

.component-sample-stack strong {
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: 24px;
}

.component-sample-stack small,
.component-sample-stat small {
  color: var(--muted);
}

.component-sample-stat {
  display: grid;
  align-content: center;
  background: var(--nc-paper);
}

.component-sample-stat strong {
  color: var(--nc-teal-700);
  font-size: 56px;
  line-height: 1;
}

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

.bp-system-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bp-system-grid article {
  min-height: 168px;
}

.bp-system-grid strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 18px;
}

.bp-system-grid p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.65;
}

.bp-system-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.bp-system-links a {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 16px;
  border: 1px solid rgba(85, 214, 194, 0.32);
  border-radius: 8px;
  background: var(--nc-teal-950);
  color: var(--nc-white);
  text-decoration: none;
}

.bp-system-links a:hover {
  border-color: var(--nc-teal-400);
  text-decoration: none;
}

.bp-system-links strong {
  color: var(--nc-white);
  font-size: 16px;
}

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

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

.do-card,
.dont-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.do-card {
  border-color: rgba(11, 87, 85, 0.24);
}

.do-card span {
  color: var(--nc-teal-700);
}

.dont-card {
  background: #fbf8f1;
}

.dont-card span {
  color: var(--accent);
}

.do-card strong,
.dont-card strong {
  color: var(--ink);
  font-size: 18px;
}

.do-card p,
.dont-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.website-grid small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: none;
}

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

dl {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

dl div {
  display: grid;
  gap: 3px;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(11, 87, 85, 0.22);
  border-radius: 8px;
  background: #eef3ef;
}

.link-row a:hover {
  background: #e5eee8;
  text-decoration: none;
}

.list-heading {
  display: grid;
  gap: 4px;
  margin-top: 26px;
  padding-top: 6px;
}

.domain-table,
.ledger-table,
.checklist-table {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: none;
}

.domain-row,
.ledger-row,
.checklist-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.domain-row {
  grid-template-columns: minmax(120px, 0.95fr) minmax(92px, 0.6fr) minmax(100px, 0.56fr) minmax(130px, 0.85fr) minmax(140px, 0.95fr);
}

.ledger-row {
  grid-template-columns: minmax(104px, 0.65fr) minmax(210px, 1.35fr) minmax(86px, 0.55fr) minmax(86px, 0.55fr) minmax(170px, 1.05fr) minmax(94px, 0.58fr);
}

.ledger-table.compact-4 .ledger-row {
  grid-template-columns: minmax(96px, 0.65fr) minmax(180px, 1.25fr) minmax(110px, 0.7fr) minmax(170px, 1fr);
}

.ledger-table.repo-table .ledger-row {
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.3fr) minmax(92px, 0.5fr) minmax(110px, 0.58fr);
}

.ledger-table.dataroom-table .ledger-row {
  grid-template-columns: minmax(104px, 0.6fr) minmax(240px, 1.4fr) minmax(94px, 0.55fr) minmax(88px, 0.5fr) minmax(210px, 1.05fr);
}

.ledger-table.risk-table .ledger-row {
  grid-template-columns: minmax(120px, 0.75fr) minmax(210px, 1.25fr) minmax(70px, 0.4fr) minmax(86px, 0.45fr) minmax(210px, 1.1fr) minmax(70px, 0.4fr);
}

.checklist-row {
  grid-template-columns: minmax(88px, 0.5fr) minmax(112px, 0.66fr) minmax(260px, 1.55fr) minmax(86px, 0.5fr) minmax(210px, 1.05fr);
}

.checklist-table.poc-table .checklist-row {
  grid-template-columns: minmax(130px, 0.7fr) minmax(110px, 0.58fr) minmax(260px, 1.35fr) minmax(90px, 0.48fr) minmax(210px, 1fr);
}

.domain-row:first-child,
.ledger-row:first-child,
.checklist-row:first-child {
  border-top: 0;
}

.domain-head,
.ledger-head,
.checklist-head {
  background: #f4efe5;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  font-family: Menlo, monospace;
}

.startup-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 18px;
}

.startup-summary article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.startup-summary span {
  color: var(--accent);
  font-family: Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.startup-summary strong {
  color: var(--ink);
  line-height: 1.35;
}

.startup-summary small {
  color: var(--muted);
  line-height: 1.45;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  white-space: nowrap;
}

.status-tag.ok {
  color: #0b5755;
  background: #e4f3ef;
}

.status-tag.warn {
  color: #846826;
  background: #f7ecd0;
}

.status-tag.todo {
  color: #7e3d2d;
  background: #f6dfd6;
}

.priority-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(11, 87, 85, 0.16);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.priority-tag.must-fund {
  border-color: rgba(132, 104, 38, 0.36);
  background: #f4efe5;
  color: var(--accent);
}

.priority-tag.must-sign {
  border-color: rgba(30, 175, 161, 0.3);
  background: #e5f4f0;
  color: var(--teal-dark);
}

.priority-tag.later {
  border-color: rgba(11, 87, 85, 0.18);
  background: #eef3ef;
  color: var(--muted);
}

.runbook-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

details ol {
  margin: 0;
  padding: 0 18px 16px 36px;
  color: var(--muted);
  line-height: 1.75;
}

.bp-main {
  width: min(1280px, 100%);
  padding-bottom: 28px;
}

.bp-topbar {
  justify-content: space-between;
  gap: 14px;
}

.bp-topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bp-topbar-title a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.bp-topbar-title a:hover {
  text-decoration: none;
  border-color: var(--nc-teal-500);
}

.bp-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12px;
  font-family: Menlo, monospace;
}

.bp-control-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(11, 87, 85, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.bp-control-secondary {
  display: none;
}

.bp-controls button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.bp-controls button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.bp-copy-status {
  min-width: 42px;
  color: var(--nc-teal-700);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.bp-controls [data-slide-counter] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 58px;
  padding: 0 10px;
  border: 1px solid var(--nc-teal-700);
  border-radius: 8px;
  background: var(--nc-teal-950);
  color: var(--nc-teal-400);
  font-weight: 900;
}

.bp-stage-header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 1px;
  width: min(1180px, 100%);
  margin: 0 auto 12px;
  border: 1px solid var(--nc-dark-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--nc-dark-line);
}

.bp-stage-header div {
  min-width: 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
}

.bp-stage-header span {
  display: block;
  color: var(--accent);
  font-family: Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.bp-stage-header strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.bp-investment-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  width: min(1180px, 100%);
  margin: -2px auto 10px;
}

.bp-investment-strip article {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.bp-investment-strip span {
  color: var(--accent);
  font-family: Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bp-investment-strip strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.28;
}

.bp-investment-strip small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.bp-version-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(1180px, 100%);
  margin: 0 auto 12px;
}

.bp-version-panel div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.bp-version-panel span {
  color: var(--accent);
  font-family: Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.bp-version-panel strong {
  display: block;
  margin: 5px 0;
  color: var(--ink);
  font-size: 14px;
}

.bp-version-panel small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.bp-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  align-items: end;
  border-color: var(--nc-dark-line);
  color: var(--nc-white);
  background:
    linear-gradient(120deg, rgba(3, 25, 26, 0.98), rgba(3, 25, 26, 0.84)),
    url("assets/novocube-ops-hero.png") center / cover;
}

.bp-gold-line {
  display: block;
  margin-top: 18px;
  color: var(--nc-gold);
  font-size: 28px;
}

.bp-cover h1 {
  max-width: 10em;
}

.bp-cover p,
.bp-cover .eyebrow {
  color: var(--nc-dark-text);
}

.bp-cover-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(85, 214, 194, 0.2);
  border-radius: 8px;
  background: rgba(7, 24, 23, 0.82);
}

.bp-cover-card strong,
.bp-note strong,
.bp-statement strong,
.bp-formula {
  font-size: 24px;
}

.bp-cover-card span,
.bp-cover-card small {
  color: var(--nc-dark-sub);
}

.bp-slide h2 {
  max-width: 920px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
}

.bp-slide h3 {
  font-size: 22px;
}

.bp-lead {
  max-width: 880px;
  font-size: 20px;
}

.bp-grid {
  display: grid;
  gap: 14px;
}

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

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

.bp-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bp-grid section,
.bp-note,
.bp-statement,
.bp-system section,
.bp-stack span,
.bp-timeline section {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.bp-grid section {
  display: grid;
  gap: 10px;
}

.bp-grid section > span,
.bp-timeline span,
.bp-system span {
  color: var(--accent);
  font-family: Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.bp-grid strong,
.bp-system strong,
.bp-timeline strong {
  font-size: 20px;
}

.bp-grid small,
.bp-grid span,
.bp-system small,
.bp-timeline small,
.bp-note span,
.bp-statement span {
  color: var(--muted);
  line-height: 1.65;
}

.bp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 18px;
  align-items: stretch;
}

.bp-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.bp-list strong {
  color: var(--ink);
}

.bp-note,
.bp-statement {
  display: grid;
  align-content: center;
  gap: 12px;
  border-color: rgba(11, 87, 85, 0.24);
}

.bp-note.final {
  border-color: var(--nc-dark-line);
  background: var(--nc-teal-950);
  color: var(--nc-white);
}

.bp-note.final span {
  color: var(--nc-dark-text);
}

.bp-statement {
  max-width: 920px;
  background: #f4efe5;
}

.bp-system {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bp-system section {
  display: grid;
  gap: 10px;
  min-height: 220px;
}

.bp-formula {
  max-width: 900px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.bp-stack,
.bp-timeline {
  display: grid;
  gap: 12px;
}

.bp-stack span {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.bp-timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bp-timeline section {
  display: grid;
  gap: 8px;
}

.bp-visual-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  align-items: center;
  gap: 24px;
}

.bp-visual-slide.active {
  display: grid;
}

.bp-product-figure {
  margin: 0;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.bp-product-figure img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
}

.bp-product-figure figcaption,
.bp-caption {
  margin: 0;
  color: var(--muted);
  font-family: Menlo, monospace;
  font-size: 12px;
  text-align: center;
}

.bp-roster {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.bp-roster p {
  display: grid;
  grid-template-columns: minmax(120px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.bp-roster strong {
  color: var(--ink);
  font-size: 18px;
}

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

.bp-appendix {
  gap: 12px;
}

.bp-architecture {
  margin: 0;
  min-height: 0;
  flex: 1;
  display: grid;
  place-items: center;
}

.bp-architecture img {
  display: block;
  max-width: 100%;
  max-height: 425px;
  object-fit: contain;
}

.bp-back-cover {
  padding: 0;
  justify-content: end;
  color: var(--nc-white);
  background: var(--nc-teal-950);
}

.bp-back-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-back-cover > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 0 4.8% 4.8%;
  background: linear-gradient(180deg, rgba(3, 25, 26, 0), rgba(3, 25, 26, 0.78));
}

.bp-back-cover span {
  width: 46px;
  height: 3px;
  background: var(--nc-gold);
}

.bp-back-cover h2 {
  color: var(--nc-white);
}

.bp-back-cover p {
  color: var(--nc-teal-400);
  font-family: Menlo, monospace;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 80;
    left: 0;
    width: 244px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(3, 25, 26, 0.36);
  }

  .nav-close {
    display: inline-flex;
    align-self: flex-end;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--nc-white);
    font-weight: 800;
    cursor: pointer;
  }

  .icon-button {
    display: grid;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .ds-hero {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    max-width: none;
  }

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

@media (max-width: 820px) {
  .main {
    padding: 12px 14px 36px;
  }

  .hero-section {
    gap: 16px;
    padding: 22px 18px;
    background:
      linear-gradient(180deg, rgba(3, 25, 26, 0.98) 0%, rgba(3, 25, 26, 0.9) 64%, rgba(3, 25, 26, 0.5) 100%),
      url("assets/novocube-ops-hero.png") center / cover;
  }

  h1 {
    font-size: 30px;
  }

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

  .quick-actions {
    grid-template-columns: 1fr;
  }

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

  .principle-grid,
  .token-grid,
  .component-grid,
  .bp-system-grid,
  .bp-system-links,
  .token-usage-grid,
  .layout-system-grid,
  .component-preview-grid,
  .quality-grid,
  .dos-grid,
  .ops-status-strip,
  .source-panel,
  .update-template,
  .ds-status-strip,
  .gallery-grid,
  .usage-grid,
  .ds-metric-row,
  .voice-grid,
  .theme-grid,
  .website-grid {
    grid-template-columns: 1fr;
  }

  .bp-version-panel {
    grid-template-columns: 1fr;
  }

  .ds-index {
    position: static;
    padding: 8px;
  }

  .ds-index a {
    flex: 1 1 108px;
    justify-content: center;
  }

  .startup-summary {
    grid-template-columns: 1fr;
  }

  .domain-row,
  .ledger-row,
  .checklist-row,
  .ledger-table.compact-4 .ledger-row,
  .ledger-table.repo-table .ledger-row,
  .ledger-table.dataroom-table .ledger-row,
  .ledger-table.risk-table .ledger-row,
  .checklist-table.poc-table .checklist-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .domain-head,
  .ledger-head,
  .checklist-head {
    display: none;
  }

  .bp-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .bp-topbar-title {
    flex: 1;
    justify-content: space-between;
  }

  .bp-controls {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .bp-control-group {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }

  .bp-controls button {
    flex: 1 1 96px;
  }

  .bp-controls [data-slide-counter] {
    min-width: 56px;
    text-align: center;
  }

  .bp-stage-header {
    grid-template-columns: 1fr;
    margin-bottom: 10px;
  }

  .bp-slide {
    min-height: auto;
    padding: 24px 18px;
  }

  .bp-cover,
  .bp-split,
  .bp-system,
  .bp-grid.two,
  .bp-grid.three,
  .bp-grid.four,
  .bp-timeline {
    grid-template-columns: 1fr;
  }

  .bp-slide h2 {
    font-size: 30px;
  }
}

.bp-shell {
  min-height: 100vh;
}

.bp-main {
  width: min(1440px, 100%);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  padding-bottom: 28px;
}

.bp-deck {
  --bp-progress: 8.333%;
  align-self: start;
  width: min(100%, calc((100vh - 128px) * 16 / 9));
  max-width: 1180px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  display: block;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  overflow: hidden;
}

.bp-deck::before {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  z-index: 30;
  width: var(--bp-progress);
  height: 4px;
  background: var(--nc-teal-500);
}

.bp-deck::after {
  content: attr(data-current) " · " attr(data-title);
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 13px;
  z-index: 31;
  color: rgba(11, 87, 85, 0.76);
  font-family: Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.bp-slide {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 4.8%;
  border: 0;
  border-radius: 0;
  display: none;
  flex-direction: column;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bp-slide.active {
  display: flex;
}

.bp-deck:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  background: #03191a;
}

.bp-deck:fullscreen .bp-slide {
  padding: 5.2vh 6vw;
}

.bp-slide::after {
  content: "NovoCube · Company Profile";
  position: absolute;
  right: 4.8%;
  bottom: 3.2%;
  color: var(--muted);
  font-family: Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.bp-cover.active {
  display: grid;
}

.bp-slide h1 {
  font-size: clamp(48px, 6.4vw, 76px);
  line-height: 0.96;
}

.bp-slide h2 {
  max-width: 900px;
  font-size: clamp(34px, 4.1vw, 56px);
}

.bp-slide h3 {
  font-size: 20px;
}

.bp-lead {
  font-size: 18px;
}

.bp-grid section,
.bp-note,
.bp-statement,
.bp-system section,
.bp-stack span,
.bp-timeline section {
  padding: 16px;
}

.bp-grid strong,
.bp-system strong,
.bp-timeline strong {
  font-size: 18px;
}

.bp-grid small,
.bp-grid span,
.bp-system small,
.bp-timeline small,
.bp-note span,
.bp-statement span,
.bp-list {
  font-size: 14px;
}

.bp-cover-card strong,
.bp-note strong,
.bp-statement strong,
.bp-formula {
  font-size: 22px;
}

.bp-stack {
  gap: 10px;
}

.bp-stack span {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.bp-timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bp-slide {
  --slide-pad-x: 6%;
  --slide-pad-y: 5.2%;
  justify-content: flex-start;
  gap: 18px;
  padding: var(--slide-pad-y) var(--slide-pad-x);
}

.bp-slide:not(.bp-cover):not(.bp-back-cover)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 100%;
  background: var(--nc-teal-900);
  box-shadow: 2px 0 0 var(--nc-teal-400);
}

.bp-slide .eyebrow {
  margin-bottom: 2px;
}

.bp-slide h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3.45vw, 43px);
  line-height: 1.08;
}

.bp-lead {
  max-width: 960px;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.55;
}

.bp-grid {
  gap: 12px;
}

.bp-grid section,
.bp-system section,
.bp-stack span,
.bp-timeline section {
  border-color: #d9e2da;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.74);
}

.bp-statement,
.bp-product-figure img,
.bp-cover-card,
.bp-controls button {
  border-radius: 8px;
}

.bp-toc,
.bp-notes,
.bp-help {
  position: fixed;
  top: 84px;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: min(420px, calc(100vw - 48px));
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(3, 25, 26, 0.18);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.bp-notes {
  width: min(460px, calc(100vw - 48px));
}

.bp-toc[hidden],
.bp-notes[hidden],
.bp-help[hidden] {
  display: none;
}

.bp-toc-header,
.bp-notes-header,
.bp-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.bp-toc-header button,
.bp-notes-header button,
.bp-help-header button,
.bp-toc-list button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.bp-toc-header button,
.bp-notes-header button,
.bp-help-header button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--teal-dark);
  font-weight: 800;
}

.bp-notes-body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
}

.bp-notes-body strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.bp-notes-body ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.bp-notes-body li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.bp-help-body {
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.bp-help-body dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.bp-help-body div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.bp-help-body dt {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.bp-help-body dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.bp-toc-list {
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}

.bp-toc-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 6px;
  padding: 10px;
  text-align: left;
}

.bp-toc-list button.active {
  border-color: var(--nc-teal-500);
  background: #eaf5f1;
}

.bp-toc-list span {
  color: var(--muted);
  font-family: Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
}

.bp-toc-list strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.bp-slide:not(.bp-cover):not(.bp-back-cover) {
  background-image:
    linear-gradient(to right, rgba(6, 41, 42, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 41, 42, 0.04) 1px, transparent 1px);
  background-size: calc(100% / 16) 100%, 100% calc(100% / 9);
}

.bp-grid section {
  align-content: start;
  min-height: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.bp-grid.four section {
  padding: 14px;
}

.bp-grid.four strong {
  font-size: 15px;
}

.bp-grid.four span,
.bp-grid.four small {
  font-size: 12px;
}

.bp-formula {
  width: 100%;
  max-width: none;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.35;
}

.bp-cover {
  --slide-pad-x: 6%;
  --slide-pad-y: 6%;
  background:
    linear-gradient(115deg, rgba(3, 25, 26, 0.98) 0%, rgba(3, 25, 26, 0.86) 58%, rgba(3, 25, 26, 0.45) 100%),
    url("assets/bp/dark-runtime-texture-v14.png") center / cover;
}

.bp-cover::before {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(85, 214, 194, 0.18);
  pointer-events: none;
}

.bp-cover h1 {
  margin-bottom: 0;
  font-size: clamp(74px, 9vw, 116px);
}

.bp-cover p {
  margin-bottom: 0;
  color: var(--nc-teal-400);
  font-size: 34px;
  font-weight: 800;
}

.bp-meta-line {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(184, 138, 58, 0.58);
  color: var(--nc-gold);
  font-family: Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bp-cover-card {
  align-self: end;
  min-height: 150px;
  border-color: rgba(85, 214, 194, 0.34);
  background: rgba(7, 24, 23, 0.78);
  backdrop-filter: blur(12px);
}

#slide-2 .bp-grid,
#slide-4 .bp-grid {
  margin-top: 12px;
  counter-reset: bpStep;
}

#slide-2 .bp-grid section,
#slide-4 .bp-grid section {
  position: relative;
  min-height: 130px;
  padding-top: 44px;
}

#slide-2 .bp-grid section::before,
#slide-4 .bp-grid section::before {
  counter-increment: bpStep;
  content: "0" counter(bpStep);
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--accent);
  font-family: Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
}

#slide-3 .bp-grid {
  margin-top: 10px;
}

#slide-3 .bp-grid section {
  min-height: 150px;
}

#slide-3 .bp-statement,
#slide-4 .bp-formula {
  margin-top: auto;
  padding: 12px 16px;
  border: 1px solid var(--nc-gold);
  background: #f4efe5;
}

#slide-4 {
  gap: 12px;
}

#slide-4 h2 {
  font-size: 32px;
}

#slide-4 .bp-lead {
  font-size: 13px;
}

#slide-4 .bp-grid section {
  min-height: 112px;
  padding: 44px 12px 12px;
}

#slide-4 .bp-formula {
  font-size: 15px;
}

#slide-5 .bp-system {
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 760px;
  margin-top: 2px;
}

#slide-5 .bp-system section {
  min-height: 0;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
}

#slide-5 .bp-system section strong {
  grid-column: 1;
  grid-row: 2;
}

#slide-5 .bp-system section small {
  grid-column: 2;
  grid-row: 1 / span 2;
}

#slide-5 {
  gap: 12px;
}

#slide-5 h2,
#slide-9 h2,
#slide-10 h2 {
  font-size: 34px;
}

#slide-9 {
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
}

#slide-9 h2 {
  font-size: 31px;
}

#slide-5 .bp-lead,
#slide-9 .bp-lead {
  font-size: 13px;
}

#slide-6 .bp-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

#slide-6 .bp-grid section {
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  padding: 14px 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

#slide-6 .bp-grid strong {
  font-size: 17px;
}

#slide-6 {
  align-items: start;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
}

#slide-6 .bp-lead {
  font-size: 13px;
}

#slide-6 .bp-grid {
  margin-top: 6px;
}

#slide-6 .bp-product-figure {
  align-self: end;
  justify-self: center;
  width: min(100%, 380px);
  max-height: 100%;
  overflow: hidden;
}

#slide-6 .bp-product-figure img {
  max-height: 330px;
  object-fit: contain;
  object-position: center bottom;
}

#slide-7 .bp-grid section {
  min-height: 190px;
}

#slide-7 .bp-grid section > span {
  color: var(--nc-teal-700);
}

#slide-8 .bp-timeline {
  position: relative;
  align-items: stretch;
  margin-top: 20px;
}

#slide-8 .bp-timeline::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 28px;
  height: 2px;
  background: var(--nc-teal-500);
}

#slide-8 .bp-timeline section {
  position: relative;
  min-height: 180px;
  padding-top: 56px;
}

#slide-8 .bp-timeline section::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 18px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--nc-teal-500);
  border-radius: 999px;
  background: var(--surface);
}

.bp-visual-slide {
  gap: 30px;
}

.bp-visual-slide > div {
  min-width: 0;
}

#slide-9 .bp-grid {
  margin-top: 14px;
}

#slide-9 .bp-grid section {
  padding: 12px;
}

#slide-10 .bp-stack {
  width: min(760px, 100%);
  margin-top: 4px;
  gap: 7px;
}

#slide-10 .bp-stack span {
  min-height: 34px;
  padding: 0 18px;
  border-left: 5px solid var(--nc-teal-500);
  font-size: 13px;
}

#slide-11 .bp-grid {
  margin-top: 12px;
}

#slide-11 .bp-grid section {
  min-height: 104px;
  padding: 12px;
}

#slide-11 {
  align-items: stretch;
  gap: 12px;
  grid-template-columns: 1fr;
}

#slide-11 h2 {
  max-width: 1120px;
  font-size: 34px;
}

#slide-11 .bp-timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

#slide-11 .bp-timeline section {
  min-height: 104px;
  padding: 14px;
}

#slide-11 .bp-timeline strong {
  font-size: 17px;
}

#slide-11 .bp-timeline small {
  font-size: 12px;
  line-height: 1.45;
}

#slide-11 .bp-formula {
  margin-top: 8px;
  padding-top: 10px;
  font-size: 16px;
}

/* Company profile deck layout refresh */
.bp-slide:not(.bp-cover):not(.bp-back-cover) {
  --slide-pad-x: 6.4%;
  --slide-pad-y: 6%;
  gap: 16px;
  padding: var(--slide-pad-y) var(--slide-pad-x);
}

.bp-slide:not(.bp-cover):not(.bp-back-cover)::before {
  width: 13px;
  box-shadow: 2px 0 0 var(--nc-teal-400);
}

.bp-slide .eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0;
}

.bp-slide h2 {
  max-width: 1060px;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.08;
}

.bp-lead {
  max-width: 940px;
  font-size: 14px;
  line-height: 1.55;
}

.bp-grid {
  gap: 14px;
}

.bp-grid.two,
.bp-grid.three,
.bp-grid.four {
  align-items: stretch;
}

.bp-grid section,
.bp-system section,
.bp-stack span,
.bp-timeline section {
  border-color: #d8e1d9;
  background: rgba(255, 255, 255, 0.82);
}

.bp-grid strong,
.bp-system strong,
.bp-timeline strong {
  font-size: 18px;
  line-height: 1.3;
}

.bp-grid span,
.bp-grid small,
.bp-system small,
.bp-timeline small,
.bp-roster span {
  font-size: 13px;
  line-height: 1.5;
}

.bp-formula,
.bp-statement {
  font-size: 16px;
  line-height: 1.42;
}

#slide-2 .bp-grid,
#slide-3 .bp-grid,
#slide-4 .bp-grid {
  margin-top: 8px;
}

#slide-2 .bp-grid section,
#slide-3 .bp-grid section,
#slide-4 .bp-grid section {
  min-height: 128px;
}

#slide-3 .bp-statement {
  margin-top: auto;
  padding: 16px 18px;
}

#slide-4 h2,
#slide-5 h2,
#slide-9 h2,
#slide-10 h2,
#slide-11 h2 {
  font-size: 34px;
}

#slide-5 .bp-system {
  width: min(840px, 100%);
  max-width: none;
  gap: 10px;
}

#slide-5 .bp-system section {
  grid-template-columns: 190px minmax(0, 1fr);
  padding: 14px 18px;
}

#slide-6 {
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
}

#slide-6 .bp-grid section {
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 12px 0;
}

#slide-6 .bp-product-figure {
  width: min(100%, 340px);
}

#slide-6 .bp-product-figure img {
  max-height: 300px;
}

#slide-7 .bp-stack {
  width: min(900px, 100%);
  margin-top: 6px;
  gap: 9px;
}

#slide-7 .bp-stack span {
  min-height: 44px;
  padding: 0 18px;
  border-left: 5px solid var(--nc-teal-500);
}

#slide-8 .bp-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#slide-8 .bp-grid.four section {
  min-height: 172px;
  padding: 16px;
}

#slide-9 {
  display: none;
}

#slide-9.active {
  display: flex;
}

#slide-9 .bp-roster {
  margin-top: 4px;
}

#slide-9 .bp-roster p {
  min-height: 60px;
  align-items: center;
  padding: 11px 0;
}

#slide-9 .bp-roster strong {
  font-size: 16px;
}

#slide-10 .bp-grid.two {
  width: min(920px, 100%);
}

#slide-10 .bp-grid section {
  min-height: 116px;
  padding: 16px;
}

#slide-11 .bp-timeline {
  margin-top: 10px;
}

#slide-11 .bp-timeline section {
  min-height: 124px;
  padding: 16px;
}

#slide-11 .bp-formula {
  margin-top: auto;
}

#slide-12 .bp-grid {
  margin-top: 24px;
}

#slide-12 .bp-grid section {
  min-height: 220px;
  align-content: space-between;
}

#slide-12 .bp-grid strong {
  color: var(--nc-teal-700);
  font-size: 22px;
}

@media (max-width: 1100px) {
  .bp-main {
    min-height: 100vh;
  }

  .bp-deck {
    width: min(100%, calc((100vh - 150px) * 16 / 9));
  }
}

@media (max-width: 820px) {
  .bp-main {
    min-height: 100svh;
    padding: 12px 14px calc(128px + env(safe-area-inset-bottom));
    display: block;
  }

  .bp-topbar {
    position: static;
    min-height: 44px;
    padding-bottom: 10px;
    background: transparent;
    backdrop-filter: none;
  }

  .bp-topbar-title {
    min-width: 0;
    gap: 8px;
  }

  .bp-topbar-title strong {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bp-deck {
    width: 100%;
    aspect-ratio: auto;
    min-height: calc(100svh - 260px);
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
    border-radius: 8px;
    overflow: visible;
    background: transparent;
  }

  .bp-deck::before {
    display: none;
  }

  .bp-deck::after {
    display: none;
  }

  .bp-toc,
  .bp-notes,
  .bp-help {
    top: 12px;
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }

  .bp-toc-list button {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .bp-slide {
    position: relative;
    inset: auto;
    height: auto;
    min-height: calc(100svh - 260px);
    margin-bottom: 0;
    padding: 24px 18px calc(116px + env(safe-area-inset-bottom));
    border: 1px solid var(--line);
    border-radius: 8px;
    background-color: var(--surface);
    overflow: visible;
  }

  .bp-slide:not(.bp-cover):not(.bp-back-cover)::before {
    width: 6px;
    box-shadow: 1px 0 0 var(--nc-teal-400);
  }

  .bp-slide::after {
    display: none;
  }

  .bp-slide h1 {
    font-size: 48px;
  }

  .bp-slide h2 {
    font-size: 28px;
    line-height: 1.12;
  }

  .bp-lead,
  #slide-4 .bp-lead,
  #slide-5 .bp-lead,
  #slide-9 .bp-lead {
    font-size: 15px;
  }

  .bp-stage-header {
    display: none;
  }

  .bp-investment-strip {
    display: none;
  }

  .bp-controls {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 90;
    display: grid;
    grid-template-columns: 0.9fr 0.9fr auto 0.9fr 0.9fr;
    gap: 6px;
    width: auto;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(11, 87, 85, 0.18);
    border-radius: 8px;
    background: rgba(246, 242, 234, 0.96);
    box-shadow: 0 14px 40px rgba(3, 25, 26, 0.16);
    backdrop-filter: blur(14px);
  }

  .bp-control-group {
    display: contents;
  }

  .bp-control-secondary,
  .bp-mobile-hidden,
  .bp-copy-status {
    display: none;
  }

  .bp-controls button {
    min-width: 0;
    min-height: 40px;
    flex: none;
    padding: 0 8px;
    font-size: 12px;
  }

  .bp-controls [data-slide-counter] {
    min-width: 54px;
    min-height: 40px;
    padding: 0 8px;
  }

  #slide-5 .bp-system section,
  #slide-6 .bp-grid section,
  .bp-roster p {
    grid-template-columns: 1fr;
  }

  #slide-8 .bp-timeline::before {
    display: none;
  }

  .bp-cover {
    min-height: calc(100svh - 260px);
    padding: 28px 20px calc(116px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    align-content: end;
  }

  .bp-cover::before {
    inset: 20px;
  }

  .bp-cover p {
    font-size: 32px;
  }

  .bp-gold-line {
    font-size: 28px;
    line-height: 1.25;
  }

  .bp-cover-card {
    display: none;
  }

  .bp-grid,
  .bp-system,
  .bp-stack,
  .bp-timeline {
    gap: 10px;
  }

  .bp-timeline {
    grid-template-columns: 1fr;
  }

  .bp-grid section,
  .bp-system section,
  .bp-stack span,
  .bp-timeline section {
    min-height: 0 !important;
    padding: 14px;
  }

  #slide-2 .bp-grid section,
  #slide-4 .bp-grid section {
    padding-top: 38px;
  }

  #slide-7 .bp-grid section,
  #slide-12 .bp-grid section {
    min-height: 0;
  }

  #slide-9 {
    grid-template-columns: 1fr;
  }

  .bp-back-cover > div {
    padding: 0 24px 34px;
  }
}

@media print {
  @page {
    size: 16in 9in;
    margin: 0;
  }

  body {
    background: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .sidebar,
  .topbar,
  .bp-toc,
  .bp-notes,
  .bp-help {
    display: none !important;
  }

  .app-shell,
  .bp-main,
  .bp-deck {
    display: block;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
  }

  .bp-slide,
  .bp-slide[hidden] {
    display: flex !important;
    position: relative;
    inset: auto;
    width: 16in;
    height: 9in;
    min-height: 0;
    page-break-after: always;
    break-after: page;
    border: 0;
  }

  .bp-cover,
  .bp-cover[hidden] {
    display: grid !important;
  }
}
