/* Cendra V2 — design tokens */

:root {
  /* Warm bone & ink */
  --bg:        oklch(97% 0.008 80);
  --bg-deep:   oklch(94.5% 0.008 80);
  --surface:   #ffffff;
  --surface-2: oklch(98.5% 0.005 80);
  --ink:       oklch(20% 0.012 60);
  --ink-2:     oklch(34% 0.012 60);
  --muted:     oklch(52% 0.010 60);
  --soft:      oklch(68% 0.008 60);
  --line:      oklch(91% 0.008 75);
  --line-2:    oklch(95% 0.006 75);

  /* Accent — clay */
  --clay:      oklch(58% 0.105 38);
  --clay-ink:  oklch(40% 0.085 38);
  --clay-wash: oklch(96% 0.022 50);

  /* Status — desaturated, operational */
  --sage:      oklch(58% 0.075 152);
  --sage-wash: oklch(96% 0.025 152);
  --amber:     oklch(67% 0.13 75);
  --amber-wash:oklch(96% 0.045 80);
  --rust:      oklch(56% 0.14 28);
  --rust-wash: oklch(96% 0.030 30);
  --sky:       oklch(60% 0.08 240);
  --sky-wash:  oklch(96% 0.018 240);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: 'Geist', -apple-system, system-ui, sans-serif;
  background:
    radial-gradient(1200px 700px at 20% 0%, oklch(94% 0.018 50 / 0.6), transparent 60%),
    radial-gradient(900px 600px at 90% 100%, oklch(94% 0.012 200 / 0.5), transparent 55%),
    oklch(95% 0.008 75);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

.serif { font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; }

/* Phone canvas */
.canvas {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

/* Phone screen — content inside iOS frame */
.screen {
  position: absolute; inset: 0;
  background: var(--bg);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.screen-scroll {
  flex: 1; overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.screen-scroll::-webkit-scrollbar { display: none; }

/* Top inset for the status bar */
.top-pad { height: 56px; flex-shrink: 0; }
.bottom-pad { height: 34px; flex-shrink: 0; }

/* Card primitives */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 16px;
}
.card.flat { border: 1px solid var(--line); }
.card.wash { background: var(--surface-2); }

.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-2 { gap: 2px; } .gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-14 { gap: 14px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.between { justify-content: space-between; }

/* Typography */
.h-display { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.h-title { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.18; color: var(--ink); }
.h-section { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.t-body { font-size: 15px; line-height: 1.45; color: var(--ink-2); letter-spacing: -0.005em; }
.t-base { font-size: 16px; line-height: 1.4; color: var(--ink); letter-spacing: -0.005em; }
.t-lg { font-size: 17px; line-height: 1.4; color: var(--ink); letter-spacing: -0.01em; }
.t-small { font-size: 13px; line-height: 1.4; color: var(--muted); letter-spacing: 0; }
.t-tiny { font-size: 11.5px; line-height: 1.3; color: var(--muted); letter-spacing: 0.02em; }
.t-time { font-feature-settings: 'tnum' 1; }
.t-ink { color: var(--ink); }
.t-muted { color: var(--muted); }
.t-soft { color: var(--soft); }
.t-clay { color: var(--clay-ink); }
.t-rust { color: var(--rust); }
.t-amber { color: oklch(48% 0.13 75); }
.t-sage { color: oklch(40% 0.075 152); }

/* Pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: -0.005em;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.pill.sage { background: var(--sage-wash); color: oklch(38% 0.075 152); border-color: oklch(85% 0.04 152); }
.pill.amber { background: var(--amber-wash); color: oklch(45% 0.13 75); border-color: oklch(85% 0.07 80); }
.pill.rust { background: var(--rust-wash); color: oklch(42% 0.14 28); border-color: oklch(85% 0.07 30); }
.pill.clay { background: var(--clay-wash); color: var(--clay-ink); border-color: oklch(85% 0.04 50); }
.pill.sky { background: var(--sky-wash); color: oklch(42% 0.09 240); border-color: oklch(86% 0.04 240); }
.pill.ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.pulse-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--sage);
  box-shadow: 0 0 0 0 oklch(58% 0.075 152 / 0.5);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(58% 0.075 152 / 0.4); }
  70% { box-shadow: 0 0 0 8px oklch(58% 0.075 152 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(58% 0.075 152 / 0); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 20px;
  border-radius: 14px; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: -0.005em;
  background: var(--ink); color: var(--bg);
  transition: transform 120ms ease, opacity 120ms ease, background 180ms ease;
}
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
.btn:active { transform: scale(0.985); opacity: 0.92; }
.btn.full { width: 100%; }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.clay { background: var(--clay); color: white; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.tonal { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn.danger-edge {
  background: var(--surface); color: var(--rust); border: 1px solid oklch(85% 0.07 30);
  box-shadow: inset 0 0 0 2px transparent;
}

/* Status accent strip on card left */
.accent-strip { width: 3px; align-self: stretch; border-radius: 999px; background: var(--line); }
.accent-strip.amber { background: var(--amber); }
.accent-strip.rust { background: var(--rust); }
.accent-strip.sage { background: var(--sage); }
.accent-strip.clay { background: var(--clay); }

.divider { height: 1px; background: var(--line); }
.divider-soft { height: 1px; background: var(--line-2); }
.dot { width: 4px; height: 4px; border-radius: 999px; background: var(--soft); display: inline-block; }

/* Avatar / monogram */
.mono-tile {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-style: italic;
  font-size: 18px; color: var(--ink-2);
}

/* Cendra mark — orb */
.cendra-orb {
  position: relative; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(60% 60% at 30% 28%, oklch(96% 0.03 60), transparent 60%),
    radial-gradient(80% 80% at 70% 75%, oklch(82% 0.09 40), oklch(60% 0.12 35) 65%);
  box-shadow: inset 0 0 0 1px oklch(50% 0.10 35 / 0.4), 0 1px 2px oklch(45% 0.09 35 / 0.2);
}
.cendra-orb::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(40% 30% at 30% 22%, oklch(100% 0 0 / 0.55), transparent 70%);
}
.cendra-orb.idle { animation: orbBreath 4.5s ease-in-out infinite; }
@keyframes orbBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Live wave for voice */
.wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.wave span {
  display: block; width: 3px; border-radius: 999px;
  background: currentColor;
  animation: wave 1.1s ease-in-out infinite;
}
.wave span:nth-child(1) { animation-delay: 0s;    height: 30%; }
.wave span:nth-child(2) { animation-delay: 0.1s;  height: 70%; }
.wave span:nth-child(3) { animation-delay: 0.2s;  height: 100%; }
.wave span:nth-child(4) { animation-delay: 0.3s;  height: 80%; }
.wave span:nth-child(5) { animation-delay: 0.4s;  height: 50%; }
.wave span:nth-child(6) { animation-delay: 0.25s; height: 90%; }
.wave span:nth-child(7) { animation-delay: 0.15s; height: 40%; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* Fade-in for screen entry */
.fade-in { animation: fadeIn 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.fade-up { animation: fadeUp 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.stagger > * { animation: fadeUp 460ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.stagger > *:nth-child(1) { animation-delay: 40ms; }
.stagger > *:nth-child(2) { animation-delay: 100ms; }
.stagger > *:nth-child(3) { animation-delay: 160ms; }
.stagger > *:nth-child(4) { animation-delay: 220ms; }
.stagger > *:nth-child(5) { animation-delay: 280ms; }
.stagger > *:nth-child(6) { animation-delay: 340ms; }
.stagger > *:nth-child(7) { animation-delay: 400ms; }
.stagger > *:nth-child(8) { animation-delay: 460ms; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Tap rows */
.tap {
  cursor: pointer; user-select: none;
  transition: background 140ms ease, transform 140ms ease;
}
.tap:active { transform: scale(0.995); background: var(--surface-2); }

/* Bottom nav */
.bottom-nav {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: oklch(98% 0.005 75 / 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 6px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 8px 28px oklch(20% 0.01 60 / 0.06), 0 1px 0 white inset;
  z-index: 10;
}
.bottom-nav .nav-item {
  flex: 1; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 18px; gap: 5px;
  font-size: 11.5px; font-weight: 500; color: var(--muted);
  letter-spacing: -0.01em;
  transition: background 180ms ease, color 180ms ease;
  cursor: pointer; position: relative;
  white-space: nowrap; min-width: 0; padding: 0 6px;
}
.bottom-nav .nav-item span { white-space: nowrap; overflow: visible; }
.bottom-nav .nav-item.active { background: var(--ink); color: var(--bg); }
.bottom-nav .nav-item .badge {
  position: absolute; top: 6px; right: 8px;
  min-width: 16px; height: 16px; border-radius: 999px;
  background: var(--clay); color: white;
  font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.bottom-nav .nav-item.active .badge { background: white; color: var(--ink); }

/* Message bubble */
.bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 15px; line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
  max-width: 88%;
}
.bubble.from-pm { background: var(--ink); color: var(--bg); border-color: var(--ink); align-self: flex-end; }
.bubble.cendra { border-radius: 18px 18px 18px 4px; }

/* Section header */
.section-header { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }

/* Bg textured */
.warm-grad {
  background:
    radial-gradient(120% 80% at 80% 0%, oklch(95% 0.025 50), transparent 50%),
    radial-gradient(120% 80% at 0% 100%, oklch(94% 0.018 200), transparent 50%),
    var(--bg);
}

/* Number bigly */
.num-big { font-size: 44px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; font-feature-settings: 'tnum' 1; color: var(--ink); }
.num-md { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; line-height: 1; font-feature-settings: 'tnum' 1; color: var(--ink); }

/* Switch */
.switch { width: 42px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background 200ms ease; cursor: pointer; flex-shrink: 0; }
.switch.on { background: var(--sage); }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 999px; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.18); transition: left 200ms ease; }
.switch.on .knob { left: 18px; }

/* Subtle textured swatch placeholder */
.swatch {
  background:
    repeating-linear-gradient(135deg, oklch(94% 0.015 75) 0 8px, oklch(96% 0.012 75) 8px 16px);
  border-radius: 12px; border: 1px dashed var(--line);
}

/* Slide chrome (when used in design canvas) */
.viewport {
  position: relative;
  width: 100%; height: 100%;
}

/* device wrapper */
.device-wrap { transform-origin: center center; }

/* Tweaks toolbar nudge — keep panel from blocking the phone */
[data-tweaks-panel] { right: 16px; }

/* Subtle inner highlight on key cards */
.lift { box-shadow: 0 1px 0 oklch(100% 0 0 / 0.6) inset, 0 1px 2px oklch(20% 0.01 60 / 0.04), 0 6px 18px oklch(20% 0.01 60 / 0.04); }
.lift-lg { box-shadow: 0 1px 0 oklch(100% 0 0 / 0.6) inset, 0 2px 6px oklch(20% 0.01 60 / 0.05), 0 12px 36px oklch(20% 0.01 60 / 0.08); }

/* Wash backgrounds */
.wash-amber { background: var(--amber-wash); }
.wash-rust  { background: var(--rust-wash);  }
.wash-sage  { background: var(--sage-wash);  }
.wash-clay  { background: var(--clay-wash);  }
.wash-sky   { background: var(--sky-wash);   }

/* property-thumb */
.prop-thumb {
  width: 44px; height: 44px; border-radius: 12px;
  flex-shrink: 0; overflow: hidden;
  background:
    linear-gradient(135deg, oklch(82% 0.04 60), oklch(70% 0.06 35));
  position: relative;
}
.prop-thumb.luna   { background: linear-gradient(135deg, oklch(82% 0.04 240), oklch(64% 0.08 230)); }
.prop-thumb.mare   { background: linear-gradient(135deg, oklch(80% 0.05 200), oklch(60% 0.08 210)); }
.prop-thumb.sol    { background: linear-gradient(135deg, oklch(85% 0.06 80),  oklch(68% 0.12 60));  }
.prop-thumb.casa   { background: linear-gradient(135deg, oklch(82% 0.04 30),  oklch(60% 0.12 35));  }
.prop-thumb.olivo  { background: linear-gradient(135deg, oklch(82% 0.05 140), oklch(60% 0.08 150)); }
.prop-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 30% 30%, oklch(100% 0 0 / 0.25), transparent 70%);
}

/* Status bar fixed at top, dark text on light bg */
.statusbar-top {
  position: absolute; top: 0; left: 0; right: 0; height: 56px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 30px 0;
  font-size: 16px; font-weight: 600; color: var(--ink);
  font-feature-settings: 'tnum' 1;
  pointer-events: none;
}

/* Progress bar */
.progress { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--clay); border-radius: 999px; transition: width 600ms ease; }
.progress.thin { height: 2.5px; }

/* sparkline */
.spark-bar {
  display: inline-block; background: var(--ink); border-radius: 1.5px;
}

/* Greeting (serif, intimate, hand-written) */
.greeting {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-weight: 400; font-style: italic;
  font-size: 38px; line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink);
}
.greeting .name { font-style: normal; color: var(--clay-ink); }

/* Cendra note — chat-bubble from Cendra, soft and warm */
.cendra-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px 22px 22px 6px;
  padding: 16px 18px 14px;
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.6) inset,
              0 2px 6px oklch(20% 0.01 60 / 0.04),
              0 14px 36px oklch(20% 0.01 60 / 0.06);
}
.cendra-note .meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  color: var(--muted); font-size: 12px;
  white-space: nowrap; flex-wrap: nowrap; min-width: 0;
}
.cendra-note .meta .name { color: var(--ink); font-weight: 500; }
.cendra-note p {
  margin: 0; font-size: 17px; line-height: 1.45;
  color: var(--ink); letter-spacing: -0.005em;
}
.cendra-note p + p { margin-top: 8px; }
.cendra-note .em-clay { color: var(--clay-ink); font-style: italic; font-family: 'Newsreader', Georgia, serif; }

/* Quiet row — collapsed status entry on Home */
.quiet-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
}
.quiet-row:last-child { border-bottom: none; }
.quiet-row .glyph {
  width: 30px; height: 30px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); flex-shrink: 0;
}
.quiet-row .glyph.sage { background: var(--sage-wash); color: oklch(40% 0.075 152); }
.quiet-row .glyph.sky  { background: var(--sky-wash);  color: oklch(42% 0.09 240); }
.quiet-row .glyph.clay { background: var(--clay-wash); color: var(--clay-ink); }

