:root {
  color-scheme: dark;
  --color-surface-base: #000000;
  --color-surface-raised: #0A0D0B;
  --color-surface-overlay: #10140F;
  --color-border-subtle: rgba(238, 242, 240, 0.08);
  --color-text-primary: #EEF2F0;
  --color-text-secondary: #8D9992;
  --color-text-faint: #55605A;
  --color-accent-calm: #1F7A54;
  --color-accent-reflect: #2FE28F;
  --color-accent-reflect-soft: #6FF0B4;
  --color-accent-deep: #0F6B45;
  --color-warn-amber: #D98F3D;
  --color-warn-amber-dim: #6B4D24;
  --color-mode-break: #E2543D;
  --color-mode-break-dim: #4D2018;
  --color-v2-background: #000000;
  --color-v2-grid-rail: #430000;
  --color-v2-grid-gap: #111616;
  --color-v2-surface-secondary: #1A1A1A;
  --color-v2-action-primary: #00C700;
  --color-v2-border-focus: #24FF24;
  --color-v2-card-high: #B9E234;
  --color-v2-card-medium: #EBDE28;
  --color-v2-card-low: #F1634F;
  --elevation-raised: 0 0 24px rgba(47, 226, 143, 0.10);
  --elevation-reflect: 0 0 40px rgba(47, 226, 143, 0.28);
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cabinet Grotesk", var(--font-v2-ui);
  --font-data: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --font-device: Silkscreen, "JetBrains Mono", monospace;
  --font-v2-ui: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-v2-data: "Reddit Mono", "JetBrains Mono", monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 48px;
  --space-6: 88px;
  --motion-instant: 100ms;
  --motion-fast: 150ms;
  --motion-base: 220ms;
  --motion-slow: 320ms;
  --motion-deliberate: 480ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --zm-radius-card: 8px;
  --zm-radius-control: 7px;
  --zm-space-card-padding: 24px;
  --zm-duration-fast: var(--motion-fast);
  --zm-ease-standard: var(--ease-standard);
  --page-max: 1180px;
  --side-width: clamp(256px, 22vw, 316px);
}

:root,
[data-preview-theme="dark"] {
  --zm-color-surface-card: color-mix(in srgb, var(--color-surface-raised) 88%, #132018);
  --zm-color-surface-card-hover: color-mix(in srgb, var(--color-surface-raised) 84%, #183322);
  --zm-color-border-subtle: color-mix(in srgb, var(--color-accent-calm) 18%, var(--color-border-subtle));
  --zm-color-border-interactive: color-mix(in srgb, var(--color-accent-reflect) 40%, var(--color-border-subtle));
  --zm-color-text-primary: var(--color-text-primary);
  --zm-color-text-secondary: var(--color-text-secondary);
  --zm-color-text-tertiary: var(--color-text-faint);
  --zm-color-action-primary: #DDEBE4;
  --zm-color-action-primary-hover: #F1F7F4;
  --zm-color-action-primary-pressed: #C8D9D0;
  --zm-color-focus-ring: color-mix(in srgb, var(--color-accent-reflect) 68%, transparent);
  --zm-elevation-card: 0 12px 28px rgba(0, 0, 0, 0.22);
}

:root[data-theme="light"],
[data-preview-theme="light"] {
  --zm-color-surface-card: #FBFCF8;
  --zm-color-surface-card-hover: #F3FAF1;
  --zm-color-border-subtle: #D8E3DA;
  --zm-color-border-interactive: #A8CDB7;
  --zm-color-text-primary: #17241D;
  --zm-color-text-secondary: #596B60;
  --zm-color-text-tertiary: #829087;
  --zm-color-action-primary: #173B27;
  --zm-color-action-primary-hover: #235433;
  --zm-color-action-primary-pressed: #102D1D;
  --zm-color-focus-ring: rgba(31, 122, 84, 0.38);
  --zm-elevation-card: 0 12px 24px rgba(24, 43, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-surface-base);
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  text-rendering: geometricPrecision;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface-overlay) 46%, transparent), transparent 360px),
    var(--color-surface-base);
  color: var(--color-text-primary);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

pre {
  margin: 0;
}

.boot {
  display: grid;
  min-height: 100vh;
  place-items: center;
  color: var(--color-text-secondary);
  padding: 24px;
}

.boot-card {
  display: grid;
  width: min(100%, 420px);
  gap: 12px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-raised);
  box-shadow: var(--elevation-raised);
  padding: 24px;
}

.boot-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--color-accent-reflect) 35%, var(--color-border-subtle));
  border-radius: 8px;
  color: var(--color-accent-reflect);
  font-size: 22px;
  font-weight: 850;
}

.boot-kicker {
  margin: 0;
  color: var(--color-text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.boot-card h1 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 28px;
  line-height: 34px;
}

.boot-card p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.shell {
  display: grid;
  grid-template-columns: var(--side-width) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 49px;
  container: sidebar / inline-size;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 49px);
  overflow: hidden;
  border-right: 1px solid var(--color-border-subtle);
  background: color-mix(in srgb, var(--color-surface-base) 84%, var(--color-surface-raised));
  padding: clamp(18px, 1.8vw, 24px) clamp(12px, 1.4vw, 18px);
}

.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 18px;
  scrollbar-gutter: stable;
}

.brand {
  display: grid;
  gap: 14px;
  padding: 0 6px 24px;
}

.brand-mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--color-accent-reflect) 35%, var(--color-border-subtle));
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--color-accent-reflect) 24%, transparent), transparent 58%),
    var(--color-surface-raised);
  box-shadow: var(--elevation-raised);
  color: var(--color-accent-reflect);
  font: 800 22px/1 var(--font-ui);
}

.brand h1 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 19px;
}

.global-theme {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 6px 22px;
  padding: 4px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-raised);
}

.theme-choice,
.segmented button,
.icon-button,
.copy-button,
.control-button,
.step-button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    transform var(--motion-instant) var(--ease-standard);
}

.theme-choice {
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.theme-choice[aria-pressed="true"],
.segmented button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--color-accent-reflect) 28%, var(--color-border-subtle));
  background: color-mix(in srgb, var(--color-accent-reflect) 12%, var(--color-surface-overlay));
  color: var(--color-text-primary);
}

.theme-choice:active,
.segmented button:active,
.icon-button:active,
.copy-button:active,
.control-button:active,
.step-button:active {
  transform: translateY(1px);
}

.nav-group {
  display: grid;
  gap: 5px;
  margin-bottom: 20px;
}

.nav-title {
  margin: 0 6px 6px;
  color: var(--color-text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 15px;
  text-transform: uppercase;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--color-text-secondary);
  font-size: 14px;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard);
}

.nav-link:hover,
.nav-link.active {
  background: var(--color-surface-raised);
  color: var(--color-text-primary);
}

.token-download-card {
  display: grid;
  width: min(100%, 520px);
  gap: 18px;
  padding: var(--zm-space-card-padding);
  border: 1px solid var(--zm-color-border-subtle);
  border-radius: var(--zm-radius-card);
  background: var(--zm-color-surface-card);
  box-shadow: var(--zm-elevation-card);
  color: var(--zm-color-text-primary);
  transition:
    background-color var(--zm-duration-fast) var(--zm-ease-standard),
    border-color var(--zm-duration-fast) var(--zm-ease-standard),
    box-shadow var(--zm-duration-fast) var(--zm-ease-standard),
    transform var(--zm-duration-fast) var(--zm-ease-standard);
}

.token-download-card:hover:not([data-token-card-state="disabled"]) {
  border-color: var(--zm-color-border-interactive);
  background: var(--zm-color-surface-card-hover);
  box-shadow: var(--zm-elevation-card), 0 0 0 1px color-mix(in srgb, var(--zm-color-focus-ring) 24%, transparent);
  transform: translateY(-2px);
}

.token-download-card:focus-within {
  border-color: var(--zm-color-border-interactive);
  box-shadow: var(--zm-elevation-card), 0 0 0 3px var(--zm-color-focus-ring);
}

.sidebar-cta {
  position: sticky;
  bottom: 0;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  align-self: stretch;
  margin: 12px 6px 0;
  z-index: 2;
}

.token-card-intro {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.token-card-preview {
  display: grid;
  min-height: 82px;
  gap: 9px;
  align-content: center;
  border: 1px solid var(--zm-color-border-subtle);
  border-radius: var(--zm-radius-control);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--zm-color-surface-card-hover) 72%, transparent), transparent),
    color-mix(in srgb, var(--zm-color-surface-card) 82%, var(--color-surface-base));
  padding: 11px;
}

.token-preview-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.token-preview-swatches span {
  width: 16px;
  height: 16px;
  border: 1px solid color-mix(in srgb, var(--zm-color-border-subtle) 76%, transparent);
  border-radius: 50%;
  background: var(--token-preview-color);
}

.token-preview-samples {
  align-items: end;
}

.radius-sample {
  display: block;
  width: 17px;
  height: 17px;
  border: 1px solid var(--zm-color-border-interactive);
  background: color-mix(in srgb, var(--color-accent-reflect) 12%, transparent);
}

