:root {
  --bg: #f1f3f5;
  --bg-soft: #eef1f4;
  --card: #ffffff;
  --card-soft: #fbfcfd;
  --ink: #0e1116;
  --ink-mid: #465161;
  --ink-soft: #7a8595;
  --line: #e6e9ed;
  --line-soft: #eef1f4;
  --green: #22c55e;
  --green-ink: #15803d;
  --green-soft: #e9f8ee;
  --amber: #f59e0b;
  --amber-ink: #b45309;
  --amber-soft: #fef4dd;
  --blue: #1cb0f6;
  --red: #ef4444;
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-lift: 0 18px 42px rgba(15, 23, 42, 0.12);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --content: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 22%),
    linear-gradient(180deg, #f6f8f9 0%, var(--bg) 45%, #edf0f3 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.app-shell {
  width: min(var(--content), calc(100% - 28px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(241, 243, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: min(var(--content), calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.brand,
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-copy strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
}

.brand-copy span {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 6px;
  object-fit: contain;
}

.brand-logo.large {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  padding: 8px;
}

.topbar-actions,
.inline-actions,
.tab-row,
.session-actions,
.auth-toggle-row,
.segment-row,
.scenario-meta,
.preview-header,
.message-row,
.profile-row,
.voice-panel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button,
.button-ghost,
.tab-button,
.segment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.button:hover,
.button-ghost:hover,
.tab-button:hover,
.segment-button:hover {
  transform: translateY(-1px);
}

.button,
.button-ghost {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 800;
}

.button {
  background: var(--green);
  color: white;
  box-shadow: inset 0 -4px 0 var(--green-ink);
}

.button.accent {
  background: var(--green);
  box-shadow: inset 0 -4px 0 var(--green-ink);
}

.button-ghost {
  background: var(--card);
  color: var(--ink-mid);
  border: 1px solid var(--line);
}

.button:disabled,
.button-ghost:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.app-main {
  padding: 22px 0 88px;
}

.hero-card,
.auth-card,
.panel,
.metric-card,
.scenario-card,
.session-card,
.message-compose,
.empty-card,
.report-card,
.profile-card,
.timeline-card,
.recent-item,
.preview-card,
.preview-metric,
.report-score,
.voice-transcript {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.hero-card {
  padding: 22px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  margin-bottom: 20px;
}

.eyebrow,
.section-kicker,
.message-label,
.goal-line strong {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 800;
}

.eyebrow {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--green-soft);
  color: var(--green-ink);
}

.hero-card h1,
.auth-card h1,
.panel h2,
.session-card h2,
.session-top-card h2,
.report-card h2 {
  margin: 14px 0 0;
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  font-weight: 900;
}

.hero-card p,
.auth-card p,
.panel-subtitle,
.muted {
  color: var(--ink-soft);
}

.hero-card p,
.auth-card p,
.panel-subtitle {
  margin: 14px 0 0;
  line-height: 1.65;
}

.hero-preview {
  display: grid;
  gap: 14px;
}

.preview-card,
.preview-metric,
.metric-card,
.scenario-card,
.profile-card,
.timeline-card,
.report-score {
  padding: 18px;
}

.preview-card {
  background: var(--card-soft);
}

.preview-bubble,
.message-bubble {
  padding: 13px 15px;
  border-radius: 16px;
  line-height: 1.58;
  font-size: 0.95rem;
}

.preview-bubble.ai,
.message-bubble.ai {
  background: var(--card);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  border-top-left-radius: 8px;
}

.preview-bubble.user,
.message-bubble.user {
  background: var(--green);
  color: white;
  margin-left: auto;
  width: fit-content;
  max-width: 92%;
  border-top-right-radius: 8px;
}

.preview-metric-grid,
.metrics-grid,
.scenario-grid,
.stats-grid,
.report-score-grid {
  display: grid;
  gap: 14px;
}

.preview-metric-grid,
.metrics-grid,
.stats-grid,
.report-score-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card strong,
.preview-metric strong,
.report-score strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.preview-metric span,
.metric-card span,
.report-score span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.auth-layout {
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: center;
  padding: 26px 0 64px;
}

.auth-card {
  width: min(540px, 100%);
  padding: 24px;
}

.auth-form,
.custom-form,
.compose-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field-group {
  display: grid;
  gap: 7px;
}

.field-group label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-mid);
}

.field-group input,
.field-group textarea,
.field-group select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f9fafb;
  padding: 14px 15px;
  color: var(--ink);
  outline: none;
}

.field-group textarea {
  min-height: 110px;
  resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.error-banner,
.info-banner {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.error-banner {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.16);
}

.info-banner {
  background: var(--green-soft);
  color: var(--green-ink);
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.tab-row {
  margin-bottom: 18px;
}

.tab-button,
.segment-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-mid);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 800;
}

.tab-button.active,
.segment-button.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.panel,
.session-card,
.session-top-card,
.message-compose,
.report-card {
  padding: 22px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-kicker {
  color: var(--ink-soft);
  margin-bottom: 10px;
}

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

.scenario-card {
  display: grid;
  gap: 14px;
}

.scenario-card.custom {
  background: linear-gradient(180deg, #ffffff 0%, var(--green-soft) 100%);
}

.scenario-card h3,
.timeline-card h3,
.profile-card h3,
.report-card h3,
.empty-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.tag,
.difficulty,
.score-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 800;
}

.tag {
  background: var(--green-soft);
  color: var(--green-ink);
}

.difficulty {
  background: var(--bg-soft);
  color: var(--ink-soft);
}

.status-pill {
  background: var(--green-soft);
  color: var(--green-ink);
}

.status-pill-muted {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.score-pill {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.session-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  margin-bottom: 18px;
}

.session-sidebar,
.session-main,
.recent-list,
.stats-list,
.profile-list {
  display: grid;
  gap: 14px;
}

.session-stage {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.session-top-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.session-top-row,
.conversation-header,
.voice-dock-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.goal-strip {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);
  border: 1px solid var(--line-soft);
}

.goal-strip-label {
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--green-ink);
}

.goal-strip-text {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.conversation-card {
  padding-bottom: 14px;
}

.goal-line,
.report-summary,
.voice-panel {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid var(--line-soft);
}

.goal-line strong {
  display: block;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.message-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  max-height: 48vh;
  overflow: auto;
  padding-right: 4px;
}

.message-card {
  display: grid;
  gap: 6px;
}

.message-card.user {
  justify-items: end;
}

.message-label {
  color: var(--ink-soft);
}

.voice-panel-row {
  justify-content: space-between;
}

.voice-panel p {
  margin: 10px 0 0;
  line-height: 1.6;
}

.voice-dock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: grid;
  gap: 16px;
}

.voice-dock.active {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.12);
}

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

.mode-chip {
  border: 1px solid var(--line);
  background: #f8faf9;
  border-radius: 18px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 5px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.mode-chip:hover {
  transform: translateY(-1px);
}

.mode-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.mode-chip.active {
  background: var(--green-soft);
  border-color: rgba(34, 197, 94, 0.35);
}

.mode-chip-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
}

.mode-chip-desc {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.mic-cta {
  width: 100%;
  border: 0;
  border-radius: 28px;
  background: var(--green);
  color: white;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: inset 0 -5px 0 var(--green-ink), var(--shadow-lift);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.mic-cta:hover {
  transform: translateY(-1px);
}

.mic-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.mic-cta.recording {
  background: #ea2b2b;
  box-shadow: inset 0 -5px 0 #c02020, var(--shadow-lift);
}

.mic-cta-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.45rem;
  font-weight: 900;
}

.mic-cta-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.mic-cta-copy strong {
  font-size: 1.08rem;
  font-weight: 900;
}

.mic-cta-copy span {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  font-size: 0.92rem;
}

.voice-dock-actions,
.sidebar-stack {
  display: grid;
  gap: 10px;
}

.voice-helper {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f9fafb;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  font-size: 0.92rem;
}

.voice-transcript {
  padding: 14px 16px;
  background: var(--card);
  color: var(--ink-mid);
  border: 1px solid rgba(34, 197, 94, 0.18);
  line-height: 1.6;
}

.inline-compose {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.sidebar-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.sidebar-stat {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid var(--line-soft);
}

.sidebar-stat span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 4px;
}

.sidebar-stat strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.recent-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.stars {
  color: var(--amber);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
}

.empty-card {
  padding: 18px;
}

.loading-shell {
  min-height: 52vh;
  display: grid;
  place-items: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(20, 33, 48, 0.1);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.tiny-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.footer-note {
  margin-top: 22px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

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

@media (max-width: 1040px) {
  .hero-card,
  .session-layout,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .session-top-row,
  .conversation-header,
  .voice-dock-header {
    display: grid;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .panel-header {
    display: grid;
    align-items: start;
  }

  .preview-metric-grid,
  .metrics-grid,
  .stats-grid,
  .report-score-grid {
    grid-template-columns: 1fr;
  }

  .app-shell,
  .topbar-inner {
    width: min(var(--content), calc(100% - 20px));
  }

  .hero-card,
  .auth-card,
  .panel,
  .session-top-card,
  .session-card,
  .message-compose,
  .report-card,
  .voice-dock {
    padding: 18px;
  }

  .button,
  .button-ghost {
    width: 100%;
  }

  .mode-switch,
  .preview-metric-grid,
  .metrics-grid,
  .stats-grid,
  .report-score-grid {
    grid-template-columns: 1fr;
  }

  .mic-cta {
    padding: 18px;
    border-radius: 22px;
  }

  .mic-cta-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

/* ============================================================
   DAILY PLAN PAGE (For You / Homepage)
============================================================ */

/* Tokens */
:root {
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --green-line: #D6EEDD;
  --violet: #8B5CF6;
  --violet-ink: #6D28D9;
  --violet-soft: #F2EAFC;
  --shadow-md: 0 1px 2px rgba(15,23,42,.04), 0 12px 28px -18px rgba(15,23,42,.22);
  --bg-deep: #E7EAEE;
}

.dp-container {
  max-width: 880px;
  margin: 0 auto;
}

/* Title row */
.dp-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.dp-head-row .dp-head h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.3px;
  line-height: 1.02;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}

.dp-head-row .dp-head h1 .clip {
  font-weight: 400;
  font-size: 32px;
}

.dp-head-row .dp-head p {
  margin: 12px 0 0;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: 42ch;
}

/* Responsive */
@media (max-width: 820px) {
  /* Page padding override for mobile */
  .mg-page[style*="padding:44px"] {
    padding: 28px 20px 64px !important;
  }

  .dp-head-row .dp-head h1 {
    font-size: 32px;
  }

  .dp-head-row {
    flex-direction: column;
    gap: 20px;
  }
}

/* ============================================================
   SCENARIO CARDS (Intro + Review)
============================================================ */

/* Shared tokens (extend existing) */
:root {
  --amber-line: #F6E2B8;
  --violet-line: #E4D4FA;
  --shadow-card-lg: 0 1px 2px rgba(15,23,42,.05), 0 40px 90px -34px rgba(15,40,30,.5);
}

/* Card backdrop */
.sc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(34,197,94,.12), transparent 60%),
    radial-gradient(700px 460px at -6% 4%, rgba(34,197,94,.06), transparent 55%),
    var(--bg);
}

/* Shared card shell */
.sc-card {
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card-lg);
  overflow: hidden;
  animation: sc-rise .5s ease both;
}

.sc-card.wide {
  width: min(600px, 100%);
}

@keyframes sc-rise {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-card { animation: none; }
}

/* ----- SCENARIO INTRO CARD ----- */

.sc-head {
  position: relative;
  overflow: hidden;
  padding: 26px 28px 22px;
  background:
    radial-gradient(420px 220px at 90% -30%, rgba(34,197,94,.14), transparent 62%),
    linear-gradient(180deg, #F4FCF7, #FFFFFF);
  border-bottom: 1px solid var(--line-soft);
}

.sc-head-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.sc-thumb {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, var(--green-soft), #F3FCF6);
  border: 1px solid var(--green-line);
}

.sc-thumb svg {
  width: 24px;
  height: 24px;
  color: var(--green-ink);
}

.sc-meta {
  flex: 1;
  min-width: 0;
}

.sc-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--green-ink);
}

.sc-kind .kd {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
}

.sc-ready {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--green-ink);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
}

.sc-ready .rd {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  animation: sc-pulse 2s ease-in-out infinite;
}

@keyframes sc-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

@media (prefers-reduced-motion: reduce) {
  .sc-ready .rd { animation: none; }
}

.sc-head h1 {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
  color: var(--ink);
}

.sc-head p {
  margin: 11px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-mid);
  max-width: 46ch;
}

/* Body */
.sc-body {
  padding: 20px 28px 4px;
}

.sc-goal {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--green-line);
  border-radius: 16px;
  padding: 16px 18px 16px 20px;
  background:
    radial-gradient(300px 150px at 100% 0%, rgba(34,197,94,.09), transparent 60%),
    #FBFEFC;
}

.sc-goal::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green);
}

.sc-goal .lbl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 8px;
}

.sc-goal .lbl svg {
  width: 14px;
  height: 14px;
}

.sc-goal p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  text-wrap: pretty;
}

