/* M12 · Soft Tactile Squircle & Warm Paper-Ink Atelier — nb-speak */
:root,
[data-movement="M12"] {
  --h-paper: 80;
  --h-forest: 156;
  --bg: oklch(97.0% 0.008 var(--h-paper));
  --bezel-tray: oklch(93.0% 0.011 var(--h-paper));
  --pod-core: oklch(99.2% 0.004 var(--h-paper));
  --surface-subtle: oklch(95.2% 0.009 var(--h-paper));
  --ink: oklch(18.5% 0.012 var(--h-paper));
  --muted: oklch(41.5% 0.012 var(--h-paper));
  --rim: oklch(18% 0.012 var(--h-paper) / 0.08);
  --rim-strong: oklch(18% 0.012 var(--h-paper) / 0.14);
  --accent: oklch(33.5% 0.076 var(--h-forest));
  --accent-soft: oklch(93.5% 0.025 var(--h-forest));
  --accent-ink: oklch(25.5% 0.068 var(--h-forest));
  --warn-bg: oklch(94.5% 0.032 62);
  --warn-ink: oklch(35% 0.10 46);
  --err-bg: oklch(94.2% 0.032 28);
  --err-ink: oklch(35% 0.12 26);

  --r-outer: 28px;
  --bezel-pad: 6px;
  --r-inner: calc(var(--r-outer) - var(--bezel-pad));
  --r-bubble: 20px;

  --font-sans: "Plus Jakarta Sans", "Figtree", -apple-system, BlinkMacSystemFont, "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  font-synthesis: none;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang^="zh"] body {
  line-height: 1.72;
  line-break: strict;
}

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

code,
pre,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.page-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px clamp(16px, 3vw, 36px) 96px;
}

/* 1. Floating Concentric Pill Masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 6px 16px;
  border-radius: 999px;
  background: var(--bezel-tray);
  border: 1px solid var(--rim);
  box-shadow: 0 14px 32px -18px oklch(20% 0.02 var(--h-paper) / 0.10);
  margin-bottom: clamp(22px, 3vw, 34px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent);
  color: #faf8f4;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-pill {
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 180ms cubic-bezier(0.32, 0.72, 0, 1), color 180ms cubic-bezier(0.32, 0.72, 0, 1);
}

.nav-pill:hover,
.nav-pill[aria-current="page"] {
  background: var(--pod-core);
  color: var(--ink);
}

/* Signature Button-in-Button Pill CTA */
.pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 6px 5px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #faf8f4;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1), background 180ms ease;
}

.pill-cta__orb {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
}

.pill-cta:hover .pill-cta__orb {
  transform: translateX(2px) scale(1.04);
}

.pill-cta:active {
  transform: scale(0.98);
}

.pill-cta--ghost {
  background: var(--pod-core);
  color: var(--ink);
  border-color: var(--rim-strong);
  padding: 5px 16px;
}

/* 2. Hero Header (Unboxed, Airy, Concise) */
.hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

html[lang^="zh"] .hero-title {
  line-height: 1.24;
  letter-spacing: 0;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15.5px, 1.35vw, 17px);
  max-width: 62ch;
}

html[lang^="zh"] .hero-sub {
  max-width: 44ic;
}

.scenario-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 5px;
  border-radius: 999px;
  background: var(--bezel-tray);
  border: 1px solid var(--rim);
}

.scenario-tab {
  min-height: 44px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms cubic-bezier(0.32, 0.72, 0, 1), color 200ms ease, box-shadow 200ms ease;
}

.scenario-tab[aria-selected="true"] {
  background: var(--pod-core);
  color: var(--ink);
  box-shadow: 0 4px 12px oklch(18% 0.01 var(--h-paper) / 0.08);
}

/* 3. Concentric Double-Bezel Shell & Split Stage */
.m12-bezel-shell {
  padding: var(--bezel-pad);
  border-radius: var(--r-outer);
  background: var(--bezel-tray);
  border: 1px solid var(--rim);
  box-shadow: 0 22px 48px -20px oklch(20% 0.02 var(--h-paper) / 0.09);
}

.m12-bezel-core {
  border-radius: var(--r-inner);
  background: var(--pod-core);
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.split-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.stage-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 460px;
  padding: clamp(16px, 2.2vw, 22px);
}

.stage-pane--raw {
  background: oklch(97.8% 0.006 var(--h-paper));
  border-right: 1px solid var(--rim);
  border-radius: calc(var(--r-inner) - 1px) 0 0 calc(var(--r-inner) - 1px);
}