.radius-sample.small {
  border-radius: 3px;
}

.radius-sample.large {
  border-radius: 8px;
}

.type-sample,
.code-sample {
  display: inline-grid;
  width: 24px;
  height: 20px;
  place-items: center;
  color: var(--zm-color-text-secondary);
}

.type-sample {
  font: 650 12px/1 var(--font-display);
}

.token-preview-icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent-reflect);
}

.token-card-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.token-card-eyebrow {
  margin: 0;
  color: var(--zm-color-text-tertiary);
  font: 700 11px/15px var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.token-card-title {
  margin: 0;
  color: var(--zm-color-text-primary);
  font: 650 30px/34px var(--font-display);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.token-card-description {
  margin: 0;
  color: var(--zm-color-text-secondary);
  font-size: 15px;
  line-height: 23px;
}

.token-card-formats,
.token-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.token-card-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--zm-color-border-subtle);
  border-radius: 999px;
  background: color-mix(in srgb, var(--zm-color-surface-card-hover) 56%, transparent);
  color: var(--zm-color-text-secondary);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 650;
}

.token-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.token-card-button,
.token-card-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--zm-radius-control);
  padding: 0 15px;
  font: 700 14px/18px var(--font-ui);
  transition:
    background-color var(--zm-duration-fast) var(--zm-ease-standard),
    border-color var(--zm-duration-fast) var(--zm-ease-standard),
    color var(--zm-duration-fast) var(--zm-ease-standard),
    transform var(--motion-instant) var(--ease-standard);
}

.token-card-button {
  background: var(--zm-color-action-primary);
  color: var(--color-surface-base);
  cursor: pointer;
}

.token-card-button:hover {
  background: var(--zm-color-action-primary-hover);
}

.token-card-button:active,
.token-card-secondary:active {
  transform: translateY(1px);
}

.token-card-button:disabled {
  background: color-mix(in srgb, var(--zm-color-text-tertiary) 18%, transparent);
  color: var(--zm-color-text-tertiary);
  cursor: not-allowed;
}

.token-card-secondary {
  border-color: var(--zm-color-border-subtle);
  background: transparent;
  color: var(--zm-color-text-primary);
}

.token-card-secondary:hover {
  border-color: var(--zm-color-border-interactive);
  background: color-mix(in srgb, var(--zm-color-surface-card-hover) 72%, transparent);
}

.token-card-button:focus-visible,
.token-card-secondary:focus-visible,
.token-card-meta a:focus-visible {
  outline: 3px solid var(--zm-color-focus-ring);
  outline-offset: 3px;
}

.token-card-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

[data-token-card-state="downloading"] .token-card-icon {
  animation: tokenSpin 900ms linear infinite;
}

.token-card-status {
  min-height: 18px;
  margin: -4px 0 0;
  color: var(--zm-color-text-secondary);
  font-size: 12px;
  line-height: 18px;
}

.token-card-status[data-status-tone="success"] {
  color: var(--color-accent-reflect);
}

.token-card-status[data-status-tone="error"] {
  color: var(--color-warn-amber);
}

.token-card-status[data-status-tone="disabled"] {
  color: var(--zm-color-text-tertiary);
}

.token-card-meta {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--zm-color-border-subtle);
}

.token-card-meta div {
  display: flex;
  gap: 5px;
  align-items: center;
}

.token-card-meta dt,
.token-card-meta dd {
  margin: 0;
  font-size: 12px;
  line-height: 17px;
}

.token-card-meta dt {
  color: var(--zm-color-text-tertiary);
}

.token-card-meta dd {
  color: var(--zm-color-text-secondary);
  font-family: var(--font-data);
}

.token-card-meta a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: inherit;
  text-decoration: none;
}

.token-card-meta a:hover {
  color: var(--zm-color-text-primary);
}

.token-card-meta-icon {
  width: 12px;
  height: 12px;
}

.token-download-card.compact {
  gap: 12px;
  padding: 15px;
}

.token-download-card.compact .token-card-intro {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
}

.token-download-card.compact .token-card-preview {
  min-height: 54px;
  gap: 6px;
  padding: 8px;
}

.token-download-card.compact .token-preview-swatches span {
  width: 11px;
  height: 11px;
}

.token-download-card.compact .radius-sample {
  width: 12px;
  height: 12px;
}

.token-download-card.compact .type-sample,
.token-download-card.compact .code-sample {
  width: 17px;
  height: 16px;
}

.token-download-card.compact .token-preview-icon {
  width: 14px;
  height: 14px;
}

.token-download-card.compact .token-card-title {
  font-size: 17px;
  line-height: 22px;
}

.token-download-card.compact .token-card-description {
  font-size: 12px;
  line-height: 18px;
}

.token-download-card.compact .token-card-chip {
  min-height: 23px;
  padding: 0 7px;
  font-size: 10px;
}

.token-download-card.compact .token-card-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.token-download-card.compact .token-card-button,
.token-download-card.compact .token-card-secondary {
  width: 100%;
}

.token-download-card.condensed {
  gap: 10px;
  padding: 12px;
}

.token-download-card.condensed .token-card-intro {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.token-download-card.condensed .token-card-preview {
  width: 44px;
  height: 44px;
  min-height: 38px;
  gap: 5px;
  justify-self: start;
  align-content: center;
  padding: 7px;
}

.token-download-card.condensed .token-preview-row {
  gap: 4px;
}

.token-download-card.condensed .token-preview-samples {
  display: none;
}

.token-download-card.condensed .token-preview-swatches {
  justify-content: center;
}

.token-download-card.condensed .token-card-eyebrow {
  font-size: 10px;
  line-height: 13px;
}

.token-download-card.condensed .token-card-title {
  font-size: 15px;
  line-height: 19px;
}

.token-download-card.condensed .token-card-description {
  display: none;
}

.token-download-card.condensed .token-card-formats {
  gap: 5px;
}

.token-download-card.condensed .token-card-chip:nth-child(n+4) {
  display: none;
}

.token-download-card.condensed .token-card-formats::after {
  content: "+3";
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border: 1px solid var(--zm-color-border-subtle);
  border-radius: 999px;
  color: var(--zm-color-text-tertiary);
  padding: 0 7px;
  font-size: 10px;
  font-weight: 700;
}

.token-download-card.condensed .token-card-actions {
  grid-template-columns: 1fr;
  gap: 7px;
}

.token-download-card.condensed .token-card-button,
.token-download-card.condensed .token-card-secondary {
  min-height: 44px;
  font-size: 12px;
}

.token-download-card.condensed .token-card-status {
  display: none;
}

.token-download-card.condensed[data-token-card-state="downloading"] .token-card-status,
.token-download-card.condensed[data-token-card-state="complete"] .token-card-status,
.token-download-card.condensed[data-token-card-state="error"] .token-card-status {
  display: block;
  margin-top: 0;
}

.token-download-card.condensed .token-card-meta {
  gap: 6px;
  padding-top: 10px;
}

.token-download-card.condensed .token-card-meta div:nth-child(2) {
  display: none;
}

.token-download-card.condensed .token-card-meta dt,
.token-download-card.condensed .token-card-meta dd {
  font-size: 10px;
  line-height: 14px;
}

.token-card-documentation {
  display: grid;
  justify-items: start;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface-overlay) 44%, transparent), transparent),
    var(--color-surface-base);
}

.token-card-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.token-card-state {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-raised);
}

.token-card-state-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.token-card-state-head strong {
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 750;
  text-transform: capitalize;
}

.token-card-state-head span {
  color: var(--color-text-secondary);
  font-size: 12px;
}

.main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

.mcp-runner {
  position: sticky;
  top: 0;
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--color-border-subtle);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--color-accent-calm) 10%, transparent), transparent 34%),
    color-mix(in srgb, var(--color-surface-base) 88%, var(--color-surface-raised));
  backdrop-filter: blur(14px);
  padding: 8px clamp(18px, 4vw, 56px);
}

.runner-track {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}

.runner-marquee {
  display: flex;
  width: max-content;
  gap: 28px;
  align-items: center;
  animation: runnerScroll 34s linear infinite;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 650;
  line-height: 18px;
  white-space: nowrap;
}

.runner-marquee span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.runner-marquee span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-reflect);
  box-shadow: 0 0 10px color-mix(in srgb, var(--color-accent-reflect) 24%, transparent);
}

.runner-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.runner-copy,
.runner-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-subtle);
  border-radius: 7px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 750;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    transform var(--motion-instant) var(--ease-standard);
}

.runner-copy {
  background: color-mix(in srgb, var(--color-accent-reflect) 12%, var(--color-surface-raised));
  color: var(--color-text-primary);
  cursor: pointer;
}

.runner-link {
  background: transparent;
  color: var(--color-text-secondary);
}

.runner-copy:hover,
.runner-link:hover {
  border-color: color-mix(in srgb, var(--color-accent-reflect) 28%, var(--color-border-subtle));
  background: color-mix(in srgb, var(--color-accent-reflect) 10%, var(--color-surface-raised));
  color: var(--color-text-primary);
}

.runner-copy:active,
.runner-link:active {
  transform: translateY(1px);
}