/* Footer */
.sc-foot {
  margin-top: 18px;
  padding: 16px 28px 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-btn {
  border: none;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter .12s ease, transform .12s ease, background .12s ease, border-color .12s ease;
  white-space: nowrap;
}

.sc-btn:hover {
  transform: translateY(-1px);
}

.sc-btn.ghost {
  background: var(--card);
  color: var(--ink-mid);
  border: 1.5px solid var(--line);
  margin-right: auto;
}

.sc-btn.ghost:hover {
  background: var(--line-soft);
  border-color: var(--ink-soft);
}

.sc-btn.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(34,197,94,.6), inset 0 1px 0 rgba(255,255,255,.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sc-btn.primary:hover {
  filter: brightness(.97);
}

.sc-btn.primary svg {
  width: 16px;
  height: 16px;
}

/* Waiting state: the start button holds the spot until the session connects. */
.sc-btn.primary:disabled {
  cursor: default;
  transform: none;
  filter: none;
  background: var(--green-soft);
  color: var(--green-ink);
  box-shadow: inset 0 0 0 1px var(--green-line);
}

.sc-spin {
  width: 15px;
  height: 15px;
  border: 2.5px solid var(--green-line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: mgSpin .7s linear infinite;
}

.sc-btn.text {
  background: transparent;
  color: var(--ink-soft);
  padding: 12px 8px;
}

.sc-btn.text:hover {
  color: var(--ink-mid);
  transform: none;
}

/* ----- REVIEW CARD ----- */

.sc-banner {
  position: relative;
  overflow: hidden;
  padding: 24px 28px 22px;
  background:
    radial-gradient(420px 220px at 88% -30%, rgba(34,197,94,.16), transparent 62%),
    linear-gradient(180deg, #F4FCF7, #FFFFFF);
  border-bottom: 1px solid var(--line-soft);
}

.sc-banner.fail {
  background:
    radial-gradient(420px 220px at 88% -30%, rgba(245,158,11,.16), transparent 62%),
    linear-gradient(180deg, #FFFAF3, #FFFFFF);
}

.sc-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sc-coach-badge {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sc-coach-badge img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

.sc-coach-badge .who {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.sc-coach-badge .role {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}

.sc-verdict {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(34,197,94,.7);
}

.sc-verdict.fail {
  background: var(--amber);
  box-shadow: 0 6px 14px -6px rgba(245,158,11,.7);
}

.sc-verdict svg {
  width: 15px;
  height: 15px;
}

.sc-score-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.sc-score {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--mono);
}

.sc-score .big {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: .9;
  color: var(--green-ink);
}

.sc-banner.fail .sc-score .big {
  color: var(--amber-ink);
}

.sc-score .den {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-soft);
}

.sc-score-meta {
  flex: 1;
  min-width: 0;
  padding-bottom: 4px;
}

.sc-score-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--ink);
  margin-bottom: 3px;
}

.sc-score-sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-mid);
}

.sc-meter {
  margin-top: 14px;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-deep);
  overflow: hidden;
}

.sc-meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34D06B, var(--green));
  transition: width .5s ease;
}

.sc-banner.fail .sc-meter i {
  background: linear-gradient(90deg, #FCD34D, var(--amber));
}

/* Review body */
.sc-review-body {
  padding: 22px 28px 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sc-block {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 15px 17px;
}

.sc-block .lbl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.sc-block .lbl .ic {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sc-block .lbl .ic svg {
  width: 12px;
  height: 12px;
}

.sc-block p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-mid);
}

/* What worked (green) */
.sc-block.good {
  background: var(--green-soft);
  border-color: var(--green-line);
}

.sc-block.good .lbl {
  color: var(--green-ink);
}

.sc-block.good .lbl .ic {
  background: var(--green);
  color: #fff;
}

/* What to improve (amber) */
.sc-block.improve {
  background: var(--amber-soft);
  border-color: var(--amber-line);
}

.sc-block.improve .lbl {
  color: var(--amber-ink);
}

.sc-block.improve .lbl .ic {
  background: var(--amber);
  color: #fff;
}

/* Featured (stronger wording) */
.sc-featured {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--green-line);
  border-radius: 18px;
  padding: 18px 20px 18px 22px;
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(34,197,94,.1), transparent 60%),
    #FBFEFC;
}

.sc-featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green);
}

.sc-featured .lbl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 10px;
}

.sc-featured .lbl svg {
  width: 14px;
  height: 14px;
}

.sc-featured blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.2px;
  text-wrap: pretty;
}

.sc-featured .copy {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-ink);
  background: #fff;
  border: 1px solid var(--green-line);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s ease;
}

.sc-featured .copy:hover {
  background: var(--green-soft);
}

.sc-featured .copy svg {
  width: 13px;
  height: 13px;
}

/* Tips grid */
.sc-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sc-tip {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 13px 15px;
  background: #FCFDFE;
}

.sc-tip .lbl {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.sc-tip .lbl svg {
  width: 13px;
  height: 13px;
  color: var(--ink-soft);
}

.sc-tip p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-mid);
}

