:root {
  /* Page shell — the site lives inside the Sidebridge Dark app theme
     (Sources/Sidebridge/Views/SidebarTheme.swift → sidebridgeDark).
     The desktop base sits one step deeper than the panel surface so the
     product chrome reads as floating above it. */
  /* Mirrors Sidebridge Light theme (Rosé Pine Dawn ground) — the pre-redesign
     page look. The dark product panels (--sb-*) float on the light page. */
  --bg: #faf4ed;                /* Rosé Pine Dawn background */
  --bg-2: #f2e9de;              /* Rosé Pine Dawn surface */
  --ink: #1c1e26;               /* theme.text1 */
  --paper: #1c1e26;             /* primary body text, mirrors text1 */
  --muted: #8f9196;             /* theme.text3 */
  --line: rgba(28, 30, 38, 0.13);
  --panel: rgba(255, 255, 255, 0.66);
  --panel-strong: rgba(255, 255, 255, 0.84);
  /* Accent palette — matches Sidebridge Light theme exactly */
  --green: #629933;             /* theme.green (accent) */
  --green-forest: #527544;      /* theme.text2 — secondary accent / forest green */
  --amber: #bf6e2e;             /* theme.orange */
  --blue: #2680d1;              /* theme.blue */
  --red: #bf474f;               /* theme.red */
  --yellow: #bf9d26;            /* theme.yellow */
  --mint: #339491;              /* theme.mint */
  --purple: #856199;            /* theme.purple */
  /* Sidebridge panel surfaces — mirrors the Sidebridge Dark app theme exactly.
     (Sources/Sidebridge/Views/SidebarTheme.swift → sidebridgeDark) */
  --sb-bg: #1c1e26;             /* theme.background / surface */
  --sb-surface: #292b36;        /* theme.surfaceHover */
  --sb-hover: #383d47;          /* theme.borderStrong */
  --sb-border: #383d47;         /* visible border = theme.borderStrong */
  --sb-input: #242630;          /* theme.inputBg */
  --sb-text: #f2f2f2;           /* theme.text1 */
  --sb-text-2: #afc8a1;         /* theme.text2 — sage */
  --sb-text-3: #87898d;         /* theme.text3 */
  --sb-accent: #a3bf8c;         /* theme.green — Sidebridge Dark sage accent */
  --sb-amber: #d18770;          /* theme.orange — Sidebridge Dark warm */
  --sb-blue: #82bfd1;           /* theme.blue */
  --sb-red: #bf6175;            /* theme.red */
  --shadow: 0 28px 90px rgba(28, 30, 38, 0.18);
  --radius: 28px;
  /* Page typography — serif headlines, system everything else */
  --display: "New York", "New York Large", Georgia, serif;
  --system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --sans: var(--system);
  /* Utility mono — eyebrows, tags, buttons, small data at page level */
  --label: "SF Mono", ui-monospace, Menlo, monospace;
  /* Sidebridge representations — SF Pro for ALL the UI inside mini panels */
  --app-display: var(--system);
  --app-mono: var(--system);
  --mono: var(--system);
  /* Code / diff / terminal content only — MesloLGM Nerd Font Mono */
  --code: "MesloLGM Nerd Font Mono", "MesloLGM Nerd Font", "MesloLGS Nerd Font Mono", "MesloLGS NF", "SF Mono", "Menlo", ui-monospace, monospace;
  /* Display width axis stops (Archivo variable wdth 62–125) */
  --wdth-display: 108;
  --wdth-em: 125;
}

/* Mono is reserved for code/diff/terminal content — overrides --app-mono for these specific surfaces */
.diff-line,
.diff-viewer-lines,
.diff-viewer-lines .diff-line,
.inspect-card-lines,
.inspect-card-lines .diff-line,
.inspect-card-lines .diff-line > span,
.inspect-hash,
.vc-line,
.vc-meta,
.terminal-output,
.terminal-output .terminal-line,
.terminal-line,
.terminal-worked,
.terminal-bg,
.terminal-compose,
.codex-footer,
.codex-scroll,
.codex-copy,
.codex-diff-row,
.codex-diff-summary,
.codex-composer span,
.claude-prompt,
.claude-tool-row,
.claude-tool-row strong,
.claude-tool-row span,
.claude-tool-row small,
.claude-diff,
.claude-diff span,
.claude-search,
.claude-auto,
.claude-footer,
.pane-titlebar,
.pane-titlebar strong,
.scope-pane-titlebar,
.scope-pane-titlebar strong,
.scope-terminal-output,
.scope-terminal-output .terminal-line,
.scope-terminal-compose,
.scope-chrome-address,
.scope-chrome-address em {
  font-family: var(--code);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  background: #faf4ed;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(82, 117, 68, 0.16), transparent 28rem),
    radial-gradient(circle at 72% 0%, rgba(191, 109, 46, 0.12), transparent 28rem),
    linear-gradient(180deg, #faf4ed 0%, #f7eee2 44%, #f2e9de 100%);
  font-family: var(--sans);
  min-width: 320px;
  max-width: 100%;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(28, 30, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 30, 38, 0.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Header reads as the machine's menu bar: slim, translucent, mono. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 11px clamp(16px, 3vw, 32px);
  background: rgba(250, 244, 237, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--label);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #16181f;
  background: var(--green);
  border-radius: 8px 3px 8px 3px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-family: var(--label);
  font-size: 12px;
  font-weight: 500;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--green-forest);
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero.section-shell {
  width: min(1200px, calc(100% - 96px));
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 4vw, 56px);
  align-items: start;
  padding: clamp(36px, 5vw, 60px) 0 84px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  max-width: 900px;
  margin: 0;
  padding: 0;
  text-align: left;
}

/* Eyebrows speak tmux: each section is a numbered window tag, e.g. "2:fracture*".
   The dash stub on the left reads as the pane border the tag sits in. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--green);
  font-family: var(--label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

/* Section-level tags get the pane-border stub; card-level eyebrows stay bare. */
.eyebrow.win::before {
  content: "";
  flex: 0 0 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(163, 191, 140, 0.65));
}

.eyebrow.win .win-ix {
  font-weight: 600;
}

.eyebrow.win .win-note {
  color: var(--muted);
  font-weight: 400;
}

.eyebrow.win .win-note::before {
  content: "· ";
  color: rgba(135, 137, 141, 0.6);
}

.eyebrow.win.center {
  justify-content: center;
}

.eyebrow.win.center::before {
  display: none;
}

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

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.4vw, 4.35rem);
  font-weight: 620;
  font-stretch: 104%;
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

h1 em,
h2 em {
  color: var(--green);
  font-stretch: 118%;
  font-style: normal;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.hero-marker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.hero-marker-line {
  display: none;
}

.hero-marker-text {
  color: var(--muted);
  font-family: var(--label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero-marker-text b {
  padding: 2px 7px;
  margin-right: 4px;
  color: #16181f;
  background: var(--green);
  border-radius: 3px;
  font-weight: 700;
}

h2 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.9vw, 3.1rem);
  font-weight: 620;
  font-stretch: 104%;
  line-height: 1.02;
  letter-spacing: -0.032em;
}

h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 600;
  font-stretch: 104%;
  line-height: 1.06;
  letter-spacing: -0.022em;
}

.hero-lede {
  max-width: 620px;
  margin: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1.04rem, 1.35vw, 1.22rem);
  line-height: 1.52;
  letter-spacing: 0;
}

.surface-intro p,
.history-copy p,
.problem-copy p,
.pricing-copy p,
.final-cta p {
  color: var(--paper);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
  justify-content: flex-start;
}

.hero-actions.center {
  justify-content: center;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--label);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-link {
  color: #16181f;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 46%), var(--green);
  border-color: rgba(163, 191, 140, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 12px 28px rgba(163, 191, 140, 0.16);
}

.primary-link span {
  font-size: 12.5px;
}

.primary-link small {
  padding-left: 12px;
  border-left: 1px solid rgba(22, 24, 31, 0.28);
  color: rgba(22, 24, 31, 0.72);
  font-family: var(--label);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.secondary-link {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(242, 242, 242, 0.14);
}

.primary-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 46%), var(--green-forest);
  border-color: rgba(175, 200, 161, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.26) inset,
    0 16px 34px rgba(163, 191, 140, 0.22);
}

.secondary-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(242, 242, 242, 0.26);
}

.hero .hero-actions {
  gap: 12px;
}

.hero .primary-link,
.hero .secondary-link {
  position: relative;
  isolation: isolate;
  min-height: 52px;
  border-radius: 11px;
}

.hero .primary-link {
  gap: 14px;
  padding: 0 18px 0 16px;
  overflow: hidden;
}

.hero .primary-link::before,
.hero .secondary-link::after {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
}

.hero .primary-link::before {
  content: "\2193";
  color: #16181f;
  background: rgba(22, 24, 31, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.hero .secondary-link {
  gap: 12px;
  padding: 0 14px 0 18px;
}

.hero .secondary-link::after {
  content: "\2193";
  color: var(--green);
  background: rgba(163, 191, 140, 0.1);
  border: 1px solid rgba(163, 191, 140, 0.22);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  justify-content: flex-start;
}

.hero-proof-key {
  color: var(--muted);
  font-family: var(--label);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.hero-proof span {
  padding: 0;
  color: var(--sb-text-2);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.hero-proof span:not(.hero-proof-key) + span::before {
  content: "·";
  margin-right: 16px;
  color: rgba(242, 242, 242, 0.24);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  margin-top: -18px;
  margin-bottom: 58px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 0;
  background: transparent;
}

.trust-strip strong {
  color: var(--green-forest);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.trust-strip strong::before {
  content: "\2713 ";
  color: var(--green);
}

.trust-strip span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
}

.workbench {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 840px) 325px;
  gap: clamp(22px, 2vw, 28px);
  align-items: stretch;
  justify-content: start;
  margin-top: 0;
  padding: 0;
}

.workbench::after {
  content: none;
}

.focus-demo-cursor {
  position: absolute;
  z-index: 18;
  top: 0;
  left: 0;
  width: 24px;
  height: 32px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(18px, 18px, 0);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.48));
}

.focus-demo-cursor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 27px;
  background:
    linear-gradient(135deg, #ffffff 0%, #efe9d8 100%);
  clip-path: polygon(7% 0, 7% 82%, 32% 62%, 50% 100%, 68% 92%, 51% 56%, 94% 56%);
}

.focus-demo-cursor::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 13px;
  width: 10px;
  height: 10px;
  background: rgba(168, 240, 131, 0.18);
  border: 1px solid rgba(168, 240, 131, 0.95);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}

.focus-demo-cursor.is-visible {
  opacity: 1;
}

.focus-demo-cursor.is-clicking::after {
  animation: cursor-click 320ms ease-out both;
}

@keyframes cursor-click {
  from {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.4);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.6);
  }
}