.runner-copy:focus-visible,
.runner-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-accent-reflect) 42%, transparent);
  outline-offset: 2px;
}

.main-view {
  min-width: 0;
}

.unhooked-flag {
  position: fixed;
  top: calc(49px + 18px);
  right: 22px;
  z-index: 7;
  width: clamp(300px, 24vw, 340px);
  color: var(--color-text-primary);
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.34));
  animation:
    unhookedFlagIn 620ms cubic-bezier(0.2, 1.22, 0.34, 1) 140ms both,
    unhookedFlagFloat 5200ms ease-in-out 900ms infinite;
}

.unhooked-flag[hidden] {
  display: none;
}

.unhooked-flag:hover,
.unhooked-flag:focus-within {
  animation-play-state: paused;
}

.unhooked-flag-panel {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 320px;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--color-accent-reflect) 24%, var(--color-border-subtle));
  border-radius: 12px 12px 4px 4px;
  background:
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--color-accent-reflect) 14%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface-raised) 88%, var(--color-accent-deep)), var(--color-surface-raised));
  padding: 24px 22px 34px;
  cursor: pointer;
  outline: none;
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    transform var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

.unhooked-flag-panel::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 26px;
  right: 58px;
  height: 14px;
  border: 1px solid color-mix(in srgb, var(--color-accent-reflect) 22%, var(--color-border-subtle));
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: color-mix(in srgb, var(--color-surface-overlay) 82%, var(--color-accent-calm));
}

.unhooked-flag-panel::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -17px;
  height: 18px;
  border-right: 1px solid color-mix(in srgb, var(--color-accent-reflect) 22%, var(--color-border-subtle));
  border-left: 1px solid color-mix(in srgb, var(--color-accent-reflect) 22%, var(--color-border-subtle));
  background: inherit;
  clip-path: polygon(0 0, 6% 100%, 12% 0, 18% 100%, 24% 0, 30% 100%, 36% 0, 42% 100%, 48% 0, 54% 100%, 60% 0, 66% 100%, 72% 0, 78% 100%, 84% 0, 90% 100%, 96% 0, 100% 66%, 100% 0);
}

.unhooked-flag-panel:hover {
  border-color: color-mix(in srgb, var(--color-accent-reflect) 52%, var(--color-border-subtle));
  transform: translateY(-2px) rotate(-0.7deg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent-reflect) 12%, transparent);
}

.unhooked-flag-panel:focus-visible,
.unhooked-flag-cta:focus-visible,
.unhooked-flag-close:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-accent-reflect) 44%, transparent);
  outline-offset: 3px;
}

.unhooked-flag-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.unhooked-flag-close:hover {
  border-color: var(--color-border-subtle);
  background: color-mix(in srgb, var(--color-accent-reflect) 8%, transparent);
  color: var(--color-text-primary);
}

.unhooked-flag-eyebrow,
.unhooked-flag-footer {
  margin: 0;
  color: var(--color-accent-reflect);
  font: 700 11px/15px var(--font-data);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.unhooked-flag-title {
  margin: 6px 42px 0 0;
  color: var(--color-text-primary);
  font: 700 35px/37px var(--font-display);
  letter-spacing: 0;
}

.unhooked-flag-headline {
  max-width: 245px;
  margin: 0;
  color: var(--color-text-primary);
  font: 750 22px/26px var(--font-display);
}

.unhooked-flag-copy {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 21px;
}

.unhooked-flag-cta {
  display: inline-flex;
  min-height: 44px;
  width: max-content;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-accent-reflect);
  border-radius: 8px;
  background: var(--color-accent-reflect);
  color: var(--color-surface-base);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    transform var(--motion-instant) var(--ease-standard);
}

.unhooked-flag-cta:hover {
  border-color: var(--color-accent-reflect-soft);
  background: var(--color-accent-reflect-soft);
}

.unhooked-flag-cta:active {
  transform: translateY(1px);
}

.unhooked-flag-footer {
  color: var(--color-text-faint);
}

.thesis-placeholder {
  display: grid;
  gap: 14px;
  max-width: 720px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-raised);
  box-shadow: var(--elevation-raised);
  padding: clamp(20px, 4vw, 34px);
}

.thesis-placeholder h3 {
  margin: 0;
  color: var(--color-text-primary);
  font: 700 30px/36px var(--font-display);
}

.thesis-placeholder p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 24px;
}

.page {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 48px clamp(18px, 4vw, 56px) 88px;
}

.page-header {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-bottom: 42px;
}

.eyebrow,
.caption,
.metric-label {
  color: var(--color-text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 15px;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  color: var(--color-text-primary);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

.page-lede {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 27px;
}

.section {
  margin-top: 48px;
}

.section:first-child {
  margin-top: 0;
}

.section-title {
  margin: 0 0 14px;
  color: var(--color-text-primary);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 29px;
}

.section-copy {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 24px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.info-tile,
.token-row,
.state-tile,
.component-card,
.do-dont,
.metric-card {
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-raised);
  box-shadow: var(--elevation-raised);
}

.info-tile {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.info-tile h3,
.metric-card h3 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 700;
}

.info-tile p,
.metric-card p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 21px;
}

.preview {
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-raised);
  box-shadow: var(--elevation-raised);
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.preview-title {
  display: grid;
  gap: 2px;
}

.preview-title strong {
  color: var(--color-text-primary);
  font-size: 14px;
}

.preview-title span {
  color: var(--color-text-secondary);
  font-size: 12px;
}

.preview-stage {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface-overlay) 42%, transparent), transparent),
    var(--color-surface-base);
  color: var(--color-text-primary);
  padding: clamp(18px, 3vw, 28px);
}

.preview-stage.center {
  display: grid;
  min-height: 280px;
  place-items: center;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(68px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-overlay);
}

.segmented button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.code-block {
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: #050806;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(238, 242, 240, 0.08);
}

.code-lang {
  color: #8D9992;
  font: 700 11px/15px var(--font-data);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.copy-button {
  min-height: 30px;
  padding: 0 10px;
  border-color: rgba(238, 242, 240, 0.1);
  color: #EEF2F0;
  font-size: 12px;
  font-weight: 650;
}

.copy-button:hover {
  background: rgba(47, 226, 143, 0.12);
}

.code-block pre {
  overflow-x: auto;
  padding: 16px;
}

.code-block code {
  color: #DDE6E1;
  font: 500 12px/20px var(--font-data);
}

.token-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
}

.token-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(180px, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 68px;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 14px;
}

.token-row:last-child {
  border-bottom: 0;
}

.token-name,
.mono {
  font-family: var(--font-data);
  font-size: 12px;
}

.token-name {
  color: var(--color-text-primary);
  font-weight: 700;
}

.token-value {
  color: var(--color-text-secondary);
  font-family: var(--font-data);
  font-size: 12px;
}

.token-usage {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 19px;
}

.swatch-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swatch {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 7px;
  background: var(--swatch);
}

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

.contrast-chip {
  display: grid;
  gap: 12px;
  min-height: 128px;
  padding: 14px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--sample-bg);
  color: var(--sample-fg);
}

.contrast-chip strong {
  font-size: 18px;
  line-height: 24px;
}

.contrast-chip span {
  font-family: var(--font-data);
  font-size: 12px;
}

.contrast-chip small {
  font-size: 12px;
  line-height: 17px;
}

.type-specimen {
  display: grid;
  gap: 18px;
}

.type-line {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.type-line:last-child {
  border-bottom: 0;
}

.type-sample-display {
  font-size: 34px;
  font-weight: 800;
  line-height: 40px;
}

.type-sample-heading {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.type-sample-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 23px;
}

.type-sample-caption {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 15px;
  text-transform: uppercase;
}

.type-sample-data {
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.type-sample-device {
  font-family: var(--font-device);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 38px;
}

.spacing-scale {
  display: grid;
  gap: 12px;
}

.spacing-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) minmax(160px, 1.5fr);
  gap: 16px;
  align-items: center;
}

.spacing-bar {
  width: var(--w);
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-accent-calm), var(--color-accent-reflect));
}

.layout-grid-demo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-overlay);
}

.layout-grid-demo div {
  min-height: 92px;
  border: 1px solid color-mix(in srgb, var(--color-accent-calm) 28%, var(--color-border-subtle));
  border-radius: 8px;
  background: var(--color-surface-raised);
}

.motion-lab {
  display: grid;
  gap: 18px;
}

.motion-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 650;
}

.field input,
.field select {
  width: 100%;
}

input[type="range"] {
  accent-color: var(--color-accent-reflect);
}

select {
  min-height: 38px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-raised);
  color: var(--color-text-primary);
  padding: 0 10px;
}

.control-button,
.step-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--color-accent-reflect) 24%, var(--color-border-subtle));
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-accent-reflect) 12%, var(--color-surface-raised));
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 700;
}

.motion-track {
  position: relative;
  overflow: hidden;
  min-height: 106px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--color-accent-calm) 10%, transparent) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--color-surface-overlay);
}

.motion-dot {
  width: 36px;
  height: 36px;
  margin: 34px 22px;
  border-radius: 8px;
  background: var(--color-accent-reflect);
  box-shadow: var(--elevation-reflect);
  transform: translateX(0);
}