/* Talk-to-Cendra dock — persistent bottom handle */
.talk-dock {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 18px;
  background: oklch(98% 0.005 75 / 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 8px 28px oklch(20% 0.01 60 / 0.08),
              0 1px 0 white inset;
}
.talk-dock .placeholder {
  flex: 1; color: var(--muted); font-size: 15px;
  letter-spacing: -0.005em;
}
.talk-dock .icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg); border: none; cursor: pointer;
}
.talk-dock .icon-btn.tonal {
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--line);
}

/* Hero decision card — bigger, more focal */
.decision-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.6) inset,
              0 2px 6px oklch(20% 0.01 60 / 0.05),
              0 18px 44px oklch(20% 0.01 60 / 0.08);
}

/* Mode pill — how Cendra runs a moment.
   Used on Stay Playbook lifecycle cards. Slightly different vocab
   than the generic Pill — these are operational modes. */
.mode-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap;
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line);
}
.mode-pill.mode-auto      { background: var(--sky-wash);   color: oklch(38% 0.09 240); border-color: oklch(86% 0.04 240); }
.mode-pill.mode-draft     { background: var(--clay-wash);  color: var(--clay-ink);     border-color: oklch(85% 0.04 50); }
.mode-pill.mode-ask       { background: var(--amber-wash); color: oklch(42% 0.13 75);  border-color: oklch(85% 0.07 80); }
.mode-pill.mode-confirmed { background: var(--sage-wash);  color: oklch(36% 0.075 152);border-color: oklch(85% 0.04 152); }
.mode-pill.mode-suggested {
  background: oklch(96.5% 0.014 50);
  color: var(--clay-ink);
  border: 1px dashed oklch(80% 0.06 50);
}
.mode-pill.mode-watching  { background: oklch(97% 0.005 240); color: oklch(45% 0.04 240); border-color: oklch(90% 0.02 240); }
.mode-pill.mode-off       { background: var(--surface-2); color: var(--muted); border-color: var(--line); }