/* Review footer */
.sc-review-foot {
  margin-top: 8px;
  padding: 16px 28px 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sc-saved {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-right: auto;
}

.sc-saved svg {
  width: 14px;
  height: 14px;
  color: var(--green-ink);
}

/* Responsive */
@media (max-width: 520px) {
  .sc-head, .sc-body, .sc-foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sc-head h1 {
    font-size: 24px;
  }

  .sc-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .sc-banner, .sc-review-body, .sc-review-foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sc-tips {
    grid-template-columns: 1fr;
  }

  .sc-review-foot {
    gap: 8px;
  }

  .sc-review-foot .sc-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}
/* Speech Review + Story Bank surfaces, aligned to the main app design language. */
.sr-page { max-width: 1000px; }
/* Match .mg-page content width (1000px minus its 56px side padding). */
.mg-home-container.sr-page { max-width: 888px; }
.sr-page h1 { margin: 0 0 8px; font-size: 32px; font-weight: 800; letter-spacing: -1px; color: var(--ink); }
.sr-page h2 { margin: 0 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.sr-page h3 { margin: 20px 0 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.sr-page p, .sr-page li { color: var(--ink-mid); font-size: 14.5px; line-height: 1.65; }
.sr-page li + li { margin-top: 7px; }
.sr-page .sr-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.sr-card { margin: 18px 0; padding: 26px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.sr-page .sr-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; color: var(--green-ink); letter-spacing: 1.3px; text-transform: uppercase; margin: 0 0 14px; }
.sr-page .sr-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); flex-shrink: 0; }
.sr-field { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--ink); }
.sr-field > span:first-child { font-size: 12px; font-weight: 700; color: var(--ink); }
.sr-field input, .sr-field textarea, .sr-turn select { border: 1.5px solid var(--line); border-radius: 11px; padding: 12px 13px; background: var(--card); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 400; box-sizing: border-box; transition: border-color .14s ease, box-shadow .14s ease; }
.sr-field textarea { resize: vertical; line-height: 1.55; }
/* Practice-style setup composer (Story Bank). */
.sb-composer { position: relative; overflow: hidden; }
.sb-composer-create { border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 30px 32px 26px; background: radial-gradient(720px 340px at 92% -10%, rgba(34,197,94,.10), transparent 62%), radial-gradient(520px 260px at 2% 112%, rgba(34,197,94,.06), transparent 60%), linear-gradient(180deg, #ffffff 0%, #fcfefd 100%); box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 26px 60px -34px rgba(15,40,30,.35); }
.sr-page .sb-composer h2 { font-size: 28px; }
.sr-page .sb-composer-sub { margin: 6px 0 4px; font-size: 14.5px; color: var(--ink-mid); max-width: 48ch; }
.sb-seg { display: inline-flex; flex-wrap: wrap; padding: 4px; background: #e7eaee; border-radius: 12px; gap: 3px; }
.sb-seg-btn { border: none; background: transparent; color: var(--ink-soft); padding: 9px 16px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .12s ease, color .12s ease, box-shadow .12s ease; }
.sb-seg-btn:hover { color: var(--ink-mid); }
.sb-seg-btn.on { background: var(--card); color: var(--green-ink); box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.sb-start { padding: 13px 22px; font-size: 14.5px; }
/* Rating readout. */
.sb-rating { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 4px; }
.sb-rating-label { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-soft); }
.sb-readiness { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 16px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink) !important; font-size: 14px; font-weight: 800; }
.sb-readiness::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.sb-readiness[data-readiness="needs_practice"] { background: var(--amber-soft); color: var(--amber-ink) !important; }
.sb-readiness[data-readiness="not_assessed"] { background: var(--line-soft); color: var(--ink-mid) !important; }
.sb-story-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sb-tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); }
.sr-page .sb-takeaway { margin-top: 6px; }
.sb-delete { color: #b91c1c !important; }
.sb-review .sr-page { padding: 0; max-width: none; }
.sb-recording-actions { align-items: center; }
.sb-mic-button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 22px; border: 0; border-radius: 14px; background: var(--green); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 26px -12px rgba(34,197,94,.8), inset 0 1px 0 rgba(255,255,255,.25); transition: filter .12s ease, transform .12s ease, background .12s ease; }
.sb-mic-button:hover:not(:disabled) { filter: brightness(.97); transform: translateY(-1px); }
.sb-mic-button.is-recording { background: var(--red); box-shadow: 0 10px 26px -12px rgba(239,68,68,.75); }
.sb-mic-button:disabled { background: #e7eaee; color: var(--ink-soft); cursor: wait; box-shadow: none; }
.sb-mic-wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.sb-mic-wave span { width: 3px; height: 18px; border-radius: 999px; background: currentColor; transform-origin: center; animation: sbMicWave .9s ease-in-out infinite; }
.sr-page .sb-recording-status { color: #b42318; font-weight: 700; }
.sr-page .sb-recording-time { font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes sbMicWave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .sb-mic-wave span { animation: none; } }
.sr-page :is(input, textarea, select, button, summary):focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sr-upload { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: #f4fbf7; border: 1.5px dashed #a7d8b9; border-radius: var(--radius-md); font-size: 14px; font-weight: 700; color: var(--ink); transition: border-color .14s ease, background .14s ease; }
.sr-upload:hover { border-color: var(--green); background: var(--green-soft); }
.sr-upload span { font-size: 12px; color: var(--ink-soft); font-weight: 400; }
.sr-upload input { max-width: 100%; font: inherit; }
.sr-page .sr-help { font-size: 12.5px; font-weight: 400; color: var(--ink-soft); }
.sr-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.sr-primary, .sr-secondary { padding: 12px 18px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: filter .12s ease, transform .12s ease, background .12s ease, border-color .12s ease; }
.sr-primary { background: var(--green); border: 1px solid var(--green); color: #fff; box-shadow: 0 8px 20px -8px rgba(34,197,94,.55), inset 0 1px 0 rgba(255,255,255,.25); }
.sr-primary:hover:not(:disabled) { filter: brightness(.97); transform: translateY(-1px); }
.sr-secondary { background: var(--card); border: 1px solid var(--line); color: var(--ink-mid); }
.sr-secondary:hover:not(:disabled) { background: var(--line-soft); }
.sr-primary:disabled, .sr-secondary:disabled { opacity: .55; cursor: default; box-shadow: none; transform: none; }
.sr-text-button { background: transparent; color: var(--green-ink); border: 0; padding: 6px 0; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sr-text-button:hover { color: var(--ink); }
.sr-notice { background: var(--card-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 15px; color: var(--ink-mid); font-size: 12.5px; line-height: 1.7; margin: 18px 0; }
.sr-error { background: #fff1f0; color: #a6382e !important; border: 1px solid #fecaca; border-radius: var(--radius-sm); padding: 13px 16px; font-size: 13px; line-height: 1.6; margin: 16px 0; }
.sr-busy { display: flex; gap: 18px; align-items: center; }
.sr-busy strong { font-size: 14px; color: var(--ink); }
.sr-busy p { margin: 5px 0 0; }
.sr-spinner { width: 25px; height: 25px; border: 3px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; flex-shrink: 0; animation: sr-spin 1s linear infinite; }
@keyframes sr-spin { to { transform: rotate(360deg); } }
.sr-page audio { width: 100%; margin: 12px 0; }
.sr-speakers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0; }
.sr-speaker { border: 1.5px solid var(--line); border-radius: 12px; padding: 18px; transition: border-color .12s ease, background .12s ease; }
.sr-speaker.is-selected { border-color: var(--green); background: var(--green-soft); }
.sr-speaker label { display: block; cursor: pointer; font-size: 14px; }
.sr-speaker input { accent-color: var(--green); }
.sr-speaker label span { display: block; margin: 12px 0; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.sr-page .sr-dialog { width: min(760px, calc(100% - 32px)); max-height: 88vh; max-height: 88dvh; margin: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--card); color: var(--ink); box-shadow: 0 24px 80px rgba(14,17,22,.25); overflow-y: auto; overscroll-behavior: contain; }
.sr-dialog::backdrop { background: rgba(14,17,22,.6); backdrop-filter: blur(4px); }
.sr-dialog-content { padding: 26px; }
.sr-page .sr-dialog .sr-heading { flex-wrap: nowrap; }
.sr-dialog-close { padding: 5px 10px; font-size: 22px; line-height: 1.1; flex-shrink: 0; }
.sr-page .sr-dialog .sr-actions { position: sticky; bottom: 0; margin: 0; padding: 18px 26px; background: var(--card); border-top: 1px solid var(--line-soft); }
.sr-page details { border-top: 1px solid var(--line-soft); margin-top: 20px; padding-top: 16px; }
.sr-page summary { font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink-mid); padding: 6px 0; }
.sr-turn { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.sr-turn label { font-size: 12px; color: var(--ink-soft); }
.sr-turn p { grid-column: 1 / -1; margin: 0; }
.sr-turn select { padding: 5px 9px; font-size: 12px; }
.sr-turn.is-overlap { opacity: .65; }
.sr-overall { font-size: 44px; font-weight: 800; letter-spacing: -1px; text-align: right; color: var(--ink); }
.sr-overall small { display: block; font-size: 10px; color: var(--ink-soft); letter-spacing: .5px; }
.sr-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.sr-metric { background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px; }
.sr-metric > span { display: block; font-size: 11px; color: var(--ink-soft); margin-bottom: 8px; }
.sr-metric strong { display: block; font-size: 23px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sr-metric small { font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.sr-overview, .sr-chapter { max-width: 780px; }
.sr-page .sr-overview-text { font-size: 16px; line-height: 1.75; margin-bottom: 22px; }
.sr-summary-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sr-summary-points > div { padding: 18px 20px; border-radius: 12px; background: var(--card-soft); border: 1px solid var(--line-soft); }
.sr-summary-points .sr-summary-strengths { background: var(--green-soft); border-color: #cfeeda; }
.sr-summary-points h3 { margin-top: 0; }
.sr-summary-points ul { padding-left: 18px; margin-bottom: 0; }
.sr-focus { border-left: 3px solid var(--green); padding: 2px 18px; margin: 24px 0; }
.sr-focus h3 { margin-top: 0; }
.sr-focus p { margin-bottom: 0; }
.sr-chapter { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.sr-chapter .sr-eyebrow { margin-bottom: 8px; }
.sr-improvements { display: grid; gap: 16px; }
.sr-improvement { padding: 16px 20px; border: 1px solid var(--line-soft); border-radius: 12px; }
.sr-improvement p { margin: 0 0 8px; }
.sr-improvement p:last-child { margin-bottom: 0; }
.sr-observation strong { color: var(--ink); }
.sr-example { margin-top: 12px; padding: 12px 16px; background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: 8px; }
.sr-example > span { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.sr-example blockquote { margin: 6px 0 0; font-size: 14px; line-height: 1.65; color: var(--ink-mid); white-space: pre-line; }
.sr-transcript p { white-space: pre-line; }
.sr-report { overflow-wrap: anywhere; }
.sr-detail { padding: 10px 0; }
.sr-correction { border-left: 2px solid var(--line); padding-left: 12px; margin: 14px 0; }
.sr-correction p { margin: 0 0 4px; }
.sr-correction small { color: var(--ink-soft); }
.sr-history { display: flex; flex-direction: column; gap: 4px; }
.sr-history button { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 12px; color: var(--ink-mid); font: inherit; font-size: 13.5px; cursor: pointer; transition: background .12s ease, border-color .12s ease; }
.sr-history button:hover:not(:disabled) { background: var(--card-soft); border-color: var(--line); }
.sr-history button:disabled { cursor: default; opacity: .6; }
.sr-history strong { color: var(--ink); }
.sr-history small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-soft); font-weight: 400; }
.sb-row-status { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--green-ink); }
.sb-row-status::after { content: "→"; color: var(--ink-soft); font-weight: 400; }
.sb-row-status[data-readiness="needs_practice"] { color: var(--amber-ink); }
.sb-row-status[data-readiness="not_assessed"] { color: var(--ink-soft); }
@media (max-width: 640px) {
  .sr-card { padding: 18px; }
  .sb-composer-create { padding: 22px 18px 20px; }
  .sr-summary-points { grid-template-columns: 1fr; }
  .sr-page h1 { font-size: 26px; }
  .sr-page .sb-composer h2 { font-size: 24px; }
  .sr-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sr-actions button { flex: 1; }
  .sr-dialog-content { padding: 18px; }
  .sr-page .sr-dialog .sr-actions { padding: 16px 18px; }
}
/* Speaking Diagnostic: quiet interview surface and evidence-first results. */

.sd-release { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin: 28px 0 8px; color: var(--ink-soft); font-size: 11px; }
.sd-version { font-weight: 600; white-space: nowrap; }
.sd-build { font-family: 'JetBrains Mono', monospace; }
.sd-interview h2 { max-width: 760px; font-size: clamp(22px, 3vw, 30px); line-height: 1.4; }
.sd-interview progress { width: 100%; height: 6px; accent-color: #22c55e; margin: 12px 0 28px; }
.sd-intro h2 { font-size: clamp(24px, 3vw, 34px); }
.sd-intro p { max-width: 680px; line-height: 1.7; }
.sd-timer { min-height: 28px; font-size: 24px; font-variant-numeric: tabular-nums; }
.sd-evidence { display: grid; gap: 8px; width: 100%; margin: 10px 0; padding: 14px 16px; border: 1px solid #e3e9e5; border-radius: 10px; background: #f8faf9; text-align: left; color: #1f2937; line-height: 1.6; cursor: pointer; overflow-wrap: anywhere; }
.sd-evidence > span:first-child { color: #15803d; font-size: 12px; font-weight: 600; }
.sd-evidence:focus-visible { outline: 2px solid #15803d; outline-offset: 3px; }
.sd-page audio { width: 100%; }
.sd-compact-report { max-width: 780px; }
.sd-compact-report > h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; max-width: 680px; }
.sd-compact-report h3 { font-size: 16px; margin: 0 0 10px; }
.sd-impact, .sd-example, .sd-preserve { margin: 26px 0; }
.sd-impact { padding-left: 16px; border-left: 3px solid var(--line); }
.sd-compact-report p { max-width: 680px; line-height: 1.65; }
.sd-example-label { font-size: 11px; font-weight: 700; color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.sd-better { padding: 18px; border-radius: 12px; background: var(--green-soft); margin: 14px 0; }
.sd-better blockquote { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.65; white-space: pre-line; }
.sd-practice { padding: 22px; background: var(--card-soft); border-radius: 12px; margin: 28px 0; }
.sd-full-analysis { padding: 20px 0; border-top: 1px solid var(--line-soft); }
.sd-full-analysis > summary { cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 600; }
.sd-full-analysis > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.sd-full-analysis .sr-report { padding: 24px 0 0; border: 0; box-shadow: none; background: transparent; }
.sd-learning { margin-top: 24px; }
.sd-learning-details, .sd-answer-anatomy, .sd-practice-result { border-top: 1px solid var(--line-soft); padding: 16px 0; }
.sd-learning summary { cursor: pointer; font-weight: 600; color: var(--ink); line-height: 1.5; }
.sd-learning summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.sd-table-scroll { overflow-x: auto; max-width: 100%; margin: 18px 0; }
.sd-behavior-table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.5; min-width: 500px; }
.sd-behavior-table caption { text-align: left; font-weight: 600; margin-bottom: 12px; }
.sd-behavior-table th, .sd-behavior-table td { padding: 10px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.sd-behavior-table th { font-weight: 600; }
.sd-behavior-table tbody th { max-width: 300px; }
.sd-anatomy-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; font-size: 12px; }
.sd-anatomy-legend span { padding: 5px 8px; border-radius: 4px; }
.sd-anatomy-text { line-height: 1.85; white-space: pre-wrap; }
.sd-region { color: var(--ink); padding: 2px 0; }
.sd-region-main_point { background: #daf0df; border-bottom: 2px solid #5b9b68; }
.sd-region-reason { background: #e2eefb; border-bottom: 2px solid #6b94bd; }
.sd-region-nuance { background: #eee7f6; border-bottom: 2px solid #9a7abb; }
.sd-region-extra_qualification { background: #fff0d8; border-bottom: 2px dashed #bd8843; }
.sd-landing-marker { display: inline-block; font-size: 10px; font-weight: 700; color: #925309; background: #fff0d8; border-radius: 4px; padding: 2px 6px; margin: 0 5px; }
.sd-practice-panel details { margin: 20px 0; }
.sd-practice-result > p { margin-top: 16px; }
.sd-attempts { margin-top: 24px; }
@media (max-width: 600px) { .sd-page .sr-actions { flex-wrap: wrap; } }

/* Skill practice shares the responsive review layout. */
.tr-result { font-size: 1.1rem; line-height: 1.6; }
.tr-page audio { width: 100%; }
.tr-page blockquote { overflow-wrap: anywhere; }

/* Speaking Diagnostic: landing, progress and full-screen live interview */
.sd-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; }
.sd-intro-copy p:last-child { margin-bottom: 0; }
.sd-intro-action { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sd-intro-action .sr-help { margin: 6px 0 0; }
.sr-primary.sd-start { padding: 15px 28px; font-size: 15px; }
.sd-intro-tips { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line-soft); }
.sr-page .sd-intro-tips li { margin: 0; display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.5; }
.sd-intro-tips strong { color: var(--ink); font-size: 13px; }
.sd-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sr-page .sd-bars li { margin: 0; display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) 56px; align-items: center; gap: 14px; font-size: 13.5px; }
.sd-bar-label { color: var(--ink); font-weight: 600; }
.sd-bar-track { height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.sd-bar-track span { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.sd-bar-value { color: var(--ink-mid); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sd-history-row { display: flex; align-items: center; gap: 4px; }
.sr-history .sd-history-delete { width: auto; flex-shrink: 0; padding: 10px; color: var(--ink-soft); }
.sr-history .sd-history-delete:hover:not(:disabled) { color: var(--red); }
.sd-history button > span:first-child { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sd-chevron { flex-shrink: 0; color: var(--ink-soft); margin-left: -6px; }
.sd-history-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sd-history-head .sr-text-button { font-size: 12.5px; }
.sd-resume { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--amber-soft); }
.sr-page .sd-resume p { margin: 0; display: flex; flex-direction: column; line-height: 1.5; }
.sd-resume strong { color: var(--amber-ink); font-size: 14px; }
.sd-resume span { color: var(--ink-mid); font-size: 12.5px; }
.sd-pill { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); font-size: 11.5px; font-weight: 700; }
.sd-pill.is-done { background: var(--green-soft); color: var(--green-ink); }
.sd-trial-list { margin: 16px 0; padding: 0; list-style: none; counter-reset: trial; display: grid; gap: 12px; }
.sd-trial-list li { counter-increment: trial; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.sd-trial-list h3 { margin: 0 0 6px; font-size: 16px; }
.sd-trial-list h3::before { content: counter(trial) ". "; color: var(--green-ink); }
.sd-trial-list p { margin: 0 0 6px; color: var(--ink-mid); }
.sd-trial-list blockquote { margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid var(--green); background: var(--green-soft); border-radius: 0 8px 8px 0; }
/* Something to fix is flagged in yellow; the better way to say it is green. */
.sd-trial-list blockquote span { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; font-style: normal; }
.sd-trial-list blockquote.sd-said { margin: 8px 0; border-left-color: #F79009; background: #FFFAEB; } .sd-said span { color: #B54708; }
.sd-trial-list blockquote.sd-say-instead { margin: 0 0 8px; border-left-color: #17B26A; background: #ECFDF3; } .sd-say-instead span { color: #067647; }
.sd-grade-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sd-grade-head h2 { margin: 0; min-width: 0; }
.sr-page .sd-grade { margin: 0; flex-shrink: 0; display: flex; align-items: baseline; gap: 2px; padding: 8px 14px; border-radius: 14px; background: var(--green-soft); color: var(--green-ink); }
.sd-grade strong { font-size: 30px; line-height: 1; font-weight: 800; }
.sd-grade span { font-size: 14px; font-weight: 700; }
.sd-status-list { margin: 8px 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; }
.sd-status-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.sd-trial-report .sr-secondary { display: inline-block; margin-top: 8px; }
.sd-session-actions { justify-content: flex-start; align-items: center; margin-top: 0; }
.sd-session-actions .sb-delete { margin-left: auto; }

.sr-page.sd-focus { max-width: none; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(1200px 520px at 0% 100%, #e6f4e4 0%, transparent 60%), radial-gradient(1000px 480px at 100% 100%, #e9f5e6 0%, transparent 60%), #f3f9f1; }
.sd-focus-bar { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: var(--card); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 5; }
.sd-focus-back { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink-mid); cursor: pointer; }
.sd-focus-back:hover:not(:disabled) { background: var(--line-soft); }
.sd-focus-back:disabled { opacity: .35; cursor: default; }
.sd-focus-heading { min-width: 0; flex: 1; }
.sr-page .sd-focus-heading p { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--green-ink); line-height: 1.4; }
.sd-focus-heading strong { display: block; font-size: 17px; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-focus-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sd-focus-timer { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--line-soft); color: var(--ink-mid); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sd-focus-timer.is-live { background: #fee4e2; color: #b42318; }
.sd-focus-timer.is-live::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #dc2626; animation: sd-pulse 1.4s ease-in-out infinite; }
.sr-primary.sd-focus-end { padding: 9px 16px; font-size: 13px; border-radius: 10px; }
.sr-secondary.sd-focus-cancel { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.sd-focus-stage { flex: 1; width: min(720px, 100%); margin: 0 auto; padding: 56px 28px 80px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sd-focus-stage .sr-error { align-self: stretch; text-align: left; }
.sd-orb { position: relative; width: 112px; height: 112px; margin: 8px 0 26px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--green-soft) 0%, rgba(233,248,238,0) 70%); }
.sd-orb span { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(145deg, #4ade80, var(--green)); box-shadow: 0 14px 34px -10px rgba(34,197,94,.65); transition: transform .3s ease, background .3s ease; }
.sd-orb.is-speaking span { animation: sd-breathe 1.1s ease-in-out infinite; }
.sd-orb.is-listening span { background: linear-gradient(145deg, #f87171, #dc2626); box-shadow: 0 14px 34px -10px rgba(220,38,38,.55); animation: sd-breathe 1.8s ease-in-out infinite; }
.sd-orb.is-listening { background: radial-gradient(circle, #fee4e2 0%, rgba(254,228,226,0) 70%); }
.sd-orb.is-thinking span, .sd-orb.is-connecting span, .sd-orb.is-reconnecting span, .sd-orb.is-saving span { animation: sd-dim 1.4s ease-in-out infinite; }
.sd-orb.is-muted span { background: var(--ink-soft); box-shadow: none; }
.sr-page .sd-focus-status { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.sd-focus-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 14px 0 30px; }
.sr-page .sd-focus-steps li { margin: 0; width: 28px; height: 4px; border-radius: 999px; background: var(--line); }
.sr-page .sd-focus-steps li.is-done { background: var(--green); }
.sr-page .sd-focus-steps li.is-current { background: #86efac; }
.sr-page .sd-focus-question { margin: 0 0 12px; max-width: 640px; font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; line-height: 1.35; letter-spacing: -.5px; color: var(--ink); }
.sr-page .sd-focus-lede { max-width: 520px; margin: 0 0 6px; font-size: 15px; }
.sd-focus-controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0 14px; }
@keyframes sd-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes sd-dim { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes sd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .sd-orb span, .sd-focus-timer.is-live::before { animation: none !important; } }
@media (max-width: 640px) {
  .sd-intro { grid-template-columns: 1fr; }
  .sd-intro-action { align-items: stretch; text-align: center; }
  .sd-intro-tips { grid-template-columns: 1fr; gap: 8px; }
  .sr-page .sd-intro-tips li { flex-direction: row; gap: 6px; }
  .sr-page .sd-bars li { grid-template-columns: minmax(0, 1fr) 52px; gap: 4px 10px; }
  .sd-bar-track { grid-column: 1 / -1; grid-row: 2; }
  .sd-focus-bar { padding: 12px 16px; gap: 10px; }
  .sr-page .sd-focus-heading p { display: none; }
  .sd-focus-heading strong { font-size: 15px; }
  .sd-focus-stage { padding: 36px 16px 64px; }
  .sd-orb { width: 92px; height: 92px; }
  .sd-orb span { width: 54px; height: 54px; }
}
.sd-process-steps { list-style: none; margin: 26px 0 18px; padding: 18px 22px; width: min(380px, 100%); display: grid; gap: 12px; text-align: left; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-md); }
.sr-page .sd-process-steps li { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.sr-page .sd-process-steps li.is-active { color: var(--ink); font-weight: 700; }
.sr-page .sd-process-steps li.is-done { color: var(--ink-mid); }
.sd-review-bar { width: min(380px, 100%); height: 6px; margin: 14px 0 0; appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: var(--line-soft); }
.sd-review-bar::-webkit-progress-bar { background: var(--line-soft); } .sd-review-bar::-webkit-progress-value { background: var(--green); transition: width 1s linear; } .sd-review-bar::-moz-progress-bar { background: var(--green); }
.sr-page .sd-listening-for { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--ink); } .sd-listening-for span { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--green-ink); }
.sd-step-mark { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.is-active .sd-step-mark { border-color: var(--green-soft); border-top-color: var(--green); animation: sr-spin 1s linear infinite; }
.is-done .sd-step-mark { border: 0; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (prefers-reduced-motion: reduce) { .is-active .sd-step-mark { animation: none; border-color: var(--green); } }

/* Speaking Diagnostic report: reads like an assessment document */
.sr-card.sd-doc { padding: 44px 52px; }
.sd-doc-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sr-page .sd-doc-meta .sr-eyebrow { margin: 0; }
.sr-page .sd-doc-date { margin: 10px 0 18px; font-size: 13px; color: var(--ink-soft); }
.sr-page .sd-doc-head h2 { margin: 0 0 14px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -1px; }
.sr-page .sd-doc-lede { margin: 0; max-width: 64ch; font-size: 17px; line-height: 1.7; color: var(--ink-mid); }
.sd-doc-head { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.sd-doc-section { padding: 30px 0; border-bottom: 1px solid var(--line-soft); }
.sr-page .sd-doc-section > h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.sd-doc-num { display: inline-grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); font-size: 13px; font-weight: 800; }
.sr-page .sd-doc-section > p { max-width: 66ch; font-size: 15px; line-height: 1.75; }
.sd-doc .sd-scorecard { margin: 22px 0 14px; gap: 14px; }
.sr-page .sd-doc .sd-scorecard li { grid-template-columns: minmax(130px, 200px) minmax(0, 1fr) 150px; }
.sd-doc .sd-scorecard .sd-bar-label small { margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); font-size: 10.5px; font-weight: 700; vertical-align: 1px; }
.sr-page .sd-doc .sd-scorecard li { margin: 0; }
.sr-page .sd-doc .sd-scorecard li p { grid-column: 1 / -1; margin: -8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.sd-doc .sd-bar-value { text-align: left; }
.sd-doc-practice { margin-top: 22px; padding: 20px 22px; background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-md); }
.sr-page .sd-doc-practice p { max-width: 66ch; }
.sr-page .sd-doc-practice .sd-example-label { margin-top: 0; }
.sd-doc .sd-preserve { margin: 0; }
.sd-doc-appendix .sd-profile .sd-scorecard { margin-top: 16px; }
.sd-doc-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 20px 0 6px; }
.sd-doc-actions a.sr-secondary { display: inline-flex; align-items: center; }
.sd-doc-appendix { padding-top: 26px; }
.sr-page .sd-doc-appendix > h3 { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); }
.sd-doc-appendix .sr-actions { justify-content: flex-start; margin-top: 12px; }
@media (max-width: 640px) {
  .sr-card.sd-doc { padding: 26px 20px; }
  .sr-page .sd-doc .sd-scorecard li { grid-template-columns: minmax(0, 1fr) auto; }
  .sd-doc .sd-bar-value { text-align: right; }
}
@media print {
  .mg-sidebar, .mg-mobile-topbar, .mg-sidebar-overlay, .sd-release, .sd-session-actions, .sd-doc-print, .sd-doc-actions, .sd-doc-appendix, .sd-doc .sd-learning-details, .sd-attempts, .sr-heading { display: none !important; }
  .mg-shell { display: block !important; }
  body { background: #fff !important; }
  .sr-card.sd-doc { border: 0; box-shadow: none; padding: 0; }
  .sd-doc-section { break-inside: avoid; }
  .sd-bar-track span, .sd-doc-num { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Sidebar practice streak (under the logo) */
.mg-streak { margin: 0 4px 14px; padding: 10px 10px 11px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--card); }
.mg-streak-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-soft); }
.mg-streak-top b { font-size: 12.5px; letter-spacing: 0; color: var(--green-ink); }
.mg-streak-days { display: flex; justify-content: space-between; }
.mg-streak-days span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mg-streak-days i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--ink-soft); }
.mg-streak-days b { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: var(--ink-mid); background: var(--line-soft); box-sizing: border-box; }
.mg-streak-days .done b { background: var(--green-soft); color: var(--green-ink); }
.mg-streak-days .today i { color: var(--green-ink); }
.mg-streak-days .today b { background: var(--green); color: #fff; }
.mg-streak-days .future b { background: transparent; border: 1px dashed var(--line); color: var(--ink-soft); }

/* A finished diagnostic the speaker has not opened yet. */
.mg-nav-dot { width: 8px; height: 8px; border-radius: 999px; background: #22C55E; margin-left: auto; flex-shrink: 0; box-shadow: 0 0 0 3px #E9F8EE; }
.mg-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mg-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; box-sizing: border-box; max-width: calc(100% - 32px); width: max-content;
  background: #0E1116; color: #FFFFFF; border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.45; font-weight: 500; box-shadow: 0 12px 32px -12px rgba(15, 23, 42, .5); }

/* Yapping: full-screen camera on phones, a 9:16 frame on desktop. The frame matches the crop of the final video. */
.yap-stage { position: relative; width: min(100%, 360px, calc((100dvh - 48px) * 9 / 16)); aspect-ratio: 9 / 16; margin: 0 auto; overflow: hidden; border-radius: 22px; background: #0E1116; color: #fff; }
.yap-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.yap-starting { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-weight: 600; color: #fff !important; }
.yap-sticker { position: absolute; left: 5%; top: 10%; max-width: 90%; padding: 13px 16px; border-radius: 16px; background: #fff; }
.yap-sticker::after { content: ""; position: absolute; left: 18px; bottom: -11px; border-left: 16px solid #fff; border-bottom: 12px solid transparent; }
.yap-sticker span { display: block; margin-bottom: 3px; color: #6B7280; font-size: 13px; font-weight: 500; }
.yap-page .yap-sticker p { margin: 0; color: #111827; font-size: clamp(17px, 2.7dvh, 22px); font-weight: 700; line-height: 1.28; }
.yap-count { position: absolute; left: 50%; top: 50%; display: grid; justify-items: center; gap: 2px; transform: translate(-50%, -50%); text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.yap-count span { font-size: 14px; font-weight: 700; }
.yap-count strong { font-size: 88px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.yap-stage[data-phase="recording"] .yap-count { left: auto; right: 5%; top: auto; bottom: 4.5%; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; background: rgba(0,0,0,.6); transform: none; text-shadow: none; }
.yap-stage[data-phase="recording"] .yap-count span { width: 9px; height: 9px; overflow: hidden; border-radius: 50%; background: #EF4444; color: transparent; }
.yap-stage[data-phase="recording"] .yap-count strong { font-size: 17px; }
.sr-page .sr-dialog.yap-picker { width: min(460px, calc(100% - 32px)); }
.yap-custom { display: flex; align-items: flex-end; gap: 10px; }
.yap-custom .sr-field { flex: 1; min-width: 0; margin: 0; }
.yap-reroll { position: absolute; left: 50%; bottom: 4.5%; display: none; transform: translateX(-50%); white-space: nowrap; }
.yap-stage[data-phase="countdown"] .yap-reroll { display: block; }
.yap-bottom { position: absolute; left: 4%; right: 4%; bottom: 4.5%; display: none; flex-wrap: wrap; justify-content: center; gap: 8px; }
.yap-stage[data-phase="recording"] .yap-bottom { display: flex; }
/* Camera-app controls: one big round Finish between two small round buttons, Cancel as an x in the corner. */
.yap-bottom { align-items: flex-end; gap: 22px; }
.yap-ctl, .yap-stop { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.yap-ctl svg { width: 48px; height: 48px; padding: 14px; box-sizing: border-box; border-radius: 50%; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.yap-ctl[aria-pressed="false"] svg:nth-of-type(2), .yap-ctl[aria-pressed="true"] svg:nth-of-type(1) { display: none; }
.yap-stop i { display: grid; place-items: center; width: 68px; height: 68px; box-sizing: border-box; border: 4px solid #fff; border-radius: 50%; }
.yap-stop i::after { content: ""; width: 26px; height: 26px; border-radius: 7px; background: #EF4444; }
.yap-ctl:focus-visible svg, .yap-stop:focus-visible i { outline: 3px solid #22C55E; outline-offset: 2px; }
.yap-cancel { position: absolute; top: 2.5%; right: 4%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; }
.yap-cancel:focus-visible { outline: 3px solid #22C55E; outline-offset: 2px; }
/* The timer sits above the controls while recording. */
.yap-stage[data-phase="recording"] .yap-count { bottom: calc(4.5% + 96px); }
.yap-stage.is-paused video { filter: grayscale(.6) brightness(.7); }
.yap-stage.is-paused .yap-count span { background: #F79009; }
.yap-result { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 18px; }
.yap-video { position: sticky; top: 18px; }
.yap-side .sr-card:first-child { margin-top: 0; }
.yap-frame { display: grid; place-items: center; width: min(100%, 340px); aspect-ratio: 9 / 16; margin: 0 auto; overflow: hidden; border-radius: 18px; background: #0E1116; color: #fff; }
.yap-frame video { width: 100%; height: 100%; object-fit: cover; }
.yap-frame-empty { align-content: center; gap: 12px; padding: 24px; background: var(--line-soft); color: var(--ink-mid); text-align: center; }
.yap-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 16px 0; }
.yap-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.yap-mira { border-radius: 50%; flex-shrink: 0; background: var(--green-soft); }
.sr-page .yap-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .4px; color: var(--green-ink); }
.sr-page .yap-review h2 { margin: 2px 0 0; font-size: 19px; line-height: 1.3; }
.yap-grade { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-radius: 14px; background: var(--green-soft); }
.yap-grade strong { color: var(--green-ink); font-size: 44px; font-weight: 800; line-height: 1; }
.yap-grade span { color: var(--ink-mid); font-size: 14px; font-weight: 600; }
.yap-grade .yap-change { margin-left: auto; }
.yap-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 18px 0; }
.yap-score { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.yap-score b { color: var(--ink-mid); }
.yap-score .yap-bar { grid-column: 1 / -1; }
.yap-bar { height: 8px; overflow: hidden; border-radius: 99px; background: var(--line-soft); }
.yap-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.yap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.yap-chips span { padding: 8px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-mid); font-size: 13px; font-weight: 700; }
.yap-strength { padding: 12px 16px; border-radius: 14px; background: var(--green-soft); }
.sr-page .yap-strength p { margin: 0; color: var(--ink); }
.yap-improvements { margin: 0; padding: 0; list-style: none; counter-reset: improve; }
.sr-page .yap-improvements li { position: relative; margin: 0; padding: 12px 0 12px 34px; border-top: 1px solid var(--line-soft); counter-increment: improve; }
.yap-improvements li:first-child { border-top: none; padding-top: 4px; }
.yap-improvements li::before { content: counter(improve); position: absolute; left: 0; top: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; }
.yap-improvements li:first-child::before { top: 4px; }
.sr-page .yap-improvements p { margin: 4px 0 0; }
.yap-try { font-weight: 700; color: var(--green-ink); }
.yap-review blockquote { margin: 8px 0 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--ink-mid); }
.yap-review details { margin-top: 14px; }
/* Story yaps: facts and the replay note on the stage, the story map and the note in the review. */
.yap-live.has-side { display: flex; align-items: center; justify-content: center; gap: 20px; }
.yap-live.has-side .yap-stage { margin: 0; flex-shrink: 0; }
.yap-story-card { display: grid; gap: 12px; width: 280px; }
.yap-page .yap-story-note { margin: 0; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--green); background: #fff; color: var(--ink); font-size: 15px; line-height: 1.45; }
.yap-story-note strong, .yap-facts-box strong { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--green-ink); }
.yap-facts-box { padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); }
.yap-facts { margin: 0; padding-left: 18px; color: var(--ink); font-size: 14px; line-height: 1.45; }
.sr-page .yap-facts li { margin: 0; }
.yap-hero-story { padding: 15px 22px; font-size: 16px; border-radius: 14px; }
.sr-page .sr-dialog.yap-story-picker { width: min(460px, calc(100% - 32px)); }
.yap-tag { display: inline-block; margin-right: 4px; padding: 2px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-size: 11px; font-weight: 800; vertical-align: 1px; }
.yap-story-map { display: grid; gap: 0; margin: 0 0 16px; padding: 0; list-style: none; }
.sr-page .yap-part { margin: 0; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.yap-part:first-child { border-top: none; padding-top: 4px; }
.yap-part-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.yap-part-head b { color: var(--ink-mid); }
.yap-part.is-mid .yap-bar i { background: #F79009; }
.yap-part.is-low .yap-bar i { background: #EF4444; }
.sr-page .yap-part p { margin: 6px 0 0; }
.sr-page .yap-part-missing { color: #B42318; font-weight: 700; font-size: 13.5px; }
.yap-order { margin: 0 0 12px; padding: 12px 16px; border-radius: 14px; background: var(--bg-soft); }
.sr-page .yap-order p { margin: 0; color: var(--ink); }
.yap-note { margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--green); background: #fff; }
.sr-page .yap-note p { margin: 6px 0 0; color: var(--ink); }
.sr-page .yap-note-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--green-ink); }
.sr-page .yap-note-why { color: var(--ink-mid); }
.yap-compare { display: grid; gap: 8px; margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); }
.yap-compare span { font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-mid); }
.sr-page .yap-compare p { margin: 0; }
.sr-page .yap-compare-status { font-weight: 800; }
.yap-compare-status.is-good { color: var(--green-ink); }
.yap-compare-status.is-mid { color: #B54708; }
.yap-compare-status.is-low { color: #B42318; }
.yap-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; margin: 8px 0 18px; padding: 32px 36px; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--green-line, var(--line-soft)); background: radial-gradient(circle at 92% 8%, rgba(34,197,94,.16), transparent 42%), linear-gradient(135deg, #f1fbf4 0%, #ffffff 62%); box-shadow: var(--shadow-md, 0 1px 2px rgba(15,23,42,.04)); }
.sr-page .yap-hero-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--green-ink); }
.sr-page .yap-hero h2 { margin: 0 0 20px; font-size: 30px; line-height: 1.15; letter-spacing: -.8px; }
.yap-flow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.sr-page .yap-flow li { position: relative; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-soft); color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.yap-flow svg { color: var(--green-ink); flex-shrink: 0; }
.yap-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.yap-hero-start { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.yap-hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.yap-hero-stats strong { display: block; font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
.yap-hero-stats span { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.sr-page .yap-hero-note { margin: 22px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.yap-hero-visual { position: relative; justify-self: center; width: 220px; padding: 10px 0; }
.yap-hero-phone { display: block; width: 100%; height: auto; border: 7px solid #1f2328; border-radius: 34px; box-shadow: 0 30px 60px -24px rgba(15,23,42,.45); transform: rotate(2deg); }
.yap-float { position: absolute; left: -64px; bottom: 34px; width: 178px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line-soft); box-shadow: 0 18px 40px -14px rgba(15,23,42,.35); }
.yap-float-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; color: var(--ink-mid); }
.yap-float-head .yap-mira { width: 26px; height: 26px; }
.sr-page .yap-float-grade { margin: 8px 0 6px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.yap-float-grade strong { font-size: 28px; color: var(--green-ink); letter-spacing: -.5px; }
.yap-float-bar { display: grid; grid-template-columns: 1fr auto; gap: 3px; margin: 6px 0; font-size: 11.5px; font-weight: 700; color: var(--ink); }
.yap-float-bar i { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.yap-float-bar em { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.sr-page .yap-float-strength { margin: 8px 0 0; padding: 5px 8px; border-radius: 8px; background: var(--green-soft); color: var(--green-ink); font-size: 11.5px; font-weight: 800; }
.yap-history { margin: 28px 0; }
.yap-table-wrap { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-md); overflow: hidden; }
.yap-table { width: 100%; border-collapse: collapse; font-size: 13.5px; color: var(--ink-mid); }
.yap-table th, .yap-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-soft); }
.yap-table thead th { border-top: none; font-size: 11.5px; font-weight: 800; letter-spacing: .3px; color: var(--ink-soft); text-transform: uppercase; }
.yap-table td:first-child { white-space: nowrap; }
.yap-table ul { margin: 0; padding-left: 16px; }
.sr-page .yap-table li { margin: 0 0 3px; font-size: 13.5px; line-height: 1.4; }
.yap-question { display: flex; align-items: center; gap: 12px; }
/* Yap and podcast rows: a 16:9 icon tile where a video thumbnail would be. */
.media-tile { flex: none; display: grid; place-items: center; width: 72px; height: 40px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-soft); }
.yap-open { all: unset; cursor: pointer; font-weight: 700; color: var(--ink); line-height: 1.4; }
.yap-open:hover { color: var(--green-ink); text-decoration: underline; }
.yap-open:focus-visible { outline: 2px solid var(--green); border-radius: 4px; }
.yap-table-score { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-weight: 800; white-space: nowrap; }
.yap-table-score.is-status { background: var(--bg-soft); color: var(--ink-mid); font-weight: 700; }
@media (max-width: 700px) {
  .yap-hero { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
  .sr-page .yap-hero h2 { font-size: 24px; }
  .yap-hero-visual { width: 130px; margin-left: 70px; }
  .yap-float { left: -86px; bottom: 14px; width: 140px; padding: 10px 12px; }
  .yap-hero-start { flex: 1; }
  .yap-hero-stats { gap: 20px; }
  .yap-scores { gap: 12px 16px; }
  .yap-table thead { display: none; }
  .yap-table, .yap-table tbody, .yap-table tr, .yap-table td { display: block; width: 100%; }
  .yap-table tr { padding: 12px 14px; border-top: 1px solid var(--line-soft); }
  .yap-table tr:first-child { border-top: none; }
  .yap-table td { padding: 3px 0; border: none; }
  .yap-table td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--ink-soft); }
  .yap-table td[data-label="Question"]::before, .yap-table td[data-label="Date"]::before { display: none; }
}
.sr-page .yap-plan-dialog { width: min(460px, calc(100% - 32px)); }
.yap-plan-dialog h2 { margin: 10px 0 14px; font-size: 20px; line-height: 1.3; }
.yap-plan-dialog p { line-height: 1.5; }
/* The card is too narrow for two buttons in a row: stack them, the lead one on top, the link last. */
.yap-plan-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.yap-plan-actions [data-yap-plan-close] { align-self: center; }
.yap-plan-mira { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-mid); }
.yap-plan-mira img { border-radius: 50%; }
.yap-plan-verdict { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.yap-plan-verdict strong { font-size: 40px; font-weight: 800; line-height: 1; }
.yap-plan-verdict span { color: var(--ink-mid); font-weight: 600; }
.yap-plan-verdict.is-pass strong { color: var(--green-ink); }
.yap-plan-verdict.is-fail strong { color: var(--red); }
.yap-next { margin: 16px 0; }
@media (max-width: 720px) {
  .yap-stage { position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100dvh; aspect-ratio: auto; border-radius: 0; }
  /* Phone: the note and facts take a strip above the camera, which fills the rest of the screen. */
  .yap-live.has-side { position: fixed; inset: 0; z-index: 1000; flex-direction: column; align-items: stretch; gap: 0; background: #0E1116; }
  .yap-live.has-side .yap-story-card { width: auto; max-height: 34dvh; overflow-y: auto; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; }
  .yap-live.has-side .yap-stage { position: relative; inset: auto; z-index: auto; flex: 1; height: auto; min-height: 0; }
  .yap-page .yap-live.has-side .yap-story-note, .yap-live.has-side .yap-facts-box { padding: 10px 12px; font-size: 14px; }
  }
/* Stacked on narrow screens, with a smaller video so the review shows without scrolling far. */
@media (max-width: 1040px) {
  .yap-result { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .yap-video { position: static; }
  .yap-frame { width: min(100%, 220px); }
}

/* Billing */
.bill-dialog { width: min(420px, calc(100% - 32px)); margin: auto; padding: 26px; border: none; border-radius: 18px; background: #fff; color: #0E1116; }
.bill-dialog::backdrop { background: rgba(14,17,22,.6); backdrop-filter: blur(4px); }
.bill-dialog h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.3px; }
.bill-dialog p { margin: 0 0 16px; color: #465161; font-size: 14px; line-height: 1.45; }
.bill-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.bill-plan { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding: 16px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: #465161; font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s, transform .15s; }
.bill-plan:hover:not(:disabled) { border-color: var(--green); transform: translateY(-1px); }
.bill-plan:disabled { opacity: .55; cursor: default; }
.bill-plan strong { color: #0E1116; font-size: 24px; letter-spacing: -.4px; }
.bill-plan span { color: #15803D; font-weight: 700; font-size: 11.5px; text-align: center; }
.bill-plan.best { border-color: var(--green); background: var(--green-soft); }
.bill-dialog .bill-small { font-size: 12px; color: #7A8595; margin-bottom: 8px; }
.bill-dialog .bill-error { color: #DC2626; margin-bottom: 8px; }
.bill-dialog .bill-error:empty { display: none; }
/* The plans dialog opens on a Mira header, like the session review card. */
.bill-dialog { position: relative; padding: 0; overflow: hidden; }
.bill-x { position: absolute; top: 14px; right: 14px; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border: none; border-radius: 999px; background: rgba(255,255,255,.85); color: #465161; cursor: pointer; transition: background .15s, color .15s; }
.bill-x:hover { background: #fff; color: #0E1116; }
.bill-dialog-hero { padding: 26px 28px 18px; background: radial-gradient(420px 220px at 88% -30%, rgba(34,197,94,.22), transparent 62%), linear-gradient(180deg, #F4FCF7, #FFFFFF); border-bottom: 1px solid var(--line-soft); }
.bill-dialog-hero p { margin: 0; }
.bill-mira { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.bill-mira img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.bill-mira strong { display: block; font-size: 14px; line-height: 1.2; color: #0E1116; }
.bill-mira span { font-size: 12px; font-weight: 600; color: #7A8595; }
.bill-dialog-body { padding: 18px 28px 22px; }
.bill-perks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; }
.bill-perks li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: #3D4752; }
.bill-perks .bill-mark { color: #16A34A; flex-shrink: 0; }
.bill-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 14px 20px; border-radius: 18px; border: 1px solid #EEF1F4; background: #fff; font-size: 13.5px; color: #465161; }
/* A Pro-only page for a free account: visible but greyed out and inert; a click reopens the plans dialog. */
.bill-gated { cursor: pointer; }
.bill-gated > [inert] { filter: grayscale(1); opacity: .4; user-select: none; }
.bill-bar:empty { display: none; }
.bill-bar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: flex-end; height: 0; padding: 0 20px; overflow: visible; }
.bill-bar .bill-counter { margin-top: 14px; height: fit-content; }
.mg-mobile-topbar .bill-counter { margin-left: auto; }
.bill-counter { display: flex; align-items: center; gap: 9px; padding: 5px 5px 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 6px 18px -10px rgba(15,23,42,.28); color: var(--ink-mid); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.bill-counter button { padding: 6px 13px; border: none; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: transform .15s; }
.bill-counter button:hover { transform: translateY(-1px); }
.bill-counter.empty button { background: var(--green); }
.bill-dots { display: inline-flex; gap: 4px; }
.bill-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.bill-dots i.on { background: var(--green); }
.bill-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bill-dialog-actions a, .bill-row a { color: var(--green-ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.bill-row a { margin-left: auto; }
.mg-upgrade-link { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 10px; padding: 10px 11px; border: 1px solid #FCE3A6; border-radius: 12px; background: linear-gradient(120deg, #FEF4DD, #fff); color: #B45309; font: inherit; font-size: 13.5px; font-weight: 700; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.mg-upgrade-link:hover { border-color: #F59E0B; transform: translateY(-1px); }
.mg-upgrade-link.active { background: #FEF4DD; border-color: #F59E0B; }
.bill-page { max-width: 860px; margin: 0 auto; padding: 56px 32px 72px; color: var(--ink); }
.bill-hero { max-width: 560px; margin: 0 auto 30px; text-align: center; }
.bill-eyebrow { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-size: 12px; font-weight: 700; }
.bill-hero h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 46px); line-height: 1.06; font-weight: 800; letter-spacing: -1.4px; }
.bill-hero p { margin: 0; color: var(--ink-mid); font-size: 16px; line-height: 1.5; }
.bill-toggle { display: inline-flex; gap: 4px; margin-top: 24px; padding: 4px; border-radius: 999px; background: #E4E8EC; }
.bill-toggle button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border: none; border-radius: 999px; background: transparent; color: var(--ink-mid); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.bill-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(15,23,42,.3); }
.bill-toggle span { padding: 2px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-size: 11px; font-weight: 700; }
.bill-cards { display: grid; grid-template-columns: 1fr 1.08fr; gap: 16px; align-items: center; }
.bill-card { position: relative; padding: 28px; border: 1px solid var(--line-soft); border-radius: 24px; background: #fff; }
.bill-card.pro { padding: 36px 30px; border: none; background: radial-gradient(120% 90% at 100% 0%, rgba(34,197,94,.3), transparent 60%), #0E1116; color: #fff; box-shadow: 0 30px 60px -30px rgba(14,17,22,.7); }
.bill-card h2 { margin: 0; font-size: 20px; letter-spacing: -.3px; }
.bill-tagline { margin: 4px 0 18px; color: var(--ink-soft); font-size: 14px; }
.bill-card.pro .bill-tagline, .bill-card.pro .bill-billed { color: #A9B3C0; }
.bill-badge { position: absolute; top: 30px; right: 26px; padding: 4px 10px; border-radius: 999px; background: rgba(34,197,94,.18); color: #6EE7A0; font-size: 11.5px; font-weight: 700; }
.bill-price { display: flex; align-items: baseline; gap: 6px; }
.bill-price strong { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -1.6px; }
.bill-price span { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.bill-card.pro .bill-price span { color: #A9B3C0; }
.bill-billed { margin: 8px 0 20px; color: var(--ink-soft); font-size: 13px; }
.bill-cta { width: 100%; padding: 14px; border: none; border-radius: 14px; background: var(--green); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 12px 26px -12px rgba(34,197,94,.9); transition: transform .15s, filter .15s; }
.bill-cta:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.bill-cta:disabled { opacity: .7; cursor: default; box-shadow: none; }
.bill-cta.quiet { background: var(--bg-soft); color: var(--ink-mid); opacity: 1; }
.bill-mark { flex-shrink: 0; color: var(--green-ink); }
.bill-meter-label { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 8px; font-size: 14px; }
.bill-meter-label span { color: var(--ink-soft); font-size: 13px; }
.bill-meter { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 5px; margin-bottom: 20px; }
.bill-meter i { height: 8px; border-radius: 4px; background: var(--line); }
.bill-meter i.on { background: var(--green); }
.bill-note { margin: 14px 0 0; color: var(--ink-soft); font-size: 13px; text-align: center; }
.bill-perks-pro { display: grid; gap: 12px; margin: 4px 0 22px; padding: 0; list-style: none; }
.bill-perks-pro strong { display: block; font-size: 17px; }
.bill-perks-pro small { color: #A9B3C0; font-size: 12.5px; }
.bill-shared { margin-top: 16px; padding: 18px 22px; border: 1px solid var(--line-soft); border-radius: 20px; background: #fff; }
.bill-shared > span { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.bill-shared ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.bill-shared li { padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-mid); font-size: 13.5px; font-weight: 500; }
.bill-page .bill-error { margin: 10px 0 0; color: #FCA5A5; font-size: 13.5px; }
.bill-page .bill-error:empty { display: none; }
.bill-trust { margin: 22px 0 36px; color: var(--ink-soft); font-size: 13px; text-align: center; }
.bill-faq { max-width: 620px; margin: 0 auto; }
.bill-faq details { border-top: 1px solid var(--line); }
.bill-faq details:last-child { border-bottom: 1px solid var(--line); }
.bill-faq summary { padding: 15px 2px; font-size: 15px; font-weight: 600; cursor: pointer; }
.bill-faq p { margin: 0 2px 15px; color: var(--ink-mid); font-size: 14px; line-height: 1.5; }
@media (max-width: 880px) {
  .bill-bar { display: none; }
  .bill-counter { gap: 7px; padding: 4px 4px 4px 10px; font-size: 11.5px; line-height: 1.15; white-space: normal; text-align: right; }
  .bill-counter button { flex-shrink: 0; padding: 6px 11px; font-size: 12px; }
  .bill-dots { display: none; }
  .mg-mobile-topbar:has(.bill-counter) > span { display: none; } /* The wordmark gives the longer counter its room. */
  .bill-page { padding: 32px 16px 56px; }
  .bill-cards { grid-template-columns: 1fr; }
  .bill-card.pro { order: -1; padding: 28px 24px; }
}

/* Progress: the skill chart and summary, one box per skill, and the check-in table. */
.sr-page.pg-page { max-width: 1080px; }
.pg-overview { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.pg-chart-empty { display: grid; place-items: center; min-height: 240px; border: 1px dashed var(--line); border-radius: var(--radius-md); color: var(--ink-soft); font-size: 14px; text-align: center; padding: 20px; }
.pg-legend { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-mid); margin-top: 4px; }
.pg-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pg-key { display: inline-block; width: 20px; border-top: 3px solid var(--green); }
.pg-key.is-previous { border-top: 2px dashed var(--ink-soft); }
.sr-page .pg-summary h2 { font-size: 21px; line-height: 1.35; margin-bottom: 18px; }
.pg-summary .sr-primary:disabled { background: var(--line); border-color: var(--line); color: var(--ink-soft); box-shadow: none; cursor: not-allowed; }
.sr-page .pg-summary .sr-help { margin: 10px 0 0; font-size: 13px; line-height: 1.55; }
.pg-section { margin: 30px 0; }
.sr-page .pg-section > .sr-help { margin: -4px 0 14px; }
.pg-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 12px; }
.pg-box { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 118px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-md); box-shadow: 0 1px 2px rgba(15,23,42,.04); cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.pg-box:hover { border-color: var(--green); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.pg-box:focus-visible { outline: 3px solid var(--green-soft); border-color: var(--green); }
.pg-box.is-open { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.pg-box-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.pg-box-label { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.pg-box-score { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.pg-box-score strong { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.pg-box-score.is-unrated { font-size: 13px; }
.pg-bar { display: block; height: 6px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.pg-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.pg-focus { font-size: 10.5px; font-weight: 800; letter-spacing: .4px; color: var(--amber-ink); background: var(--amber-soft); border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.pg-change { margin-left: 4px; font-size: 12px; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
.pg-change.is-up { color: var(--green-ink); }
.pg-change.is-down { color: var(--amber-ink); }
.pg-detail { grid-column: 1 / -1; padding: 18px 20px; background: var(--card-soft); border: 1px solid var(--green-line, var(--line)); border-radius: var(--radius-md); }
.sr-page .pg-detail h3 { margin: 0 0 6px; }
.sr-page .pg-detail p { margin: 0 0 8px; }
.sr-page .pg-detail .pg-detail-label { margin: 12px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.pg-detail-history { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sr-page .pg-detail-history li { margin: 0; display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 10px; font-size: 13px; }
.pg-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-md); }
.pg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; color: var(--ink-mid); }
.pg-table th, .pg-table td { padding: 11px 12px; text-align: left; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.pg-table thead th { border-top: none; font-size: 11.5px; font-weight: 800; color: var(--ink-soft); white-space: normal; min-width: 76px; vertical-align: bottom; }
.pg-table tbody th { font-weight: 800; color: var(--ink); }
.pg-table tbody th small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.pg-table td strong { color: var(--ink); }
.pg-none { color: var(--ink-soft); }
@media (max-width: 900px) {
  .pg-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .pg-overview { grid-template-columns: 1fr; gap: 12px; }
  .sr-page .pg-summary h2 { font-size: 18px; }
  .pg-box { min-height: 104px; padding: 14px; }
  .pg-box-score strong { font-size: 24px; }
}

/* Diagnostic report: the eight skill ratings. */
.sd-ratings { list-style: none; margin: 0 0 8px; padding: 0; }
.sr-page .sd-ratings li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; margin: 0; border-top: 1px solid var(--line-soft); }
.sd-ratings li:first-child { border-top: none; }
.sd-rating-label { font-weight: 700; color: var(--ink); }
.sd-rating-value { text-align: right; color: var(--ink-soft); white-space: nowrap; }
.sd-rating-value strong { font-size: 18px; color: var(--ink); }
.sd-rating-change { margin-left: 8px; font-size: 12.5px; font-weight: 800; color: var(--ink-soft); }
.sd-rating-change.is-up { color: var(--green-ink); }
.sd-rating-change.is-down { color: var(--amber-ink); }
.sd-rating-reason { grid-column: 1 / -1; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* The shared waiting pop-up (loading.js). */
.mgl-overlay { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; background: rgba(14, 17, 22, .42); backdrop-filter: blur(4px); }
.mgl-card { width: 100%; max-width: 420px; padding: 28px 26px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line-soft); box-shadow: 0 24px 60px -28px rgba(15, 23, 42, .45); text-align: center; }
.mgl-mira { position: relative; width: 56px; height: 56px; margin: 0 auto 14px; }
.mgl-mira img { position: relative; z-index: 1; display: block; border-radius: 50%; background: var(--green-soft); }
.mgl-pulse { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--green); opacity: .5; animation: mglPulse 1.6s ease-out infinite; }
@keyframes mglPulse { from { transform: scale(.85); opacity: .6; } to { transform: scale(1.25); opacity: 0; } }
.mgl-eyebrow { margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--green-ink); }
.mgl-card h2 { margin: 0 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -.4px; line-height: 1.25; color: var(--ink); }
.mgl-status { min-height: 22px; margin: 0 0 14px; font-size: 14.5px; font-weight: 600; color: var(--ink-mid); }
.mgl-bar { height: 8px; overflow: hidden; border-radius: 999px; background: var(--line-soft); }
.mgl-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #16a34a); transition: width .6s ease; }
.mgl-steps { display: grid; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; text-align: left; }
.mgl-steps li { position: relative; padding-left: 26px; font-size: 13.5px; color: var(--ink-soft); }
.mgl-steps li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.mgl-steps li.is-now { color: var(--ink); font-weight: 700; }
.mgl-steps li.is-now::before { border-color: var(--green); border-top-color: transparent; animation: mgSpin .8s linear infinite; }
.mgl-steps li.is-done { color: var(--ink-mid); }
.mgl-steps li.is-done::before { content: "✓"; display: grid; place-items: center; border: none; background: var(--green); color: #fff; font-size: 10px; font-weight: 800; }
.mgl-note { margin: 16px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.mgl-cancel { margin-top: 14px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink-mid); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.mgl-cancel:hover { background: var(--line-soft); }
@media (prefers-reduced-motion: reduce) { .mgl-pulse, .mgl-steps li.is-now::before { animation: none; } }

/* The short Mira review pop-in (mira-review.js), shared by every exercise. */
.mrv-overlay { position: fixed; inset: 0; z-index: 125; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: rgba(14, 17, 22, .46); backdrop-filter: blur(5px); }
.mrv { width: 100%; max-width: 560px; max-height: calc(100dvh - 40px); overflow-y: auto; padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line-soft); box-shadow: 0 24px 60px -28px rgba(15, 23, 42, .45); }
.mrv-head { display: flex; align-items: center; gap: 12px; }
.mrv-mira { border-radius: 50%; background: var(--green-soft); flex-shrink: 0; }
.mrv-eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--green-ink); }
.mrv-who { margin: 1px 0 0; font-size: 14px; font-weight: 800; color: var(--ink); }
.mrv-score { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-size: 18px; font-weight: 800; white-space: nowrap; }
.mrv-score.is-miss { background: #FFFAEB; color: #B54708; }
.mrv h2 { margin: 16px 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.3px; line-height: 1.3; color: var(--ink); }
.mrv-skill { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-mid); }
.mrv-rows { display: grid; gap: 10px; }
.mrv-row { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 14px; border-radius: 14px; }
.mrv-row p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.mrv-row blockquote { margin: 0 0 4px; font-size: 14px; font-style: italic; color: var(--ink-mid); }
.mrv-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 800; }
.mrv-label { margin: 0 0 4px !important; font-size: 11px !important; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-soft) !important; }
.mrv-row.is-good { background: #ECFDF3; } .mrv-row.is-good .mrv-icon { background: #17B26A; } .mrv-row.is-good .mrv-label { color: #067647 !important; }
.mrv-row.is-miss { background: #FFFAEB; } .mrv-row.is-miss .mrv-icon { background: #F79009; } .mrv-row.is-miss .mrv-label { color: #B54708 !important; }
/* The better way to say it is green, the miss above it yellow. */
.mrv-row.is-try { background: #ECFDF3; border: 1px solid #ABEFC6; } .mrv-row.is-try .mrv-icon { background: #17B26A; } .mrv-row.is-try .mrv-label { color: #067647 !important; }
.mrv-row.is-try blockquote { font-style: normal; font-weight: 600; color: var(--ink); }
.mrv-extras { margin-top: 14px; }
.mrv-extras ul { margin: 0; padding-left: 18px; }
.mrv-extras li { margin: 0 0 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-mid); }
.mrv-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--green-soft); font-size: 13.5px; color: var(--ink); }
.mrv-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
@media (max-width: 560px) { .mrv { padding: 18px; } .mrv-actions > * { flex: 1 1 100%; } }

/* Yap review: colours say what worked (green) and what did not (amber, red). */
.yap-grade.is-mid { background: #FFFAEB; } .yap-grade.is-mid strong { color: #B54708; }
.yap-grade.is-low { background: #FEF3F2; } .yap-grade.is-low strong { color: #B42318; }
.yap-score.is-mid .yap-bar i { background: #F79009; } .yap-score.is-mid b { color: #B54708; }
.yap-score.is-low .yap-bar i { background: #F04438; } .yap-score.is-low b { color: #B42318; }
.sr-page .yap-improve-title { color: #B54708; }
.yap-improvements li::before { background: #F79009; }
.yap-strength { border-left: 4px solid #17B26A; }
.yap-effort { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #ECFDF3; border: 1px solid #ABEFC6; color: #0E1116; font-size: 14px; line-height: 1.5; }
.yap-plan-good { color: #067647; }
.yap-plan-miss { padding: 10px 12px; border-radius: 12px; background: #FFFAEB; }

/* ============================================================
   DESIGN REFRESH (2026-11): bolder page heads, Mira's note,
   scenario/framework cards, page heroes and pop-ups
============================================================ */
.dp-head-row .dp-head h1 { font-size: 44px; font-weight: 850; letter-spacing: -1.6px; }
.dp-head-row .dp-head p { font-size: 17px; max-width: 60ch; }
.dp-container { max-width: 1000px; }

/* Daily Plan */
.mg-page.dp-page { padding: 40px 48px 96px; }
.dp-head-row .dp-head-inline { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dp-date { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 700; color: var(--ink); }
.dp-note { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: center; min-height: 230px; margin-bottom: 32px; border-radius: 24px; overflow: hidden; border: 1px solid #DDEEDB; background: radial-gradient(circle at 18% 30%, #E3F2DF 0%, transparent 55%), linear-gradient(120deg, #EDF7EA 0%, #F5FAF2 60%, #E9F5E5 100%); }
.dp-note-art { align-self: end; height: 236px; overflow: hidden; }
/* Multiply drops mira.png's light backdrop into the green note. */
.dp-note-art img { display: block; width: 290px; height: 290px; margin: -12px 0 0 -6px; mix-blend-mode: multiply; }
.dp-note-bubble { position: relative; margin: 24px 24px 24px 8px; padding: 24px 28px; border-radius: 22px; background: var(--card); box-shadow: 0 14px 34px -20px rgba(15, 40, 30, .3); }
.dp-note-bubble::before { content: ""; position: absolute; left: -10px; top: 50%; width: 22px; height: 22px; border-radius: 4px; background: var(--card); transform: translateY(-50%) rotate(45deg); }
.dp-note-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--green-ink); }
.dp-note-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.dp-note h2 { margin: 0; font-size: 28px; font-weight: 850; letter-spacing: -.8px; line-height: 1.15; color: var(--ink); }
.dp-note-bubble p:last-child { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-mid); }
.dp-practice-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 0 2px 14px; }
.dp-practice-head h3 { margin: 0; font-size: 28px; font-weight: 850; letter-spacing: -.8px; color: var(--ink); }
.dp-progress { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ink-mid); }
.dp-progress i { display: block; width: 200px; height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dp-progress b { display: block; height: 100%; border-radius: 999px; background: var(--green); transition: width .4s ease; }
.dp-tasks { display: flex; flex-direction: column; gap: 10px; }
.dp-task { display: flex; align-items: center; gap: 20px; padding: 14px 20px 14px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: border-color .12s ease, box-shadow .12s ease; }
.dp-task:hover { box-shadow: 0 12px 28px -20px rgba(15, 23, 42, .3); }
.dp-task.is-done { background: #F8FBF7; }
.dp-task.is-next { padding: 18px 20px 18px 16px; border: 2px solid #7DD99A; box-shadow: 0 18px 38px -28px rgba(34, 197, 94, .6); }
.dp-task-thumb { flex: none; width: 100px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--green-soft); }
.dp-task-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dp-task-thumb span { display: grid; place-items: center; width: 100%; height: 100%; font-size: 24px; font-weight: 900; }
.dp-task-copy { flex: 1; min-width: 0; }
.dp-task h4 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); }
.dp-task-copy p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-mid); }
.dp-task-kind { font-weight: 700; color: var(--green-ink); }
.dp-task-copy .dp-task-redo { font-size: 13px; font-weight: 700; color: #C2410C; }
.dp-task-done, .dp-task-btn { display: inline-flex; flex: none; align-items: center; gap: 8px; font: inherit; font-weight: 800; white-space: nowrap; cursor: pointer; }
.dp-task-done { padding: 9px 16px; border: 1px solid #CDEFD7; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-size: 14px; }
.dp-task-done:hover { border-color: var(--green); }
.dp-task-btn { padding: 10px 18px; border: 1px solid #D6EEDD; border-radius: 12px; background: var(--card); color: var(--green-ink); font-size: 14px; }
.dp-task-btn:hover:not(:disabled) { border-color: var(--green); }
.dp-task-btn.is-next { padding: 13px 22px; border-color: #16A34A; background: linear-gradient(180deg, #22C55E, #16A34A); color: #fff; font-size: 15.5px; box-shadow: 0 10px 22px -10px rgba(22, 163, 74, .7); }
.dp-task-btn.is-redo { border-color: #F97316; background: #F97316; color: #fff; }
.dp-task-btn:disabled { border-color: var(--line); background: var(--line-soft); color: var(--ink-soft); cursor: not-allowed; }

/* Scenarios */
.scn-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.scn-random, .scn-custom { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 13px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.scn-random { border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.scn-random:hover { background: var(--line-soft); }
.scn-custom { border: none; background: linear-gradient(180deg, #22C55E, #16A34A); color: #fff; box-shadow: 0 8px 20px -10px rgba(22, 163, 74, .75); }
.scn-custom:hover { filter: brightness(1.04); }
.scn-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; margin-bottom: 18px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.scn-filter { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: none; border-radius: 12px; background: transparent; color: var(--ink-mid); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .12s ease, color .12s ease; }
.scn-filter:hover { background: var(--line-soft); }
.scn-filter span { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--line-soft); color: var(--ink-soft); font-size: 12.5px; font-weight: 700; text-align: center; }
.scn-filter.on { background: #0E1116; color: #fff; }
.scn-filter.on span { background: rgba(255, 255, 255, .16); color: #fff; }
.scn-count { margin: 0 4px 12px; font-size: 14px; color: var(--ink-soft); }
.scn-list { display: flex; flex-direction: column; gap: 14px; }
.scn-card { display: flex; align-items: stretch; gap: 24px; width: 100%; padding: 18px 22px 18px 18px; text-align: left; background: var(--card); border: 1px solid var(--line-soft); border-radius: 22px; font: inherit; color: inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.scn-card:disabled { cursor: not-allowed; opacity: .78; }
.scn-card-art { flex: 0 0 280px; min-height: 190px; border-radius: 16px; overflow: hidden; background: #F4F6F8; }
.scn-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scn-card-body { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.scn-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.scn-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.scn-tag { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.scn-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-mid); }
.scn-dots { display: inline-flex; gap: 2px; }
.scn-dots i { width: 5px; height: 5px; border-radius: 50%; background: #D5DBE2; }
.scn-dots i.on { background: var(--ink-mid); }
.scn-extra { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--green-ink); }
.scn-stars { display: inline-flex; flex: none; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-mid); font-variant-numeric: tabular-nums; }
.scn-title { display: block; margin-top: 12px; font-size: 26px; font-weight: 850; letter-spacing: -.7px; line-height: 1.15; color: var(--ink); }
.scn-desc { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-mid); }
.scn-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.scn-desc + .scn-foot { margin-top: 16px; }
.scn-mastered { padding: 5px 12px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); font-weight: 800; }
.scn-cta, .scn-cta-text { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 800; color: var(--green-ink); }
.scn-cta { padding: 9px 16px; border-radius: 12px; background: linear-gradient(180deg, #22C55E, #16A34A); color: #fff; box-shadow: 0 8px 18px -10px rgba(22, 163, 74, .7); }

/* Frameworks */
.fw-list { display: flex; flex-direction: column; gap: 18px; }
.fw-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: center; padding: 18px 28px 18px 18px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 24px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.fw-card.no-art { grid-template-columns: 1fr; padding: 26px 28px; }
.fw-card-art { align-self: stretch; min-height: 280px; border-radius: 18px; overflow: hidden; background: #F4F6F8; }
.fw-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fw-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fw-category { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.fw-category::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.fw-acronym { padding: 6px 12px; border-radius: 999px; background: var(--line-soft); color: var(--ink-mid); font-size: 13px; font-weight: 600; }
.fw-card h2 { margin: 14px 0 0; font-size: 38px; font-weight: 850; letter-spacing: -1.2px; line-height: 1.05; color: var(--ink); }
.fw-card-body > p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-mid); }
.fw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.fw-learn, .fw-theory { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 13px; font: inherit; font-size: 15.5px; font-weight: 800; cursor: pointer; }
.fw-learn { border: none; background: linear-gradient(180deg, #22C55E, #16A34A); color: #fff; box-shadow: 0 8px 20px -10px rgba(22, 163, 74, .75); }
.fw-learn:hover { filter: brightness(1.04); }
.fw-theory { border: 1px solid #CDEFD7; background: #F6FBF7; color: var(--green-ink); }
.fw-theory:hover { border-color: var(--green); }

/* Yapping */
.yap-hero { padding: 40px 44px; border-radius: 26px; background: radial-gradient(circle at 80% 30%, rgba(34, 197, 94, .2), transparent 45%), linear-gradient(135deg, #EAF6E7 0%, #F5FAF2 70%); }
.sr-page .yap-hero h2 { font-size: 36px; font-weight: 850; letter-spacing: -1.2px; line-height: 1.1; }
.sr-page .yap-hero-kicker { font-size: 13px; letter-spacing: 1.4px; }
.yap-hero-start { padding: 16px 30px; font-size: 17px; font-weight: 800; }
.yap-hero-stats strong { font-size: 30px; font-weight: 850; }
.yap-hero-stats span { font-size: 14px; }
.yap-float { border-radius: 18px; box-shadow: 0 22px 44px -18px rgba(15, 23, 42, .3); }
.yap-history h2 { font-size: 30px; font-weight: 850; letter-spacing: -.8px; }

/* Speech Review */
.sr-banner { position: relative; min-height: 190px; margin: 0 0 18px; padding: 28px 300px 28px 32px; border-radius: 24px; overflow: hidden; border: 1px solid #DDEEDB; background: radial-gradient(circle at 85% 70%, #E0F0DB 0%, transparent 55%), linear-gradient(120deg, #F5FAF2 0%, #EDF7EA 100%); }
.sr-banner-art { position: absolute; right: 24px; bottom: -36px; width: 250px; height: 250px; mix-blend-mode: multiply; }
.sr-page .sr-upload-card h2 { font-size: 34px; font-weight: 850; letter-spacing: -1px; }
.sr-upload { position: relative; padding: 24px 24px 24px 96px; border-radius: 18px; font-size: 17px; font-weight: 800; }
.sr-upload::before { content: ""; position: absolute; left: 24px; top: 24px; width: 52px; height: 52px; border-radius: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18a5 5 0 1 1 .9-9.9A6 6 0 0 1 19 10a4 4 0 0 1-1 7.9'/%3E%3Cpath d='M12 12v9M8.5 15.5 12 12l3.5 3.5'/%3E%3C/svg%3E") center / 28px no-repeat; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.sr-page .sr-privacy { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.sr-page .sr-privacy::before { content: ""; flex: none; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.sr-upload-card .sr-actions { display: block; }
.sr-upload-submit { width: 100%; padding: 16px 24px; font-size: 17px; font-weight: 800; }

/* Progress */
.pg-box { padding: 18px 20px; border-radius: 20px; }
.pg-box-label { font-size: 17px; letter-spacing: -.2px; }
.pg-box-score strong { font-size: 40px; font-weight: 850; }
.pg-focus { font-weight: 800; }
.pg-section > h2 { font-size: 30px; font-weight: 850; letter-spacing: -.8px; }
.sr-page .pg-summary h2 { font-size: 25px; font-weight: 850; letter-spacing: -.5px; line-height: 1.25; }

/* Shared buttons and pop-ups */
.sr-primary { background: linear-gradient(180deg, #22C55E, #16A34A); border-color: #16A34A; font-weight: 800; }
.sr-dialog, .bill-dialog, .mgl-card { border-radius: 24px; }
.sr-dialog h2, .bill-dialog h2, .mgl-card h2 { font-weight: 850; letter-spacing: -.6px; }
.bill-dialog { box-shadow: 0 24px 80px rgba(14, 17, 22, .25); }
.bill-dialog h2 { font-size: 26px; }
.mgl-card { padding: 32px 28px 24px; }
.mgl-card h2 { font-size: 24px; }

@media (max-width: 880px) {
  .mg-page.dp-page { padding: 24px 16px 64px; }
  .dp-head-row .dp-head h1 { font-size: 34px; }
  .dp-note { grid-template-columns: 1fr; min-height: 0; }
  .dp-note-art { display: none; }
  .dp-note-bubble { margin: 14px; padding: 20px; }
  .dp-note-bubble::before { display: none; }
  .dp-note h2, .dp-practice-head h3 { font-size: 23px; }
  .dp-progress i { width: 120px; }
  .dp-task, .dp-task.is-next { flex-wrap: wrap; gap: 12px 14px; padding: 14px; }
  .dp-task-thumb { width: 64px; height: 56px; }
  .dp-task-copy { flex-basis: calc(100% - 80px); }
  .dp-task-done, .dp-task-btn { margin-left: 78px; }
  .scn-card, .fw-card { flex-direction: column; grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .scn-card-art { flex-basis: auto; min-height: 170px; height: 170px; }
  .fw-card-art { min-height: 200px; height: 200px; }
  .scn-title { font-size: 22px; }
  .fw-card h2 { font-size: 30px; }
  .scn-filters { flex-wrap: nowrap; overflow-x: auto; }
  .scn-filter { flex: none; }
  .yap-hero { padding: 24px 20px; }
  .sr-page .yap-hero h2 { font-size: 27px; }
  .sr-banner { padding: 22px 20px 120px; }
  .sr-banner-art { width: 170px; height: 170px; right: 10px; bottom: -30px; }
  .sr-upload { padding: 88px 18px 20px; }
}

/* Podcast (static/megafon/podcast.js) */
/* The episode is a wide video call: the person's camera fills it, Mira's tile sits bottom right. */
.mg-home-container.sr-page.pod-page.is-live { max-width: 1180px; }
/* On air: the full-screen session frame (top bar), the call below it. */
.pod-stage { flex: 1; width: min(1180px, 100%); margin: 0 auto; padding: 20px 28px 24px; box-sizing: border-box; }
.sd-focus .pod-call { max-height: calc(100dvh - 210px); }
.yap-focus-stage { flex: 1; padding: 20px 16px; }
@media (min-width: 721px) {
  .yap-focus-stage .yap-stage { width: min(100%, 360px, calc((100dvh - 110px) * 9 / 16)); }
  .yap-focus-stage .yap-cancel { display: none; } /* the top bar's Cancel does it; on a phone the camera covers the bar */
}
@media (max-width: 640px) { .pod-stage { padding: 12px 16px 16px; } .sd-focus .pod-call { max-height: calc(100dvh - 180px); } }
.pod-call { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 150px); overflow: hidden; border-radius: 22px; background: #1F2329; color: #fff; }
.pod-call video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.pod-you { position: absolute; inset: 0; display: grid; place-items: center; }
.pod-you span { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: #3C4250; color: #D1D5DB; font-size: 22px; font-weight: 700; }
.pod-top { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.pod-pill { padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-onair::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #EF4444; animation: pod-blink 1.4s ease-in-out infinite; }
.pod-call .pod-status { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 300px); margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; font-weight: 600; }
.pod-status:empty { display: none; }
.pod-status::before { content: ""; flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: #9CA3AF; }
.pod-call[data-state="listening"] .pod-status::before { background: #22C55E; animation: pod-blink 1.2s ease-in-out infinite; }
.pod-call[data-state="speaking"] .pod-status::before { background: #60A5FA; }
.pod-call[data-state="muted"] .pod-status::before { background: #EF4444; }
.pod-sticker { position: absolute; left: 4%; top: 58px; max-width: min(62%, 560px); padding: 13px 16px; border-radius: 16px; background: #fff; color: #111827; }
.pod-sticker::after { content: ""; position: absolute; left: 18px; bottom: -11px; border-left: 16px solid #fff; border-bottom: 12px solid transparent; }
.pod-sticker span { display: block; margin-bottom: 3px; color: #6B7280; font-size: 13px; font-weight: 500; }
.pod-sticker p { margin: 0; font-size: clamp(16px, 2vw, 22px); font-weight: 700; line-height: 1.3; }
.pod-mira { position: absolute; right: 16px; bottom: 16px; width: clamp(150px, 24%, 260px); aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: 14px; background: #2B4A3A; box-shadow: 0 8px 24px rgba(0,0,0,.35); outline: 3px solid transparent; transition: outline-color .2s; }
.pod-mira.is-speaking { outline-color: #60A5FA; }
.pod-mira img { width: 42%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.pod-mira b { position: absolute; left: 10px; bottom: 8px; font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.pod-eq { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 3px; width: 26px; height: 26px; justify-content: center; border-radius: 50%; background: rgba(0,0,0,.35); }
.pod-eq i { width: 3px; height: 4px; border-radius: 2px; background: #fff; }
.pod-mira.is-speaking img { animation: pod-ring 1.4s ease-out infinite; }
.pod-mira.is-speaking .pod-eq { background: #1A73E8; }
.pod-mira.is-speaking .pod-eq i { animation: pod-wave .9s ease-in-out infinite; }
.pod-mira.is-speaking .pod-eq i:nth-child(2) { animation-delay: -.3s; } .pod-mira.is-speaking .pod-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes pod-wave { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@keyframes pod-ring { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55), 0 0 0 0 rgba(255,255,255,.3); } 100% { box-shadow: 0 0 0 10px rgba(255,255,255,0), 0 0 0 20px rgba(255,255,255,0); } }
@keyframes pod-blink { 50% { opacity: .3; } }
.pod-controls { display: flex; gap: 14px; align-items: center; width: max-content; max-width: 100%; margin: 18px auto 0; padding: 10px 14px; border-radius: 999px; background: #1F2329; box-shadow: 0 14px 30px -14px rgba(15,23,42,.5); }
.pod-ctl { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 52px; height: 52px; padding: 0; border: 0; border-radius: 999px; background: #3C4250; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; }
.pod-ctl:hover:not(:disabled) { background: #4B5262; transform: translateY(-1px); }
.pod-ctl:focus-visible { outline: 3px solid #86EFAC; outline-offset: 3px; }
.pod-ctl[aria-pressed="true"] { background: #EA4335; }
.pod-ctl.pod-end { padding: 0 24px 0 20px; background: #EA4335; }
.pod-ctl.pod-end:hover:not(:disabled) { background: #D93025; }
.pod-ctl:disabled { opacity: .45; cursor: not-allowed; }
.pod-review-foot audio { width: 100%; }
.pod-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.pod-back:hover { border-color: #86EFAC; background: #F3FBF5; }
.pod-back span { color: #16A34A; font-size: 18px; line-height: 1; }
@media (max-width: 640px) {
  .pod-call { aspect-ratio: 3 / 4; max-height: calc(100dvh - 140px); border-radius: 18px; }
  .pod-sticker { max-width: 88%; }
  .pod-mira { width: 38%; aspect-ratio: 1; }
  .pod-status { max-width: calc(62% - 28px); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .pod-mira.is-speaking img, .pod-mira.is-speaking .pod-eq i, .pod-onair::before, .pod-status::before { animation: none !important; } .pod-mira.is-speaking .pod-eq i { height: 12px; } }
/* Topic picker (matches the 2026-11-09 mockup): hero card with Mira's studio art bleeding into the top right corner. */
.pod-page .dp-head-row .dp-head h1 { font-size: 48px; letter-spacing: -1.8px; }
.pod-page .dp-head-row .dp-head p { margin-top: 6px; font-size: 20px; color: var(--ink-mid); }
.pod-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); margin: 6px 0 28px; padding: 36px 36px 30px; overflow: hidden; border-radius: 28px; border: 1px solid #E8ECE6; background: linear-gradient(160deg, #FBFCFA 0%, #F7FAF6 100%); box-shadow: 0 18px 40px -28px rgba(15,23,42,.22), 0 1px 2px rgba(15,23,42,.04); }
.pod-hero > * { grid-column: 1 / -1; }
.pod-hero > .pod-hero-copy { grid-column: 1; grid-row: 1; padding-bottom: 20px; }
.pod-hero-art { grid-column: 2 !important; grid-row: 1; align-self: start; margin: -36px -36px 0 -24px; }
.mg-home-container.sr-page.pod-page { max-width: 1120px; }
.pod-hero-art img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, #000 82%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, #000 82%, transparent); mask-composite: intersect; }
.pod-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 30px; color: #15803D; font-size: 15px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
.pod-eyebrow i { width: 10px; height: 10px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px #DCFCE7; }
.pod-hero h2 { margin: 0 0 22px; font-size: clamp(30px, 3.3vw, 42px); font-weight: 850; letter-spacing: -1.4px; line-height: 1.1; color: #0E1116; }
.pod-hero-copy > p:last-child { margin: 0; color: #5B6676; font-size: 19px; line-height: 1.55; }
.pod-topic { display: flex; gap: 20px; align-items: flex-end; margin-top: 30px; }
.pod-field { flex: 1 1 auto; display: grid; gap: 12px; }
.pod-field span { font-size: 20px; font-weight: 700; color: #0E1116; }
.pod-field input { width: 100%; height: 70px; padding: 0 20px; border: 2px solid #22C55E; border-radius: 14px; background: #fff; font: inherit; font-size: 20px; color: #0E1116; }
.pod-field input::placeholder { color: #6B7280; }
.pod-field input:focus { outline: none; box-shadow: 0 0 0 4px rgba(34,197,94,.16); }
.pod-hero .pod-start { display: inline-flex; align-items: center; gap: 12px; height: 58px; margin-bottom: 6px; padding: 0 32px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #22C55E, #16A34A); color: #fff; font-size: 20px; font-weight: 800; white-space: nowrap; box-shadow: 0 14px 26px -12px rgba(22,163,74,.7); }
.pod-or { margin: 26px 0 16px; color: #5B6676; font-size: 18px; }
.pod-suggestions { display: flex; flex-wrap: wrap; gap: 16px; }
.pod-chip { display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 20px; border: 1px solid #E3E7EC; border-radius: 12px; background: #fff; color: #0E1116; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.pod-chip svg { width: 24px; height: 24px; color: #16A34A; flex-shrink: 0; }
.pod-chip:hover:not(:disabled) { border-color: #86EFAC; background: #F3FBF5; }
.pod-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 34px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid #E8ECE6; }
.pod-trust li { display: flex; gap: 14px; align-items: center; padding: 4px 18px; }
.pod-trust li:first-child { padding-left: 0; }
.pod-trust li + li { border-left: 1px solid #E8ECE6; }
.pod-trust-icon { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #EEF8F0; color: #16A34A; }
.pod-trust-icon svg { width: 24px; height: 24px; }
.pod-trust strong { display: block; font-size: 17px; font-weight: 700; color: #0E1116; }
.pod-trust small { display: block; margin-top: 4px; font-size: 14px; color: #5B6676; }
.pod-expect { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; margin: 0 0 24px; padding: 24px 20px 24px 24px; border-radius: 26px; border: 1px solid #E8ECE6; background: #FDFDFC; box-shadow: 0 18px 40px -30px rgba(15,23,42,.2); }
.pod-expect h2 { margin: 0; font-size: 30px; font-weight: 850; letter-spacing: -.9px; color: #0E1116; white-space: nowrap; }
.pod-expect ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; margin: 0; padding: 0; list-style: none; }
.pod-expect li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 18px 20px; border-radius: 16px; background: #F7F8F7; }
.pod-expect li + li::before { content: ""; position: absolute; left: -31px; top: 50%; width: 10px; height: 10px; border-right: 2px solid #9AA3AE; border-bottom: 2px solid #9AA3AE; transform: translateY(-50%) rotate(-45deg); }
.pod-expect b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #DCFCE7; color: #15803D; font-size: 17px; font-weight: 800; }
.pod-expect li > div { display: contents; }
.pod-expect strong { font-size: 18px; font-weight: 700; color: #0E1116; line-height: 1.25; }
.pod-expect small { grid-column: 2; font-size: 15px; color: #5B6676; line-height: 1.45; }
@media (max-width: 1100px) {
  .pod-expect { grid-template-columns: 1fr; }
  .pod-expect ol { gap: 34px; }
  .pod-expect li + li::before { left: -24px; }
}
@media (max-width: 860px) {
  .pod-page .dp-head-row .dp-head h1 { font-size: 36px; }
  .pod-page .dp-head-row .dp-head p { font-size: 17px; }
  .pod-hero { grid-template-columns: 1fr; padding: 0 20px 22px; }
  .pod-hero-art { grid-column: 1 !important; grid-row: 1; margin: 0 -20px 4px; }
  .pod-hero-art img { -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
  .pod-hero > .pod-hero-copy { grid-row: 2; }
  .pod-eyebrow { margin-bottom: 16px; font-size: 13px; letter-spacing: 2px; }
  .pod-hero-copy > p:last-child, .pod-or { font-size: 16px; }
  .pod-topic { flex-direction: column; align-items: stretch; margin-top: 18px; }
  .pod-field span { font-size: 17px; }
  .pod-field input { height: 58px; font-size: 17px; }
  .pod-hero .pod-start { justify-content: center; margin: 0; font-size: 18px; }
  .pod-suggestions { gap: 10px; }
  .pod-chip { height: auto; min-height: 48px; padding: 10px 16px; font-size: 16px; text-align: left; }
  .pod-trust { grid-template-columns: 1fr; gap: 16px; }
  .pod-trust li, .pod-trust li:first-child { padding: 0; }
  .pod-trust li + li { border-left: 0; }
  .pod-expect ol { grid-template-columns: 1fr; gap: 12px; }
  .pod-expect li + li::before { display: none; }
}
.sr-history .pod-episode { justify-content: flex-start; }
.pod-score { margin-left: auto; }
.pod-transcript { margin: 4px 0 12px; }
.pod-transcript summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.pod-transcript p { margin: 8px 0 0; line-height: 1.5; }
.pod-transcript-host { color: var(--ink-soft); }
.pod-notes { padding-left: 18px; display: grid; gap: 8px; }
.pod-review audio { width: 100%; margin-top: 8px; }