.motion-dot.play {
  transform: translateX(calc(min(78vw, 760px) - 108px));
}

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

.compare-card {
  min-height: 180px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-overlay);
  padding: 16px;
}

.compare-card .app-icon {
  margin-top: 22px;
}

.compare-card.reflecting .zen-island {
  animation: breathPulse 4000ms ease-in-out infinite;
}

.zen-island {
  display: grid;
  width: min(100%, 320px);
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--color-accent-reflect) 18%, var(--color-border-subtle));
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-surface-raised) 94%, var(--color-accent-calm));
  box-shadow: var(--elevation-raised);
  transition:
    box-shadow var(--motion-deliberate) var(--ease-decelerate),
    border-color var(--motion-base) var(--ease-standard),
    transform var(--motion-base) var(--ease-standard);
}

.zen-island.reflect {
  border-color: color-mix(in srgb, var(--color-accent-reflect) 48%, var(--color-border-subtle));
  box-shadow: var(--elevation-reflect);
  animation: breathPulse 4000ms ease-in-out infinite;
}

.zen-island.resolved {
  transform: translateY(2px);
}

.arc {
  --progress: 0%;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--color-surface-raised) 58%, transparent 59%),
    conic-gradient(var(--color-accent-reflect) var(--progress), color-mix(in srgb, var(--color-text-faint) 20%, transparent) 0);
  transition: background var(--motion-deliberate) var(--ease-decelerate);
}

.arc span {
  color: var(--color-text-primary);
  font: 600 15px/20px var(--font-data);
}

.island-copy {
  display: grid;
  gap: 5px;
}

.island-copy strong {
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 700;
}

.island-copy span {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 19px;
}

.island-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.mini-button {
  min-height: 28px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 7px;
  background: var(--color-surface-overlay);
  color: var(--color-text-secondary);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 650;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 72px);
  gap: 18px 16px;
  justify-content: center;
}

.app-icon {
  display: grid;
  width: 72px;
  gap: 8px;
  justify-items: center;
  color: var(--color-text-secondary);
}

.app-icon-tile {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--icon-color, var(--color-accent-calm)) 22%, var(--color-surface-overlay)), var(--color-surface-raised));
  box-shadow: var(--elevation-raised);
  color: color-mix(in srgb, var(--icon-color, var(--color-accent-reflect)) 80%, var(--color-text-primary));
  font-size: 20px;
  font-weight: 800;
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    filter var(--motion-fast) var(--ease-standard),
    transform var(--motion-instant) var(--ease-standard);
}

.app-icon span {
  width: 100%;
  overflow: hidden;
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 15px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-icon.focused .app-icon-tile,
.app-icon:hover .app-icon-tile {
  border-color: color-mix(in srgb, var(--color-accent-reflect) 50%, var(--color-border-subtle));
  transform: translateY(-1px);
}

.app-icon.muted {
  color: var(--color-text-faint);
}

.app-icon.muted .app-icon-tile {
  filter: grayscale(0.84) saturate(0.55) opacity(0.72);
}

.dock {
  display: flex;
  width: min(100%, 390px);
  justify-content: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-surface-raised) 92%, var(--color-surface-overlay));
  box-shadow: var(--elevation-raised);
}

.dock .app-icon {
  width: 54px;
}

.dock .app-icon span {
  display: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.zm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 104px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 750;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    transform var(--motion-instant) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-standard);
}

.zm-button.primary {
  background: var(--color-accent-reflect);
  color: var(--color-surface-base);
}

.zm-button.secondary {
  border-color: color-mix(in srgb, var(--color-accent-reflect) 38%, var(--color-border-subtle));
  background: transparent;
  color: var(--color-text-primary);
}

.zm-button.ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.zm-button:hover,
.zm-button.focused {
  transform: translateY(-1px);
}

.zm-button.disabled {
  opacity: 0.42;
  pointer-events: none;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-weight: 700;
}

.pill {
  min-height: 28px;
  border-radius: 999px;
  gap: 7px;
  padding: 0 10px;
  background: var(--color-surface-overlay);
  font-size: 12px;
}

.pill.live {
  border-color: color-mix(in srgb, var(--color-accent-reflect) 38%, var(--color-border-subtle));
  color: var(--color-text-primary);
}

.pill.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent-reflect);
}

.badge {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-accent-calm) 22%, var(--color-surface-overlay));
  color: var(--color-text-primary);
  font: 700 11px/1 var(--font-data);
}

.component-card {
  display: grid;
  max-width: 380px;
  gap: 10px;
  padding: 18px;
}

.component-card.focused {
  border-color: color-mix(in srgb, var(--color-accent-reflect) 42%, var(--color-border-subtle));
}

.component-card.disabled {
  opacity: 0.48;
}

.component-card strong {
  font-size: 18px;
}

.component-card p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 21px;
}

.nudge-banner {
  display: grid;
  max-width: 520px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--color-warn-amber) 32%, var(--color-border-subtle));
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-warn-amber-dim) 78%, var(--color-surface-raised));
  color: var(--color-text-primary);
}

.nudge-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-warn-amber) 22%, transparent);
  color: var(--color-warn-amber);
  font-weight: 900;
}

.nudge-banner strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.nudge-banner.focused {
  border-color: color-mix(in srgb, var(--color-warn-amber) 62%, var(--color-border-subtle));
}

.nudge-banner.resolved {
  opacity: 0.56;
}

.nudge-banner span {
  color: var(--color-text-secondary);
  font-size: 13px;
}

.milestone {
  display: grid;
  gap: 10px;
  text-align: center;
}

.milestone-number {
  background: linear-gradient(115deg, var(--color-text-primary) 0%, var(--color-accent-reflect-soft) 45%, var(--color-accent-deep) 100%);
  color: transparent;
  font-size: clamp(70px, 16vw, 170px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.86;
  -webkit-background-clip: text;
  background-clip: text;
}

.milestone-label {
  color: var(--color-text-secondary);
  font-size: 18px;
  font-weight: 750;
}

.milestone.compact .milestone-number {
  font-size: 58px;
}

.milestone.compact .milestone-label {
  font-size: 13px;
}

.phone {
  display: grid;
  width: min(100%, 390px);
  min-height: 760px;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: 28px 20px 22px;
  border: 1px solid color-mix(in srgb, var(--color-text-primary) 10%, transparent);
  border-radius: 34px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface-overlay) 62%, transparent), transparent),
    var(--color-surface-base);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.v2-phone {
  position: relative;
  width: min(100%, 412px);
  height: 917px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-v2-border-focus) 18%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-v2-surface-secondary) 46%, transparent) 0 28px, transparent 28px),
    linear-gradient(90deg,
      var(--color-v2-background) 0 24px,
      var(--color-v2-grid-rail) 24px 100px,
      var(--color-v2-grid-gap) 100px 120px,
      var(--color-v2-grid-rail) 120px 196px,
      var(--color-v2-grid-gap) 196px 216px,
      var(--color-v2-grid-rail) 216px 292px,
      var(--color-v2-grid-gap) 292px 312px,
      var(--color-v2-grid-rail) 312px 388px,
      var(--color-v2-background) 388px 100%);
  color: var(--color-text-primary);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.v2-phone * {
  box-sizing: border-box;
}

.v2-top-square {
  position: absolute;
  top: 68px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--color-v2-surface-secondary);
  opacity: 0.82;
}

.v2-header {
  position: absolute;
  top: 72px;
  right: 20px;
  display: flex;
  width: 205px;
  align-items: center;
  justify-content: space-between;
}

.v2-glow-core {
  position: relative;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #79ff73 0 22%, var(--color-v2-action-primary) 23% 48%, rgba(0, 199, 0, 0.25) 50% 64%, transparent 66%),
    repeating-conic-gradient(from 0deg, rgba(36, 255, 36, 0.95) 0 4deg, transparent 4deg 9deg);
  filter: drop-shadow(0 0 14px rgba(36, 255, 36, 0.62));
}

.v2-streak {
  display: grid;
  min-width: 78px;
  height: 30px;
  place-items: center;
  border-radius: 46px;
  background: var(--color-v2-action-primary);
  color: #000;
  font: 400 11px/1 var(--font-device);
  letter-spacing: -0.08em;
  opacity: 0.9;
  text-transform: uppercase;
}

.v2-crown,
.v2-bolt {
  position: absolute;
  color: var(--color-v2-border-focus);
  font-size: 44px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(36, 255, 36, 0.55);
}

.v2-crown {
  top: 145px;
  left: 14px;
  transform: rotate(-8deg);
}

.v2-bolt {
  top: 276px;
  left: 192px;
  font-size: 46px;
  transform: rotate(8deg);
}

.v2-card-row {
  position: absolute;
  top: 154px;
  left: 20px;
  display: flex;
  gap: 17px;
}