.stage-pane--speak {
  background: var(--pod-core);
  border-radius: 0 calc(var(--r-inner) - 1px) calc(var(--r-inner) - 1px) 0;
}

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rim);
  margin-bottom: 16px;
}

.pane-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
}

.lint-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lint-badge--pass {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.lint-badge--fail {
  background: var(--err-bg);
  color: var(--err-ink);
}

.lint-badge--warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

/* Chat Thread & Organic 18px-22px Squircle Bubbles */
.chat-stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
}

.msg-row {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  animation: bubbleIn 240ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

.msg-row--user {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-row--agent {
  align-self: flex-start;
  align-items: flex-start;
}

.bubble {
  padding: 11px 16px;
  border-radius: var(--r-bubble);
  font-size: 14.5px;
  line-height: 1.52;
  word-break: break-word;
}

.bubble--user {
  background: var(--accent);
  color: #faf8f4;
  border-bottom-right-radius: 7px;
}

.bubble--agent {
  background: var(--surface-subtle);
  color: var(--ink);
  border: 1px solid var(--rim);
  border-bottom-left-radius: 7px;
}

.bubble--wall {
  max-width: 100%;
  background: oklch(95.8% 0.008 var(--h-paper));
  border: 1px solid oklch(40% 0.09 28 / 0.22);
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Typing Cadence Pill */
.typing-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 11px 15px;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--rim);
  width: fit-content;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--muted);
  animation: dotPulse 1.1s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0.32s; }

/* Slide-Out Artifact Card (Separated from Chat Bubbles!) */
.artifact-card {
  margin-top: 4px;
  width: 100%;
  border-radius: 18px;
  background: oklch(98.4% 0.005 var(--h-paper));
  border: 1px solid var(--rim-strong);
  box-shadow: 0 10px 24px -14px oklch(18% 0.02 var(--h-paper) / 0.12);
  animation: bubbleIn 280ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

.artifact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 17px 17px 0 0;
  background: var(--bezel-tray);
  border-bottom: 1px solid var(--rim);
  font-size: 12.5px;
  font-weight: 600;
}

.artifact-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
}

.artifact-kind {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pod-core);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.artifact-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.artifact-chip-btn {
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--rim-strong);
  background: var(--pod-core);
  color: var(--ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.artifact-chip-btn:hover {
  background: var(--surface-subtle);
}

.artifact-chip-btn[data-copied="true"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: oklch(33% 0.07 var(--h-forest) / 0.28);
}

.artifact-body {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.52;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: transparent;
}

.artifact-body[data-collapsible="true"][data-expanded="false"] {
  max-height: 176px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

.artifact-table-wrap {
  overflow-x: auto;
  padding: 4px 6px 8px;
}

.artifact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.artifact-table th,
.artifact-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--rim);
  text-align: left;
}

.artifact-table th {
  font-weight: 700;
  color: var(--muted);
}

.artifact-table tr:last-child td {
  border-bottom: 0;
}

/* Complementary Voice-Note Waveform Pill */
.voice-pill-wrap {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 92%;
  animation: bubbleIn 260ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

.voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid oklch(33% 0.07 var(--h-forest) / 0.18);
  color: var(--accent-ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  width: fit-content;
}

.voice-play-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #faf8f4;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.voice-bars {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 20px;
}

.voice-bar {
  width: 3px;
  border-radius: 99px;
  background: var(--accent);
  opacity: 0.48;
  transition: transform 150ms ease, opacity 150ms ease;
}

.voice-pill[data-playing="true"] .voice-bar {
  opacity: 0.85;
  animation: waveBounce 640ms infinite ease-in-out alternate;
}

.voice-bar.is-passed {
  opacity: 1;
  background: var(--accent-ink);
}

.voice-transcript {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  color: var(--muted);
  padding-left: 10px;
  border-left: 2px solid oklch(33% 0.07 var(--h-forest) / 0.28);
}

.voice-ai-tag {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.78;
}

.pane-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.mini-btn {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rim-strong);
  background: var(--pod-core);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-btn:hover {
  background: var(--surface-subtle);
}

.mini-btn--accent {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: oklch(33% 0.07 var(--h-forest) / 0.24);
}

.mini-btn--accent:hover {
  background: oklch(90.5% 0.032 var(--h-forest));
}