.terminal-stack,
.sidebridge-panel {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.terminal-stack {
  position: relative;
  align-self: start;
  justify-self: start;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.terminal-stack::after {
  content: none;
}

.terminal-header {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 13px 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: var(--app-display);
  font-size: 11px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.dot.red { background: #ff6961; }
.dot.yellow { background: #ffbd45; }
.dot.green { background: #63d471; }

.terminal-title {
  margin-left: 6px;
}

.terminal-grid {
  display: grid;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  height: 590px;
  background: transparent;
}

.pane {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  background:
    radial-gradient(circle at 24% 0%, rgba(82, 117, 68, 0.10), transparent 14rem),
    #0a0c0a;
  border: 1px solid rgba(242, 242, 242, 0.1);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  opacity: 0.62;
  filter: saturate(0.78);
  transition:
    opacity 200ms ease,
    filter 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.pane::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 200ms ease, transform 200ms ease;
  box-shadow: 0 0 0 2px rgba(82, 117, 68, 0.22);
}

.pane:hover {
  opacity: 0.85;
  filter: saturate(0.95);
}

/* Active pane wears the tmux pane-active-border treatment. */
.pane.active {
  color: #f4f3f1;
  opacity: 1;
  filter: saturate(1);
  transform: translateY(-1px);
  border-color: rgba(163, 191, 140, 0.6);
  box-shadow:
    0 0 0 1px rgba(163, 191, 140, 0.25),
    0 22px 50px rgba(0, 0, 0, 0.48);
}

.pane.active::after {
  opacity: 1;
  transform: scale(1);
}

.pane-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  padding: 0 10px;
  color: rgba(246, 240, 223, 0.54);
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(246, 240, 223, 0.10);
  font-family: var(--mono);
  font-size: 9px;
}

.pane-titlebar strong {
  overflow: hidden;
  color: rgba(246, 240, 223, 0.86);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-output {
  display: flex;
  overflow: hidden;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  padding: 9px 12px 3px;
}

.pane-title,
.terminal-line,
.terminal-cursor,
.terminal-worked,
.terminal-bg,
.terminal-compose,
.codex-footer,
.claude-prompt,
.claude-footer {
  font-family: var(--mono);
  font-size: 9px;
}

.pane-title,
.terminal-line,
.terminal-worked,
.terminal-bg,
.terminal-compose,
.codex-footer,
.claude-footer {
  overflow: hidden;
  text-overflow: ellipsis;
}

.claude-tool-row {
  display: grid;
  grid-template-columns: 10px auto minmax(0, auto) minmax(0, 1fr);
  gap: 3px;
  align-items: baseline;
  color: #cfcfcf;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.18;
}

.claude-tool-row em {
  width: 6px;
  height: 6px;
  background: #50c878;
  border-radius: 999px;
}

.claude-tool-row strong {
  color: #f4f4f4;
  font-weight: 900;
}

.claude-tool-row span,
.claude-tool-row small {
  overflow: hidden;
  color: #aaa;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claude-diff {
  display: grid;
  overflow: hidden;
  max-width: 100%;
  margin-left: 14px;
  color: #e5e5e5;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.22;
}

.claude-diff span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claude-diff i {
  display: inline-block;
  width: 15px;
  color: #8c8c8c;
  font-style: normal;
  text-align: right;
}

.claude-diff .minus {
  background: rgba(171, 48, 80, 0.78);
}

.claude-diff .plus {
  background: rgba(0, 144, 71, 0.82);
}

.claude-search {
  margin-top: auto;
  color: #fb835f;
  font-family: var(--mono);
  font-size: 9px;
}

.claude-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 27px;
  margin: 0 8px;
  padding: 0 8px;
  color: #f2f2f2;
  border: 1px solid rgba(246, 240, 223, 0.38);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
}

.claude-input i {
  display: block;
  width: 10px;
  height: 14px;
  background: #d8d8d8;
}

.claude-auto {
  display: block;
  padding: 1px 12px 3px;
  color: #b78cff;
  font-family: var(--mono);
  font-size: 9px;
}

.claude-auto em {
  color: rgba(246, 240, 223, 0.34);
  font-style: normal;
}

.pane-title {
  display: block;
  margin-bottom: 2px;
  color: rgba(246, 240, 223, 0.48);
}

.terminal-line {
  display: block;
  color: rgba(246, 240, 223, 0.78);
  line-height: 1.25;
}

.terminal-line.strong {
  color: #f6f0df;
  font-weight: 800;
}

.terminal-line.muted {
  color: rgba(246, 240, 223, 0.70);
}

.terminal-line b {
  color: #f6f0df;
  font-weight: 800;
}

.terminal-line em {
  color: var(--amber);
  font-style: normal;
}

.terminal-line.dim {
  color: rgba(246, 240, 223, 0.50);
}

.terminal-line.ok {
  color: var(--green);
}

.terminal-line.warn {
  color: var(--amber);
}

.terminal-cursor {
  margin-top: auto;
  color: var(--green);
  opacity: 0.75;
}

.terminal-rule {
  display: block;
  height: 1px;
  margin: 2px 0;
  background: rgba(246, 240, 223, 0.45);
}

.terminal-worked,
.terminal-bg,
.terminal-recap {
  display: block;
  color: rgba(246, 240, 223, 0.46);
}

.terminal-recap {
  padding-left: 2px;
  font-style: italic;
  line-height: 1.45;
}

.terminal-bg {
  margin-top: auto;
  padding-top: 4px;
}

.terminal-compose {
  display: block;
  margin: 0 8px 0;
  padding: 7px 9px;
  color: rgba(246, 240, 223, 0.50);
  background: rgba(246, 240, 223, 0.13);
}

.codex-footer,
.claude-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 18px;
  padding: 2px 8px;
  white-space: nowrap;
}

.codex-footer > *,
.claude-footer > * {
  min-width: 0;
}

.codex-footer {
  color: #cbbcf7;
  background: #171a25;
}

.codex-footer b {
  color: #f2d28a;
}

.codex-footer span {
  color: #cbbcf7;
}

.claude-prompt {
  display: block;
  padding: 5px 14px 2px;
  color: #f6f0df;
  font-size: 17px;
}

.claude-footer {
  color: #111;
  background: #20c100;
}

.claude-footer b,
.claude-footer strong,
.claude-footer em,
.claude-footer span {
  display: inline-block;
  overflow: hidden;
  padding: 2px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claude-footer b {
  background: #f0a0a0;
}

.claude-footer strong {
  background: #fff078;
}

.claude-footer em {
  background: #7fa7ff;
  font-style: normal;
}

.claude-footer span {
  min-width: 0;
  background: #ffb34d;
}

.codex-window {
  display: flex;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  align-self: stretch;
  margin: 0;
  padding: 0;
  color: #111;
  background: #faf9f7;
  border: 1px solid rgba(28, 30, 38, 0.18);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.44);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  text-align: left;
  cursor: pointer;
}

.codex-window.active {
  border-color: rgba(82, 117, 68, 0.60);
  box-shadow: 0 24px 58px rgba(28, 30, 38, 0.34), 0 0 0 1px rgba(82, 117, 68, 0.78);
}

.codex-chrome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 0 10px;
  color: #8c8c86;
  background: #f3f1ec;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 10px;
}

.codex-chrome-left,
.codex-chrome-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.codex-chrome .dot {
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}

.codex-sidebar-icon,
.codex-more {
  color: #a3a39d;
  font-size: 11px;
  line-height: 1;
}

.codex-sidebar-icon {
  margin-left: 2px;
}

.codex-title {
  overflow: hidden;
  min-width: 0;
  color: #1c1e26;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codex-tool {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #5a5a57;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}

.codex-scroll {
  display: flex;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  flex-direction: column;
  gap: 4px;
  padding: 8px 13px 4px;
  font-size: 10px;
  line-height: 1.34;
}

.codex-scroll > * {
  flex: 0 0 auto;
}

.codex-copy {
  display: -webkit-box;
  overflow: hidden;
  color: #171717;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.codex-testing-title {
  margin-top: 1px;
  color: #171717;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
}

.codex-rule {
  display: block;
  height: 6px;
  margin: 0 0 3px;
  background:
    linear-gradient(#111, #111) center / calc(100% - 10px) 1px no-repeat,
    #f0efed;
  border-radius: 999px;
}

.codex-diff-card {
  display: grid;
  overflow: hidden;
  margin-top: 2px;
  color: #151515;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 9px;
}

.codex-diff-card .codex-diff-row:nth-child(3) {
  display: none;
}

.codex-diff-summary,
.codex-diff-row {
  display: block;
  overflow: hidden;
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codex-diff-summary {
  padding: 3px 8px;
  color: #777;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 8px;
}

.codex-diff-row + .codex-diff-row {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.codex-diff-card em {
  color: #06a84f;
  font-style: normal;
}

.codex-diff-card strong {
  color: #e52d34;
  font-weight: 500;
}

.codex-apply-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  color: #1e1e1c;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 13px;
  font-family: var(--sans);
  font-size: 9px;
}

.codex-apply-card span {
  flex: 1;
}

.codex-apply-card strong {
  padding: 3px 7px;
  background: #f4f4f2;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  font-size: 8px;
}

.codex-hook-card {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  color: #1f1f1d;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1.12;
}

.codex-hook-card span {
  flex: 1;
}

.codex-hook-card strong {
  color: #868682;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.codex-window-pane .codex-hook-card {
  display: none;
}

.codex-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin: 0 10px 7px;
  padding: 6px;
  color: #8f949a;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 13px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 5px 14px rgba(20, 24, 30, 0.08);
  font-family: var(--sans);
  font-size: 10px;
}

.codex-composer-input {
  display: block;
  overflow: hidden;
  min-width: 0;
  padding: 0 3px;
  font-family: var(--sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Claude Code desktop window — dark charcoal variant of the app window */
.claude-window,
.codex-window.claude-window {
  background: #262624;
  border-color: rgba(255, 255, 255, 0.12);
}

.codex-window.claude-window .codex-chrome {
  background: #201f1d;
  border-color: rgba(255, 255, 255, 0.08);
}

.codex-window.claude-window .codex-title {
  color: #e8e6e3;
}

.claude-window .codex-sidebar-icon,
.claude-window .codex-more,
.claude-window .codex-tool {
  color: #9a948d;
}

.claude-window .codex-tool {
  color: #d97757;
}

.claude-window .codex-copy {
  color: #d6d3cd;
}

.claude-window .codex-diff-card {
  background: #1d1c1a;
  border-color: rgba(255, 255, 255, 0.08);
}

.claude-window .codex-diff-row {
  color: #cfccc5;
}

.claude-window .codex-diff-summary {
  color: #9a948d;
}

.claude-window .codex-apply-card {
  color: #e8e6e3;
  background: rgba(217, 119, 87, 0.12);
  border-color: rgba(217, 119, 87, 0.3);
}

.claude-window .codex-apply-card strong {
  color: #fff;
  background: #c2703f;
}

.claude-window .codex-composer {
  background: #1d1c1a;
  border-color: rgba(255, 255, 255, 0.1);
}

.claude-window .codex-composer-input {
  color: #8f8a83;
}

.claude-window .codex-composer-model {
  color: #e5a081;
  background: rgba(217, 119, 87, 0.14);
  border-color: rgba(217, 119, 87, 0.25);
}

.claude-window .codex-composer-send {
  color: #fff;
  background: #c2703f;
}

.claude-window .claude-search {
  padding: 2px 0 0;
}

.codex-composer-model {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  color: #4f5b67;
  background: #f1f3f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.codex-composer-send {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
  background: #8a98a8;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 800;
}

.codex-bottom-bar {
  display: flex;
  gap: 22px;
  flex: 0 0 auto;
  padding: 0 18px 8px;
  color: #9d9d98;
  font-size: 10px;
}

.terminal-status {
  display: none;
  gap: 10px;
  min-width: 0;
  padding: 9px 12px;
  color: rgba(246, 240, 223, 0.58);
  background: rgba(168, 240, 131, 0.10);
  border-top: 1px solid rgba(246, 240, 223, 0.10);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.terminal-status span:first-child {
  color: var(--green);
}

/* Every sidebridge mini representation matches the hero exactly —
   Sidebridge Dark theme palette throughout: same bg/border/text/radius/font,
   accents locally scoped to sage green + warm orange so any var(--green)
   or var(--amber) inside a mini panel picks up the in-theme color instead
   of the page's Sidebridge Light forest green / amber. */
.sidebridge-panel,
.scope-sb-panel,
.vf-sidebar,
.visual-flow .visual-panel,
.visual-return .visual-focus,
.visual-agent .multi-mod,
.visual-arrange .visual-arrange-card,
.visual-search .visual-search-card,
.inspect-sb {
  color: var(--sb-text);
  background: var(--sb-bg);
  border: 1px solid var(--sb-border);
  border-radius: 8px;
  font-family: var(--app-display);
  --green: var(--sb-accent);
  --amber: var(--sb-amber);
  --blue: var(--sb-blue);
  --red: var(--sb-red);
}

.sidebridge-panel {
  position: relative;
  display: block;
  width: 325px;
  height: 1050px;
  min-height: 1050px;
  margin-top: -326px;
  margin-left: 40px;
  padding: 8px 14px 14px;
  border-color: rgba(242, 242, 242, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 34px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.diff-viewer,
.markdown-viewer {
  position: absolute;
  z-index: 12;
  top: 92px;
  right: 336px;
  width: min(500px, calc(100% - 390px));
  max-height: 430px;
  color: #eceee7;
  background:
    linear-gradient(180deg, rgba(43, 47, 57, 0.98), rgba(28, 31, 39, 0.98)),
    #20232b;
  border: 1px solid rgba(142, 151, 166, 0.52);
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
  font-family: var(--app-display);
  overflow: hidden;
}

.diff-viewer[hidden],
.markdown-viewer[hidden] {
  display: none;
}

.diff-viewer-chrome,
.markdown-viewer-chrome {
  display: grid;
  grid-template-columns: 9px 9px 9px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.diff-viewer-chrome strong,
.markdown-viewer-chrome strong {
  overflow: hidden;
  color: #f3f3eb;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diff-viewer-chrome button,
.markdown-viewer-chrome button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #b7bdc7;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.diff-viewer-chrome button:hover,
.markdown-viewer-chrome button:hover {
  color: #f3f3eb;
  background: rgba(255, 255, 255, 0.08);
}

.diff-viewer-meta,
.markdown-viewer-meta {
  overflow: hidden;
  padding: 8px 12px 6px;
  color: #a6abb6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--app-mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diff-viewer-lines {
  display: grid;
  max-height: 340px;
  padding: 8px 0 12px;
  overflow: hidden;
  font-family: var(--app-mono);
  font-size: 10px;
  line-height: 1.45;
}

.diff-line {
  display: block;
  overflow: hidden;
  padding: 1px 12px;
  text-overflow: ellipsis;
  white-space: pre;
}

.diff-line.meta {
  color: #9ea5b0;
}

.diff-line.chunk {
  color: #9fb9ff;
  background: rgba(103, 132, 214, 0.12);
}

.diff-line.context {
  color: #d8d9d3;
}

.diff-line.add {
  color: #c8efba;
  background: rgba(71, 161, 90, 0.16);
}

.diff-line.remove {
  color: #ffb2b2;
  background: rgba(186, 73, 73, 0.16);
}

.markdown-viewer {
  top: 126px;
  width: min(430px, calc(100% - 390px));
}

.markdown-viewer-body {
  display: grid;
  gap: 6px;
  max-height: 340px;
  padding: 12px;
  overflow: hidden;
  font-family: var(--app-display);
  font-size: 11px;
  line-height: 1.4;
}

.markdown-viewer-body p {
  margin: 0;
  color: #d8dad4;
}

.markdown-viewer-body .md-heading {
  color: #f2f4ec;
  font-size: 15px;
  font-weight: 900;
}

.markdown-viewer-body .md-subheading {
  margin-top: 4px;
  color: #c6e0b6;
  font-weight: 800;
}

.markdown-viewer-body .md-list-item {
  color: #a9c8b4;
  font-family: var(--app-mono);
  font-size: 10px;
}

.markdown-viewer-body .md-spacer {
  min-height: 4px;
}

.panel-grip {
  width: 30px;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(177, 186, 160, 0.18);
}

.panel-grip-top {
  margin-bottom: 16px;
}

.panel-grip-mid {
  margin-top: 18px;
  margin-bottom: 24px;
}

.panel-grip-bottom {
  position: absolute;
  right: 172px;
  bottom: 8px;
}

.panel-toolbar {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 22px;
  color: #bcc3b0;
  font-size: 14px;
  line-height: 1;
}

.leaf-mark {
  padding: 0;
  color: #bad2a7;
  background: transparent;
  border: 0;
  font-size: 17px;
  font-weight: 900;
  transform: rotate(180deg);
  cursor: pointer;
}

.tool-spacer {
  flex: 1;
}

.toolbar-icon,
.toolbar-edit,
.toolbar-shelf-button {
  padding: 0;
  color: #b7c0ad;
  background: transparent;
  border: 0;
  font-size: 14px;
  cursor: pointer;
}

.toolbar-shelf-button {
  min-width: 28px;
  height: 22px;
  padding: 0 7px;
  color: #c6e0b6;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(196, 223, 179, 0.12);
  border-radius: 999px;
  font-family: var(--app-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.toolbar-edit {
  color: #c8e3b0;
  font-family: var(--app-display);
  font-size: 13px;
  font-weight: 800;
}

.toolbar-icon.muted {
  color: #777f7f;
}

.panel-top {
  position: relative;
  padding: 10px 0 10px;
  border-bottom: 1px solid rgba(175, 183, 173, 0.16);
}

.title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.source-square {
  display: grid;
  width: 17px;
  height: 15px;
  place-items: center;
  color: #10130f;
  background: #16c987;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 900;
}

.sidebridge-panel.claude-context .source-square {
  color: #1b120c;
  background: #df8f52;
}

.sidebridge-panel.claude-context .meta-line {
  color: #df8f52;
}

.panel-top h2 {
  min-width: 0;
  margin: 0;
  color: #f1f1e9;
  font-family: var(--app-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}

.meta-line {
  margin-top: 7px;
  color: #18d69a;
  font-family: var(--app-mono);
  font-size: 13px;
  line-height: 1.2;
}

.branch-line {
  margin-top: 5px;
  color: #d07d4f;
  font-family: var(--app-mono);
  font-size: 12px;
  line-height: 1.2;
}

.path-line {
  margin-top: 4px;
  color: #7c8085;
  font-family: var(--app-mono);
  font-size: 12px;
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 13px;
  align-items: center;
  padding: 10px 0 16px;
}

.panel-live-detail {
  display: grid;
  gap: 2px;
  margin: 0 0 10px;
  padding: 7px 8px;
  color: #d2d7ce;
  background: rgba(126, 168, 248, 0.10);
  border: 1px solid rgba(126, 168, 248, 0.24);
  border-radius: 8px;
}

.panel-live-detail[hidden] {
  display: none;
}

.panel-live-detail strong {
  color: #c6e0b6;
  font-family: var(--app-mono);
  font-size: 9px;
}

.panel-live-detail span {
  color: #aeb6b0;
  font-size: 10px;
  line-height: 1.25;
}

.panel-tabs button {
  display: grid;
  height: 29px;
  place-items: center;
  color: #bfd9aa;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 7px;
}

.panel-tabs .active {
  color: #e7f2e1;
  background: #3d4b5d;
}

.tab-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.native-module {
  position: relative;
  padding: 0 2px 0;
  margin-top: 18px;
}

.panel-view[hidden] {
  display: none;
}

.panel-view {
  animation: panel-view-in 160ms ease both;
}

@keyframes panel-view-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.module-header {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  color: #c4dfb3;
}

.module-header strong {
  color: #c6e0b6;
  font-family: var(--app-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.module-header small {
  margin-left: auto;
  max-width: 220px;
  overflow: hidden;
  color: #9c9fa7;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  color: #9ea89d;
  font-size: 12px;
}

.status-pill {
  position: absolute;
  top: 31px;
  right: 0;
  padding: 4px 8px;
  color: #b9d6c8;
  background: rgba(91, 127, 119, 0.34);
  border-radius: 999px;
  font-family: var(--app-display);
  font-size: 11px;
  font-weight: 800;
}

.module-subhead {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 9px;
  color: #c9cdd4;
  font-family: var(--app-display);
  font-size: 11px;
  font-weight: 800;
}

.module-subhead em {
  color: #8f949d;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.git-module p {
  margin: 8px 0 0;
  color: #a7adb5;
  font-family: var(--app-mono);
  font-size: 12.5px;
  font-weight: 700;
}

.git-files {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.git-files li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  row-gap: 3px;
  align-items: center;
  min-height: 22px;
  padding: 4px 4px 5px;
  color: var(--sb-text);
  border-radius: 4px;
  font-size: 10px;
}

.git-files .git-bar {
  display: flex;
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
}

.git-files .git-bar b {
  height: 100%;
  background: var(--sb-accent);
}

.git-files .git-bar u {
  height: 100%;
  background: var(--sb-red);
  opacity: 0.85;
  text-decoration: none;
}

.git-files li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.025);
}

.git-path {
  display: flex;
  min-width: 0;
}

.git-path small {
  overflow: hidden;
  color: rgba(156, 159, 167, 0.66);
  font-family: var(--app-mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.git-path strong {
  overflow: hidden;
  color: #f0f0e8;
  font-family: var(--app-mono);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.git-files-detail {
  max-height: 230px;
  overflow: hidden;
}

.git-tab-history {
  margin-top: 26px;
}

.git-stat {
  display: inline-flex;
  gap: 4px;
  justify-content: flex-end;
  color: #9fb1a3;
  font-family: var(--app-mono);
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.git-stat .add {
  color: #b7e0a7;
}

.git-stat .del {
  color: #f08c8c;
}

/* Right-edge status square — green = added, amber = modified, red = deleted */
.git-files .git-indicator {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--amber);
  border-radius: 2px;
}

.git-files .git-indicator.status-a { background: var(--green); }
.git-files .git-indicator.status-m { background: var(--amber); }
.git-files .git-indicator.status-d { background: var(--red); }
.git-files .git-indicator.status-r { background: var(--blue); }

.worktree-block {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding-bottom: 4px;
}

.subheading-row {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #aeb2ad;
  font-family: var(--app-mono);
  font-size: 9px;
  font-weight: 800;
}

.subheading-row span {
  width: 8px;
  color: #8d9492;
  font-size: 8px;
}

.worktree-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 5px;
  align-items: baseline;
  min-height: 18px;
  color: #a9adb4;
  font-family: var(--app-mono);
  font-size: 9px;
}

.worktree-row span {
  width: 5px;
  height: 5px;
  background: transparent;
  border-radius: 999px;
}

.worktree-row.current span {
  background: #7fd3b2;
}

.worktree-row strong {
  overflow: hidden;
  color: #e9ebe4;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worktree-row em {
  color: #d89452;
  font-style: normal;
}

.worktree-path {
  overflow: hidden;
  margin-left: 14px;
  color: #8d9492;
  font-family: var(--app-display);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-module {
  margin-top: 24px;
}

.focus-header {
  align-items: flex-start;
}

.focus-header small {
  max-width: 178px;
  white-space: normal;
}

.focus-hero {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
}

.focus-hero-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.focus-hero-row + .focus-hero-row {
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.focus-hero button {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 44px;
  padding: 9px 4px 8px;
  color: inherit;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  cursor: pointer;
}

.focus-hero button:first-child {
  border-left: 0;
}

.focus-hero b {
  color: var(--sb-accent);
  font-family: var(--app-mono);
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
}

.focus-hero b.zero {
  color: #8f949d;
}

.focus-hero b.lines {
  font-size: 12px;
}

.focus-hero b i {
  color: var(--sb-accent);
  font-style: normal;
}

.focus-hero b u {
  color: var(--sb-red);
  text-decoration: none;
}

.focus-hero span {
  color: #8f949d;
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-day {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  padding: 2px 4px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #c9cdd4;
  font-family: var(--app-display);
  font-size: 10.5px;
  font-weight: 800;
}

.history-day em {
  color: #8f949d;
  font-family: var(--app-mono);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 600;
}

.goal-module {
  margin-top: 14px;
}

.goal-module p {
  margin: 8px 0 0;
  color: #f0f0e8;
  font-family: var(--app-display);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.28;
}

.goal-meta {
  margin-top: 7px;
  color: #8f949d;
  font-family: var(--app-mono);
  font-size: 9px;
  letter-spacing: -0.02em;
}

.recent-list {
  display: grid;
  gap: 6px;
  max-height: 184px;
  margin-top: 8px;
  overflow: hidden;
}

.recent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.recent-row strong {
  display: block;
  overflow: hidden;
  color: #f0f0e9;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-row em {
  display: block;
  overflow: hidden;
  color: #c1dfad;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-row time {
  color: #9da0a7;
  font-size: 10px;
  white-space: nowrap;
}

.recent-expanded {
  display: none;
  grid-column: 1 / -1;
  gap: 7px;
  margin-top: -1px;
  padding: 2px 0 0 10px;
}

.recent-row.expanded .recent-expanded {
  display: grid;
}

.recent-activity-group {
  display: grid;
  gap: 1px;
}

.recent-activity-group strong {
  color: #89c6df;
  font-size: 9px;
  line-height: 1;
}

.recent-activity-group.files strong {
  color: #b7e0a7;
}

.recent-activity-group.process strong {
  color: #ef9a82;
}

.recent-activity-group span,
.recent-activity-group code {
  overflow: hidden;
  color: #b9d9ac;
  font-family: var(--app-mono);
  font-size: 8.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-activity-group code {
  display: block;
  color: #9ebf91;
  padding-left: 8px;
}

.recent-activity-group b {
  color: #eef0e8;
  font-weight: 800;
}

.recent-activity-group em {
  color: #8f959d;
  font-style: normal;
}

.recent-activity-group.tools span::before,
.recent-activity-group.files span::before,
.recent-activity-group.process span::before {
  content: "•";
  margin-right: 4px;
  color: #8fc2d8;
}

.recent-activity-group.files span::before {
  color: #9ccd86;
}

.recent-activity-group.process span::before {
  color: #ef9a82;
}

.history-module {
  margin-top: 0;
}

.history-module ul {
  display: grid;
  align-content: start;
  gap: 0;
  grid-auto-rows: min-content;
  height: 92px;
  margin: 7px 10px 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.history-module li {
  overflow: hidden;
  padding: 2px 6px;
  color: #d1d2cf;
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-tree {
  display: grid;
  gap: 1px;
  margin-top: 5px;
  font-family: var(--app-mono);
}

.file-row {
  display: grid;
  grid-template-columns: 10px 16px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 22px;
  padding: 3px 6px 3px calc(4px + (var(--depth, 0) * 12px));
  color: var(--sb-text);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 10.5px;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease;
}

.file-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.file-row.folder {
  color: var(--sb-text);
  font-weight: 600;
}

.file-row.dirty {
  background: rgba(191, 110, 46, 0.06);
}

.file-row .file-disclosure {
  color: var(--sb-text-3);
  font-size: 9px;
  text-align: center;
}

.file-row.folder .file-disclosure::before {
  content: "›";
  display: inline-block;
  transition: transform 160ms ease;
}

.file-row.folder.open .file-disclosure::before {
  transform: rotate(90deg);
}

/* SVG-based folder / file icons via CSS mask */
.file-row .file-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  text-indent: -9999px;
  overflow: hidden;
  background: var(--sb-text-3);
}

.file-row .file-icon {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 2.6 H8.6 A1 1 0 0 1 9.4 3 L10 3.8 H13 A1 1 0 0 1 14 4.8 V12 A1 1 0 0 1 13 13 H3 A1 1 0 0 1 2 12 V3.6 A1 1 0 0 1 3 2.6 Z' fill='none' stroke='black' stroke-width='1.4' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 2.6 H8.6 A1 1 0 0 1 9.4 3 L10 3.8 H13 A1 1 0 0 1 14 4.8 V12 A1 1 0 0 1 13 13 H3 A1 1 0 0 1 2 12 V3.6 A1 1 0 0 1 3 2.6 Z' fill='none' stroke='black' stroke-width='1.4' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

.file-row.folder .file-icon {
  background: #6ba0f5;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2.4 4.6 A1.2 1.2 0 0 1 3.6 3.4 H6.4 L7.6 4.6 H12.4 A1.2 1.2 0 0 1 13.6 5.8 V12 A1.2 1.2 0 0 1 12.4 13.2 H3.6 A1.2 1.2 0 0 1 2.4 12 Z' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2.4 4.6 A1.2 1.2 0 0 1 3.6 3.4 H6.4 L7.6 4.6 H12.4 A1.2 1.2 0 0 1 13.6 5.8 V12 A1.2 1.2 0 0 1 12.4 13.2 H3.6 A1.2 1.2 0 0 1 2.4 12 Z' fill='black'/></svg>") center/contain no-repeat;
}

/* File extension-based icon coloring (driven by data-ext on the row, or class hooks).
   Falls back to muted grey for unknown extensions. */
.file-row[data-ext="swift"] .file-icon { background: #d8743b; }
.file-row[data-ext="ts"] .file-icon,
.file-row[data-ext="tsx"] .file-icon { background: #6ba0f5; }
.file-row[data-ext="js"] .file-icon,
.file-row[data-ext="jsx"] .file-icon { background: #d6c14a; }
.file-row[data-ext="json"] .file-icon { background: #c8b34a; }
.file-row[data-ext="md"] .file-icon { background: #b8a37e; }
.file-row[data-ext="yaml"] .file-icon,
.file-row[data-ext="yml"] .file-icon { background: #c87bc4; }
.file-row[data-ext="toml"] .file-icon { background: #c87bc4; }
.file-row[data-ext="css"] .file-icon { background: #74b0c5; }
.file-row[data-ext="html"] .file-icon { background: #d28055; }
.file-row[data-ext="sql"] .file-icon { background: #8aa66f; }
.file-row[data-ext="py"] .file-icon { background: #5eaae0; }
.file-row[data-ext="env"] .file-icon,
.file-row[data-ext="gitignore"] .file-icon { background: #7a8079; }

.file-row .file-name {
  overflow: hidden;
  font-family: var(--app-mono);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dirty indicator — amber dot at the right edge */
.file-row .file-status {
  display: inline-grid;
  place-items: center;
  width: 8px;
  height: 8px;
  font-size: 0;
}

.file-row.dirty .file-status::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(191, 110, 46, 0.16);
}

.module-action-row,
.copy-row {
  display: flex;
  justify-content: flex-start;
  margin: 8px 0 5px;
}

.copy-row {
  justify-content: flex-end;
}

.module-action-row button,
.copy-row button,
.global-project-heading button {
  padding: 4px 8px;
  color: #b8c2b6;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(196, 223, 179, 0.14);
  border-radius: 6px;
  font-family: var(--app-mono);
  font-size: 9px;
  font-weight: 700;
}

.agent-updated {
  overflow: hidden;
  margin-top: 8px;
  color: #8d9492;
  font-family: var(--app-mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-summary-stack {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.agent-summary-card {
  padding: 8px;
  color: #d9dbd2;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(196, 223, 179, 0.08);
  border-radius: 8px;
}

.agent-summary-card span {
  display: block;
  color: #8bb8f3;
  font-family: var(--app-display);
  font-size: 10px;
  font-weight: 800;
}

.agent-summary-card p,
.agent-summary-card ul {
  margin: 5px 0 0;
  padding: 0;
  color: #d7d9d2;
  font-size: 11px;
  line-height: 1.35;
}

.agent-summary-card ul {
  display: grid;
  gap: 4px;
  list-style: none;
}

.agent-summary-card li {
  position: relative;
  padding-left: 11px;
  color: #abb1b5;
}

.agent-summary-card li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 1px;
  width: 5px;
  height: 5px;
  background: #7fd3b2;
  border-radius: 999px;
}

.next-card span {
  color: #7fd3b2;
}

.blocker-card span {
  color: #d89452;
}

.blocker-card em {
  color: #8d9492;
  font-family: var(--app-mono);
  font-style: normal;
}

.agent-skills-module {
  margin-top: 18px;
}

.skill-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  width: 100%;
  padding: 6px 7px;
  color: #d8dad4;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(196, 223, 179, 0.08);
  border-radius: 7px;
  text-align: left;
  cursor: pointer;
}

.skill-row:hover {
  background: rgba(196, 223, 179, 0.065);
}

.skill-row strong {
  overflow: hidden;
  color: #f0f0e8;
  font-family: var(--app-mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-row em {
  color: #df8f52;
  font-family: var(--app-mono);
  font-size: 8px;
  font-style: normal;
}

.skill-row span {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #9ca4a1;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-status-text {
  margin: 8px 0 9px;
  color: #8d9492;
  font-size: 10px;
  line-height: 1.35;
}

.global-project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.global-control-stack {
  display: grid;
  gap: 4px;
  margin: 6px 0 7px;
}

.global-control-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8d9492;
  font-family: var(--app-mono);
  font-size: 8px;
  font-weight: 800;
}

.global-control-row > span {
  width: 32px;
}

.global-control-row div {
  display: flex;
  gap: 2px;
  padding: 2px 3px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(196, 223, 179, 0.13);
  border-radius: 999px;
}

.global-control-row b {
  padding: 2px 6px;
  color: #8d9492;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
}

.global-control-row .dirty-active {
  color: #f0f0e8;
  background: rgba(216, 148, 82, 0.18);
  border-color: rgba(216, 148, 82, 0.35);
}

.global-control-row .sort-active {
  color: #f0f0e8;
  background: rgba(98, 147, 205, 0.18);
  border-color: rgba(98, 147, 205, 0.35);
}

.global-git-list {
  display: grid;
  gap: 4px;
}

.global-project-row {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 5px 6px;
  color: #d8dad4;
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
}

.global-project-row:hover,
.global-project-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.035);
}

.global-project-row div,
.global-project-row p,
.global-project-row small {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: baseline;
  margin: 0;
}

.global-project-row strong {
  overflow: hidden;
  color: #f0f0e8;
  font-family: var(--app-mono);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-project-row em {
  color: var(--sb-accent);
  font-family: var(--app-mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.global-project-row p span,
.global-project-row p i,
.global-project-row small {
  overflow: hidden;
  color: #b0b5af;
  font-family: var(--app-mono);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-project-row p span {
  color: #8f949d;
}

.global-project-row b i {
  color: var(--sb-accent);
  font-style: normal;
}

.global-project-row b u {
  color: var(--sb-red);
  text-decoration: none;
}

.global-project-row small {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.global-project-row .focus-bar {
  overflow: hidden;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
}

.global-project-row .focus-bar b {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(163, 191, 140, 0.6), var(--sb-accent));
}

.global-project-row .focus-chip {
  padding: 2px 6px;
  border: 1px solid rgba(163, 191, 140, 0.25);
  border-radius: 5px;
  background: rgba(163, 191, 140, 0.14);
  color: var(--sb-accent);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.global-hero {
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
}

.global-hero-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.global-hero-row + .global-hero-row {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.global-hero-row div {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 10px 4px 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.global-hero-row div:first-child {
  border-left: 0;
}

.global-hero b {
  color: #f0f0e8;
  font-family: var(--app-mono);
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
}

.global-hero b.lines {
  font-size: 13px;
}

.global-hero b i {
  color: var(--sb-accent);
  font-style: normal;
}

.global-hero b u {
  color: var(--sb-red);
  text-decoration: none;
}

.global-hero span {
  color: #8f949d;
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.global-heat {
  margin-top: 8px;
  padding: 8px 9px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
}

.global-heat-title {
  margin-bottom: 6px;
  color: #c9cdd4;
  font-family: var(--app-display);
  font-size: 9.5px;
  font-weight: 800;
}

.global-heat-row {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
}

.global-heat-row i {
  height: 10px;
  border-radius: 2.5px;
  background: rgba(255, 255, 255, 0.06);
}

.global-heat-row i.h1 { background: rgba(163, 191, 140, 0.35); }
.global-heat-row i.h2 { background: rgba(163, 191, 140, 0.62); }
.global-heat-row i.h3 { background: var(--sb-accent); }

.global-heat-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #8f949d;
  font-family: var(--app-mono);
  font-size: 7px;
}

.global-project-row small b {
  color: #7fd397;
  font-weight: 600;
}

.history-module li:nth-child(even) {
  background: rgba(0, 0, 0, 0.08);
}

.collapsed-module {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 5px;
  align-items: center;
  margin-top: 20px;
  color: #c4dfb3;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.collapsed-module span {
  color: #9ea89d;
  font-size: 14px;
}

.collapsed-module strong {
  color: #c6e0b6;
  font-family: var(--app-display);
  font-size: 13px;
  font-weight: 800;
}

.collapsed-module small {
  color: #9ca0a7;
  font-size: 12px;
}

.config-module {
  margin-top: 18px;
}

.config-module dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px 12px;
  margin: 7px 0 0;
  font-size: 12px;
}

.config-module dt {
  color: #bcd6aa;
  font-weight: 800;
}

.config-module dd {
  margin: 0;
  color: #f0f0e8;
  font-weight: 800;
  text-align: right;
}

.problem-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

/* The fracture keeps its warning color — terracotta window tag. */
.problem-section > .eyebrow.win {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--amber);
}

.problem-section > .eyebrow.win::before {
  background: linear-gradient(90deg, transparent, rgba(209, 135, 112, 0.65));
}

.problem-copy {
  max-width: 640px;
}

.problem-copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.052em;
  margin-bottom: 12px;
}

.loss-list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid rgba(191, 109, 46, 0.40);
}

.loss-list span {
  padding: 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--label);
  font-size: clamp(0.86rem, 1vw, 0.98rem);
  line-height: 1.5;
  letter-spacing: 0;
}

.surface-section {
  display: block;
  padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 4vw, 56px);
}

.surface-header {
  display: block;
  max-width: 720px;
  margin: 0 0 clamp(28px, 4vw, 56px);
  padding: 0;
}

/* Right-aligned variant — alternates with the left-aligned .problem-section header */
.surface-header.surface-header-right {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

.surface-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.052em;
  margin-bottom: 0;
}

.surface-header .surface-lede {
  max-width: none;
  font-size: clamp(0.98rem, 1.2vw, 1.18rem);
  line-height: 1.42;
}

/* Generic h2/h3 em: sage, full-width cut of the display face */
h2 em, h3 em {
  color: var(--green);
  font-stretch: 125%;
  font-style: normal;
  font-weight: 560;
}

.surface-lede {
  max-width: 640px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.52;
  letter-spacing: 0;
}

.surface-intro {
  display: none;
}

.capability-grid,
.proof-flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.capability,
.proof-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr);
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: 24px;
  align-items: center;
  padding: clamp(48px, 6.5vw, 84px) 0 clamp(32px, 4.5vw, 56px);
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.proof-step:not(:first-child) {
  border-top: 1px solid var(--line);
}

.proof-step.in-view,
.capability.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Alternating sides — odd: text left, visual right; even: visual left, text right */
.proof-flow > .proof-step:nth-child(even) > .proof-text,
.proof-flow > .proof-step:nth-child(even) > .proof-meta {
  order: 2;
}

.proof-flow > .proof-step:nth-child(even) > .proof-visual {
  order: 1;
}

.proof-meta {
  display: block;
  align-self: start;
}

.proof-num {
  display: none;
}

.proof-tag {
  display: inline-block;
  margin: 0;
  color: var(--green);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.proof-text {
  display: grid;
  align-content: center;
  gap: 14px;
  max-width: 520px;
}

.proof-step > .proof-text > h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.052em;
  color: var(--ink);
  max-width: none;
}

.proof-step > .proof-text > h3 em {
  color: var(--green);
  font-stretch: 125%;
  font-style: normal;
  font-weight: 560;
}

.proof-text {
  gap: 16px;
}

.proof-step > .proof-text > p {
  margin: 0;
  color: var(--paper);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.5;
  max-width: 480px;
}

/* Wrap the meta block to sit alongside the text block, not in its own column */
.proof-step {
  grid-template-areas:
    "meta visual"
    "text visual";
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr);
  grid-template-rows: auto 1fr;
}

.proof-flow > .proof-step:nth-child(even) {
  grid-template-areas:
    "visual meta"
    "visual text";
}

.proof-step > .proof-meta { grid-area: meta; }
.proof-step > .proof-text { grid-area: text; align-self: start; }
.proof-step > .proof-visual { grid-area: visual; align-self: center; }

/* Cap-index legacy rules (used in old timeline) — neutralized */
.proof-step > .cap-index {
  display: none;
}

.capability.large,
.proof-step.focus-step,
.proof-step.return-step {
  grid-column: auto;
}

.capability.tall,
.proof-step.inspect-step {
  min-height: 0;
}

.proof-flow > .proof-step:nth-child(1).in-view { transition-delay: 0ms; }
.proof-flow > .proof-step:nth-child(2).in-view { transition-delay: 80ms; }
.proof-flow > .proof-step:nth-child(3).in-view { transition-delay: 80ms; }
.proof-flow > .proof-step:nth-child(4).in-view { transition-delay: 80ms; }
.proof-flow > .proof-step:nth-child(5).in-view { transition-delay: 80ms; }
.proof-flow > .proof-step:nth-child(6).in-view { transition-delay: 80ms; }
.proof-flow > .proof-step:nth-child(7).in-view { transition-delay: 80ms; }

.timeline-row,
.price-card,
.workflow-strip > div,
.viewer-card,
.inspect-stage {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 540ms ease, transform 540ms ease;
}

.timeline-row.in-view,
.price-card.in-view,
.workflow-strip > div.in-view,
.viewer-card.in-view,
.inspect-stage.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .proof-step,
  .capability,
  .timeline-row,
  .price-card,
  .workflow-strip > div,
  .viewer-card,
  .inspect-stage {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.proof-step > .cap-index {
  grid-column: 1;
  grid-row: 1 / span 99;
  align-self: start;
  justify-self: start;
}

/* (Old 3-col rules removed — replaced by grid-areas above) */

.capability.large,
.proof-step.focus-step,
.proof-step.return-step {
  grid-column: auto;
}

.capability.tall,
.proof-step.inspect-step {
  min-height: 0;
}

.proof-step.focus-step p,
.proof-step.return-step p {
  max-width: none;
}

.surface-product-demo {
  display: grid;
  grid-column: auto;
  grid-template-columns: minmax(0, 0.9fr) minmax(230px, 0.72fr);
  gap: 18px;
  align-items: stretch;
  margin: 18px 0 18px calc(96px + clamp(18px, 2.6vw, 36px));
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(163, 191, 140, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(242, 242, 242, 0.09);
  border-radius: 14px;
}

.proof-flow > .surface-product-demo .cap-index {
  margin-bottom: 12px;
}

.proof-flow > .surface-product-demo {
  border-top: 0;
}

.surface-demo-copy p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.surface-demo-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.surface-demo-steps span {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 28px;
  padding: 5px 7px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(242, 242, 242, 0.1);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 9px;
}

.surface-demo-steps b {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: #16181f;
  background: var(--green);
  border-radius: 999px;
  font-size: 8px;
}

.surface-demo-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: #f2f2f2;
  background: #1c1e26;
  border: 1px solid #383d49;
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  font-family: var(--app-display);
}

.surface-demo-panel div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.surface-demo-panel strong {
  color: #f2f2f2;
  font-size: 15px;
}

.surface-demo-panel div span {
  color: #afc8a1;
  font-family: var(--app-mono);
  font-size: 9px;
}

.surface-demo-panel p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: #afc8a1;
  font-size: 11px;
  font-weight: 800;
}

.surface-demo-panel em {
  overflow: hidden;
  padding: 5px 6px;
  color: #f2f2f2;
  background: #272a34;
  border-radius: 6px;
  font-family: var(--app-mono);
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.surface-demo-panel small {
  color: #88898d;
  font-size: 10px;
}

.cap-index {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
  color: rgba(191, 109, 46, 0.92);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cap-index::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 999px;
}

.proof-step > .cap-index {
  position: relative;
  margin-bottom: 0;
  padding: 4px 10px 4px 26px;
  background: var(--bg);
  border-radius: 999px;
  z-index: 1;
}

.proof-step > .cap-index::before {
  position: absolute;
  top: 50%;
  left: 6px;
  width: 13px;
  height: 13px;
  margin: 0;
  background: var(--bg);
  border: 1.5px solid rgba(82, 117, 68, 0.45);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2.5px var(--bg);
  transform: translateY(-50%);
  transition: background 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.proof-step.in-view > .cap-index::before {
  background: var(--green);
  border-color: var(--green);
  box-shadow:
    inset 0 0 0 2.5px var(--bg),
    0 0 0 5px rgba(82, 117, 68, 0.14);
}

.capability p,
.proof-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.proof-step h3 {
  max-width: 620px;
}

.proof-tokens,
.metric-line,
.history-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 16px;
}

.proof-tokens span,
.history-outcomes span {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--label);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.proof-tokens span + span::before,
.history-outcomes span + span::before {
  content: "·";
  margin-right: 14px;
  color: rgba(242, 242, 242, 0.24);
}

.feature-inventory-section {
  padding: clamp(52px, 7vw, 92px) 0;
  border-top: 1px solid var(--line);
}

.feature-inventory-header {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.55fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.feature-inventory-header h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 3.35rem);
  line-height: 0.96;
  letter-spacing: -0.052em;
}

.feature-inventory-header p:last-child {
  margin: 0;
  color: var(--paper);
  font-size: clamp(0.98rem, 1.14vw, 1.08rem);
  line-height: 1.5;
}

.feature-inventory-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-inventory-grid article {
  min-height: 178px;
  padding: 18px 16px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.36), rgba(255,255,255,0.12)),
    rgba(250, 244, 232, 0.34);
  border-right: 1px solid rgba(28, 30, 38, 0.13);
  border-bottom: 1px solid rgba(28, 30, 38, 0.13);
}

.feature-inventory-grid span {
  display: block;
  margin-bottom: 22px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.feature-inventory-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.035em;
}

.feature-inventory-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.metric-line {
  gap: 6px;
}

.metric-line b {
  padding: 4px 6px;
  color: #f4f3f1;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
}

.metric-line b {
  color: #f4f3f1;
  background: var(--green);
  border-color: var(--green);
  font-weight: 900;
}

/* All "bottom text" / tag rows share the same .proof-tokens look —
   mono uppercase, dot separators, muted color. */
.proof-mini-list,
.proof-flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 4px;
}

.proof-mini-list span,
.proof-flow-steps span {
  position: relative;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--label);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.proof-mini-list span::before,
.proof-flow-steps span::before {
  content: none;
}

.proof-mini-list span + span::before,
.proof-flow-steps span + span::before {
  content: "·";
  position: static;
  margin-right: 14px;
  padding: 0;
  width: auto;
  height: auto;
  background: none;
  color: rgba(242, 242, 242, 0.24);
  border-radius: 0;
}

/* Hide the old numbered chip on flow-steps */
.proof-flow-steps b {
  display: none;
}

/* Proof-step visual aids — bigger product-detail panels */
.proof-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at 24% 18%, rgba(163, 191, 140, 0.07), transparent 16rem),
    radial-gradient(circle at 82% 88%, rgba(209, 135, 112, 0.05), transparent 14rem),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(242, 242, 242, 0.08);
  border-radius: 16px;
  font-family: var(--app-mono);
  font-size: 10px;
  min-height: 280px;
  overflow: hidden;
}

.proof-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 242, 242, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 242, 242, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, black 0, transparent 80%);
  opacity: 0.6;
}

.proof-visual > * {
  position: relative;
  z-index: 1;
}

/* 01 / Follow — mini hero workbench (terminal panes + sidebridge panel) */
.visual-follow {
  min-height: 315px;
  padding-inline: 30px;
}

.vf-workbench {
  display: grid;
  grid-template-columns: minmax(0, 258px) 150px;
  gap: 18px;
  align-items: stretch;
  width: 100%;
  max-width: 436px;
}

/* Mini terminal-grid — same structure as hero, 1/4 size */
.vf-panes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 108px);
  gap: 0;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    #0a0c0a;
  border: 1px solid rgba(9, 12, 12, 0.70);
  border-radius: 9px;
  box-shadow:
    0 14px 30px rgba(13, 22, 28, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.vf-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  padding: 0 0 8px;
  background:
    radial-gradient(circle at 24% 0%, rgba(163, 191, 140, 0.07), transparent 7rem),
    rgba(16, 22, 23, 0.82);
  border: 0;
  border-radius: 0;
  opacity: 0.54;
  filter: saturate(0.55);
  transition: opacity 240ms ease, filter 240ms ease, box-shadow 240ms ease;
}

.vf-pane:nth-child(odd) {
  border-right: 1px solid rgba(176, 198, 192, 0.16);
}

.vf-pane:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(176, 198, 192, 0.16);
}

.vf-pane-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  padding: 0 7px;
  color: rgba(246, 240, 223, 0.50);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(246, 240, 223, 0.06);
  font-family: var(--app-mono);
  font-size: 7px;
}

.vf-pane-bar i {
  font-style: normal;
}

.vf-pane-bar b {
  overflow: hidden;
  color: rgba(246, 240, 223, 0.78);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-pane-line {
  height: 4px;
  margin: 0 9px;
  background: rgba(246, 240, 223, 0.18);
  border-radius: 1px;
}

.vf-pane-line:first-of-type {
  margin-top: 6px;
}

.vf-pane-line.short {
  width: 64%;
}

.vf-pane-cursor {
  width: 5px;
  height: 7px;
  margin: 0 9px 4px;
  background: rgba(246, 240, 223, 0.50);
  animation: vf-blink 1.1s steps(2, end) infinite;
}

@keyframes vf-blink {
  to { opacity: 0; }
}

.vf-pane.active {
  opacity: 1;
  filter: saturate(1);
  background:
    radial-gradient(circle at 24% 0%, rgba(163, 191, 140, 0.10), transparent 7rem),
    #0d272f;
  box-shadow:
    inset 0 0 0 1px rgba(163, 191, 140, 0.68),
    inset 0 0 28px rgba(163, 191, 140, 0.08);
}

.vf-pane.active .vf-pane-line {
  background: rgba(246, 240, 223, 0.34);
}

.vf-pane.active::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(163, 191, 140, 0.30);
}

/* Mini sidebridge panel — mirrors hero panel proportions */
.vf-sidebar {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-self: stretch;
  min-height: 226px;
  overflow: hidden;
  padding: 6px 7px 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  transform: translateX(7px);
}

.vf-sb-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 12px;
  color: var(--sb-text-2);
  font-family: var(--app-mono);
  font-size: 8px;
}

.vf-sb-leaf { color: var(--green); }
.vf-sb-shelf { color: var(--sb-text-3); }
.vf-sb-spacer { flex: 1; }

.vf-sb-head {
  display: grid;
  gap: 1px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--sb-border);
}

.vf-sb-title {
  display: flex;
  gap: 5px;
  align-items: center;
}

.vf-sb-source {
  color: var(--green);
  font-family: var(--app-mono);
  font-size: 10px;
}

.vf-sb-title strong {
  font-family: var(--app-display);
  font-size: 13px;
  letter-spacing: -0.02em;
}

.vf-sb-meta {
  color: var(--sb-text-2);
  font-family: var(--app-mono);
  font-size: 7px;
}

.vf-sb-branch {
  color: var(--amber);
  font-family: var(--app-mono);
  font-size: 7px;
  font-style: normal;
}

.vf-sb-tabs {
  display: flex;
  gap: 2px;
}

.vf-sb-tabs span {
  flex: 1;
  height: 9px;
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: 2px;
}

.vf-sb-tabs span.active {
  background: var(--sb-hover);
  border-color: rgba(163, 191, 140, 0.6);
  box-shadow: inset 0 0 0 1px rgba(163, 191, 140, 0.3);
}

.vf-sb-mod {
  display: grid;
  gap: 3px;
}

.vf-sb-mod-head {
  display: flex;
  gap: 4px;
  align-items: center;
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 7.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vf-sb-chev { color: var(--sb-text-3); }

.vf-sb-mod-head small {
  margin-left: auto;
  color: var(--amber);
  font-family: var(--app-mono);
  font-size: 7px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.vf-sb-mod p {
  margin: 0;
  color: var(--sb-text-2);
  font-family: var(--app-mono);
  font-size: 7px;
}

.vf-sb-mod ul {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vf-sb-mod li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 6px;
  gap: 6px;
  align-items: center;
  padding: 1px 2px;
  font-family: var(--app-mono);
  font-size: 7px;
  color: var(--sb-text);
}

.vf-sb-mod li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.mini-bar {
  display: inline-flex;
  overflow: hidden;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.09);
}

.mini-bar b {
  height: 100%;
  background: var(--sb-accent);
}

.mini-bar u {
  height: 100%;
  background: var(--sb-red);
  opacity: 0.85;
  text-decoration: none;
}

.vf-ind {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 1.5px;
}
.vf-ind.status-a { background: var(--green); }
.vf-ind.status-m { background: var(--amber); }
.vf-ind.status-d { background: var(--red); }

.vf-sb-mod li strong {
  overflow: hidden;
  color: var(--sb-text);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-sb-mod li em {
  color: var(--sb-text-3);
  font-style: normal;
}

/* 02 / Inspect — diff popup */
.visual-inspect .visual-card {
  display: grid;
  width: min(100%, 360px);
  overflow: hidden;
  color: #eceee7;
  background:
    linear-gradient(180deg, rgba(48, 52, 62, 0.985), rgba(28, 31, 39, 0.985));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
  font-family: var(--app-mono);
  font-size: 11px;
  line-height: 1.5;
}

.vc-chrome {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vc-chrome i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.vc-chrome i:nth-child(1) { background: #ff6961; }
.vc-chrome i:nth-child(2) { background: #ffbd45; }
.vc-chrome i:nth-child(3) { background: #63d471; }

.vc-chrome b {
  margin-left: 6px;
  color: #f3f3eb;
  font-family: var(--app-display);
  font-size: 12px;
  font-weight: 800;
}

.vc-meta {
  padding: 8px 14px 6px;
  color: #a6abb6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--app-mono);
  font-size: 10px;
}

.vc-line {
  display: block;
  overflow: hidden;
  padding: 2px 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-line.meta { color: #9ea5b0; }
.vc-line.chunk { color: #9fb9ff; background: rgba(103, 132, 214, 0.12); }
.vc-line.context { color: #d8d9d3; }
.vc-line.add { color: #c8efba; background: rgba(71, 161, 90, 0.16); }
.vc-line.remove { color: #ffb2b2; background: rgba(186, 73, 73, 0.16); }

/* 03 / Flow — full mini sidebridge panel */
.visual-flow .visual-panel {
  display: grid;
  gap: 10px;
  width: min(100%, 300px);
  padding: 12px 14px 14px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.vp-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sb-text-2);
  font-family: var(--app-mono);
  font-size: 11px;
}

.vp-toolbar b {
  flex: 1;
}

.vp-toolbar > span:first-child {
  color: var(--green);
}

.vp-head {
  display: grid;
  gap: 3px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--sb-border);
}

.vp-title {
  display: flex;
  gap: 7px;
  align-items: center;
}

.vp-mark {
  color: var(--green);
  font-family: var(--app-mono);
  font-size: 13px;
}

.vp-head strong {
  font-family: var(--app-display);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.vp-head .vp-source {
  color: var(--sb-text-2);
  font-family: var(--app-mono);
  font-size: 10px;
}

.vp-head .vp-branch {
  color: var(--amber);
  font-family: var(--app-mono);
  font-size: 10px;
  font-style: normal;
}

.vp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vp-row .vp-key {
  color: var(--sb-text);
}

.vp-row b {
  color: var(--amber);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.vp-files {
  display: grid;
  gap: 3px;
}

.vp-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 9px;
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 4px;
  font-family: var(--app-mono);
  font-size: 9.5px;
  color: var(--sb-text);
}

.vp-file:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

/* Right-edge status indicator: green=A, amber=M, red=D */
.vp-ind {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--amber);
}
.vp-ind.status-a { background: var(--green); }
.vp-ind.status-m { background: var(--amber); }
.vp-ind.status-d { background: var(--red); }

.vp-file em {
  color: var(--sb-text-3);
  font-style: normal;
  font-size: 9px;
}

.vp-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 2px;
}

.vp-metrics span {
  display: grid;
  gap: 1px;
  align-content: center;
  justify-items: center;
  padding: 6px 4px;
  color: var(--sb-text-2);
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: 4px;
  font-family: var(--app-mono);
  font-size: 8.5px;
}

.vp-metrics b {
  color: var(--sb-text);
  font-size: 13px;
  font-weight: 800;
}

.vp-foot {
  margin-top: 2px;
  color: var(--sb-text-3);
  font-family: var(--app-mono);
  font-size: 9px;
}

/* 04 / Return — Since Last Focus card */
.visual-return .visual-focus {
  display: grid;
  gap: 12px;
  width: min(100%, 360px);
  padding: 14px 16px 16px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.vf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.vf-chev {
  color: var(--sb-text-3);
  font-style: normal;
  margin-right: 4px;
}

.vf-head em {
  color: var(--green);
  font-family: var(--app-mono);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
}

/* 6 equal-size metric tiles, 3 columns × 2 rows — flatter rectangular */
.vf-hero {
  overflow: hidden;
  border: 1px solid var(--sb-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.vf-hero-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.vf-hero-row + .vf-hero-row {
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--sb-border);
}

.vf-cell {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 9px 4px 8px;
  border-left: 1px solid var(--sb-border);
}

.vf-cell:first-child {
  border-left: 0;
}

.vf-cell b {
  color: var(--sb-text-3);
  font-family: var(--app-mono);
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
}

.vf-cell.is-active b {
  color: var(--green);
}

.vf-cell b.lines {
  font-size: 11px;
}

.vf-cell i {
  color: var(--sb-text-3);
  font-family: var(--app-mono);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Recent focuses header */
.vf-recent-head {
  padding-top: 4px;
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 11px;
  font-weight: 700;
}

.vf-recent-head em {
  color: var(--sb-text-3);
  font-style: normal;
  font-weight: 600;
}

/* Recent focuses list — bold project + sub line + time + chevron */
.vf-recent {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vfr-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 10px;
  gap: 10px;
  align-items: center;
  padding: 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.vfr-row:first-child {
  border-top: 0;
}

.vfr-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vfr-row strong {
  overflow: hidden;
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.vfr-sub {
  color: var(--sb-text-3);
  font-family: var(--app-mono);
  font-size: 10px;
}

.vfr-row time {
  color: var(--sb-text-3);
  font-family: var(--app-mono);
  font-size: 10px;
  font-weight: 500;
}

.vfr-chev {
  color: var(--sb-text-3);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
  text-align: right;
}

/* 05 / Agent Surface — skills list */
/* 05 / Agent — multi-module mini sidebar (Tool Calls + Skills + Config) */
.visual-agent .multi-mod {
  display: grid;
  gap: 14px;
  width: min(100%, 360px);
  padding: 12px 14px 14px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.mm-block {
  display: grid;
  gap: 6px;
}

.mm-block + .mm-block {
  padding-top: 12px;
  border-top: 1px solid var(--sb-border);
}

.mm-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 11px;
  font-weight: 700;
}

.mm-chev {
  color: var(--sb-text-3);
  font-style: normal;
  margin-right: 4px;
}

.mm-head em {
  color: var(--sb-text-3);
  font-family: var(--app-mono);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
}

/* Tool Calls list */
.mm-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mm-list.mm-tools li {
  display: grid;
  grid-template-columns: 14px auto auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 4px 4px;
  border-radius: 4px;
  font-family: var(--app-mono);
  font-size: 10.5px;
}

.mm-list.mm-tools li:hover {
  background: rgba(255, 255, 255, 0.03);
}

.mm-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--sb-text-3);
}

.mm-bubble svg {
  width: 14px;
  height: 14px;
}

.mm-list.mm-tools li strong {
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 11px;
  font-weight: 700;
}

.mm-ok {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px 2px;
  color: #d8efc4;
  background: rgba(163, 191, 140, 0.22);
  border: 1px solid rgba(163, 191, 140, 0.40);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.mm-list.mm-tools li em {
  overflow: hidden;
  color: var(--sb-text-2);
  font-family: var(--app-mono);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mm-list.mm-tools li time {
  color: var(--sb-text-3);
  font-family: var(--app-mono);
  font-size: 9.5px;
  font-weight: 500;
}

/* Agent Skills — chip + name + green check */
.mm-list.mm-skills li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 5px 4px;
  border-radius: 4px;
  font-family: var(--app-mono);
  font-size: 11px;
}

.mm-list.mm-skills li:hover {
  background: rgba(255, 255, 255, 0.03);
}

.mm-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  color: var(--sb-text-3);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-family: var(--app-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.mm-list.mm-skills li strong {
  overflow: hidden;
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mm-check {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  background: rgba(163, 191, 140, 0.85);
  border: 1px solid rgba(163, 191, 140, 0.55);
  border-radius: 999px;
}

.mm-check::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.4l2.6 2.4L10 3.6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.4l2.6 2.4L10 3.6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

/* Agent Config — key/value rows */
.mm-kv {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  margin: 0;
  padding: 4px 0 2px;
}

.mm-kv dt {
  color: var(--sb-text-3);
  font-family: var(--app-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mm-kv dd {
  margin: 0;
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 11px;
  font-weight: 500;
}

/* When a hero panel class is reused inside a mini panel wrapper,
   re-scale it to the mini panel's proportions while keeping the hero's
   visual treatment (colors, shapes, spacing ratios). */
.visual-search-card .panel-toolbar,
.visual-flow .visual-panel .panel-toolbar,
.scope-sb-panel .panel-toolbar,
.vf-sidebar .panel-toolbar,
.inspect-sb .panel-toolbar {
  height: 17px;
  gap: 8px;
  font-size: 11px;
}

.visual-search-card .leaf-mark,
.visual-flow .visual-panel .leaf-mark,
.scope-sb-panel .leaf-mark,
.vf-sidebar .leaf-mark,
.inspect-sb .leaf-mark {
  font-size: 12px;
}

.visual-search-card .toolbar-shelf-button,
.visual-flow .visual-panel .toolbar-shelf-button,
.scope-sb-panel .toolbar-shelf-button,
.vf-sidebar .toolbar-shelf-button,
.inspect-sb .toolbar-shelf-button {
  min-width: 24px;
  height: 17px;
  padding: 0 6px;
  font-size: 9px;
}

.visual-search-card .panel-top,
.visual-flow .visual-panel .panel-top,
.scope-sb-panel .panel-top,
.vf-sidebar .panel-top,
.inspect-sb .panel-top {
  padding: 7px 0 9px;
}

.visual-search-card .panel-top h2,
.visual-flow .visual-panel .panel-top h2,
.scope-sb-panel .panel-top h2,
.vf-sidebar .panel-top h2,
.inspect-sb .panel-top h2 {
  font-size: 16px;
  letter-spacing: -0.03em;
}

.visual-search-card .source-square,
.visual-flow .visual-panel .source-square,
.scope-sb-panel .source-square,
.vf-sidebar .source-square,
.inspect-sb .source-square {
  width: 14px;
  height: 13px;
  font-size: 10px;
}

.visual-search-card .meta-line,
.visual-flow .visual-panel .meta-line,
.scope-sb-panel .meta-line,
.vf-sidebar .meta-line,
.inspect-sb .meta-line {
  margin-top: 5px;
  font-size: 10.5px;
}

.visual-search-card .branch-line,
.visual-flow .visual-panel .branch-line,
.scope-sb-panel .branch-line,
.vf-sidebar .branch-line,
.inspect-sb .branch-line {
  margin-top: 3px;
  font-size: 10px;
}

.visual-search-card .panel-tabs,
.visual-flow .visual-panel .panel-tabs,
.scope-sb-panel .panel-tabs,
.vf-sidebar .panel-tabs,
.inspect-sb .panel-tabs {
  gap: 6px;
  padding: 8px 0 10px;
}

.visual-search-card .panel-tabs > *,
.visual-flow .visual-panel .panel-tabs > *,
.scope-sb-panel .panel-tabs > *,
.vf-sidebar .panel-tabs > *,
.inspect-sb .panel-tabs > * {
  display: grid;
  height: 22px;
  place-items: center;
  color: var(--sb-text-2);
  background: transparent;
  border: 0;
  border-radius: 5px;
}

.visual-search-card .panel-tabs > .active,
.visual-flow .visual-panel .panel-tabs > .active,
.scope-sb-panel .panel-tabs > .active,
.vf-sidebar .panel-tabs > .active,
.inspect-sb .panel-tabs > .active {
  color: var(--sb-text);
  background: var(--sb-hover);
}

.visual-search-card .tab-icon,
.visual-flow .visual-panel .tab-icon,
.scope-sb-panel .tab-icon,
.vf-sidebar .tab-icon,
.inspect-sb .tab-icon {
  width: 13px;
  height: 13px;
}

/* 07 / Search — global search panel (matches app sidebar style) */
.visual-search .visual-search-card {
  position: relative;
  display: grid;
  gap: 9px;
  width: min(100%, 325px);
  min-height: 430px;
  padding: 8px 14px 14px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
  overflow: hidden;
}

.vsr-tabs span:nth-child(2)::before {
  border-radius: 999px;
}

.vsr-tabs span:nth-child(3)::before {
  border-radius: 999px 999px 2px 2px;
  border-bottom-width: 3px;
}

.vsr-tabs span:nth-child(4)::before {
  width: 14px;
  height: 10px;
  border-radius: 2px;
}

.vsr-tabs span:nth-child(5)::before {
  border-radius: 999px;
}

.vsr-tabs span.active {
  color: #d4e8c8;
  background: rgba(91, 129, 171, 0.55);
}

.vsr-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 32px;
  padding: 0 11px;
  color: var(--sb-text-2);
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: 6px;
  font-family: var(--app-mono);
  font-size: 11.5px;
}

.vsr-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sb-text-3);
}

.vsr-glass svg { width: 12px; height: 12px; }

.vsr-bar em {
  flex: 1;
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 500;
}

.vsr-kbd {
  color: var(--sb-text-3);
  font-family: var(--app-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sb-border);
  border-radius: 4px;
}

/* Section headers — same look as Sidebridge module headers (mono uppercase) */
/* File/commit/tool icons (mask-based, color-coded) */
/* Works with — terminal app + Codex desktop icon grid */
.stack-section {
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.stack-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "title   lede";
  column-gap: clamp(24px, 3.5vw, 56px);
  row-gap: 14px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.stack-header > .eyebrow { grid-area: eyebrow; }
.stack-header > h2 {
  grid-area: title;
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.052em;
}
.stack-header > .stack-lede { grid-area: lede; }

.stack-lede {
  margin: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  line-height: 1.5;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 18px;
}

.stack-app {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 18px 12px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.stack-app:hover {
  transform: translateY(-2px);
  border-color: rgba(28, 30, 38, 0.18);
  box-shadow: 0 14px 30px rgba(28, 30, 38, 0.08);
}

.stack-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.stack-icon svg {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.stack-app strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stack-app em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.stack-app-codex {
  background:
    radial-gradient(circle at 80% 0%, rgba(163, 191, 140, 0.16), transparent 16rem),
    rgba(255, 255, 255, 0.72);
  border-color: rgba(163, 191, 140, 0.34);
}

@media (max-width: 720px) {
  .stack-header {
    grid-template-areas: "eyebrow" "title" "lede";
    grid-template-columns: 1fr;
  }
  .stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
  }
}

/* THEMES showcase — mini panels rendered in real app theme palettes */
.themes-section {
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.themes-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "title   lede";
  column-gap: clamp(24px, 3.5vw, 56px);
  row-gap: 14px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.themes-header > .eyebrow { grid-area: eyebrow; }
.themes-header > h2 { grid-area: title; margin: 0; font-size: clamp(1.85rem, 3.2vw, 3.4rem); line-height: 0.96; letter-spacing: -0.052em; }
.themes-header > .themes-lede { grid-area: lede; }

.themes-lede {
  max-width: none;
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  line-height: 1.5;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 240px);
  justify-content: center;
  gap: 14px 16px;
}

.theme-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: transform 220ms ease, filter 220ms ease;
}

.theme-card:hover {
  transform: translateY(-3px);
}

.theme-card:hover .theme-mini {
  filter: brightness(1.04);
}

/* Portrait mini panel mirroring hero .sidebridge-panel proportions */
.theme-mini {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  min-height: 300px;
  padding: 10px 12px 12px;
  color: var(--t-text);
  background: var(--t-bg);
  border: 1px solid var(--t-border);
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 22px 42px rgba(0, 0, 0, 0.28);
  font-family: var(--app-display);
  overflow: hidden;
}

/* Toolbar — leaf + spacer + shelf */
.tm-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 16px;
  color: var(--t-text-2);
  font-family: var(--app-mono);
  font-size: 11px;
}

.tm-leaf { color: var(--t-accent); }
.tm-shelf { color: var(--t-text-3); }
.tm-spacer { flex: 1; }

/* Title section */
.tm-top {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--t-border);
}

.tm-title {
  display: flex;
  gap: 7px;
  align-items: center;
}

/* Source square — green-tinted block with a triangle, mirrors hero .source-square */
.tm-source {
  display: grid;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  place-items: center;
  color: var(--t-accent);
  background: color-mix(in srgb, var(--t-accent) 20%, transparent);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.tm-source::before {
  content: "▸";
}

.tm-mark {
  color: var(--t-accent);
  font-family: var(--app-display);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.tm-title strong {
  color: var(--t-text);
  font-family: var(--app-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tm-meta {
  color: var(--t-text-2);
  font-family: var(--app-mono);
  font-size: 9px;
}

.tm-branch {
  color: var(--t-amber);
  font-family: var(--app-mono);
  font-size: 9px;
}

/* Tabs row — 5 icon tabs like the real hero panel */
.tm-tabs {
  display: flex;
  gap: 4px;
  align-items: stretch;
  margin: 2px 0;
}

.tm-tabs .tm-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--t-text-3);
  transition: background 160ms ease, color 160ms ease;
}

.tm-tabs .tm-tab svg {
  width: 14px;
  height: 14px;
}

.tm-tabs .tm-tab.active {
  background: var(--t-hover);
  color: var(--t-text);
}

/* Module blocks */
.tm-mod {
  display: grid;
  gap: 4px;
}

.tm-mod-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: var(--t-text);
  font-family: var(--app-display);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
}

.tm-mod-head > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-mod-head > span > i {
  color: var(--t-text-3);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
}

.tm-mod-head em {
  color: var(--t-text-3);
  font-family: var(--app-display);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.tm-subhead {
  margin-top: 4px;
  color: color-mix(in srgb, var(--t-text) 82%, var(--t-text-2));
  font-family: var(--app-display);
  font-size: 9.5px;
  font-weight: 800;
}

.tm-subhead em {
  color: var(--t-text-3);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 600;
}

.tm-mod-sub {
  color: var(--t-text-2);
  font-family: var(--app-display);
  font-size: 10px;
  font-weight: 500;
}

.tm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  padding: 3px 4px 4px;
  font-family: var(--app-display);
  font-size: 10px;
  color: var(--t-text);
  min-width: 0;
}

.tm-row .mini-bar {
  flex-basis: 100%;
  background: color-mix(in srgb, var(--t-text) 12%, transparent);
}

.tm-row .mini-bar b {
  background: var(--t-accent);
}

.tm-row .mini-bar u {
  background: var(--t-red, var(--t-amber));
}

.tm-row:nth-of-type(odd) {
  background: color-mix(in srgb, var(--t-text) 4%, transparent);
}

.tm-path-pre {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--t-text-3);
  font-family: var(--app-display);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-fname {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: -3px;
  overflow: hidden;
  color: var(--t-text);
  font-family: var(--app-display);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-row em {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--t-text-3);
  font-family: var(--app-display);
  font-size: 9px;
  font-style: normal;
}

.tm-ind-unused {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--t-amber);
  border-radius: 2px;
}


/* Since Last Focus mini metric row */
.tm-focus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 2px;
}

.tm-focus {
  grid-auto-rows: 38px;
}

.tm-focus span {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 8px 6px;
  color: var(--t-text-3);
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-radius: 5px;
  overflow: hidden;
}

.tm-focus span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6px;
  right: 6px;
  height: 1.5px;
  background: var(--t-text-3);
  opacity: 0.45;
}

.tm-focus span.is-active::before {
  background: var(--t-accent);
  opacity: 1;
}

.tm-focus span.is-warn::before {
  background: var(--t-amber);
  opacity: 1;
}

.tm-focus span > i {
  color: var(--t-text-3);
  font-family: var(--app-display);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 600;
}

.tm-focus span.is-active > i { color: var(--t-accent); }
.tm-focus span.is-warn > i { color: var(--t-amber); }

.tm-focus b {
  color: var(--t-text);
  font-family: var(--app-display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.theme-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 2px;
}

.theme-meta strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.theme-meta em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.themes-footer {
  margin: clamp(20px, 3vw, 32px) 0 0;
  color: var(--muted);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: lowercase;
}

@media (max-width: 900px) {
  .themes-grid {
    grid-template-columns: repeat(2, 240px);
  }
  .themes-header {
    grid-template-areas: "eyebrow" "title" "lede";
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .themes-grid {
    grid-template-columns: minmax(0, 280px);
  }
}

/* 06 / Arrange — list of draggable, collapsed module headers */
.visual-arrange .visual-arrange-card {
  display: grid;
  gap: 8px;
  width: min(100%, 340px);
  padding: 12px 14px 12px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.va-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.va-chev {
  color: var(--sb-text-3);
  font-style: normal;
  margin-right: 4px;
}

.va-head em {
  color: var(--sb-text-3);
  font-family: var(--app-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.va-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each row is a "collapsed module header" — chevron, name, status hint, drag grip */
.va-mod {
  position: relative;
  display: grid;
  grid-template-columns: 14px 12px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 6px 9px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--app-mono);
  color: var(--sb-text);
  cursor: grab;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.va-mod:first-child {
  border-top: 0;
}

.va-mod:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* The one mid-drag — lifted off the list */
.va-mod.va-drag {
  background: var(--sb-hover);
  border-radius: 6px;
  border-top-color: transparent;
  box-shadow:
    inset 0 0 0 1px rgba(163, 191, 140, 0.30),
    0 8px 16px rgba(0, 0, 0, 0.34);
  transform: translateX(8px);
  z-index: 1;
}

.va-mod.va-drag + .va-mod {
  border-top-color: transparent;
}

.va-grip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--sb-text-3);
  opacity: 0.6;
}

.va-grip svg {
  width: 8px;
  height: 14px;
}

.va-mod:hover .va-grip,
.va-mod.va-drag .va-grip {
  color: var(--sb-text);
  opacity: 1;
}

.va-mod.va-drag .va-grip {
  color: var(--green);
}

.va-mod-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sb-text-3);
  font-size: 11px;
  line-height: 1;
}

.va-mod strong {
  overflow: hidden;
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.va-mod small {
  color: var(--sb-text-3);
  font-family: var(--app-mono);
  font-size: 10px;
  font-weight: 500;
}

.viewer-section {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.viewer-copy p {
  color: var(--paper);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.45;
}

.viewer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 20px;
}

.viewer-tags span {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--label);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.viewer-tags span + span::before {
  content: "·";
  margin-right: 14px;
  color: rgba(242, 242, 242, 0.24);
}

/* Inspect mini sidebridge */
.inspect-stage {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: 320px;
}

.inspect-sb {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  padding: 10px 11px 12px;
  color: var(--sb-text);
  background: var(--sb-bg);
  border: 1px solid var(--sb-border);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  font-family: var(--app-display);
}

.inspect-sb-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 18px;
  color: var(--sb-text-2);
  font-family: var(--app-mono);
  font-size: 9px;
}

.inspect-sb-spacer { flex: 1; }
.inspect-sb-leaf { color: var(--green); }
.inspect-sb-shelf { color: var(--sb-text-3); }

.inspect-sb-top {
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sb-border);
}

.inspect-sb-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inspect-sb-source {
  color: var(--green);
  font-family: var(--app-mono);
  font-size: 11px;
}

.inspect-sb-title strong {
  color: var(--sb-text);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.inspect-sb-meta {
  color: var(--sb-text-2);
  font-family: var(--app-mono);
  font-size: 9px;
}

.inspect-sb-branch {
  color: var(--amber);
  font-family: var(--app-mono);
  font-size: 9px;
}

.inspect-sb-module {
  display: grid;
  gap: 5px;
}

.inspect-sb-mod-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inspect-sb-mod-header > .inspect-sb-chev { color: var(--sb-text-3); }

.inspect-sb-mod-header small {
  margin-left: auto;
  color: var(--amber);
  font-family: var(--app-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.inspect-sb-files,
.inspect-sb-history,
.inspect-sb-skills {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inspect-row {
  display: grid;
  align-items: center;
  padding: 4px 5px;
  border-radius: 4px;
  font-family: var(--app-mono);
  font-size: 9px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.inspect-sb-files .inspect-row {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  row-gap: 3px;
}

.inspect-sb-files .inspect-row .mini-bar {
  grid-column: 1 / -1;
}

.inspect-day {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 5px 3px;
  border-bottom: 1px solid var(--sb-border);
  color: var(--sb-text-2);
  font-family: var(--app-display);
  font-size: 9px;
  font-weight: 800;
}

.inspect-day em {
  color: var(--sb-text-3);
  font-family: var(--app-mono);
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
}

.inspect-sb-skills .inspect-row {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 6px;
}

.inspect-sb-history .inspect-row {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
}

.inspect-row:hover,
.inspect-row:focus-visible,
.inspect-row.is-active {
  background: var(--sb-hover);
  outline: none;
}

.inspect-ind {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 2px;
}
.inspect-ind.status-a { background: var(--green); }
.inspect-ind.status-m { background: var(--amber); }
.inspect-ind.status-d { background: var(--red); }

.inspect-row strong {
  overflow: hidden;
  color: var(--sb-text);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspect-sb-history .inspect-row strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.inspect-history-date {
  flex: 0 0 auto;
  color: var(--sb-text-2);
  font-weight: 700;
}

.inspect-history-title {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspect-row em {
  color: var(--sb-text-3);
  font-style: normal;
}

.inspect-sb-hint {
  margin: auto 0 0;
  color: var(--sb-text-3);
  font-family: var(--app-mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Right-side popover area — frames the "popup" feel */
.inspect-viewport {
  position: relative;
  display: grid;
  align-items: stretch;
  justify-items: stretch;
  min-height: 340px;
  padding: 36px 32px 28px;
  background:
    radial-gradient(circle at 22% 18%, rgba(82, 117, 68, 0.10), transparent 16rem),
    radial-gradient(circle at 82% 90%, rgba(191, 109, 46, 0.10), transparent 14rem),
    rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(28, 30, 38, 0.10);
  border-radius: 16px;
  overflow: hidden;
}

.inspect-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(28, 30, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 30, 38, 0.026) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
  opacity: 0.7;
}

.inspect-empty,
.inspect-card {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
}

.inspect-empty {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: 0;
  max-width: 380px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.inspect-empty p {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.45;
  color: var(--paper);
}

.inspect-empty .dot {
  display: inline-block;
  margin-right: 4px;
}

/* The popup itself — floating window, dropping shadow over the backdrop */
.inspect-card {
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  width: min(100%, 460px);
  max-height: 320px;
  overflow: hidden;
  color: #eceee7;
  background:
    linear-gradient(180deg, rgba(48, 52, 62, 0.985), rgba(28, 31, 39, 0.985)),
    #20232b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 22px 52px rgba(0, 0, 0, 0.42),
    0 4px 12px rgba(0, 0, 0, 0.24);
  animation: inspect-popup-in 280ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes inspect-popup-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.inspect-card[hidden] {
  display: none;
}

/* Window chrome — title bar with traffic lights + centered "Commit" */
.inspect-card-chrome {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) 28px;
  gap: 7px;
  align-items: center;
  min-height: 30px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inspect-card-chrome > .dot {
  width: 11px;
  height: 11px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18);
}

.inspect-card-chrome strong {
  grid-column: 4;
  justify-self: center;
  overflow: hidden;
  color: #d8dad4;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Commit toolbar — Copy Hash · short-hash · date · file count · +X · -Y · search */
.inspect-diff-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--app-mono);
  font-size: 10.5px;
  color: var(--sb-text-2);
}

.inspect-copy-hash {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  color: var(--sb-text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
}

.inspect-copy-hash:hover {
  background: rgba(255, 255, 255, 0.05);
}

.inspect-diff-card[data-inspect-mode="file"] .inspect-copy-hash,
.inspect-diff-card[data-inspect-mode="file"] .inspect-hash,
.inspect-diff-card[data-inspect-mode="file"] .inspect-date,
.inspect-diff-card[data-inspect-mode="file"] .inspect-fcount,
.inspect-diff-card[data-inspect-mode="file"] .inspect-diff-subject {
  display: none;
}

.inspect-hash {
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 11.5px;
  font-weight: 600;
}

.inspect-date,
.inspect-fcount {
  color: var(--sb-text-2);
  font-family: var(--app-mono);
  font-size: 10.5px;
}

.inspect-pluses { color: #c8efba; font-weight: 700; }
.inspect-minuses { color: #ffb2b2; font-weight: 700; }

.inspect-toolbar-spacer { flex: 1; }

.inspect-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  min-width: 110px;
  padding: 0 10px;
  color: var(--sb-text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
}

.inspect-search svg {
  width: 11px;
  height: 11px;
}

.inspect-search em {
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
}

/* Commit subject line under the toolbar */
.inspect-diff-subject {
  padding: 8px 14px 10px;
  color: var(--sb-text);
  background: rgba(255, 255, 255, 0.018);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
}

/* Diff body — line-numbered like git */
.inspect-card-lines {
  display: grid;
  flex: 1;
  gap: 0;
  padding: 8px 0 12px;
  overflow: hidden;
  font-family: var(--app-mono);
  font-size: 10.5px;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.16);
}

.inspect-card-lines .diff-line {
  display: grid;
  grid-template-columns: 32px 32px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  padding: 0;
  border-left: 2px solid transparent;
}

/* Line numbers — old / new (gutter) */
.inspect-card-lines .diff-line::before,
.inspect-card-lines .diff-line::after {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6px 0 0;
  color: rgba(255, 255, 255, 0.22);
  font-family: var(--app-mono);
  font-size: 9.5px;
  text-align: right;
  user-select: none;
}

.inspect-card-lines .diff-line::before {
  grid-column: 1;
  content: attr(data-old);
}

.inspect-card-lines .diff-line::after {
  grid-column: 2;
  content: attr(data-new);
}

.inspect-card-lines .diff-line > span {
  grid-column: 3;
}

/* Code cell */
.inspect-card-lines .diff-line > span {
  display: block;
  overflow: hidden;
  padding: 0 14px;
  text-overflow: ellipsis;
  white-space: pre;
}

/* Variant colors per line kind */
.inspect-card-lines .diff-line.meta > span { color: #6bc99a; }
.inspect-card-lines .diff-line.meta::before,
.inspect-card-lines .diff-line.meta::after { content: ""; }

.inspect-card-lines .diff-line.chunk {
  background: rgba(103, 132, 214, 0.10);
}
.inspect-card-lines .diff-line.chunk > span {
  color: #9fb9ff;
}
.inspect-card-lines .diff-line.chunk::before,
.inspect-card-lines .diff-line.chunk::after { content: ""; }

.inspect-card-lines .diff-line.context > span { color: #d8d9d3; }

.inspect-card-lines .diff-line.add {
  background: rgba(71, 161, 90, 0.16);
  border-left-color: rgba(163, 191, 140, 0.7);
}
.inspect-card-lines .diff-line.add > span { color: #c8efba; }

.inspect-card-lines .diff-line.remove {
  background: rgba(186, 73, 73, 0.16);
  border-left-color: rgba(191, 71, 79, 0.75);
}
.inspect-card-lines .diff-line.remove > span { color: #ffb2b2; }

.inspect-card-body {
  display: grid;
  flex: 1;
  gap: 6px;
  padding: 14px;
  overflow: hidden;
  font-family: var(--app-display);
  font-size: 12px;
  line-height: 1.45;
}

.inspect-card-body p {
  margin: 0;
  color: #d8dad4;
}

.inspect-card-body .md-heading {
  color: #f4f3eb;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.inspect-card-body .md-subheading {
  color: #cdd3da;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 8px;
}

.inspect-card-body .md-list-item {
  position: relative;
  padding-left: 14px;
  color: #d8dad4;
}

.inspect-card-body .md-list-item::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 999px;
}

.inspect-card-body .md-spacer { display: none; }

.viewer-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: 12px;
  align-items: start;
}

.viewer-card {
  position: relative;
  overflow: hidden;
  color: #eceee7;
  background:
    linear-gradient(180deg, rgba(43, 47, 57, 0.98), rgba(28, 31, 39, 0.98)),
    #20232b;
  border: 1px solid rgba(142, 151, 166, 0.52);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.docs-card {
  margin-top: 54px;
}

.viewer-card-chrome {
  display: grid;
  grid-template-columns: 9px 9px 9px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.viewer-card-chrome strong {
  overflow: hidden;
  color: #f3f3eb;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-code {
  display: grid;
  padding: 12px 0 14px;
  font-family: var(--app-mono);
  font-size: 10px;
  line-height: 1.5;
}

.viewer-code span {
  display: block;
  overflow: hidden;
  padding: 1px 14px;
  text-overflow: ellipsis;
  white-space: pre;
}

.viewer-code .meta {
  color: #9ea5b0;
}

.viewer-code .chunk {
  color: #9fb9ff;
  background: rgba(103, 132, 214, 0.12);
}

.viewer-code .add {
  color: #c8efba;
  background: rgba(71, 161, 90, 0.16);
}

.viewer-code .remove {
  color: #ffb2b2;
  background: rgba(186, 73, 73, 0.16);
}

.diff-click-target {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 12px 12px;
  padding: 8px 10px;
  color: #c6e0b6;
  background: rgba(198, 224, 182, 0.08);
  border: 1px solid rgba(198, 224, 182, 0.18);
  border-radius: 9px;
  font-family: var(--app-mono);
  font-size: 9px;
}

.diff-click-target b {
  color: #8fb5ff;
  font-weight: 800;
  white-space: nowrap;
}

.viewer-demo-cursor {
  position: absolute;
  z-index: 4;
  bottom: 22px;
  left: 36px;
  width: 22px;
  height: 30px;
  background: linear-gradient(135deg, #fff 0%, #ece6d6 100%);
  clip-path: polygon(7% 0, 7% 82%, 32% 62%, 50% 100%, 68% 92%, 51% 56%, 94% 56%);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45));
  animation: diff-cursor 5.2s ease-in-out infinite;
}

.diff-popover {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: 148px;
  padding: 10px;
  color: #eceee7;
  background: #20232b;
  border: 1px solid rgba(142, 151, 166, 0.50);
  border-radius: 11px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  animation: diff-popover 5.2s ease-in-out infinite;
}

.diff-popover strong {
  color: #c6e0b6;
  font-size: 11px;
}

.diff-popover span {
  font-family: var(--app-mono);
  font-size: 9px;
}

.diff-popover span:nth-child(2) {
  color: #c8efba;
}

.diff-popover span:nth-child(3) {
  color: #ffb2b2;
}

@keyframes diff-cursor {
  0%, 18% {
    opacity: 0;
    transform: translate3d(0, -18px, 0);
  }
  34%, 58% {
    opacity: 1;
    transform: translate3d(112px, 0, 0);
  }
  63%, 100% {
    opacity: 0;
    transform: translate3d(112px, 0, 0) scale(0.94);
  }
}

@keyframes diff-popover {
  0%, 42% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  52%, 82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

.viewer-doc {
  padding: 14px;
}

.viewer-doc h3 {
  margin-bottom: 8px;
  color: #f2f4ec;
  font-family: var(--app-display);
  font-size: 17px;
  letter-spacing: -0.04em;
}

.viewer-doc p {
  margin-bottom: 14px;
  color: #d8dad4;
  font-size: 12px;
  line-height: 1.45;
}

.viewer-doc dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
  margin: 0;
  font-family: var(--app-mono);
  font-size: 10px;
}

.viewer-doc dt {
  color: #c6e0b6;
}

.viewer-doc dd {
  margin: 0;
  color: #a6abb6;
}

.history-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

/* History window — a real Sidebridge viewer window, dark app chrome. */
.timeline-card {
  display: grid;
  gap: 0;
  padding: 10px;
  color: var(--sb-text);
  background: linear-gradient(180deg, rgba(41, 43, 54, 0.6), rgba(28, 30, 38, 0.96) 34%), #1c1e26;
  border: 1px solid rgba(242, 242, 242, 0.13);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    var(--shadow);
  transform: rotate(1.5deg);
}

.history-window-card {
  gap: 8px;
  transform: rotate(0.8deg);
}

.history-window-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 5px 6px 8px;
  border-bottom: 1px solid rgba(242, 242, 242, 0.1);
}

.history-window-top strong {
  font-size: 18px;
  letter-spacing: -0.04em;
}

.history-window-top span,
.history-window-top button {
  color: var(--sb-text-3);
  font-family: var(--mono);
  font-size: 10px;
}

.history-window-top button {
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(242, 242, 242, 0.14);
  border-radius: 999px;
}

.history-window-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.history-window-tabs span {
  padding: 4px 7px;
  color: var(--sb-text-3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(242, 242, 242, 0.09);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
}

.history-window-tabs .active {
  color: #16181f;
  background: var(--sb-accent);
  border-color: var(--sb-accent);
}

.timeline-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(242, 242, 242, 0.08);
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-row.active {
  background: rgba(163, 191, 140, 0.12);
  border-radius: 12px;
}

.timeline-row time {
  color: var(--sb-text-3);
  font-family: var(--mono);
  font-size: 10px;
}

.timeline-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
  letter-spacing: -0.04em;
}

.timeline-row.active strong {
  color: var(--sb-text-2);
}

.timeline-row p {
  margin: 0;
  color: var(--sb-text-3);
  font-family: var(--mono);
  font-size: 10px;
}

.timeline-row small {
  display: block;
  margin-top: 5px;
  color: rgba(135, 137, 141, 0.75);
  font-family: var(--mono);
  font-size: 9px;
}

.history-window-foot {
  padding: 5px 6px 2px;
  color: rgba(135, 137, 141, 0.75);
  font-family: var(--mono);
  font-size: 9px;
}

/* Pro depth — three Pro-tier features (History viewer, Compiler API, Agent-editable modules) */
.pro-depth-section {
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.pro-depth-header {
  max-width: 820px;
  margin: 0 0 clamp(32px, 4vw, 56px);
}

.pro-depth-header .eyebrow {
  margin-bottom: 14px;
}

.pro-depth-header h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.052em;
}

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

.pro-depth-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.pro-depth-card:hover {
  transform: translateY(-3px);
  border-color: rgba(28, 30, 38, 0.18);
  box-shadow: 0 18px 40px rgba(28, 30, 38, 0.10);
}

.pdc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, transparent);
  border-radius: 9px;
}

.pdc-icon svg {
  width: 20px;
  height: 20px;
}

.pro-depth-card .eyebrow {
  margin: 4px 0 -4px;
}

.pro-depth-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.pro-depth-card > p {
  margin: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
}

.pdc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: auto;
  padding-top: 12px;
}

.pdc-tags span {
  color: var(--muted);
  font-family: var(--label);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.pdc-tags span + span::before {
  content: "·";
  margin-right: 16px;
  color: rgba(242, 242, 242, 0.24);
}

@media (max-width: 1180px) {
  .pro-depth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pro-depth-grid {
    grid-template-columns: 1fr;
  }
}

.workflow-section {
  padding: 68px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-section > div:first-child {
  max-width: 720px;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.workflow-strip div {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.workflow-strip span {
  display: grid;
  width: 22px;
  height: 22px;
  margin-bottom: 18px;
  place-items: center;
  color: #f4f3f1;
  background: var(--green);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
}

.workflow-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  letter-spacing: -0.035em;
}

.workflow-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.52;
}

.scope-demo-section {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(0, 0.52fr);
  gap: clamp(22px, 5vw, 74px);
  align-items: center;
  padding: 74px 0 88px;
  border-top: 1px solid var(--line);
}

.scope-demo-section > .scope-demo-copy {
  grid-column: 2;
  grid-row: 1;
}

.scope-demo-section > .scope-stage {
  grid-column: 1;
  grid-row: 1;
}

.scope-demo-copy p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.scope-stage {
  position: relative;
  min-height: 0;
  --scope-demo-duration: 9s;
}

/* macOS desktop frame (not a window) */
.scope-desktop {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 22%, rgba(82, 117, 68, 0.22), transparent 22rem),
    radial-gradient(circle at 78% 78%, rgba(191, 109, 46, 0.18), transparent 22rem),
    linear-gradient(160deg, #2c2a25 0%, #1d1c19 56%, #15140f 100%);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 30px 64px rgba(28, 30, 38, 0.22);
}

.scope-desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.6;
  mask-image: linear-gradient(to bottom, transparent 0, black 24%, black 80%, transparent 100%);
}

/* macOS menu bar */
.scope-menubar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 14px;
  min-height: 26px;
  color: #f6f1e3;
  background:
    linear-gradient(180deg, rgba(18, 18, 16, 0.82), rgba(18, 18, 16, 0.46));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.scope-mb-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 16px;
  color: rgba(246, 241, 227, 0.94);
}

.scope-mb-apple svg {
  width: 100%;
  height: 100%;
}

.scope-menubar strong {
  font-weight: 700;
  letter-spacing: -0.012em;
}

.scope-menubar > span:not(.scope-mb-spacer):not(.scope-mb-status):not(.scope-mb-time):not(.scope-mb-date):not(.scope-mb-apple) {
  color: rgba(246, 241, 227, 0.78);
  font-weight: 400;
  font-size: 12px;
}

.scope-mb-spacer { flex: 1; }

.scope-mb-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(246, 241, 227, 0.78);
}

.scope-mb-status svg {
  display: block;
}

.scope-mb-status.battery svg {
  width: 26px;
  height: 12px;
}

.scope-mb-status.wifi svg {
  width: 16px;
  height: 12px;
}

.scope-mb-status.spotlight svg {
  width: 14px;
  height: 14px;
}

.scope-mb-status.control svg {
  width: 14px;
  height: 10px;
}

.scope-mb-date,
.scope-mb-time {
  color: rgba(246, 241, 227, 0.88);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.scope-mb-date {
  opacity: 0.78;
}

.scope-workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 178px;
  gap: 14px;
  align-items: stretch;
  min-height: 320px;
  padding: 22px 22px 70px;
}

.scope-terminal-window {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #eceee7;
  background:
    radial-gradient(circle at 24% 0%, rgba(82, 117, 68, 0.10), transparent 14rem),
    #080a08;
  border: 1px solid rgba(0, 0, 0, 0.50);
  border-radius: 9px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 14px 30px rgba(0, 0, 0, 0.42);
  animation: scope-terminal-active var(--scope-demo-duration) cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* macOS app window chrome — traffic lights + title */
.scope-app-chrome {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 7px 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.scope-chrome-window .scope-app-chrome {
  background:
    linear-gradient(180deg, #ecebe7, #dcdbd5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

/* Traffic lights stay locked on one line, anchored left */
.scope-app-chrome > .dot {
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

/* Title takes remaining space, centered */
.scope-app-chrome .scope-app-title {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 39px; /* visually balance against the 3 dots + gaps on the left */
  overflow: hidden;
  color: rgba(246, 240, 223, 0.62);
  font-family: var(--app-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-chrome-window .scope-app-chrome .scope-app-title {
  color: rgba(28, 30, 38, 0.55);
}

.scope-chrome-window .scope-app-title {
  color: rgba(28, 30, 38, 0.55);
}

.scope-pane-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
  padding: 0 10px;
  align-items: center;
  color: rgba(246, 240, 223, 0.42);
  background: transparent;
  border-bottom: 1px solid rgba(246, 240, 223, 0.06);
  font-family: var(--app-mono);
  font-size: 8.5px;
}

.scope-pane-titlebar strong {
  overflow: hidden;
  color: rgba(246, 240, 223, 0.88);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-terminal-output {
  display: grid;
  gap: 5px;
  padding: 10px 12px 5px;
  flex: 1;
}

.scope-terminal-compose {
  margin: 0 9px 8px;
  padding: 7px 9px;
  color: rgba(246, 240, 223, 0.50);
  background: rgba(246, 240, 223, 0.13);
  border-radius: 3px;
  font-family: var(--app-mono);
  font-size: 9px;
}

.scope-chrome-window {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #1c1e26;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.30);
  border-radius: 9px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 14px 30px rgba(0, 0, 0, 0.22);
  animation: scope-chrome-active var(--scope-demo-duration) cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* Chrome tabbar — traffic lights live INSIDE the tab strip (real Chrome) */
.scope-chrome-tabbar {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  padding: 7px 10px 0;
  background: #dedcd6;
  border-bottom: 1px solid rgba(28, 30, 38, 0.10);
}

.scope-chrome-traffic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 4px 0;
  align-self: center;
  margin-bottom: 0;
}

.scope-chrome-traffic .dot {
  width: 11px;
  height: 11px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

.scope-chrome-tab {
  display: flex;
  gap: 7px;
  align-items: center;
  max-width: 220px;
  min-height: 26px;
  padding: 5px 10px 5px 10px;
  color: #6b6f76;
  background: rgba(255, 255, 255, 0.0);
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.scope-chrome-tab + .scope-chrome-tab {
  margin-left: 2px;
}

.scope-chrome-tab.active {
  color: #1c1e26;
  background: #fff;
  border-color: rgba(28, 30, 38, 0.10);
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 0 #fff;
}

.scope-chrome-tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-chrome-favicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.scope-chrome-favicon svg {
  width: 100%;
  height: 100%;
  border-radius: 999px;
}

.scope-chrome-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 2px;
  color: rgba(28, 30, 38, 0.48);
  border-radius: 999px;
}

.scope-chrome-close svg {
  width: 8px;
  height: 8px;
}

.scope-chrome-newtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  align-self: center;
  color: rgba(28, 30, 38, 0.48);
  border-radius: 999px;
}

.scope-chrome-newtab svg {
  width: 11px;
  height: 11px;
}

.scope-chrome-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  background: #fff;
  border-bottom: 1px solid rgba(28, 30, 38, 0.06);
}

.scope-chrome-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #3a3d44;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.scope-chrome-nav.dim {
  color: rgba(58, 61, 68, 0.36);
}

.scope-chrome-nav svg {
  width: 14px;
  height: 14px;
}

.scope-chrome-address {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  min-height: 26px;
  padding: 0 12px;
  color: #545860;
  background: #f1efeb;
  border: 1px solid rgba(28, 30, 38, 0.06);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
}

.scope-chrome-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #545860;
  flex-shrink: 0;
}

.scope-chrome-lock svg {
  width: 9px;
  height: 11px;
}

.scope-chrome-address em {
  color: #1c1e26;
  font-style: normal;
  font-weight: 600;
}

.scope-chrome-path {
  color: #8b8e94;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-chrome-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 2px;
  color: #f4f3f1;
  background: linear-gradient(135deg, var(--green), #4f7d29);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

/* Bookmarks bar */
.scope-chrome-bookmarks {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 10px;
  background: #fff;
  border-bottom: 1px solid rgba(28, 30, 38, 0.06);
  overflow: hidden;
}

.scope-chrome-bookmarks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  color: #545860;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.scope-chrome-bookmarks .bm {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.scope-chrome-bookmarks .bm-gh { background: #1c1e26; }
.scope-chrome-bookmarks .bm-lr { background: linear-gradient(135deg, #5e6ad2, #8b8ef3); }
.scope-chrome-bookmarks .bm-nt { background: #1c1e26; border-radius: 1px; }
.scope-chrome-bookmarks .bm-ds { background: #5865f2; }
.scope-chrome-bookmarks .bm-fg { background: linear-gradient(135deg, #f24e1e, #a259ff); }

/* Page body */
.scope-chrome-body {
  flex: 1;
  padding: 18px 22px 22px;
  background: #fff;
}

.scope-chrome-kicker {
  margin: 0 0 6px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.scope-chrome-body b {
  display: block;
  margin-bottom: 8px;
  color: #1c1e26;
  font-family: var(--display);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.05;
}

.scope-chrome-body p {
  margin: 0 0 8px;
  color: #545860;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.45;
}

/* Mini Sidebridge panel — modeled on hero panel */
.scope-sb-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding: 8px 9px 10px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
  animation: scope-sidebar var(--scope-demo-duration) cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.scope-sb-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 16px;
  color: var(--sb-text-2);
  font-family: var(--app-mono);
  font-size: 8px;
}

.scope-sb-spacer {
  flex: 1;
}

.scope-sb-leaf {
  color: var(--green);
}

.scope-sb-shelf {
  color: var(--sb-text-3);
}

.scope-sb-top {
  display: grid;
  gap: 2px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--sb-border);
}

.scope-sb-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scope-sb-title strong {
  color: var(--sb-text);
  font-family: var(--app-display);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.scope-sb-source {
  color: var(--green);
  font-family: var(--app-mono);
  font-size: 10px;
}

.scope-sb-meta {
  color: var(--sb-text-2);
  font-family: var(--app-mono);
  font-size: 7.5px;
}

.scope-sb-branch {
  color: var(--amber);
  font-family: var(--app-mono);
  font-size: 7.5px;
}

.scope-sb-tabs {
  display: flex;
  gap: 3px;
}

.scope-sb-tabs span {
  flex: 1;
  height: 12px;
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: 3px;
}

.scope-sb-tabs span.active {
  background: var(--sb-hover);
  border-color: rgba(82, 117, 68, 0.6);
  box-shadow: inset 0 0 0 1px rgba(82, 117, 68, 0.3);
}

.scope-sb-module {
  display: grid;
  gap: 4px;
}

.scope-sb-mod-header {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--sb-text);
  font-family: var(--app-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scope-sb-chev {
  color: var(--sb-text-3);
}

.scope-sb-mod-header small {
  margin-left: auto;
  color: var(--amber);
  font-family: var(--app-mono);
  font-size: 7.5px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.scope-sb-module p {
  margin: 0;
  color: var(--sb-text-2);
  font-family: var(--app-mono);
  font-size: 8px;
}

.scope-sb-module ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-sb-module li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 5px;
  row-gap: 2px;
  align-items: center;
  padding: 2px 2px 3px;
  font-family: var(--app-mono);
  font-size: 8px;
}

.scope-sb-module li .mini-bar {
  grid-column: 1 / -1;
  height: 2.5px;
}

.scope-sb-module li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.025);
}

.scope-sb-module li .m,
.scope-sb-module li .a {
  display: grid;
  width: 11px;
  height: 11px;
  place-items: center;
  border-radius: 2px;
  font-family: var(--app-mono);
  font-size: 7px;
  font-weight: 800;
}

.scope-sb-module li .m {
  color: var(--amber);
  background: rgba(191, 109, 46, 0.18);
}

.scope-sb-module li .a {
  color: var(--green);
  background: rgba(82, 117, 68, 0.25);
}

.scope-sb-module li strong {
  overflow: hidden;
  color: var(--sb-text);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-sb-module li em {
  color: var(--sb-text-3);
  font-style: normal;
}

.scope-sb-focus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: auto;
}

.scope-sb-focus span {
  display: grid;
  gap: 1px;
  align-content: center;
  justify-items: center;
  padding: 4px 2px;
  color: var(--sb-text-2);
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: 4px;
  font-family: var(--app-mono);
  font-size: 7px;
}

.scope-sb-focus b {
  color: var(--sb-text);
  font-size: 10px;
  font-weight: 800;
}

.scope-sb-tab {
  position: absolute;
  top: 15%;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 26px;
  height: 116px;
  padding: 9px 0;
  color: var(--sb-text-2);
  background: var(--sb-bg);
  border: 1px solid var(--sb-border);
  border-right: 0;
  border-radius: 9px 0 0 9px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.40);
  opacity: 0;
  transform: translateX(40px);
  animation: scope-tab var(--scope-demo-duration) ease-in-out infinite;
}

.scope-sb-tab-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sb-text-3);
}

.scope-sb-tab-chev svg {
  width: 8px;
  height: 12px;
}

.scope-sb-tab-handle {
  width: 4px;
  height: 38px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  opacity: 0.85;
}

.scope-sb-tab-resize {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sb-text-3);
  opacity: 0.7;
}

.scope-sb-tab-resize svg {
  width: 8px;
  height: 12px;
}

/* macOS dock */
.scope-dock {
  position: absolute;
  left: 50%;
  bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 7px 10px;
  background: rgba(60, 56, 48, 0.32);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 -1px 0 rgba(0, 0, 0, 0.18) inset,
    0 14px 32px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
  z-index: 3;
}

.scope-dock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 6px 14px rgba(0, 0, 0, 0.36);
  transition: transform 220ms cubic-bezier(0.3, 1.4, 0.5, 1);
  overflow: hidden;
}

.scope-dock-icon svg {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.scope-dock-icon:hover {
  transform: translateY(-5px) scale(1.1);
}

/* (legacy ::after content removed — icons now use inner SVG) */

.scope-demo-cursor {
  position: absolute;
  top: 110px;
  left: 120px;
  width: 20px;
  height: 28px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.42));
  animation: scope-cursor var(--scope-demo-duration) ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

.scope-demo-cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff 0%, #ece6d6 100%);
  clip-path: polygon(7% 0, 7% 82%, 32% 62%, 50% 100%, 68% 92%, 51% 56%, 94% 56%);
}

/* Click ripple — a green ring that pulses out at the cursor tip on click */
.scope-demo-cursor::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(163, 191, 140, 0.95);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: scope-cursor-click var(--scope-demo-duration) ease-out infinite;
  pointer-events: none;
}

/* Tight click sequence:
   0–28%    terminal focused (press 20–24%)
   28–46%   cursor travels to chrome
   50%      CLICK lands — chrome dips DOWN, sidebar starts sliding right NOW
   50–58%   sidebar slides off-screen FAST (400ms)
   58–64%   tab slides in QUICK (300ms), chrome rises to focused
   64–100%  hold                                                          */

@keyframes scope-cursor {
  0%, 14% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  20%, 24% {
    transform: translate3d(0, 0, 0) scale(0.88);
  }
  28% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  46% {
    transform: translate3d(200px, 90px, 0) scale(1);
  }
  50%, 54% {
    transform: translate3d(200px, 90px, 0) scale(0.84);
  }
  58%, 100% {
    transform: translate3d(200px, 90px, 0) scale(1);
  }
}

@keyframes scope-cursor-click {
  0%, 48% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6);
  }
  56% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.4);
  }
  58%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
}

@keyframes scope-terminal-active {
  0%, 30% {
    box-shadow: 0 12px 30px rgba(28, 30, 38, 0.22), 0 0 0 1.5px rgba(163, 191, 140, 0.55);
  }
  36%, 100% {
    box-shadow: 0 6px 18px rgba(28, 30, 38, 0.14);
  }
}

/* Chrome — dips DOWN only when cursor clicks it */
@keyframes scope-chrome-active {
  0%, 48% {
    box-shadow: 0 6px 18px rgba(28, 30, 38, 0.10);
    transform: scale(1) translateY(0);
  }
  50%, 54% {
    box-shadow: 0 2px 8px rgba(28, 30, 38, 0.20);
    transform: scale(0.985) translateY(2px);
  }
  60%, 100% {
    box-shadow: 0 16px 38px rgba(28, 30, 38, 0.22), 0 0 0 1.5px rgba(163, 191, 140, 0.45);
    transform: scale(1) translateY(0);
  }
}

/* Sidebar — visible up to the click frame, then SNAPS right fast */
@keyframes scope-sidebar {
  0%, 50% {
    opacity: 1;
    transform: translateX(0);
  }
  58%, 100% {
    opacity: 0;
    transform: translateX(220px);
  }
}

/* Tab — appears QUICKLY right after the sidebar leaves */
@keyframes scope-tab {
  0%, 58% {
    opacity: 0;
    transform: translateX(40px);
  }
  64%, 100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Menubar app name swap: Ghostty → Chrome at click moment */
.scope-mb-app {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 56px;
  height: 16px;
}

.scope-mb-name {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  line-height: 16px;
}

.scope-mb-ghostty {
  animation: scope-mb-ghostty var(--scope-demo-duration) cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.scope-mb-chrome {
  animation: scope-mb-chrome var(--scope-demo-duration) cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scope-mb-ghostty {
  0%, 50% { opacity: 1; }
  54%, 100% { opacity: 0; }
}

@keyframes scope-mb-chrome {
  0%, 50% { opacity: 0; }
  54%, 100% { opacity: 1; }
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.pricing-copy {
  position: static;
  max-width: 720px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  justify-self: center;
  width: min(100%, 944px);
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(28, 30, 38, 0.10);
  border-radius: 20px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: rgba(28, 30, 38, 0.18);
  box-shadow: 0 24px 48px rgba(28, 30, 38, 0.10);
}

.price-card.pro-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(163, 191, 140, 0.40);
  box-shadow: 0 18px 44px rgba(163, 191, 140, 0.10);
}

.price-card.pro-card:hover {
  border-color: rgba(163, 191, 140, 0.55);
  box-shadow: 0 28px 60px rgba(163, 191, 140, 0.18);
}

.price-card.pro-card::after {
  content: "Recommended";
  position: absolute;
  top: -11px;
  right: 28px;
  padding: 5px 12px;
  color: #f4f3f1;
  background: var(--green);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(163, 191, 140, 0.32);
}

.price-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(28, 30, 38, 0.10);
}

.pro-card .price-card-head {
  border-bottom-color: rgba(163, 191, 140, 0.22);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
  font-family: var(--display);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.price-currency {
  font-size: clamp(1.4rem, 1.6vw, 1.7rem);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.price-amount strong {
  font-size: clamp(2.7rem, 4vw, 3.55rem);
  font-stretch: 118%;
  font-weight: 680;
}

.pro-card .price-amount strong {
  color: var(--green);
}

.price-amount em {
  align-self: flex-end;
  margin-bottom: 6px;
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-card-cta {
  display: flex;
  margin-top: auto;
  padding-top: 18px;
}

.price-card-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(28, 30, 38, 0.20);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.price-card-cta a:hover {
  background: var(--ink);
  color: #f4f3f1;
  border-color: var(--ink);
  box-shadow: 0 10px 24px rgba(28, 30, 38, 0.18);
}

.pro-card .price-card-cta a {
  color: #f4f3f1;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 8px 20px rgba(163, 191, 140, 0.28);
}

.pro-card .price-card-cta a:hover {
  background: #4f7d29;
  border-color: #4f7d29;
  box-shadow: 0 14px 30px rgba(163, 191, 140, 0.36);
}

.plan-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0;
  padding: 0 12px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(242, 242, 242, 0.16);
  border-radius: 999px;
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.pro-card .plan-label {
  color: #16181f;
  background: var(--green);
  border-color: var(--green);
}

.price-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.24rem, 1.55vw, 1.5rem);
  letter-spacing: -0.035em;
}

.price-card p {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
}

.price-card ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.35;
}

.price-card li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--green);
  -webkit-mask:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.4l2.6 2.4L10 3.6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.4l2.6 2.4L10 3.6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

.final-cta {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 20px;
}

/* Footer is the page's tmux status bar. */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 24px 0 0;
  padding: 9px clamp(16px, 3vw, 32px);
  color: var(--sb-text-3);
  background: #16181f;
  border-top: 1px solid var(--sb-border);
  font-family: var(--label);
  font-size: 11px;
}

.site-footer .foot-session {
  padding: 2px 7px;
  color: #16181f;
  background: var(--green);
  border-radius: 3px;
  font-weight: 700;
}

.site-footer .foot-note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer .foot-right {
  color: var(--sb-text-2);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .site-footer .foot-note {
    display: none;
  }
}

@media (max-width: 1180px) {
  .hero.section-shell {
    width: min(1180px, calc(100% - 32px));
  }

  .hero,
  .surface-section,
  .viewer-section,
  .history-section,
  .pricing-section {
    grid-template-columns: 1fr;
  }

  .surface-section > .surface-intro,
  .surface-section > .proof-flow,
  .scope-demo-section > .scope-demo-copy,
  .scope-demo-section > .scope-stage,
  .pricing-section > .pricing-copy,
  .pricing-section > .pricing-cards {
    grid-column: auto;
    grid-row: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .surface-intro {
    position: static;
  }

  .pricing-copy {
    position: static;
  }

  .workbench {
    grid-template-columns: minmax(460px, 720px) 325px;
    gap: 22px;
    justify-content: start;
    margin-top: 0;
  }

  .terminal-stack {
    justify-self: start;
    width: 100%;
  }

  .terminal-grid {
    height: 620px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sidebridge-panel {
    justify-self: center;
    margin-top: 0;
    margin-left: 12px;
  }

  .diff-viewer,
  .markdown-viewer {
    position: fixed;
    top: auto;
    right: 16px;
    bottom: 18px;
    left: 16px;
    width: auto;
    max-height: min(420px, 72vh);
  }

  .panel-top {
    grid-column: 1 / -1;
  }

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

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

  .viewer-copy {
    max-width: 760px;
  }

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

  .scope-stage {
    min-height: 300px;
  }

  .feature-inventory-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

@media (max-width: 760px) {
  .section-shell,
  .hero.section-shell {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    position: static;
    width: min(100% - 20px, 1180px);
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.65rem);
  }

  .hero-lede {
    font-size: clamp(0.92rem, 4vw, 1.04rem);
    line-height: 1.4;
  }

  .hero {
    padding-top: 36px;
  }

  .workbench {
    grid-template-columns: minmax(96px, 1fr) minmax(184px, 42vw);
    gap: 8px;
    align-items: start;
    justify-content: start;
    padding: 0;
    border-radius: 0;
  }

  .terminal-grid {
    height: 760px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 6px;
    min-height: 0;
  }

  .pane,
  .codex-window-pane {
    min-height: 0;
    height: auto;
    border-radius: 9px;
  }

  .terminal-output {
    padding: 6px 7px 2px;
  }

  .terminal-line,
  .claude-tool-row,
  .claude-diff,
  .claude-search,
  .claude-auto,
  .codex-footer {
    font-size: 7px;
  }

  .claude-prompt {
    font-size: 11px;
  }

  .codex-scroll {
    padding: 6px 7px 5px;
    font-size: 7px;
  }

  .sidebridge-panel {
    width: 100%;
    height: 760px;
    min-height: 760px;
    margin-left: 0;
    padding: 6px 8px 10px;
    border-radius: 7px;
    font-size: 10px;
  }

  .panel-toolbar {
    min-height: 28px;
  }

  .panel-top {
    padding: 7px 0 7px;
  }

  .source-square {
    width: 14px;
    height: 13px;
    font-size: 9px;
  }

  .panel-top h2 {
    font-size: 16px;
  }

  .meta-line,
  .branch-line,
  .path-line {
    margin-top: 4px;
    font-size: 9px;
  }

  .panel-tabs {
    gap: 4px;
    padding: 7px 0 9px;
  }

  .panel-tabs button {
    height: 23px;
    border-radius: 5px;
  }

  .tab-icon {
    width: 13px;
    height: 13px;
  }

  .native-module {
    margin-top: 10px;
    padding: 0;
  }

  .module-header strong {
    font-size: 10px;
  }

  .module-header small {
    max-width: 112px;
    font-size: 8px;
  }

  .chevron {
    font-size: 9px;
  }

  .status-pill {
    top: 24px;
    padding: 2px 5px;
    font-size: 8px;
  }

  .git-module p {
    margin-top: 25px;
    font-size: 10px;
  }

  .git-files li {
    grid-template-columns: minmax(0, 1fr) auto 8px;
    min-height: 18px;
    padding: 2px;
    font-size: 8px;
  }

  .git-files .git-indicator,
  .git-files i {
    width: 7px;
    height: 7px;
  }

  .git-path small,
  .git-path strong,
  .git-stat {
    font-size: 8px;
  }

  .focus-module {
    margin-top: 14px;
  }

  .focus-header small {
    max-width: 100px;
  }

  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    margin-top: 8px;
  }

  .focus-grid button {
    min-height: 32px;
    padding: 4px 5px;
    border-radius: 5px;
  }

  .focus-grid span {
    font-size: 8px;
  }

  .focus-grid b {
    font-size: 10px;
  }

  .recent-list {
    gap: 4px;
    max-height: 126px;
  }

  .history-module ul {
    height: 74px;
    margin-right: 0;
  }

  .history-module li {
    padding: 1px 3px;
    font-size: 8px;
  }

  .collapsed-module {
    min-height: 22px;
    font-size: 9px;
  }

  .surface-product-demo {
    grid-template-columns: 1fr;
  }

  .scope-demo-section {
    grid-template-columns: 1fr;
    padding: 52px 0 64px;
  }

  .scope-workspace {
    grid-template-columns: minmax(0, 1fr) 124px;
    grid-template-rows: auto auto;
    min-height: 0;
    padding: 12px;
    gap: 10px;
  }

  .scope-terminal-window {
    grid-column: 1;
    grid-row: 1;
    min-height: 160px;
  }

  .scope-chrome-window {
    grid-column: 1;
    grid-row: 2;
    min-height: 160px;
  }

  .scope-sb-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 7px;
    gap: 6px;
  }

  .scope-terminal-output {
    gap: 4px;
    padding: 7px 8px 4px;
  }

  .scope-pane-titlebar,
  .scope-terminal-compose {
    font-size: 7px;
  }

  .scope-terminal-compose {
    margin: 0 7px 6px;
  }

  .scope-chrome-tabs {
    padding: 4px 8px 0;
  }

  .scope-chrome-toolbar {
    min-height: 24px;
    padding: 0 8px;
  }

  .scope-chrome-address {
    font-size: 7px;
  }

  .scope-chrome-body {
    padding: 8px 10px 12px;
  }

  .scope-chrome-body b {
    margin-bottom: 4px;
    font-size: 13px;
  }

  .scope-chrome-body p {
    font-size: 8px;
    line-height: 1.35;
  }

  .scope-sb-title strong {
    font-size: 11px;
  }

  .scope-sb-meta,
  .scope-sb-branch {
    font-size: 6.5px;
  }

  .scope-sb-mod-header,
  .scope-sb-module p,
  .scope-sb-module li {
    font-size: 7px;
  }

  .scope-sb-focus span {
    font-size: 6px;
  }

  .scope-sb-focus b {
    font-size: 9px;
  }

  .scope-sb-tab {
    width: 22px;
    height: 92px;
    padding: 7px 0;
  }

  .scope-sb-tab-handle {
    width: 3px;
    height: 28px;
  }

  .scope-sb-tab-chev svg,
  .scope-sb-tab-resize svg {
    width: 7px;
    height: 10px;
  }

  .diff-viewer-lines,
  .markdown-viewer-body {
    max-height: 300px;
    font-size: 9px;
  }

  .capability-grid,
  .proof-flow,
  .viewer-showcase,
  .trust-strip,
  .feature-inventory-grid,
  .workflow-strip,
  .inspect-stage {
    grid-template-columns: 1fr;
  }

  .inspect-stage {
    justify-items: stretch;
    gap: 16px;
  }

  /* Keep the mini sidebar sidebar-shaped on mobile, not stretched full-bleed */
  .inspect-sb {
    width: min(100%, 280px);
    margin: 0 auto;
  }

  .inspect-viewport {
    min-height: 220px;
    padding: 18px 14px;
  }

  /* macOS desktop mockup must fit the viewport — clip + scale down */
  .scope-stage {
    margin: 0 -8px;
  }

  .scope-desktop {
    border-radius: 10px;
    overflow: hidden;
  }

  .scope-menubar {
    gap: 6px;
    padding: 3px 8px;
    font-size: 9px;
  }

  /* Drop most of the menu items on mobile — keep only Apple + app name + status */
  .scope-menubar > span:not(.scope-mb-spacer):not(.scope-mb-status):not(.scope-mb-time):not(.scope-mb-date):not(.scope-mb-apple) {
    display: none;
  }

  .scope-mb-date {
    display: none;
  }

  .scope-mb-status.battery svg { width: 18px; height: 8px; }
  .scope-mb-status.wifi svg { width: 11px; height: 8px; }
  .scope-mb-status.spotlight svg,
  .scope-mb-status.control svg { width: 10px; height: 8px; }
  .scope-mb-time { font-size: 9px; }

  /* Dock — shrink icons + tighter padding so it doesn't push past the desktop edge */
  .scope-dock {
    gap: 4px;
    padding: 4px 6px;
    border-radius: 12px;
  }

  .scope-dock-icon,
  .scope-dock-icon svg {
    width: 22px;
    height: 22px;
    border-radius: 5px;
  }

  .capability,
  .proof-step,
  .proof-flow > .proof-step:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "text"
      "visual";
    gap: 16px;
    padding: 32px 0 26px;
  }

  .proof-step > .proof-meta,
  .proof-flow > .proof-step:nth-child(even) > .proof-meta {
    grid-area: meta;
    order: 0;
  }

  .proof-step > .proof-text,
  .proof-flow > .proof-step:nth-child(even) > .proof-text {
    grid-area: text;
    order: 0;
  }

  .proof-step > .proof-visual,
  .proof-flow > .proof-step:nth-child(even) > .proof-visual {
    grid-area: visual;
    order: 0;
    max-width: 460px;
    margin-top: 6px;
  }

  .proof-num {
    font-size: clamp(3.6rem, 14vw, 5.4rem);
  }

  .proof-step > .proof-text > h3 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .proof-visual {
    min-height: 240px;
    padding: 22px;
  }

  .docs-card {
    margin-top: 0;
  }

  .capability.large,
  .proof-step.focus-step,
  .proof-step.return-step {
    grid-column: span 1;
  }

  .workflow-strip {
    padding-top: 20px;
    gap: 22px;
  }

  .pricing-cards {
    gap: 18px;
  }

  .timeline-card {
    transform: none;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .workbench {
    grid-template-columns: minmax(96px, 1fr) minmax(172px, 44vw);
  }

  h1 {
    font-size: clamp(1.65rem, 7.6vw, 2.2rem);
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-actions {
    gap: 6px;
  }

  .primary-link,
  .secondary-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 9px;
  }

  .sidebridge-panel {
    padding-inline: 7px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: clamp(1.48rem, 7.1vw, 1.92rem);
    letter-spacing: -0.045em;
  }

  .eyebrow {
    font-size: 8px;
  }

  .hero-lede {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pane.active,
  .sidebridge-panel,
  .timeline-card {
    animation: settle 520ms ease both;
  }

  @keyframes settle {
    from {
      opacity: 0.82;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .timeline-card {
    animation-name: settle-tilt;
  }

  @keyframes settle-tilt {
    from {
      opacity: 0.82;
      transform: translateY(8px) rotate(1.5deg);
    }
    to {
      opacity: 1;
      transform: translateY(0) rotate(1.5deg);
    }
  }
}

/* ============================================================
   Dark-surface patches for components whose base rules carried
   light backgrounds. The page is dark-only; these are defaults.
   ============================================================ */

/* Surfaces that hardcoded white-on-cream backgrounds — flip to translucent dark */
.price-card,
.stack-app,
.pro-depth-card,
.theme-card,
.inspect-empty,
.inspect-viewport {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
}

.price-card:hover,
.stack-app:hover,
.pro-depth-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.price-card.pro-card {
  background:
    radial-gradient(circle at 86% 8%, rgba(163, 191, 140, 0.18), transparent 18rem),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(163, 191, 140, 0.36);
}

.stack-app-codex {
  background:
    radial-gradient(circle at 80% 0%, rgba(163, 191, 140, 0.16), transparent 16rem),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(163, 191, 140, 0.34);
}

/* CTAs / hover states that used dark ink-on-cream — flip */
.price-card-cta a:hover {
  background: var(--ink);
  color: #1c1e26;
  border-color: var(--ink);
}

.secondary-link {
  background: rgba(255, 255, 255, 0.06);
}

.secondary-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.primary-link {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 10px 24px rgba(163, 191, 140, 0.20);
}

/* Section dividers / dotted backdrops */
.inspect-viewport {
  background:
    radial-gradient(circle at 22% 18%, rgba(163, 191, 140, 0.08), transparent 16rem),
    radial-gradient(circle at 82% 90%, rgba(209, 135, 112, 0.08), transparent 14rem),
    rgba(255, 255, 255, 0.03);
}

.inspect-viewport::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
}

/* Loss-list left rule + italic — keep amber accent on dark */
.loss-list {
  border-left-color: rgba(209, 135, 112, 0.45);
}

/* Workflow step borders */
.workflow-section {
  border-top-color: var(--line);
  border-bottom-color: var(--line);
}

/* Pro card "Recommended" pill — slightly brighter in dark */
.price-card.pro-card::after {
  box-shadow: 0 8px 18px rgba(163, 191, 140, 0.32);
}

/* Theme cards keep their per-theme palette — they're SUPPOSED to look like each theme,
   regardless of page mode. Only their outer chrome flips. */

/* ============================================================
   Mechanic section — the "how it works" beat between the hero
   and the trust strip. One sentence the reader can't miss.
   ============================================================ */
.mechanic-section {
  padding: clamp(24px, 4vw, 40px) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.mechanic-section .eyebrow {
  margin-bottom: 14px;
}

.mechanic-section h2 {
  max-width: 880px;
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 3.2vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.052em;
}

.mechanic-body {
  max-width: 700px;
  margin: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.55;
  letter-spacing: 0;
}

.mechanic-body code {
  padding: 1px 6px;
  color: var(--ink);
  background: var(--bg-2);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.92em;
  font-style: normal;
  font-weight: 600;
}

.mechanic-body code {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   Focus rail — the page's own Sidebridge. A floating right-edge
   mini panel that follows reading focus the way the app follows
   pane focus. Tucks to a slim tab, exactly like the app.
   Uses the --sb-* app tokens: it is a piece of the product.
   ============================================================ */
.focus-rail {
  position: fixed;
  z-index: 30;
  top: 50%;
  right: 0;
  display: none;
  transform: translateY(-50%);
  font-family: var(--app-display);
}

@media (min-width: 1100px) {
  .focus-rail {
    display: block;
  }
}

.focus-rail-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: 216px;
  margin-right: 14px;
  padding: 12px 14px 14px;
  color: var(--sb-text);
  background: linear-gradient(180deg, rgba(41, 43, 54, 0.55), rgba(28, 30, 38, 0.92) 30%), #1c1e26;
  border: 1px solid rgba(242, 242, 242, 0.14);
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 60px rgba(0, 0, 0, 0.55);
  transition: transform 380ms cubic-bezier(0.32, 0.72, 0.28, 1), opacity 320ms ease;
}

.focus-rail.is-tucked .focus-rail-panel {
  pointer-events: none;
  opacity: 0;
  transform: translateX(calc(100% + 18px));
}

.focus-rail-tab {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  padding: 14px 0;
  color: var(--sb-text-2);
  background: #1c1e26;
  border: 1px solid rgba(242, 242, 242, 0.14);
  border-right: 0;
  border-radius: 9px 0 0 9px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(100%, -50%);
  transition: transform 380ms cubic-bezier(0.32, 0.72, 0.28, 1), opacity 320ms ease, color 160ms ease;
}

.focus-rail-tab span {
  font-family: var(--label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.focus-rail-tab:hover {
  color: var(--sb-accent);
}

.focus-rail.is-tucked .focus-rail-tab {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.rail-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rail-dot {
  width: 7px;
  height: 7px;
  background: var(--sb-accent);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(163, 191, 140, 0.16);
}

.rail-head strong {
  flex: 1;
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.rail-tuck {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: var(--sb-text-3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease;
}

.rail-tuck:hover {
  color: var(--sb-text);
  background: rgba(255, 255, 255, 0.07);
}

.rail-focus {
  display: grid;
  gap: 3px;
  padding: 9px 10px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(242, 242, 242, 0.08);
  border-radius: 8px;
}

.rail-focus-key {
  color: var(--sb-text-3);
  font-family: var(--label);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-focus strong {
  color: var(--sb-accent);
  font-family: var(--label);
  font-size: 13px;
  font-weight: 600;
}

.rail-focus-note {
  color: var(--sb-text-3);
  font-size: 10.5px;
  line-height: 1.35;
}

.rail-module-title,
.rail-stats-title {
  display: block;
  margin-bottom: 6px;
  color: var(--sb-text-3);
  font-family: var(--label);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list a {
  position: relative;
  display: block;
  padding: 4px 8px 4px 14px;
  color: var(--sb-text-3);
  border-radius: 5px;
  font-family: var(--label);
  font-size: 11px;
  transition: color 140ms ease, background 140ms ease;
}

.rail-list a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5px;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0.4;
  transform: translateY(-50%);
  transition: opacity 140ms ease, height 140ms ease, background 140ms ease;
}

.rail-list a:hover {
  color: var(--sb-text);
  background: rgba(255, 255, 255, 0.05);
}

.rail-list li.is-active a {
  color: var(--sb-accent);
  background: rgba(163, 191, 140, 0.1);
}

.rail-list li.is-active a::before {
  height: 12px;
  background: var(--sb-accent);
  border-radius: 2px;
  opacity: 1;
}

.rail-list li.is-visited:not(.is-active) a {
  color: var(--sb-text-2);
}

.rail-stats {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(242, 242, 242, 0.08);
}

.rail-stat {
  color: var(--sb-text-3);
  font-size: 10.5px;
}

.rail-stat b {
  color: var(--sb-text);
  font-family: var(--label);
  font-weight: 600;
}

.focus-rail :focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .focus-rail-panel,
  .focus-rail-tab {
    transition: none;
  }
}

@media print {
  .focus-rail {
    display: none;
  }
}