.v2-stat-card {
  --card: var(--color-v2-card-high);
  --card-deep: var(--color-v2-action-primary);
  position: relative;
  width: 165px;
  height: 171px;
  overflow: visible;
  border: 2px solid var(--card-deep);
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card) 14%, transparent), color-mix(in srgb, var(--card) 8%, transparent)),
    color-mix(in srgb, var(--color-v2-surface-secondary) 68%, transparent);
  color: var(--color-text-primary);
  box-shadow: inset 0 0 30px -9px var(--card-deep);
}

.v2-stat-card.medium {
  --card: var(--color-v2-card-medium);
  --card-deep: #EBDE28;
}

.v2-stat-card.low {
  --card: var(--color-v2-card-low);
  --card-deep: #F1634F;
}

.v2-stat-card.inactive {
  --card: #8FA096;
  --card-deep: var(--color-text-secondary);
  border-style: dashed;
  background: var(--color-v2-surface-secondary);
  color: var(--color-text-primary);
}

.v2-card-art {
  position: absolute;
  inset: -4px 0 auto 0;
  height: 86px;
  overflow: hidden;
  border-radius: 10px 10px 50% 50%;
}

.v2-card-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -110px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.9) 0 16%, transparent 17%),
    radial-gradient(circle at 50% 50%, var(--card) 0 52%, color-mix(in srgb, var(--card-deep) 62%, var(--card)) 76%, transparent 77%);
  box-shadow: 0 22px 38px color-mix(in srgb, var(--card) 55%, transparent);
  transform: translateX(-50%);
}

.v2-stat-card.low .v2-card-art::before {
  top: -118px;
  background:
    radial-gradient(circle at 54% 52%, rgba(255, 255, 255, 0.5) 0 4%, transparent 5%),
    radial-gradient(circle at 50% 50%, #FF665B 0 56%, #D72F2A 78%, transparent 79%);
}

.v2-eyes {
  position: absolute;
  left: 50%;
  top: 14px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
  z-index: 1;
}

.v2-eye {
  position: relative;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-surface-base) 8%, #F5F5F5);
}

.v2-eye::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  left: 8px;
  top: 8px;
  border-radius: 50%;
  background: #19090B;
}

.v2-eye::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 5px;
  height: 5px;
  left: 8px;
  top: 8px;
  border-radius: 50%;
  background: #fff;
}

.v2-stat-card.medium .v2-eye::after {
  left: 3px;
}

.v2-mouth {
  position: absolute;
  left: 50%;
  top: 49px;
  width: 116px;
  height: 36px;
  border-bottom: 9px solid #22070B;
  border-radius: 0 0 90px 90px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 10px rgba(255, 255, 190, 0.75));
  z-index: 1;
}

.v2-stat-card.medium .v2-mouth {
  top: 50px;
  width: 36px;
  height: 27px;
  border: 5px solid #FFFBC0;
  border-top: 0;
  background: #130608;
  border-radius: 0 0 24px 24px;
  transform: translateX(-50%) rotate(-15deg);
}

.v2-stat-card.low .v2-eyes {
  display: none;
}

.v2-stat-card.low .v2-mouth {
  top: 50px;
  width: 56px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 -7px 0 #270609;
  transform: translateX(-50%) rotate(-12deg);
}

.v2-stat-card.low .v2-card-art::after {
  content: "";
  position: absolute;
  left: 42px;
  top: 24px;
  width: 44px;
  height: 9px;
  border-radius: 999px;
  background: #22070B;
  box-shadow: 42px 0 0 #22070B, 80px -11px 0 -3px rgba(180, 45, 50, 0.6);
}

.v2-card-details {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  display: grid;
  gap: 6px;
}

.v2-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-primary);
  font: 700 12px/14px var(--font-v2-ui);
  letter-spacing: -0.01em;
}

.v2-card-percent {
  display: inline-flex;
  min-width: 29px;
  min-height: 11px;
  align-items: center;
  justify-content: center;
  border-radius: 48px;
  background: var(--color-v2-surface-secondary);
  color: var(--color-v2-action-primary);
  font: 500 10px/11px var(--font-v2-data);
}

.v2-time {
  display: flex;
  align-items: end;
  gap: 2px;
  color: var(--color-text-primary);
  font-family: var(--font-v2-data);
}

.v2-time strong {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 34px;
}

.v2-time span {
  margin: 0 5px 4px 0;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.v2-mindfulness {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-primary);
  font: 500 10px/12px var(--font-v2-ui);
}

.v2-bars {
  display: grid;
  grid-template-columns: repeat(12, 4px);
  gap: 2px;
  align-items: end;
}

.v2-bars span {
  width: 4px;
  height: 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bar, var(--color-v2-action-primary)) var(--fill, 100%), rgba(255, 255, 255, 0.28));
  box-shadow: 0 0 6px color-mix(in srgb, var(--bar, var(--color-v2-action-primary)) 36%, transparent);
}

.v2-love {
  position: absolute;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--color-v2-border-focus);
  border-radius: 15px;
  background: var(--color-v2-surface-secondary);
  color: #1D411A;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 0 20px rgba(36, 255, 36, 0.2);
  cursor: pointer;
}

button.v2-love {
  padding: 0;
}

.v2-love.got {
  top: -8px;
  right: -8px;
}

.v2-love.react {
  right: -15px;
  bottom: -15px;
}

.v2-love::before {
  content: attr(data-count);
  position: absolute;
  top: -7px;
  right: -3px;
  display: grid;
  width: 11px;
  height: 11px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-v2-action-primary);
  color: #000;
  font: 700 9px/1 var(--font-v2-ui);
}

.v2-love.react::before {
  content: "";
  display: none;
}

.v2-love.focused {
  border-color: var(--color-v2-border-focus);
  background: color-mix(in srgb, var(--color-v2-action-primary) 18%, var(--color-v2-surface-secondary));
}

.v2-inactive-copy {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 84px;
  display: grid;
  gap: 7px;
  color: var(--color-text-primary);
}

.v2-inactive-copy strong {
  font: 800 14px/15px var(--font-v2-ui);
}

.v2-inactive-copy span {
  font: 400 10px/14px var(--font-v2-ui);
}

.v2-invite {
  min-height: 25px;
  border: 1px solid var(--color-v2-border-focus);
  border-radius: 22px;
  background: var(--color-v2-background);
  color: var(--color-v2-action-primary);
  font: 800 10px/1 var(--font-v2-ui);
}

.v2-app-grid {
  position: absolute;
  top: 415px;
  left: 40px;
  right: 40px;
  display: grid;
  grid-template-columns: repeat(4, 40px);
  justify-content: space-between;
  row-gap: 52px;
}

.v2-app-icon {
  position: relative;
  width: 44px;
  height: 46px;
}

.v2-app-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--color-v2-surface-secondary);
}

.v2-app-icon.locked::after {
  content: "▢";
  position: absolute;
  left: 9px;
  top: 8px;
  color: var(--color-v2-action-primary);
  font-size: 28px;
  line-height: 1;
}

.v2-app-icon.pinned .v2-pin {
  position: absolute;
  right: 1px;
  bottom: 0;
  color: var(--color-v2-action-primary);
  font-size: 11px;
}

.v2-app-icon.notify .v2-notify {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 11px;
  height: 11px;
  place-items: center;
  border-radius: 50%;
  background: #FF2D3A;
  color: #fff;
  font: 700 5.6px/1 var(--font-v2-ui);
}

.v2-resistance {
  position: absolute;
  left: 96px;
  right: 76px;
  bottom: 135px;
  display: grid;
  gap: 28px;
}

.v2-resistance-bars {
  display: grid;
  grid-template-columns: repeat(34, 4px);
  gap: 5px;
  align-items: end;
}

.v2-resistance-bars span {
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-text-primary) var(--on, 12%), transparent);
}

.v2-slider {
  position: relative;
  width: 94px;
  height: 6px;
  margin-left: 77px;
  background: #4051D6;
}

.v2-slider::before {
  content: "";
  position: absolute;
  left: -15px;
  top: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #F5F5F5;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.v2-footer {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 34px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 28px;
  align-items: center;
}

.v2-footer-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--color-v2-border-focus);
  font-size: 34px;
  line-height: 1;
}

.v2-search {
  display: grid;
  height: 36px;
  align-items: center;
  border: 1px solid var(--color-v2-border-focus);
  border-radius: 149px;
  color: var(--color-text-secondary);
  padding: 0 13px;
  font: 400 16px/1 var(--font-v2-ui);
  letter-spacing: -0.01em;
}

.v2-search.pressed {
  border-width: 2px;
  box-shadow: 0 4px 7px color-mix(in srgb, var(--color-v2-border-focus) 55%, transparent);
}

.v2-toast {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: min(100%, 372px);
  min-height: 65px;
  padding: 15px 19px;
  border-bottom: 1px solid var(--color-v2-border-focus);
  border-radius: 8px 8px 0 8px;
  background: var(--color-v2-surface-secondary);
}

.v2-toast-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-text-secondary);
  color: var(--color-v2-background);
  font-weight: 800;
}

.v2-toast strong {
  display: block;
  color: var(--color-v2-action-primary);
  font: 800 16px/18px var(--font-v2-ui);
  letter-spacing: -0.01em;
}

.v2-toast span {
  color: var(--color-text-secondary);
  font: 800 12px/16px var(--font-v2-ui);
  letter-spacing: -0.01em;
}