.moment-card {
  padding: 14px 14px 14px 14px;
  border-radius: 18px;
}

/* Bottom sheet (evidence drawer + others) */
.sheet-wrap {
  position: absolute; inset: 0; z-index: 80;
  pointer-events: none;
}
.sheet-wrap.open { pointer-events: auto; }
.sheet-backdrop {
  position: absolute; inset: 0;
  background: oklch(20% 0.012 60 / 0.32);
  opacity: 0; transition: opacity 220ms ease;
}
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  padding: 12px 22px 28px;
  box-shadow: 0 -10px 40px oklch(20% 0.01 60 / 0.18);
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
  max-height: 78%;
  overflow-y: auto;
}
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet-handle {
  width: 38px; height: 4px; border-radius: 999px;
  background: var(--line); margin: 4px auto 14px;
}
.sheet::-webkit-scrollbar { display: none; }

/* Playbook helpers */
.playbook-rule {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.playbook-when {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; color: var(--muted); letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.playbook-when::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--clay);
}

/* Scope picker — segmented for property scope */
.scope-seg {
  display: inline-flex; padding: 3px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px;
  gap: 2px;
}
.scope-seg button {
  height: 30px; padding: 0 12px; border-radius: 999px;
  border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--muted); letter-spacing: -0.005em;
}
.scope-seg button.on { background: var(--ink); color: var(--bg); }