/* Live DeepSeek Harness (:19081 vs :19082) Proof Bar & Lightbox */
.dsh-proof-bar {
  margin-top: 14px;
  padding: 10px 14px 10px 16px;
  border-radius: 20px;
  background: var(--bezel-tray);
  border: 1px solid var(--rim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.dsh-proof-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.dsh-proof-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.dsh-proof-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.dsh-lightbox {
  width: min(94vw, 1260px);
  max-height: 92vh;
  margin: auto;
  padding: 6px;
  border-radius: 26px;
  border: 1px solid var(--rim-strong);
  background: var(--bezel-tray);
  color: var(--ink);
  box-shadow: 0 32px 72px -18px oklch(14% 0.02 var(--h-paper) / 0.42);
}

.dsh-lightbox::backdrop {
  background: oklch(15% 0.012 var(--h-paper) / 0.58);
  backdrop-filter: blur(4px);
}

.dsh-lightbox__inner {
  border-radius: 20px;
  background: var(--pod-core);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: clamp(14px, 2vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(92vh - 14px);
}

.dsh-lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dsh-lightbox__tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dsh-lightbox__body {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--rim);
  background: oklch(96.5% 0.008 var(--h-paper));
}

.dsh-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
}

.dsh-lightbox__caption {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* 4. Generous Open Ceramic Breathing Room Between Acts */
.section-gap {
  margin-top: clamp(72px, 8vw, 108px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

html[lang^="zh"] .section-title {
  letter-spacing: 0;
  line-height: 1.28;
}

.section-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 56ch;
}

/* 5. Asymmetric 7:5 Live IM Workspace + Telemetry Inspector */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 18px;
  align-items: stretch;
}

.ws-main,
.ws-inspector,
.m12-bezel-shell,
.m12-bezel-core,
.cmd-strip {
  min-width: 0;
}

.ws-main {
  padding: clamp(18px, 2.4vw, 26px);
  display: flex;
  flex-direction: column;
  min-height: 540px;
}

.ws-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.soft-input,
.soft-select,
.soft-textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 14px;
  border: 1px solid var(--rim-strong);
  background: var(--surface-subtle);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  transition: background 160ms ease, border-color 160ms ease;
}

.soft-input:focus,
.soft-select:focus,
.soft-textarea:focus {
  outline: none;
  background: var(--pod-core);
  border-color: var(--accent);
}

.soft-textarea {
  min-height: 92px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.composer-row {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.ws-inspector {
  padding: clamp(18px, 2.2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inspector-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bezel-tray);
  border: 1px solid var(--rim);
}

.inspector-tab {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.inspector-tab[aria-selected="true"] {
  background: var(--pod-core);
  color: var(--ink);
}

.code-well {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-subtle);
  border: 1px solid var(--rim);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.52;
  overflow: auto;
  max-height: 310px;
  white-space: pre-wrap;
  word-break: break-word;
}

.issue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.issue-item {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  background: var(--surface-subtle);
  border: 1px solid var(--rim);
}

/* 6. Unboxed Install & Comparison Matrix (Clean Paper-Ink Table) */
.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cmd-strip {
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--pod-core);
  border: 1px solid var(--rim);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.cmd-label {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cmd-code {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}

.matrix-wrap {
  overflow-x: auto;
  border-radius: 22px;
  background: var(--pod-core);
  border: 1px solid var(--rim);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.matrix-table th,
.matrix-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rim);
  vertical-align: top;
}

.matrix-table th {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-subtle);
}

.matrix-table tr:last-child td {
  border-bottom: 0;
}

.footer-bar {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--rim);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.75); opacity: 0.35; }
  40% { transform: scale(1.08); opacity: 0.95; }
}

@keyframes waveBounce {
  from { transform: scaleY(0.55); }
  to { transform: scaleY(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 960px) {
  :root {
    --r-outer: 24px;
    --bezel-pad: 5px;
  }
  .split-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage-pane--raw {
    border-right: 0;
    border-bottom: 1px solid var(--rim);
    border-radius: calc(var(--r-inner) - 1px) calc(var(--r-inner) - 1px) 0 0;
    min-height: 360px;
  }
  .stage-pane--speak {
    border-radius: 0 0 calc(var(--r-inner) - 1px) calc(var(--r-inner) - 1px);
    min-height: 400px;
  }
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ws-controls,
  .quickstart-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .masthead {
    border-radius: 22px;
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  .scenario-bar {
    border-radius: 20px;
    width: 100%;
  }
  .scenario-tab {
    flex: 1 1 auto;
    text-align: center;
  }
}