.v2-grant {
  display: inline-flex;
  min-width: 220px;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-v2-border-focus);
  border-radius: 100px;
  background: #007700;
  color: var(--color-v2-background);
  padding: 0 24px;
  font: 800 20px/1 var(--font-v2-ui);
}

.v2-resistance-orbs {
  display: flex;
  gap: clamp(28px, 10vw, 110px);
  align-items: center;
}

.v2-resistance-orb {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #F5E9C6 0 22%, transparent 23%),
    repeating-conic-gradient(from -8deg, var(--orb) 0 8deg, color-mix(in srgb, var(--orb) 34%, transparent) 8deg 16deg);
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--orb) 70%, transparent));
}

.v2-resistance-orb.low {
  --orb: var(--color-v2-action-primary);
}

.v2-resistance-orb.medium {
  --orb: var(--color-v2-card-medium);
}

.v2-resistance-orb.high {
  --orb: #D70000;
}

.stats-view {
  display: grid;
  gap: 16px;
  padding: 2px;
}

.stats-total {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-raised);
}

.stats-total strong {
  font: 700 34px/40px var(--font-data);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 8px;
  height: 118px;
  padding: 12px 10px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-raised);
}

.bar-chart span {
  min-height: 8px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--color-accent-reflect), var(--color-accent-deep));
  height: var(--h);
}

.focus-score {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-raised);
}

.focus-ring {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--color-surface-raised) 57%, transparent 58%),
    conic-gradient(var(--color-accent-reflect) 82%, color-mix(in srgb, var(--color-text-faint) 20%, transparent) 0);
  color: var(--color-text-primary);
  font: 700 18px/1 var(--font-data);
}

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

.device-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px 16px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-raised);
  box-shadow: var(--elevation-raised);
  text-align: center;
}

.device-card h3 {
  margin: 0;
  font-size: 16px;
}

.device-card p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 20px;
}

.puck {
  --ring: var(--color-accent-reflect);
  --ring-dim: color-mix(in srgb, var(--ring) 18%, transparent);
  position: relative;
  display: grid;
  width: 154px;
  height: 154px;
  grid-template-rows: 1fr auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 34px;
  background:
    linear-gradient(145deg, #171A1A, #050606 72%),
    var(--color-surface-raised);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 70px rgba(0, 0, 0, 0.3);
}

.puck::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 28px;
  background:
    conic-gradient(from 210deg, transparent 0 18%, var(--ring) 36%, transparent 58% 100%);
  filter: drop-shadow(0 0 24px var(--ring));
  opacity: 0.78;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  padding: 3px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.puck::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 15px;
  height: 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(238, 242, 240, 0.38) 1px, transparent 2px) 0 0 / 8px 7px;
  opacity: 0.55;
}

.puck-display {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 24px;
}

.puck-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  filter: saturate(0.75) brightness(0.9);
  opacity: 0.72;
}

.puck-readout {
  color: var(--color-text-primary);
  font: 700 17px/1 var(--font-device);
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px var(--ring-dim);
}

.battery-dots {
  position: absolute;
  top: 13px;
  right: 16px;
  display: grid;
  grid-template-columns: repeat(4, 4px);
  gap: 4px;
}

.battery-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ring) 70%, var(--color-text-faint));
}

.usb-c {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 34px;
  height: 8px;
  border: 1px solid rgba(238, 242, 240, 0.16);
  border-radius: 999px;
  transform: translateX(-50%);
}

.device-caption {
  display: grid;
  gap: 4px;
}

.device-caption .caption {
  color: var(--ring);
}

.device-sync {
  display: grid;
  grid-template-columns: minmax(250px, 390px) minmax(220px, 1fr);
  gap: 28px;
  align-items: center;
}

.sync-panel {
  display: grid;
  gap: 18px;
}

.sync-status {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-raised);
}

.sync-mode-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sync-mode-buttons .step-button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--ring, var(--color-accent-reflect)) 44%, var(--color-border-subtle));
  background: color-mix(in srgb, var(--ring, var(--color-accent-reflect)) 16%, var(--color-surface-raised));
}

.device-note {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--color-mode-break) 25%, var(--color-border-subtle));
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-mode-break-dim) 36%, var(--color-surface-raised));
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 20px;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-secondary);
  font: 600 12px/1 var(--font-data);
}

.home-top {
  display: grid;
  gap: 16px;
  align-content: start;
}

.home-title {
  display: grid;
  gap: 6px;
  padding: 8px 2px 0;
}

.home-title strong {
  font-size: 30px;
  font-weight: 800;
}

.home-title span {
  color: var(--color-text-secondary);
  font-size: 13px;
}

.pause-flow-stage {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.flow-panel {
  display: grid;
  gap: 16px;
}

.flow-steps {
  display: grid;
  gap: 10px;
}

.flow-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-raised);
  color: var(--color-text-secondary);
}

.flow-step.active {
  border-color: color-mix(in srgb, var(--color-accent-reflect) 40%, var(--color-border-subtle));
  color: var(--color-text-primary);
}

.flow-step-index {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--color-surface-overlay);
  color: var(--color-text-primary);
  font: 700 12px/1 var(--font-data);
}

.flow-step strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.flow-step span {
  font-size: 13px;
  line-height: 19px;
}

.range-full {
  width: 100%;
}

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

.do-dont {
  display: grid;
  gap: 8px;
  padding: 14px;
  box-shadow: none;
}

.do-dont strong {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.do-dont.do strong {
  color: var(--color-accent-reflect);
}

.do-dont.dont strong {
  color: var(--color-warn-amber);
}

.do-dont span {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 19px;
}

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

.state-tile {
  display: grid;
  min-height: 132px;
  place-items: center;
  gap: 10px;
  padding: 14px;
  box-shadow: none;
}

.state-tile .dock {
  width: 100%;
  gap: 6px;
  padding: 8px;
}

.state-tile .dock .app-icon {
  width: 42px;
}

.state-tile .dock .app-icon-tile {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.state-tile .component-card,
.state-tile .nudge-banner {
  width: 100%;
  max-width: 100%;
}

.state-tile .nudge-banner {
  grid-template-columns: 32px minmax(0, 1fr);
}

.state-tile .nudge-banner .mini-button {
  grid-column: 1 / -1;
}

.state-tile .milestone-number {
  font-size: 48px;
}

.state-tile .caption {
  align-self: end;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--color-accent-reflect) 28%, var(--color-border-subtle));
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-accent-reflect) 11%, var(--color-surface-raised));
  color: var(--color-text-primary);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

@keyframes breathPulse {
  0%, 100% {
    box-shadow: var(--elevation-raised);
  }
  50% {
    box-shadow: var(--elevation-reflect);
  }
}

@keyframes tokenSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes runnerScroll {
  to {
    transform: translateX(-50%);
  }
}