/* Voice-listen orb (Voice teach screen) */
.listen-orb {
  width: 96px; height: 96px; border-radius: 999px;
  background:
    radial-gradient(60% 60% at 30% 28%, oklch(96% 0.03 60), transparent 60%),
    radial-gradient(80% 80% at 70% 75%, oklch(82% 0.09 40), oklch(60% 0.12 35) 65%);
  position: relative;
  box-shadow: 0 0 0 0 oklch(58% 0.12 35 / 0.4);
  animation: listenPulse 1.6s ease-out infinite;
}
@keyframes listenPulse {
  0%   { box-shadow: 0 0 0 0 oklch(58% 0.12 35 / 0.4); }
  70%  { box-shadow: 0 0 0 22px oklch(58% 0.12 35 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(58% 0.12 35 / 0); }
}

/* When the bottom nav is visible, push sticky CTA containers above it
   so the primary action is never hidden under the nav bar.
   Sticky CTAs all share `position: absolute · bottom: 0 · z-index: 12`. */
.has-nav .screen div[style*="z-index: 12"][style*="position: absolute"] {
  bottom: 76px !important;
}
.has-nav .screen .screen-scroll { padding-bottom: 96px !important; }

/* Quick chip prompts */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; height: 34px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px; color: var(--ink-2); white-space: nowrap;
  cursor: pointer;
}
.chip:active { background: var(--surface-2); }