@keyframes unhookedFlagIn {
  0% {
    opacity: 0;
    transform: translateY(-34px) rotate(-1deg);
  }
  74% {
    opacity: 1;
    transform: translateY(5px) rotate(0.4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes unhookedFlagFloat {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(3px) rotate(0.28deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 80ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 80ms !important;
  }

  [data-token-card-state="downloading"] .token-card-icon {
    animation: none !important;
  }

  .runner-marquee {
    animation: none !important;
    transform: none !important;
  }

  .unhooked-flag {
    animation: none !important;
  }

  .unhooked-flag-panel:hover {
    transform: none;
  }
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .sidebar {
    position: static;
    grid-column: 1;
    grid-row: 2;
    height: auto;
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .main {
    grid-column: 1;
    grid-row: 3;
  }

  .mcp-runner {
    grid-column: 1;
    grid-row: 1;
  }

  .sidebar-nav {
    min-height: auto;
    max-height: min(42vh, 360px);
    overflow-y: auto;
  }

  .sidebar-cta {
    position: static;
    width: min(100%, 420px);
    max-width: 100%;
    align-self: start;
    margin: 10px 6px 0;
  }

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

  .nav-title {
    grid-column: 1 / -1;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .contrast-grid,
  .compare-grid,
  .device-mode-grid,
  .device-sync,
  .pause-flow-stage,
  .guidance {
    grid-template-columns: 1fr;
  }

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

  .v2-phone {
    flex-shrink: 0;
  }

  .mcp-runner {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
    padding: 9px 18px;
  }

  .runner-actions {
    justify-content: stretch;
  }

  .runner-copy,
  .runner-link {
    flex: 1 1 0;
  }

  .unhooked-flag {
    top: calc(77px + 14px);
    right: 16px;
    width: 270px;
  }

  .unhooked-flag-panel {
    min-height: 292px;
    padding: 22px 18px 30px;
  }

  .unhooked-flag-title {
    font-size: 29px;
    line-height: 32px;
  }

  .unhooked-flag-headline {
    font-size: 19px;
    line-height: 24px;
  }
}

@media (max-width: 620px) {
  .page {
    padding: 32px 14px 64px;
  }

  .preview-top,
  .motion-controls,
  .spacing-item,
  .type-line {
    grid-template-columns: 1fr;
  }

  .token-card-intro,
  .token-download-card.compact .token-card-intro {
    grid-template-columns: 1fr;
  }

  .sidebar-cta.token-download-card.condensed .token-card-intro {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
  }

  .token-card-preview {
    width: min(100%, 220px);
  }

  .sidebar-cta.token-download-card.condensed .token-card-preview {
    width: 44px;
    height: 44px;
  }

  .token-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .token-card-button,
  .token-card-secondary {
    width: 100%;
  }

  .unhooked-flag {
    top: auto;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.36));
  }

  .unhooked-flag-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    min-height: 0;
    border-radius: 12px;
    padding: 13px 58px 13px 15px;
  }

  .unhooked-flag-panel::before,
  .unhooked-flag-panel::after {
    display: none;
  }

  .unhooked-flag-close {
    top: 50%;
    right: 6px;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
  }

  .unhooked-flag-eyebrow {
    grid-column: 1 / -1;
    font-size: 10px;
    line-height: 13px;
  }

  .unhooked-flag-title {
    grid-column: 1;
    margin: 0;
    font-size: 19px;
    line-height: 22px;
  }

  .unhooked-flag-headline,
  .unhooked-flag-copy,
  .unhooked-flag-footer {
    display: none;
  }

  .unhooked-flag-cta {
    grid-column: 2;
    grid-row: 2;
    min-height: 38px;
    align-self: center;
    padding: 0 10px;
    font-size: 12px;
  }

  .preview-top {
    display: grid;
  }

  .state-row {
    grid-template-columns: 1fr 1fr;
  }

  .app-grid {
    grid-template-columns: repeat(3, 72px);
  }

  .phone {
    min-height: 680px;
  }

  .nudge-banner {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .nudge-banner .mini-button {
    grid-column: 1 / -1;
  }

  .focus-score {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* Modern editorial refresh */
:root {
  --zm-shell-runner-height: 56px;
  --zm-page-max-modern: 1240px;
  --zm-glass-surface: color-mix(in srgb, var(--color-surface-raised) 78%, transparent);
  --zm-glass-strong: color-mix(in srgb, var(--color-surface-overlay) 88%, var(--color-surface-raised));
  --zm-line-soft: color-mix(in srgb, var(--color-accent-calm) 18%, var(--color-border-subtle));
  --zm-line-strong: color-mix(in srgb, var(--color-accent-reflect) 34%, var(--color-border-subtle));
  --zm-shadow-modern: 0 22px 70px rgba(0, 0, 0, 0.32);
  --zm-shadow-lift: 0 18px 46px rgba(0, 0, 0, 0.22);
  --zm-sheen: linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 42%);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--color-text-primary) 3%, transparent) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(180deg, color-mix(in srgb, var(--color-text-primary) 2%, transparent) 0 1px, transparent 1px 96px),
    linear-gradient(140deg, color-mix(in srgb, var(--color-accent-deep) 16%, transparent) 0%, transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface-overlay) 74%, transparent) 0%, var(--color-surface-base) 520px),
    var(--color-surface-base);
}

.shell {
  position: relative;
  isolation: isolate;
}

.shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 52%, color-mix(in srgb, var(--color-warn-amber) 5%, transparent) 52% 52.35%, transparent 52.35%),
    linear-gradient(165deg, transparent 0 66%, color-mix(in srgb, var(--color-mode-break) 5%, transparent) 66% 66.25%, transparent 66.25%);
  opacity: 0.9;
}

.mcp-runner {
  min-height: var(--zm-shell-runner-height);
  border-bottom-color: var(--zm-line-soft);
  background:
    var(--zm-sheen),
    linear-gradient(90deg, color-mix(in srgb, var(--color-accent-reflect) 14%, transparent), transparent 32%),
    color-mix(in srgb, var(--color-surface-base) 80%, var(--color-surface-raised));
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(1.12);
  padding-block: 10px;
}

.runner-marquee {
  gap: 34px;
  color: color-mix(in srgb, var(--color-text-primary) 70%, var(--color-text-secondary));
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.runner-copy,
.runner-link {
  min-height: 34px;
  border-color: var(--zm-line-soft);
  border-radius: var(--zm-radius-control);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.runner-copy {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-accent-reflect) 94%, #fff), var(--color-accent-reflect));
  color: #04100A;
}

.runner-link {
  background: color-mix(in srgb, var(--color-surface-raised) 72%, transparent);
}

.sidebar {
  top: var(--zm-shell-runner-height);
  height: calc(100vh - var(--zm-shell-runner-height));
  border-right-color: var(--zm-line-soft);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface-overlay) 92%, transparent), color-mix(in srgb, var(--color-surface-base) 88%, transparent)),
    color-mix(in srgb, var(--color-surface-base) 84%, var(--color-surface-raised));
  box-shadow: 18px 0 54px rgba(0, 0, 0, 0.18);
  padding: 18px 16px 16px;
}

.brand {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  border: 1px solid var(--zm-line-soft);
  border-radius: var(--zm-radius-card);
  background:
    var(--zm-sheen),
    color-mix(in srgb, var(--color-surface-raised) 76%, transparent);
  padding: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-color: var(--zm-line-strong);
  border-radius: var(--zm-radius-card);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--color-accent-reflect) 24%, transparent), transparent),
    color-mix(in srgb, var(--color-surface-overlay) 92%, var(--color-surface-base));
  box-shadow: 0 12px 32px color-mix(in srgb, var(--color-accent-reflect) 16%, transparent);
  font-family: var(--font-display);
}

.brand h1 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 750;
}

.brand p {
  color: color-mix(in srgb, var(--color-text-secondary) 86%, var(--color-text-primary));
}

.global-theme {
  margin: 0 0 20px;
  border-color: var(--zm-line-soft);
  background: color-mix(in srgb, var(--color-surface-raised) 72%, transparent);
}

.theme-choice,
.segmented button,
.icon-button,
.copy-button,
.control-button,
.step-button {
  border-radius: var(--zm-radius-control);
}

.theme-choice[aria-pressed="true"],
.segmented button[aria-pressed="true"] {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-accent-reflect) 16%, transparent), color-mix(in srgb, var(--color-accent-calm) 12%, transparent)),
    var(--color-surface-overlay);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-text-primary) 10%, transparent);
}

.sidebar-nav {
  padding: 2px 2px 20px;
}

.nav-group {
  gap: 6px;
  margin-bottom: 22px;
}

.nav-title {
  margin-inline: 8px;
  color: color-mix(in srgb, var(--color-accent-reflect) 40%, var(--color-text-faint));
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.nav-link {
  position: relative;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--zm-radius-control);
  padding: 9px 10px 9px 14px;
  color: color-mix(in srgb, var(--color-text-secondary) 90%, var(--color-text-primary));
  font-weight: 650;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 999px;
  background: var(--color-accent-reflect);
  opacity: 0;
  transform: scaleY(0.4);
  transition:
    opacity var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
}

.nav-link:hover,
.nav-link.active {
  border-color: var(--zm-line-soft);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--color-accent-reflect) 10%, transparent), transparent 62%),
    color-mix(in srgb, var(--color-surface-raised) 82%, transparent);
}

.nav-link.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.sidebar-cta {
  margin: 12px 0 0;
  border-color: var(--zm-line-strong);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--color-accent-reflect) 12%, transparent), transparent 42%),
    var(--zm-glass-strong);
}

.main {
  position: relative;
}

.page {
  width: min(100%, var(--zm-page-max-modern));
  padding: clamp(38px, 5vw, 72px) clamp(18px, 4.8vw, 64px) 104px;
}

.page-header {
  position: relative;
  max-width: 860px;
  margin-bottom: clamp(36px, 5vw, 58px);
  padding-bottom: 24px;
}

.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(100%, 520px);
  height: 1px;
  background: linear-gradient(90deg, var(--zm-line-strong), transparent);
}

.eyebrow,
.caption,
.metric-label {
  color: color-mix(in srgb, var(--color-accent-reflect) 38%, var(--color-text-faint));
  font-family: var(--font-data);
  letter-spacing: 0.09em;
}

.page-title {
  max-width: 930px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.96;
}

.page-lede {
  max-width: 760px;
  color: color-mix(in srgb, var(--color-text-secondary) 88%, var(--color-text-primary));
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
}

.section {
  margin-top: clamp(46px, 6vw, 72px);
}

.section-title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 760;
  line-height: 1.08;
}

.section-copy {
  color: color-mix(in srgb, var(--color-text-secondary) 88%, var(--color-text-primary));
}

.grid {
  gap: 18px;
}

.info-tile,
.token-row,
.state-tile,
.component-card,
.do-dont,
.metric-card,
.token-card-state,
.device-card,
.stats-total,
.bar-chart,
.focus-score,
.sync-status,
.flow-step,
.compare-card {
  border-color: var(--zm-line-soft);
  border-radius: var(--zm-radius-card);
  background:
    var(--zm-sheen),
    color-mix(in srgb, var(--color-surface-raised) 84%, transparent);
  box-shadow: var(--zm-shadow-lift);
}

.info-tile,
.component-card,
.device-card,
.token-card-state,
.state-tile,
.do-dont {
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

a.info-tile:hover,
.component-card.focused,
.info-tile:hover {
  border-color: var(--zm-line-strong);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--color-accent-reflect) 10%, transparent), transparent 42%),
    color-mix(in srgb, var(--color-surface-raised) 92%, transparent);
  box-shadow: var(--zm-shadow-modern);
  transform: translateY(-2px);
}

.info-tile h3,
.metric-card h3,
.component-card strong {
  font-family: var(--font-display);
  font-weight: 740;
}

.preview {
  border-color: var(--zm-line-soft);
  border-radius: var(--zm-radius-card);
  background:
    var(--zm-sheen),
    color-mix(in srgb, var(--color-surface-raised) 88%, transparent);
  box-shadow: var(--zm-shadow-modern);
}

.preview-top {
  min-height: 64px;
  border-bottom-color: var(--zm-line-soft);
  background: color-mix(in srgb, var(--color-surface-overlay) 62%, transparent);
  padding: 14px 16px;
}

.preview-title strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 740;
}

.preview-stage {
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--color-text-primary) 3%, transparent) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface-overlay) 62%, transparent), transparent),
    var(--color-surface-base);
  padding: clamp(22px, 4vw, 38px);
}

.preview-stage.center {
  min-height: 340px;
}

.segmented {
  border-color: var(--zm-line-soft);
  background: color-mix(in srgb, var(--color-surface-base) 62%, transparent);
}

.code-block {
  border-color: color-mix(in srgb, var(--color-accent-reflect) 18%, var(--color-border-subtle));
  border-radius: var(--zm-radius-card);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-accent-calm) 8%, transparent), transparent),
    #030604;
  box-shadow: var(--zm-shadow-lift);
}

.code-head {
  border-bottom-color: color-mix(in srgb, var(--color-accent-reflect) 14%, transparent);
}

.code-block pre {
  scrollbar-color: var(--color-accent-calm) transparent;
}

.token-table {
  border-color: var(--zm-line-soft);
  border-radius: var(--zm-radius-card);
  background: color-mix(in srgb, var(--color-surface-raised) 62%, transparent);
  box-shadow: var(--zm-shadow-lift);
}

.token-row {
  background: transparent;
  box-shadow: none;
}

.token-row:hover {
  background: color-mix(in srgb, var(--color-accent-reflect) 5%, transparent);
}

.swatch,
.app-icon-tile,
.dock,
.zen-island,
.motion-track,
.layout-grid-demo,
.contrast-chip,
.device-note,
.thesis-placeholder {
  border-radius: var(--zm-radius-card);
}

.download-link,
.control-button,
.step-button,
.mini-button,
.zm-button,
.token-card-button,
.token-card-secondary {
  border-radius: var(--zm-radius-control);
}

.download-link,
.control-button,
.step-button,
.text-button {
  border-color: var(--zm-line-strong);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-accent-reflect) 13%, transparent), color-mix(in srgb, var(--color-accent-calm) 8%, transparent)),
    color-mix(in srgb, var(--color-surface-raised) 84%, transparent);
}

.download-link:hover,
.control-button:hover,
.step-button:hover,
.text-button:hover {
  border-color: color-mix(in srgb, var(--color-accent-reflect) 58%, var(--color-border-subtle));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-accent-reflect) 18%, transparent), color-mix(in srgb, var(--color-accent-calm) 10%, transparent)),
    color-mix(in srgb, var(--color-surface-raised) 96%, transparent);
}

.primary-link {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-accent-reflect) 92%, #fff), var(--color-accent-reflect));
  color: #04100A;
}

.primary-link:hover {
  background:
    linear-gradient(180deg, var(--color-accent-reflect-soft), var(--color-accent-reflect));
  color: #04100A;
}

.phone {
  border-color: color-mix(in srgb, var(--color-accent-reflect) 18%, rgba(255, 255, 255, 0.1));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface-overlay) 72%, transparent), transparent),
    color-mix(in srgb, var(--color-surface-base) 90%, var(--color-surface-raised));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.v2-phone {
  box-shadow:
    0 34px 88px rgba(0, 0, 0, 0.4),
    0 0 0 1px color-mix(in srgb, var(--color-v2-border-focus) 10%, transparent);
}

.overview-page {
  width: min(100%, 1320px);
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: min(840px, calc(100vh - 110px));
  padding-block: clamp(10px, 2vw, 20px) clamp(38px, 5vw, 68px);
  border-bottom: 1px solid var(--zm-line-soft);
}

.overview-hero-copy {
  display: grid;
  gap: 20px;
  align-content: center;
}

.overview-hero .page-title {
  font-size: clamp(48px, 7.4vw, 92px);
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.overview-stats div {
  display: grid;
  gap: 6px;
  min-height: 92px;
  align-content: end;
  border: 1px solid var(--zm-line-soft);
  border-radius: var(--zm-radius-card);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--color-accent-reflect) 9%, transparent), transparent 48%),
    color-mix(in srgb, var(--color-surface-raised) 72%, transparent);
  padding: 14px;
}

.overview-stats strong {
  color: var(--color-text-primary);
  font: 780 25px/1 var(--font-display);
}

.overview-stats span {
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 17px;
}

.overview-device {
  display: grid;
  height: min(720px, 82vh);
  min-height: 560px;
  place-items: start center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0 78%, transparent 100%);
}

.overview-device .v2-phone {
  transform: scale(0.76);
  transform-origin: top center;
}

.reference-grid .info-tile {
  min-height: 128px;
}

.reference-grid .info-tile p {
  font-family: var(--font-data);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.thesis-placeholder {
  max-width: 820px;
  border-color: var(--zm-line-strong);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--color-accent-reflect) 11%, transparent), transparent 48%),
    color-mix(in srgb, var(--color-surface-raised) 88%, transparent);
  box-shadow: var(--zm-shadow-modern);
}

.unhooked-flag {
  top: calc(var(--zm-shell-runner-height) + 18px);
}

@media (max-width: 1120px) {
  .overview-hero {
    grid-template-columns: minmax(330px, 0.95fr) minmax(220px, 0.55fr);
    min-height: min(760px, calc(100vh - 96px));
  }

  .overview-device {
    height: min(640px, 72vh);
    min-height: 500px;
  }

  .overview-device .v2-phone {
    transform: scale(0.54);
  }
}

@media (min-width: 821px) {
  .page-header {
    max-width: min(860px, calc(100vw - var(--side-width) - 430px));
  }
}

@media (min-width: 821px) and (max-width: 960px) {
  .page-header {
    max-width: 360px;
  }

  .unhooked-flag {
    width: 250px;
  }
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .sidebar {
    position: static;
    grid-column: 1;
    grid-row: 2;
    height: auto;
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--zm-line-soft);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
  }

  .mcp-runner {
    grid-template-columns: 1fr;
    min-height: 78px;
  }

  .main {
    grid-column: 1;
    grid-row: 3;
  }

  .sidebar-nav {
    max-height: min(42vh, 360px);
  }

  .brand {
    grid-template-columns: 48px minmax(0, 1fr);
  }

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

  .nav-title {
    grid-column: 1 / -1;
  }

  .sidebar-cta {
    position: static;
    width: min(100%, 430px);
    align-self: start;
  }

  .page {
    padding-top: 44px;
  }

  .page-title {
    font-size: clamp(36px, 9vw, 58px);
  }

  .overview-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 4px;
  }

  .overview-hero .page-title {
    font-size: clamp(42px, 10vw, 68px);
  }

  .overview-stats {
    grid-template-columns: 1fr;
  }

  .overview-stats div {
    min-height: 76px;
  }

  .overview-device {
    height: 540px;
    min-height: 470px;
  }

  .overview-device .v2-phone {
    transform: scale(0.58);
  }

  .unhooked-flag {
    top: calc(78px + 14px);
  }
}

@media (max-width: 620px) {
  body {
    background:
      repeating-linear-gradient(90deg, color-mix(in srgb, var(--color-text-primary) 3%, transparent) 0 1px, transparent 1px 72px),
      linear-gradient(180deg, color-mix(in srgb, var(--color-surface-overlay) 72%, transparent), var(--color-surface-base) 420px),
      var(--color-surface-base);
  }

  .mcp-runner {
    min-height: 82px;
    padding-inline: 14px;
  }

  .brand {
    margin-bottom: 14px;
  }

  .global-theme {
    margin-bottom: 16px;
  }

  .nav-group {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 32px 14px 74px;
  }

  .page-header {
    margin-bottom: 34px;
  }

  .section {
    margin-top: 42px;
  }

  .overview-hero {
    gap: 28px;
    padding-bottom: 42px;
  }

  .overview-actions,
  .overview-actions .download-link {
    width: 100%;
  }

  .overview-device {
    height: 455px;
    min-height: 420px;
  }

  .overview-device .v2-phone {
    transform: scale(0.48);
  }

  .preview-stage.center {
    min-height: 260px;
  }

  .preview-top {
    gap: 14px;
  }

  .unhooked-flag {
    top: auto;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
  }

  .state-row {
    gap: 10px;
  }
}
