:root {
  --bg: #f7f3ea;
  --paper: #fffdf8;
  --ink: #153238;
  --muted: #607073;
  --line: #ded7ca;
  --teal: #247e78;
  --teal-dark: #145f5a;
  --gold: #b88a33;
  --coral: #d96754;
  --blue: #365f8c;
  --sage: #dce7da;
  --mint: #eef7f1;
  --lavender: #eee8f5;
  --rose: #f8e3df;
  --shadow: 0 18px 55px rgba(30, 46, 50, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(115deg, rgba(36, 126, 120, 0.06), transparent 28%),
    linear-gradient(250deg, rgba(184, 138, 51, 0.08), transparent 34%),
    var(--bg);
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 800;`r`n  line-height: 1.02;`r`n  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86), 0 2px 12px rgba(255, 255, 255, 0.68);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.2;
}

p {
  line-height: 1.48;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(1480px, 100%);
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 0 auto;
  padding: 24px;
}

.center-shell {
  grid-template-columns: minmax(0, 1080px);
  justify-content: center;
}

.practice-focus-shell {
  width: min(1320px, 100%);
  grid-template-columns: minmax(0, 1fr);
}

.app-stage {
  min-width: 0;
}

.practice-focus-stage {
  width: 100%;
}

.app-header {
  min-height: 78px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.header-actions,
.footer-actions,
.split-actions,
.hero-actions,
.mode-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-actions,
.split-actions {
  margin-top: 18px;
}

.footer-actions > *,
.split-actions > * {
  flex: 1;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.15rem;
}

.muted {
  color: var(--muted);
}

.primary,
.secondary,
.danger,
.anchor-button,
.link-button,
.icon-btn {
  min-height: 52px;
  border: 0;
  border-radius: var(--radius);
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.primary,
.anchor-button {
  color: #fff;
  background: var(--teal);
}

.secondary {
  color: var(--ink);
  background: var(--mint);
  border: 1px solid #d2e1d6;
}

.danger {
  color: #fff;
  background: #9d3d34;
}

.icon-btn {
  min-width: 54px;
  background: #fff;
  border: 1px solid var(--line);
}

.link-button {
  width: 100%;
  margin-top: 12px;
  color: var(--teal-dark);
  background: #fff;
  border: 1px solid var(--line);
}

.compact {
  width: auto;
  min-width: 160px;
}

.home-btn {
  min-width: 112px;
}

.side-nav {
  min-height: calc(100vh - 48px);
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--teal);
  font-size: 1.4rem;
  font-weight: 950;
}

.brand-mark.large {
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  font-size: 2rem;
}

.brand-mark.small {
  width: 46px;
  height: 46px;
  font-size: 1.15rem;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-list button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.nav-list button.active,
.nav-list button:hover {
  color: var(--ink);
  background: var(--mint);
  border-color: #d2e1d6;
}

.mini-stat {
  margin-top: auto;
  padding: 14px;
  border-radius: var(--radius);
  background: #fff8e8;
  border: 1px solid #e8d8b9;
}

.mini-stat span {
  display: block;
  font-size: 2rem;
  font-weight: 950;
}

.mini-stat small {
  color: var(--muted);
  font-weight: 750;
}

.coach-panel,
.panel,
.today-card,
.stat-card,
.feature-tile,
.campus-hero,
.room-card,
.practice-room,
.phrase-main,
.result-panel,
.visit-card,
.game-card,
.game-hero,
.talking-head,
.timer-card,
.prompt-card,
.mirror-card,
.score-card,
.campus-card,
.soft-callout,
.question-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(30, 46, 50, 0.07);
}

.coach-panel {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin-bottom: 18px;
  background: #f4fbf6;
}

.practice-focus-strip {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.8fr);
  gap: clamp(12px, 2vw, 20px);
  align-items: center;
  padding: clamp(14px, 2vw, 18px);
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(32, 198, 175, 0.12), rgba(242, 200, 107, 0.1)),
    rgba(255, 253, 247, 0.82);
  box-shadow: 0 18px 48px rgba(30, 46, 50, 0.1);
}

.focus-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.focus-brand h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
}

.activity-scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.activity-counter {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(32, 198, 175, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(227, 248, 242, 0.62)),
    rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.activity-counter span {
  display: block;
  margin-bottom: 5px;
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-counter strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.activity-counter small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.coach-avatar,
.head-face {
  width: 66px;
  height: 66px;
  border-radius: var(--radius);
  background:
    linear-gradient(#efbd93, #cf8661);
  position: relative;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.06);
}

.coach-avatar span::before,
.coach-avatar span::after,
.head-face .eyes::before,
.head-face .eyes::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4b2b20;
}

.coach-avatar span::before,
.head-face .eyes::before {
  left: 20px;
}

.coach-avatar span::after,
.head-face .eyes::after {
  right: 20px;
}

.coach-avatar::after,
.head-face .mouth {
  content: "";
  position: absolute;
  left: 23px;
  bottom: 17px;
  width: 22px;
  height: 10px;
  border: 3px solid #4b2b20;
  border-top: 0;
  border-radius: 0 0 18px 18px;
}

.head-face.speaking .mouth {
  animation: talk 0.3s infinite alternate;
}

@keyframes talk {
  from { height: 8px; width: 22px; }
  to { height: 18px; width: 18px; border-top: 3px solid #4b2b20; border-radius: 50%; }
}

.coach-name {
  margin-bottom: 2px;
  font-weight: 950;
}

#coach-line {
  margin-bottom: 0;
  color: var(--muted);
}

.welcome-grid {
  min-height: calc(100vh - 130px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.hero-copy {
  padding: clamp(24px, 5vw, 64px);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy h2 {
  max-width: 820px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.phone-preview {
  min-height: 620px;
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 22px;
  border: 12px solid #183038;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(255, 253, 248, 1)),
    #fff;
  box-shadow: var(--shadow);
}

.campus-card {
  min-height: 180px;
  padding: 22px;
}

.campus-card h3 {
  font-size: 2rem;
}

.campus-card.offset {
  margin-left: 38px;
  background: #fff8e8;
}

.panel {
  padding: clamp(18px, 4vw, 34px);
}

.step-row {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.step {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ebe4d8;
  color: var(--muted);
  font-weight: 900;
}

.step.active {
  color: #fff;
  background: var(--teal);
}

.step.done {
  background: var(--sage);
  color: var(--teal-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-weight: 850;
}

.field input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.choice-row,
.option-grid,
.time-pills,
.time-picker {
  display: grid;
  gap: 10px;
}

.choice-row {
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0;
}

.choice-row button,
.option-grid button,
.time-pills button,
.time-picker button,
.phrase-list button {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.choice-row button.active,
.option-grid button.active,
.time-pills button.active,
.time-picker button.active,
.phrase-list button.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.type-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.type-card strong,
.type-card span {
  display: block;
}

.type-card strong {
  margin-bottom: 7px;
}

.type-card span {
  color: var(--muted);
  line-height: 1.35;
}

.type-card ul {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.type-card li {
  line-height: 1.35;
}

.type-card.active {
  border-color: var(--teal);
  background: var(--mint);
  box-shadow: 0 0 0 2px rgba(36, 126, 120, 0.14);
}

.soft-callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 16px;
  background: #fff8e8;
}

.soft-callout strong {
  white-space: nowrap;
}

.question-card {
  padding: 16px;
  margin-top: 14px;
  box-shadow: none;
}

.option-grid {
  grid-template-columns: repeat(3, 1fr);
}

.question-card:nth-of-type(3) .option-grid {
  grid-template-columns: repeat(4, 1fr);
}

.intake-panel {
  display: grid;
  gap: 22px;
  overflow: hidden;
}

.intake-progress {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #d2e1d6;
  border-radius: var(--radius);
  background: #f4fbf6;
}

.progress-meta,
.progress-steps,
.intake-hero,
.tag-field-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.progress-meta span,
.progress-meta strong {
  color: var(--teal-dark);
  font-weight: 950;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce7da;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.45s ease;
}

.progress-steps span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.progress-steps span.active,
.progress-steps span.done {
  color: var(--teal-dark);
}

.intake-hero {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(36, 126, 120, 0.12), rgba(184, 138, 51, 0.12)),
    #fff;
}

.intake-hero h2 {
  margin-bottom: 8px;
}

.intake-time {
  min-width: 210px;
  padding: 14px;
  border: 1px solid #e8d8b9;
  border-radius: var(--radius);
  background: #fff8e8;
}

.intake-time strong,
.intake-time span {
  display: block;
}

.intake-time span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.intake-slide {
  display: grid;
  gap: 16px;
}

.intake-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
}

.about-card {
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
}

.tag-field {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e2dccf;
  border-radius: var(--radius);
  background: #fff;
}

.tag-field-head h4 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.tag-field-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag-field-head > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
}

.tag-composer {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.selected-tags,
.suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-tag,
.suggestion-row button {
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
}

.selected-tag {
  border: 1px solid var(--teal);
  color: #fff;
  background: var(--teal);
}

.selected-tag span {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.suggestion-row button {
  border: 1px solid #d2e1d6;
  color: var(--ink);
  background: var(--mint);
}

.tag-composer input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.occupation-field {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e2dccf;
  border-radius: var(--radius);
  background: #fff;
}

.industry-field {
  display: grid;
  gap: 12px;
}

.industry-grid {
  max-height: 520px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 4px;
}

.industry-card {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid #e2dccf;
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.industry-card:hover,
.industry-card.active {
  border-color: var(--teal);
  background: var(--mint);
}

.industry-card strong,
.industry-card span {
  display: block;
}

.industry-card strong {
  font-size: 1.05rem;
}

.industry-card span {
  color: var(--muted);
  line-height: 1.3;
}

.occupation-results {
  max-height: 520px;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.occupation-results.compact {
  max-height: 420px;
}

.occupation-result {
  min-height: 58px;
  display: grid;
  gap: 4px;
  border: 1px solid #e2dccf;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.occupation-result:hover,
.occupation-result:focus {
  border-color: var(--teal);
  background: var(--mint);
}

.occupation-result span {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.occupation-result strong {
  font-size: 1.02rem;
  line-height: 1.2;
}

.occupation-result small,
.picker-empty {
  color: var(--muted);
  line-height: 1.35;
}

.picker-empty {
  margin: 0;
  padding: 12px;
}

.single-card-hero {
  align-items: center;
}

.identity-card-shell {
  width: min(100%, 880px);
  display: grid;
  gap: 16px;
  margin: 0 auto;
}

.intake-question-meter {
  width: min(100%, 880px);
  display: grid;
  gap: 10px;
  margin: 0 auto;
}

.identity-card-progress {
  height: 14px;
  overflow: hidden;
  border: 1px solid #d2e1d6;
  border-radius: 999px;
  background: #eef7f1;
}

.identity-card-progress span {
  display: block;
  width: var(--card-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.5s ease;
}

.identity-question-card {
  min-height: 430px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 253, 248, 0.96)),
    var(--paper);
  box-shadow: var(--shadow);
  animation: cardIn 0.34s ease both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.identity-question-card h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.identity-question-card:has(.occupation-field) h2 {
  font-size: clamp(1.85rem, 4vw, 3.4rem);
}

.identity-answer-area {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

.identity-answer-area .field span {
  color: var(--ink);
  font-size: 1.02rem;
}

.identity-answer-area .field input {
  min-height: 68px;
  padding: 0 18px;
  font-size: 1.2rem;
}

.large-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.large-choice-row button,
.none-button {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
  cursor: pointer;
}

.large-choice-row button.active,
.large-choice-row button:hover {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.none-button {
  width: 100%;
  min-height: 52px;
  color: var(--teal-dark);
  background: var(--mint);
  border-color: #d2e1d6;
}

.identity-card-footer {
  display: flex;
  gap: 12px;
}

.identity-card-footer > * {
  flex: 1;
}

.insight-grid,
.dashboard-grid,
.room-grid,
.visit-grid,
.game-grid,
.external-grid,
.exercise-grid {
  display: grid;
  gap: 14px;
}

.insight-grid {
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0;
}

.insight-card {
  min-height: 150px;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.insight-card span,
.feature-tile span,
.game-card span,
.visit-card span,
.profile-summary span,
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-card strong {
  display: block;
  margin: 8px 0;
  font-size: 1.2rem;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
}

.today-card {
  min-height: 360px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(36, 126, 120, 0.12), rgba(184, 138, 51, 0.14)),
    var(--paper);
}

.growth-meter {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.growth-meter-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.growth-meter-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.growth-meter-head strong {
  color: var(--teal-dark);
  font-size: 1.08rem;
}

.growth-track,
.mini-growth-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(21, 50, 56, 0.11);
}

.growth-track span,
.mini-growth-track span {
  display: block;
  width: var(--growth);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  box-shadow: 0 0 18px rgba(184, 138, 51, 0.28);
  animation: growthFill 0.75s ease both;
}

.growth-meter small {
  color: var(--muted);
  font-weight: 750;
}

.global-growth .growth-track {
  height: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 126, 120, 0.18);
}

.strategy-callout {
  display: grid;
  gap: 5px;
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid rgba(36, 126, 120, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.7);
}

.strategy-callout span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.strategy-callout strong {
  line-height: 1.35;
}

.time-pills {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 18px;
}

.stat-stack {
  display: grid;
  gap: 14px;
}

.stat-card {
  min-height: 108px;
  padding: 18px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
}

.stat-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.feature-tile {
  min-height: 170px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.feature-tile.wide {
  grid-column: span 2;
  background: #f5f0ff;
}

.feature-tile strong {
  display: block;
  margin: 8px 0;
  font-size: 1.35rem;
}

.feature-tile small,
.game-card small,
.visit-card small {
  color: var(--muted);
  line-height: 1.35;
}

.campus-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(54, 95, 140, 0.11), rgba(36, 126, 120, 0.1)),
    var(--paper);
}

.academy-shell {
  width: min(1240px, 100%);
  position: relative;
  isolation: isolate;
  padding-bottom: 34px;
}

.academy-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 120% 78% at 86% -10%, transparent 0 33%, rgba(237, 194, 92, 0.62) 33.18% 33.34%, transparent 33.58% 100%),
    radial-gradient(ellipse 116% 76% at 88% -7%, transparent 0 38%, rgba(237, 194, 92, 0.42) 38.18% 38.32%, transparent 38.56% 100%),
    radial-gradient(ellipse 124% 86% at -12% 56%, transparent 0 45%, rgba(237, 194, 92, 0.46) 45.14% 45.32%, transparent 45.56% 100%),
    radial-gradient(ellipse 112% 72% at 108% 70%, transparent 0 44%, rgba(237, 194, 92, 0.38) 44.14% 44.3%, transparent 44.56% 100%),
    radial-gradient(circle at 17% 9%, rgba(255, 253, 248, 0.16), transparent 23%),
    radial-gradient(circle at 72% 42%, rgba(13, 139, 128, 0.56), transparent 42%),
    radial-gradient(circle at 26% 66%, rgba(0, 107, 103, 0.42), transparent 48%),
    radial-gradient(circle at 82% 88%, rgba(237, 194, 92, 0.22), transparent 28%),
    radial-gradient(ellipse at center, rgba(8, 111, 105, 0) 0 42%, rgba(1, 31, 32, 0.42) 100%),
    linear-gradient(160deg, rgba(255, 253, 248, 0.055) 0 1px, transparent 1px 100%),
    linear-gradient(138deg, #012c2d 0%, #07524f 22%, #08746c 50%, #043d3c 78%, #011f22 100%);
  background-size: auto, auto, auto, auto, auto, auto, auto, auto, auto, 100% 42px, auto;
  pointer-events: none;
}

.academy-shell::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(22vh, 190px);
  z-index: -1;
  background:
    radial-gradient(ellipse at 92% 72%, rgba(91, 123, 94, 0.2), transparent 18%),
    radial-gradient(ellipse at 8% 92%, rgba(91, 123, 94, 0.16), transparent 16%),
    radial-gradient(ellipse 110% 84% at 50% 5%, transparent 0 63%, rgba(237, 194, 92, 0.66) 63.15% 63.34%, transparent 63.64% 100%),
    linear-gradient(175deg, rgba(255, 253, 248, 0) 0 12%, rgba(252, 247, 230, 0.98) 12.5% 100%);
  clip-path: polygon(0 25%, 12% 37%, 28% 27%, 45% 36%, 62% 20%, 80% 30%, 100% 12%, 100% 100%, 0 100%);
  pointer-events: none;
}

.academy-shell .app-header {
  min-height: 96px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.academy-shell .app-header .eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
  color: #fffdf8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.1vw, 3.75rem);
  font-weight: 800;
  text-transform: none;
  line-height: 1.05;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.26);
}

.academy-shell .app-header .eyebrow::before {
  content: "";
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 70%, rgba(9, 61, 58, 0.5) 0 3px, transparent 4px),
    linear-gradient(135deg, #fff8e8, #d9c18a);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  -webkit-mask:
    radial-gradient(ellipse 13px 24px at 50% 27%, #000 98%, transparent) center / 100% 100%,
    radial-gradient(ellipse 12px 22px at 34% 58%, #000 98%, transparent) center / 100% 100%,
    radial-gradient(ellipse 12px 22px at 66% 58%, #000 98%, transparent) center / 100% 100%;
  mask:
    radial-gradient(ellipse 13px 24px at 50% 27%, #000 98%, transparent) center / 100% 100%,
    radial-gradient(ellipse 12px 22px at 34% 58%, #000 98%, transparent) center / 100% 100%,
    radial-gradient(ellipse 12px 22px at 66% 58%, #000 98%, transparent) center / 100% 100%;
}

.academy-shell .header-actions {
  align-self: flex-end;
  padding-bottom: 2px;
  gap: 18px;
}

.academy-shell .header-actions .secondary {
  background: rgba(255, 253, 248, 0.94);
  border-color: rgba(216, 193, 138, 0.72);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.academy-shell .header-actions .primary {
  background: linear-gradient(135deg, rgba(216, 193, 138, 0.74), rgba(111, 99, 43, 0.88));
  border: 1px solid rgba(255, 232, 156, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.academy-home {
  min-height: calc(100vh - 48px);
  display: grid;
  gap: 18px;
  align-content: start;
}

.academy-topbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.academy-hero {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  display: grid;
  align-content: center;
  padding: clamp(32px, 5vw, 60px);
  border: 1.5px solid rgba(233, 201, 119, 0.92);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 16% 92%, rgba(218, 178, 86, 0.24) 0 4px, transparent 5px),
    radial-gradient(circle at 10% 84%, rgba(218, 178, 86, 0.55) 0 4px, transparent 5px),
    radial-gradient(ellipse 80% 64% at 24% 94%, transparent 0 58%, rgba(218, 178, 86, 0.36) 58.2% 58.42%, transparent 58.7% 100%),
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 248, 232, 0.9) 33%, rgba(255, 253, 248, 0.16) 60%, rgba(255, 253, 248, 0.02) 78%),
    url("assets/academy/hero-journey.png") right center / auto 100% no-repeat,
    var(--paper);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
}

.academy-hero > .eyebrow {
  display: none;
}

.academy-hero h2 {
  max-width: 780px;
  color: #063d3d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  font-weight: 800;
  line-height: 0.98;
  text-shadow: 0 2px 0 rgba(255, 253, 248, 0.5);
}

.academy-hero p:not(.eyebrow) {
  max-width: 660px;
  margin-bottom: 0;
  color: #143b3f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
}

.academy-card-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 28px;
}

.academy-section-stack {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}

.academy-module-section {
  display: grid;
  gap: 14px;
}

.academy-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 0 4px;
}

.academy-section-heading h3 {
  margin: 0;
  color: #073f39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.02;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86), 0 2px 12px rgba(255, 255, 255, 0.68);
}

.academy-section-heading p {
  max-width: 360px;
  margin: 0;
  color: #245f58;
  font-weight: 780;
  line-height: 1.35;
  text-align: right;
}

.practice-compass-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(32, 198, 175, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(32, 198, 175, 0.12), rgba(218, 178, 86, 0.12)),
    var(--paper);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.practice-compass-card.compact-card {
  grid-template-columns: 1fr;
  margin: 18px 0;
}

.practice-compass-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.practice-compass-card strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.practice-compass-card p {
  max-width: 720px;
  margin: 8px 0 6px;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.42;
}

.practice-compass-card small {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.academy-path-grid::before {
  content: "";
  position: absolute;
  inset: 50px 8% 122px;
  border: 2px dashed rgba(233, 201, 119, 0.72);
  border-radius: 42px;
  pointer-events: none;
}

.academy-path-grid::after {
  content: "";
  position: absolute;
  inset: 120px 15% 190px;
  border-top: 2px dashed rgba(233, 201, 119, 0.64);
  border-bottom: 2px dashed rgba(255, 253, 248, 0.22);
  pointer-events: none;
}

.academy-card {
  min-height: 314px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: grid;
  grid-template-rows: 176px auto auto;
  gap: 0;
  padding: 0;
  border: 2px solid rgba(233, 201, 119, 0.9);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.academy-card::before {
  content: none;
}

.academy-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}

.academy-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 226, 150, 0.9);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.4);
  filter: saturate(1.03);
}

.academy-card-image {
  position: relative;
  min-height: 176px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(21, 50, 56, 0.04)),
    var(--card-image) center / cover no-repeat;
}

.path-node {
  display: none;
}

.academy-art {
  width: 118px;
  height: 92px;
  display: grid;
  place-items: center;
  justify-self: end;
  align-self: center;
  margin: -10px -6px -4px 0;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px;
  color: var(--module-accent, var(--teal));
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.92), transparent 34%),
    color-mix(in srgb, var(--module-accent, var(--teal)) 12%, #fffdf8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 16px 28px rgba(30, 46, 50, 0.1);
}

.academy-art svg {
  width: 110px;
  height: 84px;
  overflow: visible;
}

.academy-art .solid {
  fill: color-mix(in srgb, var(--module-accent, var(--teal)) 78%, #fffdf8);
}

.academy-art .wash {
  fill: color-mix(in srgb, var(--module-accent, var(--teal)) 20%, #fffdf8);
}

.academy-art .cut {
  fill: #fffdf8;
}

.academy-art .line {
  fill: none;
  stroke: color-mix(in srgb, var(--module-accent, var(--teal)) 84%, #153238);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.academy-art .line.pale {
  stroke: rgba(255, 253, 248, 0.88);
  stroke-width: 4;
}

.academy-art .line.soft {
  stroke: color-mix(in srgb, var(--module-accent, var(--teal)) 58%, #fffdf8);
  stroke-width: 4;
}

.academy-card strong {
  display: block;
  padding: 14px 18px 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.05;
  position: relative;
  z-index: 1;
}

.academy-card small {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.academy-level-row {
  display: flex;
  justify-content: start;
  gap: 10px;
  align-items: center;
  padding: 8px 18px 16px;
  margin-top: 0;
}

.academy-level-row b,
.academy-level-row i {
  font-style: normal;
  font-weight: 950;
}

.academy-level-row b {
  display: inline-grid;
  min-width: 50px;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--module-accent, var(--teal));
  box-shadow: 0 8px 18px rgba(36, 126, 120, 0.18);
  font-size: 0.86rem;
}

.academy-level-row i {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

.mini-growth-track {
  flex: 1;
  min-width: 70px;
  max-width: 142px;
  height: 8px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(21, 50, 56, 0.09);
}

.level-ring {
  width: 38px;
  height: 38px;
  margin-left: auto;
  border: 5px solid color-mix(in srgb, var(--module-accent, var(--teal)) 34%, #ded7ca);
  border-top-color: var(--module-accent, var(--teal));
  border-radius: 50%;
}

.academy-card-1 {
  --module-accent: var(--gold);
  background:
    radial-gradient(circle at 82% 24%, rgba(184, 138, 51, 0.3), transparent 30%),
    linear-gradient(160deg, #fff8e8, #fffdf8 66%);
}

.academy-card-2 {
  --module-accent: var(--teal);
  background:
    radial-gradient(circle at 82% 24%, rgba(36, 126, 120, 0.22), transparent 32%),
    linear-gradient(160deg, #eef7f1, #fffdf8 66%);
}

.academy-card-3 {
  --module-accent: var(--blue);
  background:
    radial-gradient(circle at 82% 24%, rgba(54, 95, 140, 0.24), transparent 32%),
    linear-gradient(160deg, #eaf1f8, #fffdf8 66%);
}

.academy-card-4 {
  --module-accent: var(--coral);
  background:
    radial-gradient(circle at 82% 24%, rgba(217, 103, 84, 0.24), transparent 32%),
    linear-gradient(160deg, #f8e3df, #fffdf8 66%);
}

.academy-card-5 {
  --module-accent: #7c6697;
  grid-column: auto;
  background:
    radial-gradient(circle at 88% 24%, rgba(124, 102, 151, 0.22), transparent 30%),
    linear-gradient(160deg, #eee8f5, #fffdf8 66%);
}

.academy-card-6 {
  --module-accent: #708451;
  background:
    radial-gradient(circle at 82% 24%, rgba(112, 132, 81, 0.22), transparent 32%),
    linear-gradient(160deg, #edf0df, #fffdf8 66%);
}

.academy-card-7 {
  --module-accent: #b9657a;
  background:
    radial-gradient(circle at 82% 24%, rgba(185, 101, 122, 0.2), transparent 32%),
    linear-gradient(160deg, #f8e3df, #fffdf8 66%);
}

.academy-card-8 {
  --module-accent: #3b8b7b;
  background:
    radial-gradient(circle at 82% 24%, rgba(59, 139, 123, 0.22), transparent 32%),
    linear-gradient(160deg, #e8f1ee, #fffdf8 66%);
}

.academy-guided-band {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #153238;
  color: #fffdf8;
}

.academy-guided-band span,
.academy-guided-band strong {
  display: block;
}

.academy-guided-band span {
  margin-bottom: 4px;
  color: rgba(255, 253, 248, 0.7);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.room-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.room-card {
  min-height: 185px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.room-card span {
  display: block;
  color: var(--teal-dark);
  font-size: 1.25rem;
  font-weight: 950;
}

.room-card strong {
  display: block;
  margin: 12px 0;
}

.room-card small {
  color: var(--muted);
}

.time-picker {
  grid-template-columns: repeat(7, 1fr);
  margin: 22px 0;
}

.time-picker button {
  display: grid;
  place-items: center;
}

.time-picker strong {
  font-size: 1.6rem;
}

.time-picker span {
  color: inherit;
  font-size: 0.78rem;
}

.plan-list {
  display: grid;
  gap: 10px;
}

.plan-block {
  min-height: 86px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.plan-block > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--gold);
  font-weight: 950;
}

.plan-block p {
  margin-bottom: 4px;
  color: var(--muted);
}

.plan-block small {
  color: var(--teal-dark);
  font-weight: 850;
}

.practice-room {
  padding: 18px;
}

.guided-word-studio {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(420px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.minimal-word-studio {
  display: grid;
  place-items: center;
}

.minimal-word-stage {
  width: min(100%, 1040px);
  min-height: 700px;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(30, 46, 50, 0.07);
}

.minimal-word-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.minimal-word-top h3 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2.8vw, 1.85rem);
}
.sentence-talk-top {
  align-items: stretch;
}

.sentence-top-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(680px, 62%);
}

.sentence-header-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.sentence-header-metric,
.sentence-stream-counter {
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid rgba(32, 198, 175, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 18px rgba(30, 46, 50, 0.05);
}

.sentence-header-metric span {
  display: block;
  color: var(--teal-dark);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}

.sentence-header-metric strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 950;
  line-height: 1;
}

.sentence-header-metric small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}

.sentence-stream-counter {
  min-width: 118px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.1;
}

.minimal-word-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(184, 138, 51, 0.1), rgba(36, 126, 120, 0.08)),
    #fffdf8;
}

.minimal-word-card.words-only {
  min-height: 360px;
  align-content: center;
}

.sentence-talk-stage {
  min-height: 680px;
}

.sentence-card {
  min-height: 310px;
  align-content: center;
}

.sentence-title-row {
  align-items: flex-start;
}

.sentence-title-row h2 {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86), 0 2px 12px rgba(255, 255, 255, 0.68);
}

.sentence-source {
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sentence-word-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.sentence-word-row button {
  min-height: 72px;
  border: 2px solid #e4d4ac;
  border-radius: var(--radius);
  background: #fff8e8;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 950;
  cursor: pointer;
}

.sentence-footnote {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.word-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.word-title-row h2 {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 7.4rem);
}

.word-title-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hear-button {
  min-width: 124px;
  min-height: 56px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: var(--teal);
  font-weight: 950;
  cursor: pointer;
}

.breakdown-button,
.icon-close {
  min-height: 44px;
  border: 1px solid #d9cfbc;
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--ink);
  background: #fff8e8;
  font-weight: 950;
  cursor: pointer;
}

.breakdown-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid #d2e1d6;
  border-radius: var(--radius);
  background: #f4fbf7;
}

.breakdown-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.breakdown-head h3 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
}

.syllable-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.syllable-row span {
  min-width: 104px;
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  color: var(--teal-dark);
  background: #fff;
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  font-weight: 950;
}

.sounds-like-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #d9cfbc;
  border-radius: var(--radius);
  background: #fff8e8;
}

.sounds-like-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sounds-like-card strong {
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1;
}

.sound-steps-card {
  display: grid;
  gap: 10px;
}

.sound-steps-card > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sound-step-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sound-step {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid #d2e1d6;
  border-radius: var(--radius);
  background: #fff;
}

.sound-step span {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: #59696e;
  background: #edf4f1;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sound-step strong {
  color: var(--teal-dark);
  font-size: clamp(1.45rem, 4vw, 2.3rem);
  line-height: 1;
}

.sound-step em {
  color: #315b73;
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 950;
}

.sound-step b {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 950;
}

.sound-step small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
}

.blend-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #cfe3df;
  border-radius: var(--radius);
  background: #eef8f5;
}

.blend-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.blend-card strong {
  color: var(--teal-dark);
  font-size: clamp(1.2rem, 3vw, 1.85rem);
  line-height: 1.25;
}

.breakdown-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.word-coach-companion,
.guided-word-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(30, 46, 50, 0.07);
}

.word-coach-companion {
  min-height: 720px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(238, 247, 241, 0.96), rgba(255, 253, 248, 0.96)),
    var(--paper);
}

.coach-portrait.large {
  width: 150px;
  height: 150px;
  position: relative;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: linear-gradient(#efbd93, #cf8661);
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.06);
}

.coach-portrait .eyes::before,
.coach-portrait .eyes::after {
  content: "";
  position: absolute;
  top: 56px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4b2b20;
}

.coach-portrait .eyes::before {
  left: 44px;
}

.coach-portrait .eyes::after {
  right: 44px;
}

.coach-portrait .mouth {
  position: absolute;
  left: 54px;
  bottom: 42px;
  width: 42px;
  height: 16px;
  border: 4px solid #4b2b20;
  border-top: 0;
  border-radius: 0 0 28px 28px;
}

.coach-portrait.speaking .mouth {
  animation: talk 0.3s infinite alternate;
}

.word-coach-companion p:not(.eyebrow) {
  color: var(--muted);
}

.coach-cue-list {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.coach-cue-list button {
  min-height: 76px;
  border: 1px solid #d2e1d6;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.coach-cue-list span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coach-cue-list strong {
  display: block;
  margin-top: 4px;
}

.guided-word-stage {
  min-height: 720px;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 4vw, 32px);
}

.guided-word-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.guided-word-top h2 {
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  margin-bottom: 0;
}

.word-counter {
  min-width: 84px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--mint);
  border: 1px solid #d2e1d6;
  font-weight: 950;
}

.daily-practice-badge {
  align-items: center;
  border: 1px solid rgba(20, 153, 140, 0.24);
  color: #087f73;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-transform: uppercase;
}

.flip-cue-card {
  width: 100%;
  min-height: 360px;
  position: relative;
  margin: 22px 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  perspective: 1200px;
  cursor: pointer;
}

.flip-side {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backface-visibility: hidden;
  transition: transform 0.48s ease;
  box-shadow: 0 12px 34px rgba(30, 46, 50, 0.1);
}

.flip-front {
  background:
    linear-gradient(135deg, rgba(184, 138, 51, 0.16), rgba(36, 126, 120, 0.12)),
    #fffaf0;
}

.flip-front small {
  color: var(--teal-dark);
  font-weight: 950;
  text-transform: uppercase;
}

.flip-front strong {
  font-size: clamp(3rem, 8vw, 7rem);
}

.flip-front em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.flip-back {
  background: #f4ecd9;
  transform: rotateY(180deg);
}

.flip-cue-card.revealed .flip-front {
  transform: rotateY(180deg);
}

.flip-cue-card.revealed .flip-back {
  transform: rotateY(360deg);
}

.guided-picture {
  width: min(100%, 320px);
  min-height: 220px;
  display: grid;
  place-items: center;
}

.guided-picture > span {
  transform: scale(2.1);
}

.flip-back > strong {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.simple-word-cue {
  display: grid;
  grid-template-columns: auto 64px auto 82px;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.simple-word-cue span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.simple-word-cue strong {
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--teal);
  font-size: 1.4rem;
}

.guided-record-card {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid #d2e1d6;
  background: var(--mint);
}

.guided-record-card.countdown,
.guided-record-card.recording,
.guided-record-card.listening,
.guided-record-card.checking {
  grid-template-columns: 120px 1fr 132px;
  min-height: 156px;
  border-width: 2px;
}

.guided-record-card.countdown {
  background: #fff8e8;
  border-color: #dfc170;
}

.guided-record-card.recording,
.guided-record-card.listening {
  background: #eaf7f2;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(36, 126, 120, 0.08);
}

.guided-record-card.countdown .mic-button,
.guided-record-card.recording .mic-button,
.guided-record-card.listening .mic-button,
.guided-record-card.checking .mic-button {
  width: 104px;
  height: 104px;
}

.guided-record-card.countdown #word-record-state,
.guided-record-card.recording #word-record-state,
.guided-record-card.listening #record-state,
.guided-record-card.countdown #record-state,
.guided-record-card.checking #record-state {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1;
}

.guided-record-card.countdown #word-record-copy,
.guided-record-card.recording #word-record-copy,
.guided-record-card.listening #record-copy,
.guided-record-card.countdown #record-copy,
.guided-record-card.checking #record-copy {
  margin-top: 8px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 850;
}

.guided-record-card.recording #word-record-state,
.guided-record-card.listening #record-state {
  color: var(--teal-dark);
  text-transform: uppercase;
}

.guided-record-card.checking {
  background: #fff8e8;
  border-color: #dfc170;
}

.listening-meter {
  width: 116px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 50%;
  color: var(--ink);
  border: 8px solid #dfc170;
  background: #fff;
}

.listening-meter.recording,
.guided-record-card.listening .listening-meter {
  border-color: var(--teal);
  animation: listeningPulse 1.1s ease-in-out infinite;
}

.listening-meter span,
.listening-meter small {
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  color: var(--muted);
}

.listening-meter strong {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink);
}

.sentence-done-button {
  min-height: 82px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  background: linear-gradient(180deg, #15c8b0, #0da394);
  color: #ffffff;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(13, 163, 148, 0.22);
  cursor: pointer;
}

.sentence-done-button:active {
  transform: translateY(1px);
}

.guided-record-card.recording .sentence-done-button,
.guided-record-card.listening .sentence-done-button {
  justify-self: stretch;
}

@keyframes listeningPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(36, 126, 120, 0.28);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(36, 126, 120, 0);
  }
}

.minimal-word-stage .guided-record-card {
  margin-top: 18px;
}

.word-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
  padding-top: 0;
}

.minimal-word-stage .word-nav-row {
  margin-top: auto;
  padding-top: 20px;
}

.guided-word-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}

.guided-word-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8d0c4;
}

.guided-word-dots span.active {
  width: 28px;
  border-radius: 999px;
  background: var(--gold);
}

.word-studio {
  display: grid;
  gap: 16px;
}

.word-hero {
  min-height: 185px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(184, 138, 51, 0.14), rgba(54, 95, 140, 0.1)),
    var(--paper);
  box-shadow: 0 10px 28px rgba(30, 46, 50, 0.07);
}

.word-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.word-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
}

.picture-cue-card,
.word-cue-panel,
.image-engine-card,
.word-deck {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(30, 46, 50, 0.07);
}

.picture-cue-card,
.word-cue-panel,
.image-engine-card,
.word-deck {
  padding: 18px;
}

.picture-frame {
  min-height: 430px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.2)),
    #f4ecd9;
}

.picture-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.picture-caption span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.picture-caption strong {
  font-size: 2rem;
}

.source-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cue-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.cue-tiles button {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  padding: 14px;
  cursor: pointer;
}

.cue-tiles span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cue-tiles strong {
  font-size: 1.45rem;
}

.word-instruction {
  padding: 14px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: #fff8e8;
  border: 1px solid #e8d8b9;
}

.word-instruction p {
  margin-bottom: 0;
  color: var(--muted);
}

.word-record-card,
.word-feedback {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid #d2e1d6;
  background: var(--mint);
}

.word-feedback {
  grid-template-columns: 1fr auto;
  margin-top: 14px;
}

.word-feedback.practice {
  background: #fff8e8;
  border-color: #e8d8b9;
}

.word-feedback.matched {
  background: var(--mint);
  border-color: #d2e1d6;
}

.word-feedback.close {
  background: #fff8e8;
  border-color: #e8d8b9;
}

.word-feedback.try_again {
  background: var(--rose);
  border-color: #efd0ca;
}

.minimal-word-stage .word-feedback {
  margin-top: 12px;
}

.word-feedback small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.batch-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.feedback-playback-status {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid rgba(26, 128, 120, 0.28);
  border-radius: 8px;
  background: #f4fffc;
}

.feedback-playback-status strong,
.feedback-playback-status small {
  display: block;
}

.feedback-playback-status strong {
  color: var(--ink);
  font-size: 1rem;
}

.feedback-playback-status small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
}

.feedback-status-indicator {
  width: 36px;
  height: 36px;
  display: block;
  border: 4px solid rgba(26, 128, 120, 0.18);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: feedback-status-spin 1s linear infinite;
}

.feedback-playback-status.playing {
  border-color: rgba(230, 177, 62, 0.58);
  background: #fff9e9;
}

.feedback-playback-status.playing .feedback-status-indicator {
  border: 0;
  border-radius: 6px;
  background:
    linear-gradient(90deg,
      var(--teal) 0 18%,
      transparent 18% 30%,
      var(--gold) 30% 48%,
      transparent 48% 60%,
      var(--teal) 60% 78%,
      transparent 78% 88%,
      var(--gold) 88% 100%);
  animation: feedback-status-pulse 0.8s ease-in-out infinite alternate;
}

.feedback-playback-status.played,
.feedback-playback-status.ready {
  border-color: rgba(26, 128, 120, 0.34);
  background: #f1fbf4;
}

.feedback-playback-status.played .feedback-status-indicator,
.feedback-playback-status.ready .feedback-status-indicator {
  position: relative;
  border: 0;
  background: var(--teal);
  animation: none;
}

.feedback-playback-status.played .feedback-status-indicator::after,
.feedback-playback-status.ready .feedback-status-indicator::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 7px;
  left: 10px;
  top: 11px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
}

.practice-gate-note {
  min-height: 24px;
  margin: 8px 0 0;
  color: #315b57;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.minimal-word-stage button:disabled {
  cursor: not-allowed;
  filter: saturate(0.55);
  opacity: 0.48;
}

@keyframes feedback-status-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes feedback-status-pulse {
  from {
    transform: scaleY(0.62);
  }
  to {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-status-indicator {
    animation: none;
  }
}

/* Progressive web app shell and mobile installation experience. */
.mobile-app-nav,
.pwa-install-card {
  display: none;
}

@media (max-width: 780px) {

  .has-mobile-app-nav {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-app-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 850;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(15, 143, 139, 0.22);
    border-radius: 22px;
    background: rgba(255, 253, 247, 0.94);
    box-shadow: 0 18px 48px rgba(5, 65, 60, 0.22);
    backdrop-filter: blur(18px);
  }

  .mobile-app-nav button {
    min-width: 0;
    min-height: 58px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 0;
    border-radius: 16px;
    padding: 7px 4px 6px;
    color: #4b5e61;
    background: transparent;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 820;
    cursor: pointer;
  }

  .mobile-app-nav button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-app-nav button.active {
    color: #075c57;
    background: #e5f5f0;
    box-shadow: inset 0 0 0 1px rgba(15, 143, 139, 0.16);
  }

  .pwa-install-card {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(15, 143, 139, 0.28);
    border-radius: 24px;
    background:
      radial-gradient(circle at 96% 0%, rgba(239, 185, 78, 0.2), transparent 34%),
      linear-gradient(145deg, rgba(255, 253, 247, 0.98), rgba(232, 244, 239, 0.96));
    box-shadow: 0 20px 50px rgba(5, 65, 60, 0.13);
  }

  .pwa-install-card::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -24px;
    width: 106px;
    height: 78px;
    opacity: 0.3;
    background:
      radial-gradient(circle at 10% 60%, #0f8f8b 0 3px, transparent 4px),
      radial-gradient(circle at 46% 34%, #58ced0 0 3px, transparent 4px),
      radial-gradient(circle at 80% 56%, #efb94e 0 4px, transparent 5px);
  }

  .pwa-install-icon img {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(5, 65, 60, 0.2);
  }

  .pwa-install-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
  }

  .pwa-install-copy .eyebrow {
    margin: 0 0 5px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .pwa-install-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    line-height: 1.08;
  }

  .pwa-install-copy > p:not(.eyebrow) {
    margin: 0;
    color: #3f5155;
    font-size: 0.95rem;
  }

  .pwa-install-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
  }

  .pwa-install-benefits span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #075c57;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 780;
  }

  .pwa-ios-steps {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 14px 14px 14px 32px;
    border-left: 3px solid #efb94e;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    color: #334349;
    line-height: 1.42;
  }

  .pwa-install-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
    gap: 9px;
    margin-top: 16px;
  }

  .pwa-install-actions button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .pwa-install-card {
    grid-template-columns: 1fr;
  }

  .pwa-install-icon img {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .pwa-install-actions {
    grid-template-columns: 1fr;
  }
}

@media (display-mode: standalone) {
  body {
    min-height: 100dvh;
  }

  .app-shell,
  .academy-shell {
    min-height: 100dvh;
    padding-top: calc(clamp(14px, 3vw, 28px) + env(safe-area-inset-top, 0px));
  }

  .mobile-app-nav {
    right: 0;
    bottom: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-app-nav button,
  .pwa-install-card {
    transition: none;
  }
}

.attempt-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.attempt-pill {
  min-height: 86px;
  display: grid;
  gap: 5px;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.attempt-pill span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #aab5b5;
  font-weight: 950;
}

.attempt-pill strong {
  font-size: 1.05rem;
}

.attempt-pill small {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attempt-pill button {
  min-height: 30px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 10px;
  color: var(--teal-dark);
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.attempt-pill.active {
  border-color: var(--gold);
  background: #fff8e8;
}

.attempt-pill.active span {
  background: var(--gold);
}

.attempt-pill.matched {
  background: var(--mint);
  border-color: #d2e1d6;
}

.attempt-pill.matched span {
  background: var(--teal);
}

.attempt-pill.close {
  background: #fff8e8;
  border-color: #e8d8b9;
}

.attempt-pill.close span {
  background: var(--gold);
}

.attempt-pill.try_again {
  background: var(--rose);
  border-color: #efd0ca;
}

.attempt-pill.try_again span {
  background: var(--coral);
}

.attempt-pill.no_speech {
  background: #f5f1e8;
  border-color: #d9cfbc;
}

.attempt-pill.no_speech span {
  background: #8f8a7d;
}

.batch-summary-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #d2e1d6;
  border-radius: var(--radius);
  background: var(--mint);
}

.batch-score {
  min-height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--teal);
}

.batch-score strong {
  font-size: 2.3rem;
}

.batch-score span {
  font-weight: 850;
}

.batch-summary-card p:not(.eyebrow) {
  color: var(--muted);
}

.azure-cue {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #d2e1d6;
  font-weight: 850;
}

.strategy-cue {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff8e8;
  border: 1px solid #e8d8b9;
}

.strategy-cue span,
.strategy-cue small {
  color: var(--muted);
  font-weight: 850;
}

.strategy-cue span {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.strategy-cue strong {
  color: var(--ink);
}

.batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.word-feedback-actions {
  justify-content: center;
  margin-top: 4px;
}

.word-feedback-actions .primary {
  min-width: 180px;
}

.word-feedback-actions .primary,
.word-feedback-actions .secondary {
  flex: 1 1 190px;
  max-width: 280px;
}

.transcription-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d7d2bf;
  border-radius: var(--radius);
  background: #fffaf0;
}

.panel-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.panel-heading-row h3 {
  margin-bottom: 0;
}

.mini-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #e9f4ef;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
}

.transcription-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.transcription-note {
  color: var(--muted);
  font-weight: 750;
}

.transcription-card {
  display: grid;
  gap: 6px;
  min-height: 128px;
  padding: 12px;
  border: 1px solid #e2dcc8;
  border-radius: var(--radius);
  background: #fff;
}

.transcription-card strong {
  color: var(--ink);
}

.transcription-card small {
  color: var(--muted);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.azure-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #cbd8e8;
  border-radius: var(--radius);
  background: #f3f7fc;
}

.azure-panel.unavailable {
  background: #fff8e8;
  border-color: #e8d8b9;
}

.azure-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.azure-panel h3 {
  margin-bottom: 0;
}

.azure-detail {
  max-width: 520px;
  margin-top: 6px;
  color: var(--muted);
}

.azure-score-badge {
  min-width: 132px;
  min-height: 82px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--blue);
}

.azure-score-badge strong {
  font-size: 1.85rem;
}

.azure-score-badge span {
  font-size: 0.75rem;
  font-weight: 850;
}

.azure-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.azure-metrics div,
.azure-weakest {
  padding: 12px;
  border: 1px solid #d9e4f0;
  border-radius: var(--radius);
  background: #fff;
}

.azure-metrics span,
.azure-weakest span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.azure-metrics strong,
.azure-weakest strong {
  display: block;
  margin: 5px 0;
  font-size: 1.35rem;
}

.azure-metrics small,
.azure-weakest small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.azure-metrics small + small {
  margin-top: 4px;
}

.phoneme-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phoneme-row span {
  min-width: 58px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 8px;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9e4f0;
  font-weight: 950;
}

.phoneme-row span.good {
  background: var(--mint);
  border-color: #d2e1d6;
}

.phoneme-row span.close {
  background: #fff8e8;
  border-color: #e8d8b9;
}

.phoneme-row span.low {
  background: var(--rose);
  border-color: #efd0ca;
}

.phoneme-row small {
  color: var(--muted);
  font-size: 0.72rem;
}

.word-feedback.empty-state {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 96px;
}

.image-engine-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: 16px;
  align-items: center;
  background: #f5f0ff;
}

.image-engine-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.source-stack {
  display: grid;
  gap: 8px;
}

.source-stack span {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 850;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.word-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.word-practice-card {
  min-height: 210px;
  display: grid;
  grid-template-rows: 96px auto auto auto;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.word-practice-card.active {
  border-color: var(--teal);
  background: var(--mint);
}

.word-practice-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.word-practice-card strong {
  font-size: 1.25rem;
}

.word-practice-card small {
  color: var(--muted);
  line-height: 1.3;
}

.mini-picture {
  min-height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f4ecd9;
}

.picture-frame > span,
.mini-picture > span {
  position: relative;
  display: block;
}

.picture-frame > span {
  transform: scale(2.2);
}

.pic-cup,
.pic-tea {
  width: 72px;
  height: 56px;
  border-radius: 0 0 26px 26px;
  background: #fff;
  box-shadow: inset 0 -18px 0 #7b503b;
}

.pic-cup::after,
.pic-tea::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 12px;
  width: 28px;
  height: 28px;
  border: 8px solid #fff;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.pic-hand {
  width: 58px;
  height: 82px;
  border-radius: 28px 28px 18px 18px;
  background: #d99a72;
}

.pic-hand::before {
  content: "";
  position: absolute;
  left: -20px;
  bottom: 5px;
  width: 74px;
  height: 28px;
  border-radius: 999px;
  background: #d99a72;
  transform: rotate(-18deg);
}

.pic-phone {
  width: 56px;
  height: 88px;
  border-radius: 12px;
  background: #20343b;
  box-shadow: inset 0 8px 0 #385d67, inset 0 -10px 0 #385d67;
}

.pic-water {
  width: 68px;
  height: 92px;
  border-radius: 40px 40px 48px 48px;
  background: #6fb9d1;
  clip-path: polygon(50% 0, 85% 38%, 100% 68%, 78% 100%, 22% 100%, 0 68%, 15% 38%);
}

.pic-door {
  width: 70px;
  height: 108px;
  border-radius: 5px;
  background: #8a5938;
}

.pic-door::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 52px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f1cf77;
}

.pic-pain {
  width: 92px;
  height: 80px;
  background: var(--coral);
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
}

.pic-thanks {
  width: 92px;
  height: 74px;
  border-radius: 999px 999px 999px 12px;
  background: var(--teal);
}

.pic-thanks::after {
  content: "";
  position: absolute;
  inset: 24px 22px;
  border-top: 8px solid #fff;
  border-bottom: 8px solid #fff;
}

.pic-left {
  width: 100px;
  height: 36px;
  background: var(--blue);
  clip-path: polygon(0 50%, 42% 0, 42% 28%, 100% 28%, 100% 72%, 42% 72%, 42% 100%);
}

.pic-mango {
  width: 80px;
  height: 102px;
  border-radius: 48% 52% 58% 42%;
  background: linear-gradient(145deg, #f0bb3d, #db7b34 58%, #629f49);
  transform: rotate(20deg);
}

.pic-market {
  width: 110px;
  height: 86px;
  background: #e9fff2;
  border-radius: 8px;
  box-shadow: inset 0 28px 0 #df6a55;
}

.pic-market::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 26px;
  height: 18px;
  background: repeating-linear-gradient(90deg, #fff 0 14px, #f6cf5d 14px 28px);
}

.pic-music {
  width: 76px;
  height: 94px;
  border-left: 12px solid var(--blue);
  border-top: 10px solid var(--blue);
}

.pic-music::before,
.pic-music::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  bottom: 0;
}

.pic-music::before {
  left: -26px;
}

.pic-music::after {
  right: -12px;
}

.pic-train {
  width: 110px;
  height: 76px;
  border-radius: 18px 18px 8px 8px;
  background: var(--blue);
  box-shadow: inset 18px 14px 0 #fff, inset -18px 14px 0 #fff;
}

.pic-train::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -12px;
  height: 12px;
  border-radius: 999px;
  background: #243238;
}

.pic-garden,
.pic-flower {
  width: 92px;
  height: 92px;
  border-radius: 0 0 999px 999px;
  background: #5e9c51;
}

.pic-garden::before,
.pic-flower::before {
  content: "";
  position: absolute;
  left: 34px;
  top: -34px;
  width: 28px;
  height: 72px;
  border-radius: 999px 999px 0 0;
  background: #4d8d43;
  transform: rotate(-25deg);
}

.pic-flower::after {
  content: "";
  position: absolute;
  left: 20px;
  top: -42px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, #f6d36c 0 22%, #df6a55 23% 100%);
}

.pic-food,
.pic-curry {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 12px #ead8bd;
}

.pic-food::after,
.pic-curry::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #d98741;
}

.pic-church,
.pic-school {
  width: 110px;
  height: 90px;
  background: #fff;
  border-radius: 6px;
  box-shadow: inset 0 -28px 0 #d7e5ed;
}

.pic-church::before,
.pic-school::before {
  content: "";
  position: absolute;
  left: 38px;
  top: -42px;
  width: 34px;
  height: 52px;
  background: #fff;
  clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%);
}

.pic-church::after {
  content: "";
  position: absolute;
  left: 52px;
  top: -66px;
  width: 6px;
  height: 36px;
  background: var(--gold);
  box-shadow: -10px 12px 0 -2px var(--gold), 10px 12px 0 -2px var(--gold);
}

.pic-book {
  width: 110px;
  height: 78px;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff 0 48%, #dce7da 49% 51%, #fff 52%);
  box-shadow: inset 0 0 0 8px var(--blue);
}

.sound-lab {
  display: grid;
  gap: 16px;
}

.sound-hero {
  min-height: 190px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(36, 126, 120, 0.14), rgba(217, 103, 84, 0.1)),
    var(--paper);
  box-shadow: 0 10px 28px rgba(30, 46, 50, 0.07);
}

.sound-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.sound-badge {
  width: 130px;
  height: 130px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 3rem;
  font-weight: 950;
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.08);
}

.sound-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 0.9fr);
  gap: 16px;
}

.mirror-live,
.coach-mouth-card,
.sound-practice-panel,
.sound-library {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(30, 46, 50, 0.07);
}

.mirror-live,
.coach-mouth-card,
.sound-practice-panel,
.sound-library {
  padding: 18px;
}

.video-shell {
  min-height: 410px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1e3035;
}

.video-shell video {
  width: 100%;
  height: 410px;
  display: block;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(21, 50, 56, 0.82), rgba(36, 126, 120, 0.58));
}

.camera-empty.hidden {
  display: none;
}

.camera-empty strong {
  font-size: 1.5rem;
}

.camera-empty span,
.privacy-note {
  color: rgba(255, 255, 255, 0.78);
}

.mirror-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.privacy-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.mouth-stage {
  min-height: 300px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9), transparent 58%),
    #f6ede4;
  border: 1px solid #ead9ca;
}

.mouth-model {
  width: 220px;
  height: 230px;
  position: relative;
}

.face-outline {
  position: absolute;
  inset: 0;
  border-radius: 44% 44% 48% 48%;
  background: linear-gradient(#efbd93, #d99a72);
  box-shadow: inset 0 -14px 0 rgba(0, 0, 0, 0.05);
}

.nose-mark {
  position: absolute;
  top: 78px;
  left: 101px;
  width: 18px;
  height: 38px;
  border-radius: 50%;
  border-right: 3px solid rgba(97, 55, 39, 0.38);
}

.upper-lip,
.lower-lip {
  position: absolute;
  left: 62px;
  width: 96px;
  height: 38px;
  border-radius: 50%;
  background: #bd5b57;
  z-index: 2;
}

.upper-lip {
  top: 132px;
}

.lower-lip {
  top: 155px;
  background: #d87972;
}

.teeth-line,
.tongue-mark,
.air-flow {
  position: absolute;
  z-index: 3;
}

.teeth-line {
  top: 153px;
  left: 75px;
  width: 70px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
}

.tongue-mark {
  top: 167px;
  left: 87px;
  width: 46px;
  height: 20px;
  border-radius: 50%;
  background: #e99688;
  opacity: 0;
}

.air-flow {
  top: 151px;
  right: 14px;
  width: 44px;
  height: 18px;
  border-top: 4px solid rgba(36, 126, 120, 0.55);
  border-radius: 50%;
  opacity: 0;
}

.shape-closed .upper-lip,
.shape-closed .lower-lip,
.shape-closed-pop .upper-lip,
.shape-closed-pop .lower-lip {
  height: 30px;
}

.shape-closed .lower-lip,
.shape-closed-pop .lower-lip {
  top: 148px;
}

.shape-closed-pop .upper-lip,
.shape-closed-pop .lower-lip {
  animation: lip-pop 1.2s infinite;
}

@keyframes lip-pop {
  0%, 45% { transform: scaleX(1.02); }
  65%, 100% { transform: scaleX(0.84) translateY(5px); }
}

.shape-teeth-lip .teeth-line,
.shape-narrow .teeth-line,
.shape-tongue-teeth .teeth-line {
  opacity: 1;
}

.shape-teeth-lip .lower-lip {
  top: 164px;
  height: 24px;
}

.shape-tongue-tip .tongue-mark,
.shape-tongue-teeth .tongue-mark {
  opacity: 1;
}

.shape-tongue-tip .tongue-mark {
  top: 150px;
  height: 16px;
}

.shape-tongue-teeth .tongue-mark {
  top: 158px;
  left: 80px;
  width: 60px;
}

.shape-back-tongue .tongue-mark {
  opacity: 1;
  top: 174px;
  left: 102px;
  width: 58px;
  height: 18px;
}

.shape-round .upper-lip,
.shape-round .lower-lip,
.shape-round-open .upper-lip,
.shape-round-open .lower-lip,
.shape-round-narrow .upper-lip,
.shape-round-narrow .lower-lip,
.shape-round-pop .upper-lip,
.shape-round-pop .lower-lip {
  left: 78px;
  width: 64px;
  height: 46px;
}

.shape-round .lower-lip,
.shape-round-open .lower-lip,
.shape-round-narrow .lower-lip,
.shape-round-pop .lower-lip {
  top: 150px;
}

.shape-open .upper-lip,
.shape-small-open .upper-lip {
  top: 127px;
}

.shape-open .lower-lip {
  top: 172px;
}

.shape-open .tongue-mark,
.shape-small-open .tongue-mark {
  opacity: 1;
  top: 177px;
}

.shape-smile .upper-lip,
.shape-smile .lower-lip {
  left: 48px;
  width: 124px;
  height: 25px;
}

.shape-smile .lower-lip {
  top: 165px;
}

.shape-narrow .air-flow,
.shape-teeth-lip .air-flow,
.shape-round-narrow .air-flow,
.shape-tongue-teeth .air-flow {
  opacity: 1;
  animation: air-pulse 1s infinite;
}

@keyframes air-pulse {
  from { transform: translateX(0); opacity: 0.25; }
  to { transform: translateX(16px); opacity: 0.8; }
}

.cue-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.cue-stack div {
  padding: 12px;
  border-radius: var(--radius);
  background: #fff8e8;
}

.cue-stack span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cue-stack strong {
  display: block;
  margin-top: 4px;
}

.practice-ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.practice-ladder button {
  min-height: 126px;
  display: grid;
  gap: 7px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  padding: 14px;
  cursor: pointer;
}

.practice-ladder span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--gold);
  font-weight: 950;
}

.practice-ladder small {
  color: var(--muted);
}

.sound-record-card,
.sound-feedback {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid #d2e1d6;
  background: var(--mint);
}

.sound-feedback {
  grid-template-columns: 1fr auto;
  margin-top: 14px;
  background: #fff8e8;
  border-color: #e8d8b9;
}

.sound-feedback.empty-state {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 96px;
}

.sound-library {
  display: grid;
  gap: 14px;
}

.sound-group {
  display: grid;
  gap: 8px;
}

.sound-group h3 {
  margin-bottom: 0;
}

.sound-chip-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(82px, 1fr));
  gap: 8px;
}

.sound-chip-row button {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.sound-chip-row button.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.sound-chip-row strong,
.sound-chip-row span {
  display: block;
}

.sound-chip-row strong {
  font-size: 1.15rem;
}

.sound-chip-row span {
  margin-top: 3px;
  color: inherit;
  opacity: 0.78;
  font-size: 0.8rem;
}

.room-banner {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(36, 126, 120, 0.15), rgba(184, 138, 51, 0.18)),
    #fff8e8;
}

.room-banner.sound,
.room-banner.melody {
  background:
    linear-gradient(135deg, rgba(217, 103, 84, 0.12), rgba(54, 95, 140, 0.13)),
    #fff;
}

.mirror-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
  background: var(--lavender);
}

.mirror-video {
  min-height: 190px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #283840;
}

.mouth-demo {
  width: 120px;
  height: 88px;
  position: relative;
}

.lip {
  position: absolute;
  left: 15px;
  width: 90px;
  height: 36px;
  border-radius: 50%;
  background: #e48f85;
}

.lip.top {
  top: 18px;
}

.lip.bottom {
  top: 40px;
  background: #d76e68;
}

.exercise-grid {
  grid-template-columns: repeat(3, 1fr);
}

.exercise-card {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.exercise-card p {
  color: var(--muted);
}

.phrase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.phrase-main,
.result-panel {
  padding: 20px;
}

.phrase-main h2 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
}

.phrase-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.phrase-steps button {
  min-height: 118px;
  border: 2px solid #e4d4ac;
  border-radius: var(--radius);
  background: #fff8e8;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 950;
  cursor: pointer;
}

.record-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--mint);
  border: 1px solid #d2e1d6;
}

.mic-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--coral);
  cursor: pointer;
}

.mic-button span {
  width: 28px;
  height: 36px;
  position: relative;
  border-radius: 16px;
  background: #fff;
}

.mic-button span::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 27px;
  width: 42px;
  height: 19px;
  border: 4px solid #fff;
  border-top: 0;
  border-radius: 0 0 24px 24px;
}

.mode-row {
  margin-top: 12px;
}

.mode-row > * {
  flex: 1;
}

.score-card {
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: none;
}

.score-card.matched {
  background: var(--mint);
}

.score-card.close {
  background: #fff8e8;
}

.score-card.try_again {
  background: var(--rose);
}

.score-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 1.35rem;
  font-weight: 950;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  border-radius: 999px;
  padding: 7px 9px;
  font-size: 0.82rem;
  font-weight: 850;
}

.tag.good {
  background: var(--sage);
}

.tag.miss {
  background: var(--rose);
}

.tag.extra {
  background: var(--lavender);
}

.empty-state {
  min-height: 130px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px dashed #c9bfae;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.compact-list {
  display: grid;
  gap: 8px;
}

.journey-map {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) 1fr;
  gap: 18px;
}

.map-copy {
  min-height: 500px;
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(54, 95, 140, 0.12), rgba(36, 126, 120, 0.14)),
    var(--paper);
  border: 1px solid var(--line);
}

.visit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visit-card {
  min-height: 210px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.visit-card.active {
  background: #fff8e8;
  border-color: var(--gold);
}

.visit-card strong {
  display: block;
  margin: 10px 0;
  font-size: 1.45rem;
}

.visit-stage {
  display: grid;
  gap: 14px;
}

.talking-head {
  min-height: 280px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(36, 126, 120, 0.1), rgba(184, 138, 51, 0.14)),
    var(--paper);
}

.head-face {
  width: 130px;
  height: 130px;
  border-radius: var(--radius);
}

.head-face .eyes::before,
.head-face .eyes::after {
  top: 48px;
  width: 11px;
  height: 11px;
}

.head-face .eyes::before {
  left: 38px;
}

.head-face .eyes::after {
  right: 38px;
}

.head-face .mouth {
  left: 46px;
  bottom: 34px;
  width: 40px;
  height: 16px;
}

.visit-tools {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
}

.timer-card,
.prompt-card {
  padding: 18px;
}

.timer-card span {
  display: block;
  font-size: 2.4rem;
  font-weight: 950;
}

.conversation-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.game-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-hero {
  grid-column: span 2;
  min-height: 230px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(54, 95, 140, 0.12), rgba(217, 103, 84, 0.1)),
    var(--paper);
}

.game-card {
  min-height: 230px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
}

.game-card strong {
  display: block;
  margin: 8px 0;
  font-size: 1.5rem;
}

.progress-page {
  display: grid;
  gap: 16px;
}

.growth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(36, 126, 120, 0.1), rgba(184, 138, 51, 0.12)),
    var(--paper);
}

.growth-hero h2 {
  margin-bottom: 8px;
}

.module-growth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.module-growth-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.module-growth-head span,
.module-growth-head strong {
  display: block;
}

.module-growth-head span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.module-growth-head strong {
  font-size: 1.25rem;
}

.module-growth-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.module-growth-stats small {
  padding: 7px 6px;
  border-radius: 6px;
  background: rgba(21, 50, 56, 0.06);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-align: center;
}

.accent-gold {
  background: linear-gradient(160deg, #fff8e8, #fffdf8 66%);
}

.accent-teal {
  background: linear-gradient(160deg, #eef7f1, #fffdf8 66%);
}

.accent-blue {
  background: linear-gradient(160deg, #eaf1f8, #fffdf8 66%);
}

.accent-coral {
  background: linear-gradient(160deg, #f8e3df, #fffdf8 66%);
}

.accent-lavender {
  background: linear-gradient(160deg, #eee8f5, #fffdf8 66%);
}

.accent-sage {
  background: linear-gradient(160deg, #edf0df, #fffdf8 66%);
}

.accent-rose {
  background: linear-gradient(160deg, #f8e3df, #fffdf8 66%);
}

.accent-mint {
  background: linear-gradient(160deg, #e8f1ee, #fffdf8 66%);
}

@keyframes growthFill {
  from {
    width: 0;
  }
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.profile-summary div,
.memory-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.profile-summary strong {
  display: block;
  margin-top: 8px;
}

.support-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.support-list p {
  margin: 0;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--mint);
}

.memory-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.memory-list strong,
.memory-list span {
  display: block;
}

.memory-list span {
  margin-top: 5px;
  color: var(--muted);
}

.external-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    min-height: auto;
    position: static;
  }

  .nav-list {
    grid-template-columns: repeat(6, 1fr);
  }

  .dashboard-grid,
  .growth-hero,
  .journey-map,
  .phrase-layout,
  .welcome-grid {
    grid-template-columns: 1fr;
  }

  .module-growth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-tile.wide,
  .game-hero {
    grid-column: auto;
  }

  .academy-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .academy-path-grid::before {
    inset: 52px 10% 120px;
  }

  .academy-path-grid::after {
    inset: 120px 18% 190px;
  }
}

@media (max-width: 780px) {

  .sentence-talk-top,
  .sentence-top-actions {
    width: 100%;
  }

  .sentence-top-actions {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .sentence-header-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sentence-header-metric,
  .sentence-stream-counter {
    min-height: 50px;
  }

  .app-shell {
    padding: 14px;
  }

  .app-header,
  .campus-hero,
  .intake-hero,
  .progress-meta,
  .progress-steps,
  .tag-field-head,
  .soft-callout,
  .sound-hero,
  .word-hero,
  .section-title {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions > * {
    flex: 1;
  }

  .nav-list,
  .form-grid,
  .about-card,
  .industry-grid,
  .large-choice-row,
  .type-grid,
  .option-grid,
  .question-card:nth-of-type(3) .option-grid,
  .insight-grid,
  .room-grid,
  .time-pills,
  .time-picker,
  .exercise-grid,
  .visit-grid,
  .game-grid,
  .external-grid,
  .profile-summary,
  .memory-list,
  .conversation-row {
    grid-template-columns: 1fr;
  }

  .academy-topbar,
  .academy-guided-band {
    flex-direction: column;
    align-items: stretch;
  }

  .academy-card-grid {
    grid-template-columns: 1fr;
  }

  .academy-path-grid::before,
  .academy-path-grid::after {
    display: none;
  }

  .academy-card {
    min-height: 250px;
  }

  .module-growth-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .growth-meter-head,
  .academy-level-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .academy-card-5 {
    grid-column: auto;
  }

  .choice-row {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    min-height: 460px;
    border-width: 8px;
  }

  .phrase-steps {
    grid-template-columns: 1fr;
  }

  .record-card,
  .coach-panel,
  .practice-focus-strip,
  .mirror-card,
  .talking-head,
  .visit-tools,
  .guided-word-studio,
  .minimal-word-top,
  .word-title-row,
  .word-title-actions,
  .breakdown-head,
  .guided-word-top,
  .simple-word-cue,
  .guided-record-card,
  .guided-record-card.countdown,
  .guided-record-card.recording,
  .word-nav-row,
  .attempt-row,
  .batch-summary-card,
  .azure-panel-head,
  .azure-metrics,
  .panel-heading-row,
  .transcription-grid,
  .word-workbench,
  .cue-tiles,
  .sound-step-row,
  .image-engine-card,
  .word-card-grid,
  .word-record-card,
  .word-feedback,
  .sound-workbench,
  .practice-ladder,
  .cue-stack,
  .sound-record-card,
  .sound-feedback,
  .sound-chip-row {
    grid-template-columns: 1fr;
  }

  .focus-actions {
    width: 100%;
  }

  .practice-focus-strip {
    grid-template-columns: 1fr;
  }

  .activity-scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity-question-card {
    min-height: 380px;
  }

  .identity-card-footer {
    flex-direction: column;
  }

  .focus-actions > * {
    flex: 1;
    min-width: 0;
  }

  .sound-badge {
    width: 92px;
    height: 92px;
    font-size: 2.2rem;
  }

  .video-shell,
  .video-shell video {
    min-height: 320px;
    height: 320px;
  }

  .picture-frame {
    min-height: 320px;
  }

  .picture-frame > span {
    transform: scale(1.65);
  }

  .word-coach-companion,
  .guided-word-stage {
    min-height: auto;
  }

  .coach-cue-list {
    margin-top: 12px;
  }

  .flip-cue-card {
    min-height: 300px;
  }

  .guided-picture > span {
    transform: scale(1.55);
  }

  .minimal-word-stage {
    min-height: auto;
  }

  .mode-row,
  .footer-actions,
  .split-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.museum-shell {
  width: min(1280px, 100%);
}

.museum-screen {
  display: grid;
  gap: 18px;
}

.museum-topline,
.museum-object-stage,
.museum-question-band,
.museum-conversation,
.museum-nav-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(30, 46, 50, 0.07);
}

.museum-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(18px, 3vw, 28px);
}

.museum-topline h2 {
  margin-bottom: 6px;
}

.museum-count {
  min-width: 92px;
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: var(--radius);
  color: var(--teal-dark);
  background: var(--mint);
  border: 1px solid #d2e1d6;
}

.museum-count strong {
  font-size: 2.25rem;
  line-height: 1;
}

.museum-count span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.museum-gallery-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.museum-gallery-picker button {
  min-height: 42px;
  border: 1px solid rgba(36, 126, 120, 0.18);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--teal-dark);
  background: rgba(238, 247, 241, 0.78);
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.museum-gallery-picker button.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 8px 18px rgba(36, 126, 120, 0.18);
}

.museum-object-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.museum-image-card,
.museum-curator-card {
  min-width: 0;
}

.museum-image-frame {
  height: min(58vh, 520px);
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f4ecd9;
}

.museum-image-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  display: block;
}

.museum-source-row {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  color: var(--muted);
}

.museum-source-row span {
  color: var(--ink);
  font-weight: 900;
}

.museum-source-row small {
  font-weight: 750;
}

.museum-curator-card {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--radius);
  background: #fff8e8;
  border: 1px solid #e8d8b9;
}

.museum-curator-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.museum-curator-card p {
  color: var(--muted);
  font-size: 1.06rem;
}

.museum-helper-words,
.museum-question-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.museum-helper-words {
  margin: 12px 0 auto;
}

.museum-helper-words span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--teal-dark);
  background: var(--mint);
  border: 1px solid #d2e1d6;
  font-weight: 900;
}

.museum-actions,
.museum-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.museum-actions {
  grid-template-columns: 1fr;
}


.museum-pathway {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(36, 126, 120, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 16% 16%, rgba(184, 138, 51, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(36, 126, 120, 0.1), rgba(255, 253, 248, 0.8));
}

.museum-pathway-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.museum-pathway-head span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.museum-pathway-head strong,
.museum-pathway-head b {
  color: var(--teal-dark);
}

.museum-pathway-head b {
  white-space: nowrap;
}

.museum-pathway-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(36, 126, 120, 0.13);
  border-radius: 999px;
  background: rgba(21, 50, 56, 0.1);
}

.museum-pathway-track span {
  display: block;
  width: var(--pathway);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #4eb9ad, var(--gold));
  box-shadow: 0 0 18px rgba(36, 126, 120, 0.28), 0 0 16px rgba(184, 138, 51, 0.22);
  animation: growthFill 0.75s ease both;
}

.museum-pathway p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.museum-question-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.museum-question-band h3 {
  margin-bottom: 0;
}

.museum-question-chips button {
  min-height: 48px;
  border: 1px solid #d2e1d6;
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--teal-dark);
  background: var(--mint);
  font-weight: 900;
  cursor: pointer;
}

.museum-conversation {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.museum-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.museum-chat-head h3 {
  margin-bottom: 0;
}

.museum-chat-log {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.museum-message {
  width: min(82%, 720px);
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.museum-message.visitor {
  justify-self: end;
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.museum-message.curator {
  background: var(--mint);
  border-color: #d2e1d6;
}

.museum-message span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
  opacity: 0.8;
}

.museum-message p {
  margin-bottom: 0;
}

.museum-ask-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
}

.museum-ask-row input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.museum-nav-row {
  padding: 14px;
  margin-top: 0;
}

@media (max-width: 900px) {
  .museum-topline,
  .museum-chat-head {
    flex-direction: column;
  }

  .museum-object-stage,
  .museum-question-band,
  .museum-ask-row,
  .museum-actions,
  .museum-nav-row {
    grid-template-columns: 1fr;
  }

  .museum-image-frame {
    height: 360px;
    min-height: 300px;
  }

  .museum-image-frame img {
    min-height: 0;
  }

  .museum-message {
    width: 100%;
  }
}



.curation-console {
  display: grid;
  gap: 18px;
}

.curation-hero,
.curation-control-panel,
.curation-summary-grid,
.curation-pipeline,
.curation-results-head,
.curation-candidate-card,
.curation-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(30, 46, 50, 0.07);
}

.curation-hero,
.curation-results-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(18px, 3vw, 28px);
}

.curation-control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: end;
  padding: 18px;
}

.curation-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.curation-stat {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.curation-stat:last-child {
  border-right: 0;
}

.curation-stat span,
.curation-stat small {
  color: var(--muted);
  font-weight: 850;
}

.curation-stat strong {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.curation-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 12px;
  gap: 10px;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  font-weight: 900;
}

.pipeline-step strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: #ebe4d8;
}

.pipeline-step.active {
  color: var(--teal-dark);
  background: var(--mint);
  border-color: #d2e1d6;
}

.pipeline-step.active strong {
  color: #fff;
  background: var(--teal);
}

.curation-results-head h3 {
  margin-bottom: 4px;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.curation-results-head p,
.curation-results-head small {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.curation-candidate-list {
  display: grid;
  gap: 12px;
}

.curation-candidate-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(30, 46, 50, 0.06);
}

.curation-candidate-card.high {
  border-color: #b8d8c0;
}

.curation-candidate-card.medium {
  border-color: #e8d8b9;
}

.curation-candidate-card.low {
  border-color: #efd0ca;
}

.curation-thumb {
  min-height: 160px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4ecd9;
}

.curation-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.curation-image-missing {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
  background: #fff8e8;
}

.curation-candidate-body {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.curation-candidate-top,
.curation-meta-row,
.curation-tag-row,
.curation-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.curation-candidate-top {
  justify-content: space-between;
}

.curation-candidate-top h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.curation-score {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 1.35rem;
  font-weight: 950;
}

.curation-meta-row span,
.curation-tag-row span,
.curation-reasons small {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--teal-dark);
  background: var(--mint);
  border: 1px solid #d2e1d6;
  font-size: 0.82rem;
  font-weight: 850;
}

.curation-reasons small {
  color: var(--muted);
  background: #fff;
  border-color: var(--line);
}

.curation-empty {
  padding: 24px;
}

@media (max-width: 900px) {
  .curation-hero,
  .curation-results-head {
    flex-direction: column;
  }

  .curation-control-panel,
  .curation-summary-grid,
  .curation-pipeline,
  .curation-candidate-card {
    grid-template-columns: 1fr;
  }

  .curation-stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .curation-stat:last-child {
    border-bottom: 0;
  }
}

/* Ivory neural field production theme. */
:root {
  --bg: #fffaf0;
  --paper: rgba(255, 250, 240, 0.84);
  --paper-strong: rgba(255, 253, 247, 0.94);
  --ink: #173435;
  --muted: #58706f;
  --line: rgba(23, 52, 53, 0.13);
  --teal: #20c6af;
  --teal-dark: #0b8f82;
  --gold: #f2c86b;
  --coral: #d96754;
  --blue: #365f8c;
  --sage: #dce7da;
  --mint: rgba(226, 249, 242, 0.82);
  --lavender: rgba(238, 232, 245, 0.9);
  --rose: rgba(248, 227, 223, 0.9);
  --shadow: 0 24px 60px rgba(23, 52, 53, 0.14);
  --radius: 8px;
  --neural-field-bg:
    radial-gradient(circle at 18% 6%, rgba(32, 198, 175, 0.2), transparent 20rem),
    radial-gradient(circle at 82% 20%, rgba(242, 200, 107, 0.18), transparent 18rem),
    linear-gradient(180deg, #fffaf0 0%, #f5f7ea 42%, #e5f4ed 100%);
}

html {
  background: var(--bg);
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--neural-field-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  background:
    linear-gradient(115deg, transparent 0 15%, rgba(32, 198, 175, 0.1) 15.1% 15.25%, transparent 15.5% 100%),
    linear-gradient(34deg, transparent 0 42%, rgba(32, 198, 175, 0.08) 42.1% 42.25%, transparent 42.5% 100%),
    linear-gradient(154deg, transparent 0 71%, rgba(32, 198, 175, 0.07) 71.1% 71.25%, transparent 71.5% 100%),
    radial-gradient(circle at 26% 18%, rgba(32, 198, 175, 0.42) 0 3px, transparent 4px),
    radial-gradient(circle at 48% 32%, rgba(32, 198, 175, 0.34) 0 2px, transparent 3px),
    radial-gradient(circle at 77% 20%, rgba(242, 200, 107, 0.44) 0 4px, transparent 5px),
    radial-gradient(circle at 88% 72%, rgba(32, 198, 175, 0.38) 0 3px, transparent 4px);
}

.neural-field-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.68;
  mix-blend-mode: multiply;
}

#app,
main {
  position: relative;
  z-index: 1;
}

.app-shell {
  width: min(100%, 1440px);
  padding: clamp(16px, 3vw, 48px);
}

.center-shell,
.practice-focus-shell,
.museum-shell {
  width: min(100%, 1320px);
}

.eyebrow,
.academy-kicker {
  letter-spacing: 0;
}

.panel,
.coach-panel,
.hero-copy,
.campus-card,
.campus-hero,
.today-card,
.stat-card,
.feature-tile,
.about-card,
.insight-card,
.question-card,
.type-card,
.industry-card,
.tag-field,
.intake-section,
.intake-hero,
.identity-question-card,
.room-card,
.practice-room,
.exercise-card,
.minimal-word-card,
.breakdown-card,
.sounds-like-card,
.sound-steps-card,
.blend-card,
.guided-record-card,
.picture-cue-card,
.word-cue-panel,
.image-engine-card,
.word-practice-card,
.word-record-card,
.batch-panel,
.batch-summary-card,
.transcription-panel,
.transcription-card,
.azure-panel,
.coach-mouth-card,
.sound-practice-panel,
.sound-record-card,
.phrase-main,
.result-panel,
.record-card,
.score-card,
.map-copy,
.visit-card,
.game-card,
.growth-hero,
.module-growth-card,
.profile-summary div,
.memory-list div,
.museum-topline,
.museum-object-stage,
.museum-question-band,
.museum-conversation,
.museum-nav-row,
.voice-studio,
.setup-card,
.realtime-card,
.accuracy-card,
.curation-hero,
.curation-control-panel,
.curation-candidate-card {
  border-color: rgba(125, 239, 216, 0.18);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.primary,
.anchor-button {
  color: #052d2e;
  background: linear-gradient(180deg, #7defd8, #20c6af);
  border: 1px solid rgba(32, 198, 175, 0.38);
  box-shadow: 0 16px 36px rgba(32, 198, 175, 0.22);
}

.secondary,
.link-button,
.icon-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 52, 53, 0.16);
}

.progress-track,
.growth-track,
.mini-growth-track,
.identity-card-progress,
.museum-pathway-track {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(125, 239, 216, 0.22);
  background: rgba(9, 45, 42, 0.12);
}

.progress-track span,
.growth-track span,
.mini-growth-track span,
.identity-card-progress span,
.museum-pathway-track span {
  position: relative;
  background: linear-gradient(90deg, #7defd8, #20c6af);
  box-shadow: 0 0 16px rgba(32, 198, 175, 0.34);
}

.progress-track span::after,
.growth-track span::after,
.mini-growth-track span::after,
.identity-card-progress span::after,
.museum-pathway-track span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #7defd8 0 3px, transparent 4px),
    rgba(7, 95, 87, 0.96);
  box-shadow: 0 0 0 4px rgba(125, 239, 216, 0.16), 0 0 18px rgba(125, 239, 216, 0.58);
  transform: translate(50%, -50%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.academy-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: clamp(20px, 4vw, 56px);
  isolation: isolate;
}

.academy-shell::before {
  content: none;
  display: none;
}

.academy-shell::after,
.academy-path-grid::before,
.academy-path-grid::after,
.academy-card::before,
.academy-card::after {
  content: none;
  display: none;
}

.academy-shell .app-header {
  min-height: auto;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(6px, 1.2vw, 12px);
}

.academy-shell .app-header > div:first-child {
  min-width: 0;
}

.academy-brand-logo {
  width: clamp(230px, 32vw, 430px);
  margin: 0 auto;
}

.academy-brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.academy-shell .app-header .eyebrow {
  width: 100%;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1;
  text-transform: none;
}

.academy-shell .app-header .eyebrow::before {
  content: none;
}

.academy-shell .app-header .eyebrow::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(32, 198, 175, 0.72);
}

.academy-shell .header-actions {
  display: none;
}

.academy-home {
  min-height: auto;
  gap: clamp(16px, 2.2vw, 28px);
  align-content: start;
}

.academy-hero {
  min-height: auto;
  overflow: visible;
  padding: 0 0 clamp(6px, 1vw, 12px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.academy-hero > .eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: clamp(0.78rem, 1.2vw, 0.96rem);
  font-weight: 950;
  text-transform: uppercase;
}

.academy-hero h2 {
  max-width: 780px;
  margin-bottom: clamp(10px, 1.4vw, 16px);
  color: var(--ink);
  font-size: clamp(3.3rem, 7vw, 6.2rem);
  line-height: 0.95;
}

.academy-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 750;
}

.academy-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.academy-card {
  min-height: 0;
  aspect-ratio: 777 / 305;
  display: block;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: clamp(20px, 2.2vw, 30px);
  background: var(--academy-card-art) center / 100% 100% no-repeat;
  color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 24px 60px -46px rgba(0, 0, 0, 0.88);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.academy-card:hover {
  transform: translateY(-4px) scale(1.006);
  border-color: rgba(125, 239, 216, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 30px 72px -48px rgba(0, 0, 0, 0.95),
    0 0 28px rgba(32, 198, 175, 0.16);
  filter: saturate(1.03) contrast(1.01);
}

.academy-card > :not(.sr-only):not(.academy-card-activity) {
  display: none;
}

.academy-card-1,
.academy-card-2,
.academy-card-3,
.academy-card-4,
.academy-card-5,
.academy-card-6,
.academy-card-7,
.academy-card-8 {
  background: var(--academy-card-art) center / 100% 100% no-repeat;
}

.academy-guided-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.academy-guided-band span {
  color: var(--teal-dark);
}

.academy-guided-band .secondary {
  color: #06302a;
  background: linear-gradient(180deg, #7defd8, #20c6af);
  border-color: rgba(125, 239, 216, 0.52);
}

@media (min-width: 1440px) {
  .academy-shell {
    padding-inline: clamp(56px, 6vw, 88px);
  }
}

@media (max-width: 1120px) {
  .academy-shell {
    padding: clamp(18px, 4vw, 34px);
  }

  .academy-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {

  .app-shell,
  .academy-shell {
    padding: 18px;
  }

  .academy-shell .app-header {
    margin-bottom: 22px;
  }

  .academy-hero h2 {
    font-size: clamp(3.2rem, 14vw, 4.45rem);
  }

  .academy-hero p:not(.eyebrow) {
    max-width: 34rem;
    font-size: 1rem;
  }

  .practice-compass-card {
    grid-template-columns: 1fr;
  }

  .academy-section-heading {
    display: grid;
    gap: 6px;
    align-items: start;
  }

  .academy-section-heading p {
    max-width: none;
    text-align: left;
  }

  .academy-card-grid {
    gap: 14px;
  }

  .academy-card {
    border-radius: 24px;
  }

  .academy-guided-band {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 420px) {
  .app-shell,
  .academy-shell {
    padding: 14px;
  }

  .academy-card {
    border-radius: 22px;
  }
}

/* Ivory neural polish shared across the production app. */
.app-header {
  color: var(--ink);
}

.coach-panel,
.practice-focus-strip,
.focus-stat,
.activity-counter,
.mini-stat,
.time-card,
.progress-card,
.identity-card-shell,
.type-card,
.choice-card,
.large-choice-row button,
.segmented button,
.attempt-card {
  border-color: var(--line);
  background: rgba(255, 253, 247, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.minimal-word-stage,
.guided-word-stage {
  border-color: var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.minimal-word-card,
.minimal-word-card.words-only {
  border-color: rgba(23, 52, 53, 0.12);
  background:
    linear-gradient(135deg, rgba(242, 200, 107, 0.12), rgba(32, 198, 175, 0.08)),
    rgba(255, 253, 247, 0.88);
}

.large-choice-row .active,
.segmented .active,
.choice-card.active,
.chip.active {
  color: #052d2e;
  border-color: rgba(32, 198, 175, 0.5);
  background: linear-gradient(180deg, #7defd8, var(--teal));
  box-shadow: 0 12px 28px rgba(32, 198, 175, 0.18);
}

.word-counter,
.status-pill,
.focus-stat,
.activity-counter,
.mini-stat {
  border-color: rgba(32, 198, 175, 0.22);
  background: rgba(255, 255, 255, 0.58);
}

.guided-record-card,
.sound-record-card,
.word-record-card,
.record-card {
  background: rgba(255, 253, 247, 0.78);
}

.breakdown-card,
.sounds-like-card,
.blend-card,
.sound-step,
.picture-cue,
.word-cue-panel {
  border-color: rgba(23, 52, 53, 0.11);
  background: rgba(255, 255, 255, 0.66);
}

.syllable-row span {
  border-color: rgba(23, 52, 53, 0.11);
  background: rgba(255, 250, 240, 0.74);
}

@media (max-width: 780px) {

  .practice-focus-shell {
    width: min(100%, 460px);
    margin-inline: auto;
  }

  .minimal-word-stage,
  .identity-card-shell,
  .panel,
  .practice-room {
    min-height: auto;
  }

  .app-shell:has(.intake-panel) {
    width: min(100%, 460px);
    min-height: 100vh;
    padding: 10px 12px 20px;
  }

  .app-shell:has(.intake-panel) .app-header {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }

  .app-shell:has(.intake-panel) .app-header .eyebrow {
    margin: 0;
    font-size: 0.82rem;
  }

  .app-shell:has(.intake-panel) .app-header h1 {
    display: none;
  }

  .app-shell:has(.intake-panel) .header-actions {
    width: auto;
  }

  .app-shell:has(.intake-panel) .home-btn {
    min-width: 72px;
    min-height: 40px;
    padding: 8px 12px;
  }

  .intake-panel {
    padding: 12px;
  }

  .intake-panel .intake-progress {
    display: none;
  }

  .intake-hero.single-card-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .intake-hero.single-card-hero .eyebrow,
  .intake-hero.single-card-hero .lead {
    display: none;
  }

  .intake-hero.single-card-hero h2 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.08;
  }

  .intake-time {
    min-width: 92px;
    padding: 8px 10px;
    border: 1px solid rgba(32, 198, 175, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.58);
    text-align: right;
  }

  .intake-time strong {
    display: none;
  }

  .intake-time span {
    color: var(--teal-dark);
    font-size: 0.84rem;
    font-weight: 950;
  }

  .identity-card-shell {
    gap: 10px;
  }

  .intake-question-meter {
    gap: 8px;
  }

  .intake-question-meter .intake-time {
    justify-self: end;
  }

  .identity-card-progress {
    height: 10px;
  }

  .identity-question-card {
    min-height: auto;
    gap: 10px;
    padding: 16px;
  }

  .identity-question-card .eyebrow {
    margin-bottom: 0;
    font-size: 0.72rem;
  }

  .identity-question-card h2 {
    font-size: clamp(1.95rem, 9vw, 2.65rem);
    line-height: 1;
  }

  .identity-question-card .lead {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.32;
  }

  .identity-answer-area {
    gap: 10px;
    margin-top: 0;
  }

  .identity-answer-area .field input {
    min-height: 56px;
    font-size: 1.08rem;
  }

  .identity-card-footer {
    position: sticky;
    bottom: 10px;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }

  .identity-card-footer > * {
    min-height: 50px;
  }
}




/* Live cumulative activity layered over the reserved band in each full-card asset. */
.academy-card {
  position: relative;
  overflow: hidden;
}

.trial-access-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2.4vw, 26px);
  border: 1px solid rgba(21, 111, 97, 0.18);
  border-radius: 18px;
  background: rgba(255, 252, 244, 0.88);
  box-shadow: 0 20px 54px -44px rgba(3, 46, 40, 0.68);
}

.local-access-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 18px;
  border: 1px dashed rgba(12, 87, 76, 0.3);
  border-radius: 16px;
  background: rgba(238, 249, 244, 0.82);
}

.local-access-preview span {
  display: block;
  color: #0b5148;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.local-access-preview p {
  margin: 5px 0 0;
  color: #3d6962;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.local-access-preview-controls {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(12, 87, 76, 0.16);
  border-radius: 12px;
  background: rgba(255, 252, 244, 0.92);
}

.local-access-preview-controls button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #315b55;
  font-size: 0.88rem;
  font-weight: 850;
}

.trial-guide-demo-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--brand-emerald) 18%, transparent);
}

.trial-guide-demo-controls span {
  margin-right: 2px;
  color: var(--brand-ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trial-guide-demo-controls button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--brand-emerald) 20%, transparent);
  border-radius: 10px;
  background: var(--brand-canvas);
  color: var(--brand-ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
}

.trial-guide-demo-controls button.active {
  border-color: var(--brand-emerald);
  background: var(--brand-emerald);
  color: var(--brand-canvas);
}

.local-access-preview-controls button.active {
  background: #0b5148;
  color: #fffdf6;
  box-shadow: 0 12px 26px -20px rgba(3, 46, 40, 0.8);
}

.trial-access-banner span {
  display: block;
  color: #0b5148;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.trial-access-banner p {
  margin: 6px 0 0;
  color: #315b55;
  font-size: clamp(0.92rem, 1vw, 1.04rem);
  font-weight: 700;
  line-height: 1.45;
}

.academy-card.is-locked {
  filter: saturate(0.74);
}

.academy-card.is-locked::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: rgba(7, 35, 31, 0.18);
}

.academy-card.is-locked:hover {
  transform: none;
}

.academy-card.is-locked > .academy-card-activity {
  z-index: 3;
}

.academy-card.is-locked .academy-card-activity-label,
.academy-card.is-locked .academy-card-activity strong {
  color: #123f39;
}

.academy-card > .academy-card-activity {
  position: absolute;
  z-index: 2;
  left: 5%;
  bottom: 6.6%;
  width: 61%;
  height: 19.3%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  align-content: center;
  gap: clamp(6px, 0.8vw, 12px);
  box-sizing: border-box;
  padding: 0 clamp(8px, 0.9vw, 14px) 0 clamp(2px, 0.25vw, 4px);
  color: #084f48;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  pointer-events: none;
}

.academy-card-activity-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #347069;
  font-size: clamp(0.66rem, 0.72vw, 0.82rem);
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.academy-card-activity strong {
  color: #063f39;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.72rem, 0.82vw, 0.94rem);
  display: block;
  margin: 0;
  padding: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.academy-card-activity.is-active .academy-card-activity-label::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: #20c6af;
  box-shadow: 0 0 0 4px rgba(32, 198, 175, 0.16), 0 0 12px rgba(32, 198, 175, 0.7);
  animation: academy-activity-pulse 1.8s ease-in-out infinite;
}

@keyframes academy-activity-pulse {
  50% { opacity: 0.58; transform: scale(0.82); }
}

@media (max-width: 780px) {

  .local-access-preview {
    align-items: stretch;
    flex-direction: column;
  }

  .local-access-preview-controls {
    width: 100%;
  }

  .local-access-preview-controls button {
    flex: 1;
  }

  .trial-guide-demo-controls button {
    flex: 1 1 112px;
  }

  .trial-access-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .academy-card > .academy-card-activity {
    gap: 4px;
    padding-right: 7px;
  }

  .academy-card-activity-label {
    font-size: clamp(0.56rem, 2.25vw, 0.72rem);
  }

  .academy-card-activity strong {
    font-size: clamp(0.62rem, 2.25vw, 0.78rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .academy-card-activity.is-active .academy-card-activity-label::before {
    animation: none;
  }
}

/* Book Club Discussion library */
.book-club-shell {
  min-height: 100vh;
}

.book-club-stage {
  width: min(100%, 1320px);
  margin-inline: auto;
}

.book-club-shell .app-header {
  margin-bottom: clamp(22px, 3vw, 38px);
}

.book-club-shell .header-actions {
  display: flex;
}

.book-club-library {
  display: grid;
  gap: clamp(22px, 3vw, 38px);
}

.book-club-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: end;
  padding: clamp(30px, 5vw, 66px);
  border: 1px solid rgba(46, 151, 133, 0.22);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 83% 20%, rgba(85, 226, 199, 0.24), transparent 30%),
    linear-gradient(125deg, rgba(255, 252, 243, 0.97), rgba(231, 246, 237, 0.93));
  box-shadow: 0 30px 80px -54px rgba(3, 46, 40, 0.76);
}

.book-club-hero::after {
  position: absolute;
  top: 28px;
  right: 36px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: #20c6af;
  box-shadow:
    -94px 68px 0 -1px rgba(32, 198, 175, 0.62),
    -194px 18px 0 -2px rgba(214, 174, 74, 0.72),
    -278px 96px 0 -2px rgba(32, 198, 175, 0.42),
    20px 112px 0 -2px rgba(214, 174, 74, 0.52);
}

.book-club-hero > div,
.book-club-promise {
  position: relative;
  z-index: 1;
}

.book-club-hero h2 {
  max-width: 780px;
  margin: 4px 0 16px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.94;
}

.book-club-hero > div > p:last-child {
  max-width: 710px;
  margin: 0;
  color: #315b55;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 650;
  line-height: 1.55;
}

.book-club-promise {
  display: grid;
  gap: 8px;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 26px;
  background: rgba(255, 252, 244, 0.8);
  box-shadow: 0 22px 55px -44px rgba(2, 49, 43, 0.8);
  backdrop-filter: blur(16px);
}

.book-club-promise span,
.book-club-book-genre {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-club-promise strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.78rem);
  line-height: 1.1;
}

.book-club-promise small {
  color: #58716d;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.book-club-genres {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.book-club-genre {
  min-height: 50px;
  flex: 0 0 auto;
  padding: 0 22px;
  border: 1px solid rgba(30, 102, 91, 0.18);
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.8);
  color: #315b55;
  font-weight: 850;
  box-shadow: 0 16px 36px -32px rgba(2, 49, 43, 0.8);
}

.book-club-genre:hover,
.book-club-genre.is-active {
  border-color: rgba(32, 198, 175, 0.56);
  background: #0b5148;
  color: #fffdf6;
}

.book-club-shelf {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(46, 151, 133, 0.2);
  border-radius: clamp(28px, 4vw, 44px);
  background: rgba(255, 252, 244, 0.86);
  box-shadow: 0 28px 72px -56px rgba(3, 46, 40, 0.72);
  backdrop-filter: blur(16px);
}

.book-club-shelf::after {
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  height: 11px;
  content: "";
  border-top: 1px solid rgba(166, 121, 50, 0.24);
  border-bottom: 1px solid rgba(166, 121, 50, 0.12);
  background: linear-gradient(180deg, rgba(225, 195, 135, 0.15), rgba(168, 117, 50, 0.06));
}

.book-club-shelf-heading {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(24px, 3.4vw, 42px);
}

.book-club-shelf-heading h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
}

.book-club-shelf-heading > span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(32, 198, 175, 0.12);
  color: #176c61;
  font-weight: 850;
}

.book-club-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.book-club-book {
  display: grid;
  grid-template-columns: minmax(160px, 0.48fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  min-height: 360px;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(37, 126, 112, 0.18);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 253, 0.95), rgba(237, 248, 241, 0.93));
  color: var(--ink);
  text-align: left;
  box-shadow: 0 26px 60px -46px rgba(2, 49, 43, 0.85);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.book-club-book:hover {
  transform: translateY(-5px);
  border-color: rgba(32, 198, 175, 0.54);
  box-shadow: 0 34px 70px -46px rgba(2, 49, 43, 0.9), 0 0 34px rgba(32, 198, 175, 0.12);
}

.book-club-cover-wrap {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  display: block;
  border-radius: 18px 18px 16px 16px;
  background: #083d38;
  box-shadow: 0 24px 38px -24px rgba(1, 34, 30, 0.95);
}

.book-club-cover-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.book-club-cover-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 238, 0.92);
  color: #0b5148;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 10px 26px -18px rgba(0, 0, 0, 0.9);
}

.book-club-book-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: 10px 4px;
}

.book-club-book-copy > strong {
  margin: 10px 0 14px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
}

.book-club-book-description {
  color: #43635e;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
}

.book-club-status {
  width: 100%;
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 15px 17px;
  border-radius: 17px;
  background: rgba(32, 198, 175, 0.1);
  color: #245f57;
}

.book-club-status span {
  font-size: 0.82rem;
  font-weight: 750;
}

.book-club-status b {
  color: #0a5148;
  font-size: 1rem;
}

.book-club-status-complete {
  background: rgba(216, 180, 95, 0.18);
}

.book-club-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: clamp(26px, 4vw, 46px);
  border: 1px dashed rgba(37, 126, 112, 0.28);
  border-radius: 26px;
  background: rgba(236, 248, 242, 0.68);
}

.book-club-empty strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.book-club-empty p {
  margin: 0 0 4px;
  color: #4b6964;
}

@media (max-width: 900px) {
  .book-club-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .book-club-promise {
    max-width: 560px;
  }
}

@media (max-width: 620px) {
  .book-club-shell .app-header {
    align-items: center;
  }

  .book-club-shell .app-header .secondary {
    min-height: 46px;
    padding-inline: 14px;
  }

  .book-club-hero,
  .book-club-shelf {
    padding: 22px;
    border-radius: 28px;
  }

  .book-club-hero h2 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .book-club-shelf-heading {
    display: grid;
    align-items: start;
  }

  .book-club-shelf-heading > span {
    justify-self: start;
  }

  .book-club-book {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px;
    border-radius: 24px;
  }

  .book-club-cover-wrap {
    width: min(68vw, 250px);
    min-height: 360px;
    justify-self: center;
  }

  .book-club-book-copy {
    min-height: 290px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-club-book {
    transition: none;
  }
}

.auth-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  position: relative;
  z-index: 2;
}

.auth-layout {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(125, 239, 216, 0.28);
  border-radius: 24px;
  background: rgba(5, 35, 35, 0.82);
  box-shadow: 0 32px 90px rgba(0, 15, 16, 0.42);
  backdrop-filter: blur(22px);
}

.auth-story {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 68px);
  color: #f8fbf5;
  background:
    linear-gradient(160deg, rgba(18, 104, 97, 0.78), rgba(4, 39, 39, 0.92)),
    rgba(5, 44, 43, 0.9);
}

.auth-brand-lockup {
  display: flex;
  align-items: center;
  width: min(100%, 370px);
  padding: 11px 14px;
  border: 1px solid rgba(246, 213, 138, 0.28);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 28px rgba(0, 22, 22, 0.18);
}

.auth-brand-lockup img {
  display: block;
  width: 100%;
  height: auto;
}

.auth-story-copy {
  max-width: 430px;
}

.auth-story-copy .eyebrow {
  color: #7defd8;
}

.auth-story-copy h1 {
  margin-bottom: 24px;
  color: #f8fbf5;
  font-size: clamp(2.55rem, 5.3vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-shadow: none;
}

.auth-story-copy h1 span {
  color: #7defd8;
}

.auth-story-copy > p:last-child {
  max-width: 380px;
  margin: 0;
  color: rgba(248, 251, 245, 0.8);
  font-size: 1.08rem;
}

.auth-assurance {
  display: grid;
  gap: 5px;
  padding-top: 24px;
  border-top: 1px solid rgba(125, 239, 216, 0.2);
}

.auth-assurance strong {
  color: #f6d58a;
}

.auth-assurance span {
  color: rgba(248, 251, 245, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 68px);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.97);
}

.auth-card-head {
  margin-bottom: 24px;
}

.auth-card-head h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.auth-card-head > p:last-child {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 24px;
  padding: 5px;
  border: 1px solid #d8dfd8;
  border-radius: 12px;
  background: #eef3ee;
}

.auth-tabs button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs button.active {
  color: var(--teal-dark);
  background: #fffdf8;
  box-shadow: 0 4px 18px rgba(15, 61, 59, 0.1);
}

.auth-form {
  display: grid;
  gap: 17px;
}

.auth-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-form .field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.auth-form .field > span:first-child {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #cbd7ce;
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(32, 198, 175, 0.16);
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  padding-right: 74px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-height: 38px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--teal-dark);
  background: #edf7f3;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.password-hint,
.preview-footnote {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-provider-area {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.auth-provider-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid color-mix(in srgb, var(--brand-ink) 20%, transparent);
  border-radius: 10px;
  padding: 12px 18px;
  color: var(--brand-ink);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(21, 33, 38, 0.07);
}

.auth-provider-button:hover {
  border-color: var(--brand-emerald);
  background: var(--brand-panel-mint);
}

.auth-provider-button:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 2px;
}

.auth-provider-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: color-mix(in srgb, var(--brand-ink) 16%, transparent);
}

.auth-divider span {
  white-space: nowrap;
}

.auth-card-foot {
  min-height: 32px;
  margin-top: 19px;
  text-align: center;
}

.auth-card-foot p {
  margin: 0;
  color: var(--muted);
}

.inline-link,
.auth-card-foot .link-button,
.verify-panel .link-button {
  min-height: 40px;
  border: 0;
  padding: 6px 8px;
  color: var(--teal-dark);
  background: transparent;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.inline-link {
  display: inline;
  padding: 0 2px;
}

.auth-notice,
.auth-alert {
  display: grid;
  gap: 3px;
  margin-bottom: 18px;
  border: 1px solid #d9e3da;
  border-radius: 10px;
  padding: 13px 14px;
  line-height: 1.4;
}

.auth-notice {
  color: #294e4a;
  background: #eef8f4;
}

.auth-notice.preview {
  border-color: #ead8aa;
  color: #654d19;
  background: #fff8e6;
}

.auth-notice span {
  font-size: 0.88rem;
}

.auth-alert.error {
  border-color: #e9b8ae;
  color: #762e24;
  background: #fff0ed;
}

.auth-alert.success {
  border-color: #a8d8c9;
  color: #185b4d;
  background: #eaf8f2;
}

.verify-panel {
  display: grid;
  gap: 14px;
  text-align: left;
}

.verify-panel > strong {
  font-size: 1.05rem;
}

.verify-panel > p {
  color: var(--muted);
}

.profile-welcome-card,
.profile-ready-card {
  width: min(880px, 100%);
  display: grid;
  gap: 20px;
  margin: 4vh auto 0;
  padding: clamp(28px, 5vw, 58px);
  text-align: left;
}

.profile-welcome-card > h2,
.profile-ready-card > h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
}

.profile-welcome-card > .lead,
.profile-ready-card > .lead {
  margin-bottom: 4px;
}

.profile-welcome-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-welcome-steps > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.profile-welcome-steps span {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #083c39;
  background: #7defd8;
  font-weight: 950;
}

.profile-welcome-steps small {
  color: var(--muted);
  line-height: 1.4;
}

.profile-start-button,
.enter-app-button {
  width: min(100%, 420px);
  min-height: 60px;
}

.profile-ready-card .intake-progress {
  margin-bottom: 8px;
}

@media (max-width: 820px) {
  .auth-page {
    align-items: start;
    padding: 0;
  }

  .auth-layout {
    min-height: 100vh;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
  }

  .auth-story {
    min-height: auto;
    gap: 30px;
    padding: 28px 24px 34px;
  }

  .auth-story-copy h1 {
    font-size: clamp(2.45rem, 13vw, 3.6rem);
  }

  .auth-assurance {
    display: none;
  }

  .auth-card {
    min-height: 58vh;
    justify-content: start;
    padding: 32px 22px 48px;
    border-radius: 24px 24px 0 0;
  }

  .auth-name-grid,
  .profile-welcome-steps {
    grid-template-columns: 1fr;
  }

  .profile-welcome-card,
  .profile-ready-card {
    margin-top: 0;
    padding: 24px 18px;
  }
}

@media (max-width: 420px) {
  .auth-story {
    padding: 22px 18px 28px;
  }

  .auth-story-copy > p:last-child {
    font-size: 0.98rem;
  }

  .auth-card {
    padding: 28px 18px 42px;
  }

  .auth-card-head h2 {
    font-size: 1.9rem;
  }
}

/* Word Studio primary recording control. The icon follows Lucide's Mic mark. */
.minimal-word-stage .word-studio-mic {
  position: relative;
  isolation: isolate;
  width: 78px;
  height: 78px;
  padding: 0;
  overflow: visible;
  color: #063d39;
  border: 1px solid rgba(7, 117, 106, 0.28);
  background: linear-gradient(145deg, #78edd8 0%, #2ccbb4 58%, #20b9a6 100%);
  box-shadow: 0 0 0 7px rgba(44, 203, 180, 0.12), 0 12px 24px rgba(15, 116, 105, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.minimal-word-stage .word-studio-mic::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: inherit;
}

.minimal-word-stage .word-studio-mic:hover {
  transform: translateY(-2px) scale(1.025);
  filter: saturate(1.04);
  box-shadow: 0 0 0 9px rgba(44, 203, 180, 0.14), 0 16px 28px rgba(15, 116, 105, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.minimal-word-stage .word-studio-mic:active {
  transform: translateY(1px) scale(0.98);
}

.minimal-word-stage .word-studio-mic:focus-visible {
  outline: 3px solid #0d8076;
  outline-offset: 5px;
}

.minimal-word-stage .word-studio-mic .word-studio-mic-icon {
  position: absolute;
  inset: 14px 20px 22px;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  color: #073e3a;
  background: transparent;
}

.minimal-word-stage .word-studio-mic .word-studio-mic-icon::after,
.minimal-word-stage .word-studio-mic .word-studio-mic-label::after {
  content: none;
}

.minimal-word-stage .word-studio-mic-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.minimal-word-stage .word-studio-mic .word-studio-mic-label {
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  width: auto;
  height: auto;
  margin: 0;
  color: #07584f;
  background: transparent;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.minimal-word-stage .guided-record-card.countdown .word-studio-mic,
.minimal-word-stage .guided-record-card.recording .word-studio-mic,
.minimal-word-stage .guided-record-card.listening .word-studio-mic,
.minimal-word-stage .guided-record-card.checking .word-studio-mic {
  width: 104px;
  height: 104px;
}

.minimal-word-stage .guided-record-card.recording .word-studio-mic,
.minimal-word-stage .guided-record-card.listening .word-studio-mic {
  color: #fff;
  background: linear-gradient(145deg, #178f84, #08675f);
  box-shadow: 0 0 0 8px rgba(44, 203, 180, 0.16), 0 0 0 16px rgba(44, 203, 180, 0.08), 0 14px 30px rgba(5, 75, 69, 0.3);
  animation: wordMicBreathe 1.3s ease-in-out infinite;
}

.minimal-word-stage .guided-record-card.recording .word-studio-mic-icon,
.minimal-word-stage .guided-record-card.listening .word-studio-mic-icon,
.minimal-word-stage .guided-record-card.recording .word-studio-mic-label,
.minimal-word-stage .guided-record-card.listening .word-studio-mic-label {
  color: #fff;
}

@keyframes wordMicBreathe {
  0%, 100% {
    box-shadow: 0 0 0 8px rgba(44, 203, 180, 0.14), 0 0 0 16px rgba(44, 203, 180, 0.06), 0 14px 30px rgba(5, 75, 69, 0.3);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(44, 203, 180, 0.2), 0 0 0 23px rgba(44, 203, 180, 0), 0 18px 34px rgba(5, 75, 69, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .minimal-word-stage .guided-record-card.recording .word-studio-mic,
  .minimal-word-stage .guided-record-card.listening .word-studio-mic {
    animation: none;
  }
}
/* Account profile, progress, and Stripe-ready subscription experience. */
.academy-shell .app-header {
  position: relative;
}

.academy-shell .header-actions {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  padding: 0;
  transform: translateY(-50%);
}

.academy-shell .academy-profile-button {
  min-width: 138px;
  min-height: 48px;
  border-color: rgba(21, 94, 84, 0.18);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 12px 30px rgba(17, 76, 69, 0.12);
  backdrop-filter: blur(12px);
}

.academy-shell .academy-profile-button:hover {
  border-color: rgba(32, 198, 175, 0.55);
  transform: translateY(-1px);
}

.account-profile-shell {
  width: min(1180px, 100%);
  max-width: none;
  padding: clamp(22px, 4vw, 52px);
}

.account-profile-stage {
  width: 100%;
}

.account-profile-shell .app-header {
  align-items: center;
  margin-bottom: 22px;
}

.account-profile-shell .app-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.account-profile-page {
  display: grid;
  gap: 18px;
}

.account-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(32, 198, 175, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 22%, rgba(125, 239, 216, 0.2), transparent 25%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.97), rgba(235, 248, 242, 0.94));
  box-shadow: 0 22px 56px rgba(15, 83, 74, 0.12);
}

.account-avatar {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(6, 91, 82, 0.2);
  border-radius: 26px;
  color: #073f39;
  background: linear-gradient(145deg, #7defd8, #24c6af);
  box-shadow: 0 0 0 9px rgba(32, 198, 175, 0.1), 0 16px 30px rgba(13, 116, 103, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  font-weight: 800;
}

.account-profile-hero h2 {
  margin: 3px 0 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.5vw, 4.15rem);
  line-height: 1;
}

.account-profile-hero > div:nth-child(2) > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.account-membership-pill,
.subscription-status,
.account-security-note,
.billing-history-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 900;
}

.account-membership-pill {
  padding: 10px 14px;
  color: #075f55;
  background: rgba(125, 239, 216, 0.24);
  border: 1px solid rgba(32, 198, 175, 0.3);
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(20, 80, 74, 0.14);
  border-radius: 18px;
  background: rgba(242, 247, 243, 0.84);
  box-shadow: 0 10px 28px rgba(16, 78, 70, 0.08);
}

.account-tabs button {
  min-height: 54px;
  border: 0;
  border-radius: 13px;
  color: #4e6964;
  background: transparent;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.account-tabs button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.account-tabs button.active {
  color: #073f39;
  background: #fffdf8;
  box-shadow: 0 7px 20px rgba(18, 78, 70, 0.12);
}

.account-message {
  padding: 14px 17px;
  border-radius: 15px;
  font-weight: 750;
  line-height: 1.45;
}

.account-message.success {
  color: #075f55;
  border: 1px solid rgba(32, 198, 175, 0.32);
  background: rgba(125, 239, 216, 0.2);
}

.account-message.error {
  color: #893b32;
  border: 1px solid rgba(176, 76, 65, 0.28);
  background: #fff0ed;
}

.account-content-card,
.account-progress-view,
.account-subscription-view {
  border: 1px solid rgba(21, 83, 76, 0.14);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 45px rgba(17, 76, 69, 0.1);
}

.account-content-card,
.account-progress-view {
  padding: clamp(22px, 3.5vw, 38px);
}

.account-subscription-view {
  padding: clamp(18px, 3vw, 30px);
}

.account-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}

.account-section-heading h2 {
  margin: 2px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.account-section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.account-security-note {
  padding: 8px 12px;
  color: #47655f;
  background: #edf4f0;
  font-size: 0.78rem;
}

.account-details-form {
  max-width: 760px;
  display: grid;
  gap: 18px;
}

.account-field {
  display: grid;
  gap: 8px;
}

.account-field > span {
  color: var(--ink);
  font-weight: 900;
}

.account-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(21, 82, 75, 0.2);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
  font-weight: 700;
}

.account-field input:focus {
  outline: 3px solid rgba(32, 198, 175, 0.22);
  border-color: var(--teal);
}

.account-field input[readonly] {
  color: #647873;
  background: #edf3ef;
  cursor: not-allowed;
}

.account-field small {
  color: var(--muted);
  line-height: 1.4;
}

.account-form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.account-form-actions .primary {
  min-width: 190px;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.account-stat-grid article {
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(21, 83, 76, 0.13);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(238, 248, 243, 0.92), rgba(255, 253, 248, 0.92));
}

.account-stat-grid span,
.account-progress-feature > span,
.subscription-renewal span {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-stat-grid strong {
  display: block;
  margin: 18px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.account-stat-grid small {
  color: var(--muted);
}

.account-progress-panels {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-top: 14px;
}

.account-progress-feature {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(32, 198, 175, 0.24);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(228, 248, 240, 0.9), rgba(255, 253, 248, 0.94));
}

.account-progress-feature.quiet {
  border-color: rgba(218, 178, 86, 0.28);
  background: linear-gradient(145deg, rgba(255, 247, 226, 0.86), rgba(255, 253, 248, 0.94));
}

.account-progress-feature h3 {
  margin: 12px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.account-progress-feature p {
  min-height: 50px;
  color: var(--muted);
  line-height: 1.5;
}

.account-progress-feature .secondary {
  margin-top: 16px;
}

.account-growth-meter {
  margin-top: 20px;
}

.subscription-plan-card,
.billing-action-card,
.billing-history-card,
.subscription-cancel-row {
  border: 1px solid rgba(21, 83, 76, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.subscription-plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 36px);
  background:
    radial-gradient(circle at 86% 18%, rgba(125, 239, 216, 0.22), transparent 28%),
    linear-gradient(135deg, #fffdf8, #edf8f3);
}

.subscription-status {
  margin-bottom: 16px;
  padding: 7px 11px;
  color: #075f55;
  border: 1px solid rgba(32, 198, 175, 0.3);
  background: rgba(125, 239, 216, 0.22);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.subscription-plan-card h2 {
  margin: 5px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.subscription-plan-card h2 small {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
}

.subscription-plan-card p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.5;
}

.subscription-renewal {
  padding: 20px;
  border: 1px solid rgba(21, 83, 76, 0.12);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.76);
}

.subscription-renewal strong {
  display: block;
  margin: 10px 0 7px;
  font-size: 1.15rem;
}

.subscription-renewal small {
  color: var(--muted);
  line-height: 1.45;
}

.billing-action-card,
.subscription-cancel-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 14px;
  padding: 20px;
}

.billing-action-card h3,
.billing-history-card h3 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.billing-action-card p,
.subscription-cancel-row span {
  display: block;
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.billing-action-card .primary {
  min-width: 230px;
}

.billing-history-card {
  margin-top: 14px;
  padding: 20px;
}

.billing-history-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.billing-history-head > span {
  padding: 7px 10px;
  color: #705b24;
  background: #fff2c9;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.billing-table {
  overflow: hidden;
  border: 1px solid rgba(21, 83, 76, 0.12);
  border-radius: 15px;
}

.billing-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.7fr 0.65fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border-top: 1px solid rgba(21, 83, 76, 0.1);
}

.billing-row:first-child {
  border-top: 0;
}

.billing-row-head {
  min-height: 44px;
  color: #60736e;
  background: #edf4f0;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-row em {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #075f55;
  background: rgba(125, 239, 216, 0.22);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.billing-preview-note {
  margin: 13px 2px 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.subscription-cancel-row {
  background: rgba(255, 248, 242, 0.72);
}

.danger-link {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(157, 61, 52, 0.25);
  border-radius: 13px;
  color: #8f3d35;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.danger-link:hover {
  background: #fff0ed;
}

@media (max-width: 900px) {
  .account-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .account-progress-panels,
  .subscription-plan-card {
    grid-template-columns: 1fr;
  }

  .billing-action-card,
  .subscription-cancel-row {
    align-items: stretch;
    flex-direction: column;
  }

  .billing-action-card .primary {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .academy-shell .app-header {
    justify-content: flex-start;
    padding-right: 106px;
  }

  .academy-shell .header-actions {
    left: auto;
    right: 0;
    width: auto;
  }

  .academy-brand-logo {
    width: min(100%, 280px);
    margin: 0;
  }

  .academy-shell .app-header .eyebrow {
    justify-content: flex-start;
  }

  .academy-shell .academy-profile-button {
    flex: 0 0 auto;
    width: auto;
    min-width: auto;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.85rem;
  }

  .account-profile-shell {
    padding: 16px;
  }

  .account-profile-shell .app-header {
    align-items: flex-start;
  }

  .account-profile-shell .header-actions .compact {
    min-width: auto;
  }

  .account-profile-hero {
    grid-template-columns: auto 1fr;
    padding: 22px;
  }

  .account-avatar {
    width: 66px;
    height: 66px;
    border-radius: 21px;
    font-size: 1.7rem;
  }

  .account-membership-pill {
    grid-column: 1 / -1;
  }

  .account-tabs {
    grid-template-columns: 1fr;
  }

  .account-stat-grid {
    grid-template-columns: 1fr;
  }

  .account-section-heading {
    display: grid;
  }

  .billing-row-head {
    display: none;
  }

  .billing-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    padding: 14px;
  }

  .billing-row span::before,
  .billing-row strong::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: #71827e;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .account-form-actions .primary {
    width: 100%;
  }
}

/* Free-trial guided walkthrough prototype */
.trial-guide-layer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

.trial-guide-layer-video {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(5, 31, 28, 0.58);
  pointer-events: auto;
}

.trial-guide-scrim {
  position: fixed;
  z-index: 9001;
  background: rgba(5, 31, 28, 0.66);
  pointer-events: none;
  will-change: top, right, bottom, left, width, height;
}

.trial-guide-scrim-top {
  top: 0;
  right: 0;
  left: 0;
  height: var(--trial-guide-hole-top, 0);
}

.trial-guide-scrim-right {
  top: var(--trial-guide-hole-top, 0);
  right: 0;
  left: calc(var(--trial-guide-hole-left, 0px) + var(--trial-guide-hole-width, 100vw));
  height: var(--trial-guide-hole-height, 100vh);
}

.trial-guide-scrim-bottom {
  top: calc(var(--trial-guide-hole-top, 0px) + var(--trial-guide-hole-height, 0px));
  right: 0;
  bottom: 0;
  left: 0;
}

.trial-guide-scrim-left {
  top: var(--trial-guide-hole-top, 0);
  left: 0;
  width: var(--trial-guide-hole-left, 0);
  height: var(--trial-guide-hole-height, 100vh);
}

.trial-guide-video-card,
.trial-guide-coach-card {
  position: relative;
  z-index: 9003;
  border: 1px solid rgba(32, 198, 175, 0.26);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.98);
  color: #123238;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.trial-guide-video-card {
  box-sizing: border-box;
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
}

.trial-guide-video-mock {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(10, 79, 70, 0.9), rgba(32, 198, 175, 0.62)),
    #0b5148;
  color: #fffdf8;
}

.trial-guide-play-symbol {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.95);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.trial-guide-play-symbol::before {
  content: "";
  margin-left: 5px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 26px solid #0b5148;
}

.trial-guide-video-mock strong,
.trial-guide-video-mock small {
  display: block;
}

.trial-guide-video-mock strong {
  font-size: 1.18rem;
  font-weight: 950;
}

.trial-guide-video-mock small {
  color: rgba(255, 253, 248, 0.76);
  font-weight: 800;
  text-transform: uppercase;
}

.trial-guide-kicker {
  margin: 0 0 8px;
  color: #008c7d;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trial-guide-video-card h2,
.trial-guide-coach-card h2 {
  margin: 0;
  color: #123238;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.08rem);
  line-height: 1.02;
}

.trial-guide-video-card p:not(.trial-guide-kicker),
.trial-guide-coach-card p:not(.trial-guide-kicker) {
  margin: 12px 0 0;
  color: #315b55;
  font-weight: 760;
  line-height: 1.48;
}

.trial-guide-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.trial-guide-start-card {
  max-width: 100%;
  width: min(100%, 660px);
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(24px, 4vw, 34px);
  padding: clamp(28px, 6vw, 54px);
  text-align: center;
}

.trial-guide-start-copy {
  width: min(100%, 520px);
}

.trial-guide-start-card h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.trial-guide-start-card p:not(.trial-guide-kicker) {
  max-width: 46ch;
  margin-inline: auto;
}

.trial-guide-audio-reminder {
  width: fit-content;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 10px 16px;
  border: 1px solid color-mix(in srgb, var(--brand-emerald) 24%, transparent);
  border-radius: 999px;
  color: var(--brand-ink);
  background: var(--brand-panel-mint);
  font-size: 0.94rem;
}

.trial-guide-speaker-icon {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--brand-emerald);
}

.trial-guide-speaker-icon::before {
  content: "";
  width: 7px;
  height: 10px;
  border-radius: 2px 0 0 2px;
  background: var(--brand-canvas);
  transform: translateX(-5px);
}

.trial-guide-speaker-icon::after {
  content: "";
  position: absolute;
  left: 14px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 10px solid var(--brand-canvas);
}

.trial-guide-speaker-icon i {
  position: absolute;
  left: 22px;
  width: 7px;
  height: 14px;
  border: 2px solid var(--brand-canvas);
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
}

.trial-guide-speaker-icon i:nth-child(2) {
  left: 24px;
  width: 9px;
  height: 20px;
  opacity: 0.62;
}

.trial-guide-start-actions {
  width: min(100%, 430px);
  justify-content: center;
}

.trial-guide-start-button,
.trial-guide-next-button {
  width: 100%;
  min-height: 64px;
  border-radius: 12px;
  color: var(--brand-action-text);
  background: var(--brand-action);
  font-size: 1.08rem;
  box-shadow: 0 18px 34px color-mix(in srgb, var(--brand-emerald) 26%, transparent);
}

.trial-guide-overview-card {
  width: min(100%, 820px);
  grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.28fr);
  align-items: stretch;
}

.trial-guide-overview-mark {
  min-height: 310px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  overflow: hidden;
  border-radius: 14px;
  color: var(--brand-canvas);
  background:
    radial-gradient(circle at 70% 24%, color-mix(in srgb, var(--brand-gold) 28%, transparent) 0 3px, transparent 4px),
    linear-gradient(145deg, var(--brand-ink), var(--brand-emerald));
}

.trial-guide-overview-mark span {
  color: var(--brand-gold);
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(5rem, 12vw, 7.5rem);
  line-height: 0.8;
}

.trial-guide-overview-mark strong {
  margin-top: 10px;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.trial-guide-overview-mark small {
  margin-top: 20px;
  color: var(--brand-aqua);
  font-weight: 850;
}

.trial-guide-overview-copy {
  align-self: center;
}

.trial-guide-overview-copy > p:not(.trial-guide-kicker) {
  max-width: 54ch;
}

.trial-guide-overview-copy .trial-guide-audio-player {
  margin-top: 22px;
}

.trial-guide-overview-actions {
  margin-top: 2px;
}

.product-tour-video-layer {
  overflow-y: auto;
  padding: clamp(14px, 2.4vw, 34px);
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--brand-cyan) 18%, transparent), transparent 34%),
    rgba(5, 31, 28, 0.82);
}

.trial-guide-resume-layer {
  padding: clamp(18px, 4vw, 48px);
  background:
    radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--brand-cyan) 20%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(5, 31, 28, 0.96), rgba(21, 33, 38, 0.96));
}

.trial-guide-resume-card {
  position: relative;
  width: min(620px, 100%);
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 40%, transparent);
  border-radius: 26px;
  background: var(--brand-canvas);
  box-shadow: 0 34px 90px rgba(2, 24, 22, 0.42);
  pointer-events: auto;
}

.trial-guide-resume-card h2 {
  max-width: 14ch;
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.trial-guide-resume-card > p:not(.trial-guide-kicker):not(.trial-guide-resume-days) {
  max-width: 52ch;
  color: var(--brand-ink-soft);
  line-height: 1.65;
}

.trial-guide-resume-route {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.trial-guide-resume-route i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-aqua);
  box-shadow: 20px 0 0 -5px var(--brand-cyan);
}

.trial-guide-resume-route i:nth-child(2),
.trial-guide-resume-route i:nth-child(3) {
  width: clamp(44px, 11vw, 76px);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-cyan));
  box-shadow: none;
}

.trial-guide-resume-route i:last-child {
  background: var(--brand-gold);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand-gold) 18%, transparent);
}

.trial-guide-resume-progress {
  display: grid;
  gap: 10px;
  margin: 24px 0 18px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-emerald) 18%, transparent);
  border-radius: 16px;
  background: var(--brand-panel-mint);
}

.trial-guide-resume-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}

.trial-guide-resume-progress > div:first-child span {
  color: var(--brand-ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.trial-guide-resume-progress > div:last-child {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-emerald) 14%, transparent);
}

.trial-guide-resume-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-cyan), var(--brand-gold));
}

.trial-guide-resume-days {
  margin: 0 0 22px;
  color: var(--brand-ink-soft);
  font-size: 0.94rem;
  font-weight: 760;
}

.trial-guide-resume-days strong {
  color: var(--brand-emerald);
  font-size: 1.2em;
}

.trial-guide-resume-button {
  width: 100%;
  min-height: 58px;
}

.product-tour-transition-card {
  width: min(1160px, 100%);
  max-height: calc(100dvh - clamp(28px, 4.8vw, 68px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  overflow-y: auto;
  padding: clamp(18px, 2.4vw, 30px);
  border-color: color-mix(in srgb, var(--brand-cyan) 44%, transparent);
  background: color-mix(in srgb, var(--brand-canvas) 99%, transparent);
  scrollbar-gutter: stable;
}

.product-tour-transition-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.product-tour-transition-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.product-tour-transition-step {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--brand-gold) 64%, transparent);
  border-radius: 999px;
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand-gold-soft) 54%, var(--brand-canvas));
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.product-tour-transition-step:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.product-tour-transition-screen {
  --transition-audio-progress: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 34%, transparent);
  border-radius: 17px;
  background:
    radial-gradient(circle at 84% 14%, color-mix(in srgb, var(--brand-gold) 13%, transparent) 0 3px, transparent 4px),
    linear-gradient(150deg, color-mix(in srgb, var(--brand-panel-mint) 66%, var(--brand-canvas)), var(--brand-canvas) 58%);
  box-shadow: 0 22px 52px color-mix(in srgb, var(--brand-ink) 15%, transparent);
}

.product-tour-transition-appbar {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(160px, 230px) 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-emerald) 16%, transparent);
  background: color-mix(in srgb, var(--brand-canvas) 96%, transparent);
}

.product-tour-transition-appbar img {
  width: min(100%, 220px);
  height: auto;
  display: block;
}

.product-tour-transition-appbar > span {
  color: var(--brand-ink-soft);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: center;
}

.product-tour-transition-appbar > i {
  width: 30px;
  height: 30px;
  display: block;
  border: 1px solid color-mix(in srgb, var(--brand-emerald) 28%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--brand-gold) 0 3px, transparent 4px),
    var(--brand-panel-mint);
}

.product-tour-transition-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  padding: 64px 16px 16px;
}

.product-tour-transition-status {
  position: absolute;
  top: 14px;
  right: 16px;
  left: 16px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--brand-teal) 22%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-canvas) 92%, transparent);
}

.product-tour-transition-status::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-cyan), var(--brand-gold));
  transform: scaleX(var(--transition-audio-progress));
  transform-origin: left center;
}

.product-tour-transition-status span {
  color: var(--brand-emerald);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-tour-transition-status strong {
  color: var(--brand-ink);
  font-size: 0.84rem;
  text-align: right;
}

.product-tour-transition-group {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--brand-emerald) 16%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand-canvas) 86%, transparent);
  opacity: 0.58;
  transform: translateY(4px) scale(0.985);
  transition: opacity 480ms ease, transform 560ms cubic-bezier(0.22, 1, 0.36, 1), border-color 480ms ease, box-shadow 480ms ease;
}

.product-tour-transition-group > header {
  min-height: 35px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.product-tour-transition-group > header span {
  color: var(--brand-ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.product-tour-transition-group > header small {
  max-width: 27ch;
  color: var(--brand-ink-soft);
  font-size: 0.67rem;
  font-weight: 720;
  line-height: 1.25;
  text-align: right;
}

.product-tour-transition-grid {
  display: grid;
  gap: 9px;
}

.product-tour-transition-grid-feedback {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.product-tour-transition-grid-immersion {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-tour-transition-module {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-ink) 10%, transparent);
  border-radius: 11px;
  background: var(--brand-canvas);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-ink) 9%, transparent);
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  animation: product-tour-transition-module-in 560ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: opacity 420ms ease, filter 420ms ease, border-color 420ms ease, box-shadow 420ms ease, transform 420ms ease;
}

.product-tour-transition-module:nth-child(2) { animation-delay: 90ms; }
.product-tour-transition-module:nth-child(3) { animation-delay: 180ms; }
.product-tour-transition-module:nth-child(4) { animation-delay: 270ms; }

.product-tour-transition-module-art {
  position: relative;
  min-height: clamp(76px, 10vw, 116px);
  display: block;
  overflow: hidden;
  background-image: var(--transition-module-art);
  background-position: center;
  background-size: cover;
}

.product-tour-transition-module-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, color-mix(in srgb, var(--brand-ink) 26%, transparent));
}

.product-tour-transition-module-copy {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
}

.product-tour-transition-module-copy strong {
  overflow: hidden;
  color: var(--brand-ink);
  font-size: clamp(0.7rem, 1.1vw, 0.88rem);
  line-height: 1.12;
  text-overflow: ellipsis;
}

.product-tour-transition-module-copy small {
  color: var(--brand-emerald);
  font-size: 0.62rem;
  font-weight: 850;
}

.product-tour-transition-focus-node {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--brand-canvas);
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-gold) 45%, transparent);
  opacity: 0;
}

.product-tour-transition-screen[data-phase="all"] .product-tour-transition-group,
.product-tour-transition-screen[data-phase="compare"] .product-tour-transition-group,
.product-tour-transition-screen[data-phase="feedback"] .product-tour-transition-feedback,
.product-tour-transition-screen[data-phase="immersion"] .product-tour-transition-immersion,
.product-tour-transition-screen[data-phase="module-tour"] .product-tour-transition-immersion,
.product-tour-transition-screen[data-phase="next-book"] .product-tour-transition-immersion,
.product-tour-transition-screen[data-phase="next"] .product-tour-transition-feedback {
  border-color: color-mix(in srgb, var(--brand-cyan) 60%, transparent);
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--brand-teal) 12%, transparent);
}

.product-tour-transition-screen[data-phase="feedback"] .product-tour-transition-immersion,
.product-tour-transition-screen[data-phase="immersion"] .product-tour-transition-feedback,
.product-tour-transition-screen[data-phase="module-tour"] .product-tour-transition-feedback,
.product-tour-transition-screen[data-phase="next-book"] .product-tour-transition-feedback,
.product-tour-transition-screen[data-phase="next"] .product-tour-transition-immersion {
  opacity: 0.3;
  transform: translateY(4px) scale(0.975);
}

.product-tour-transition-screen[data-phase="feedback"] [data-transition-group="feedback"] .product-tour-transition-focus-node,
.product-tour-transition-screen[data-phase="immersion"] [data-transition-group="immersion"] .product-tour-transition-focus-node,
.product-tour-transition-screen[data-phase="module-tour"] .product-tour-transition-module.is-transition-active .product-tour-transition-focus-node,
.product-tour-transition-screen[data-phase="next-book"] .product-tour-transition-module.is-transition-active .product-tour-transition-focus-node,
.product-tour-transition-screen[data-phase="next"] [data-transition-group="feedback"] .product-tour-transition-focus-node {
  opacity: 1;
  animation: product-tour-transition-focus-pulse 1.8s ease-out infinite;
}

.product-tour-transition-screen[data-phase="next"] .product-tour-transition-feedback {
  border-color: var(--brand-gold);
  background: color-mix(in srgb, var(--brand-gold-soft) 16%, var(--brand-canvas));
}

.product-tour-transition-screen[data-phase="module-tour"] .product-tour-transition-module.is-transition-muted,
.product-tour-transition-screen[data-phase="next-book"] .product-tour-transition-module.is-transition-muted {
  opacity: 0.32;
  filter: saturate(0.45);
  transform: scale(0.985);
}

.product-tour-transition-screen[data-phase="module-tour"] .product-tour-transition-module.is-transition-active,
.product-tour-transition-screen[data-phase="next-book"] .product-tour-transition-module.is-transition-active {
  z-index: 2;
  border-color: var(--brand-gold);
  opacity: 1;
  filter: none;
  transform: translateY(-3px) scale(1.018);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--brand-gold) 22%, transparent),
    0 16px 32px color-mix(in srgb, var(--brand-teal) 20%, transparent);
}

.product-tour-transition-screen[data-phase="next-book"] .product-tour-transition-immersion {
  border-color: var(--brand-gold);
  background: color-mix(in srgb, var(--brand-gold-soft) 14%, var(--brand-canvas));
}

.product-tour-final-step-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--brand-gold) 64%, transparent);
  border-radius: 999px;
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand-gold-soft) 54%, var(--brand-canvas));
  font-size: 0.84rem;
  font-weight: 900;
}

.product-tour-trial-ready-criteria {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-tour-trial-ready-criteria span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--brand-emerald) 16%, transparent);
  border-radius: 10px;
  color: var(--brand-ink-soft);
  background: color-mix(in srgb, var(--brand-canvas) 92%, transparent);
  font-size: clamp(0.67rem, 1vw, 0.8rem);
  font-weight: 850;
  transition: color 360ms ease, background 360ms ease, border-color 360ms ease, box-shadow 360ms ease, transform 360ms ease;
}

.product-tour-trial-ready-criteria i {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-canvas);
  background: var(--brand-teal);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
}

.product-tour-trial-ready-screen[data-phase="complete"] .product-tour-transition-group,
.product-tour-trial-ready-screen[data-phase="trial"] .product-tour-transition-feedback,
.product-tour-trial-ready-screen[data-phase="trial-module"] .product-tour-transition-feedback,
.product-tour-trial-ready-screen[data-phase="coach"] .product-tour-transition-feedback,
.product-tour-trial-ready-screen[data-phase="personal"] .product-tour-transition-feedback,
.product-tour-trial-ready-screen[data-phase="questions"] .product-tour-transition-feedback,
.product-tour-trial-ready-screen[data-phase="enter"] .product-tour-transition-feedback,
.product-tour-trial-ready-screen[data-phase="complete-access"] .product-tour-transition-immersion {
  border-color: color-mix(in srgb, var(--brand-cyan) 60%, transparent);
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--brand-teal) 12%, transparent);
}

.product-tour-trial-ready-screen[data-phase="trial"] .product-tour-transition-immersion,
.product-tour-trial-ready-screen[data-phase="trial-module"] .product-tour-transition-immersion,
.product-tour-trial-ready-screen[data-phase="coach"] .product-tour-transition-immersion,
.product-tour-trial-ready-screen[data-phase="personal"] .product-tour-transition-immersion,
.product-tour-trial-ready-screen[data-phase="questions"] .product-tour-transition-immersion,
.product-tour-trial-ready-screen[data-phase="enter"] .product-tour-transition-immersion,
.product-tour-trial-ready-screen[data-phase="complete-access"] .product-tour-transition-feedback {
  opacity: 0.3;
  transform: translateY(4px) scale(0.975);
}

.product-tour-trial-ready-screen[data-phase="trial-module"] .product-tour-transition-module.is-transition-muted,
.product-tour-trial-ready-screen[data-phase="coach"] .product-tour-transition-module.is-transition-muted,
.product-tour-trial-ready-screen[data-phase="questions"] .product-tour-transition-module.is-transition-muted {
  opacity: 0.32;
  filter: saturate(0.45);
  transform: scale(0.985);
}

.product-tour-trial-ready-screen[data-phase="trial-module"] .product-tour-transition-module.is-transition-active,
.product-tour-trial-ready-screen[data-phase="coach"] .product-tour-transition-module.is-transition-active,
.product-tour-trial-ready-screen[data-phase="questions"] .product-tour-transition-module.is-transition-active {
  z-index: 2;
  border-color: var(--brand-gold);
  opacity: 1;
  filter: none;
  transform: translateY(-3px) scale(1.018);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-gold) 22%, transparent), 0 16px 32px color-mix(in srgb, var(--brand-teal) 20%, transparent);
}

.product-tour-trial-ready-screen[data-phase="trial-module"] .product-tour-transition-module.is-transition-active .product-tour-transition-focus-node,
.product-tour-trial-ready-screen[data-phase="coach"] .product-tour-transition-module.is-transition-active .product-tour-transition-focus-node,
.product-tour-trial-ready-screen[data-phase="questions"] .product-tour-transition-module.is-transition-active .product-tour-transition-focus-node {
  opacity: 1;
  animation: product-tour-transition-focus-pulse 1.8s ease-out infinite;
}

.product-tour-trial-ready-screen[data-phase="questions"] .product-tour-trial-ready-criteria {
  opacity: 1;
  transform: translateY(0);
}

.product-tour-trial-ready-criteria span.is-active {
  border-color: var(--brand-gold);
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand-gold-soft) 34%, var(--brand-canvas));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--brand-gold) 15%, transparent);
  transform: translateY(-2px);
}

.product-tour-trial-ready-screen[data-phase="complete-access"] .product-tour-transition-immersion,
.product-tour-trial-ready-screen[data-phase="enter"] .product-tour-transition-feedback {
  border-color: var(--brand-gold);
  background: color-mix(in srgb, var(--brand-gold-soft) 15%, var(--brand-canvas));
}

.product-tour-trial-entry-takeover {
  position: absolute;
  z-index: 8;
  inset: 56px 0 0;
  min-height: 330px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: clamp(28px, 6vw, 72px);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--brand-aqua) 35%, transparent), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--brand-panel-mint) 94%, var(--brand-canvas)), var(--brand-canvas) 68%);
  transform: scale(1.025);
  transition: visibility 0s linear 440ms, opacity 440ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-tour-trial-entry-takeover.is-ready {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition-delay: 0s;
}

.product-tour-trial-entry-route {
  width: min(620px, 82%);
  height: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, transparent, var(--brand-cyan) 12%, var(--brand-teal) 50%, var(--brand-cyan) 88%, transparent);
}

.product-tour-trial-entry-route i {
  width: 12px;
  height: 12px;
  display: block;
  border: 3px solid var(--brand-canvas);
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-aqua) 24%, transparent);
  animation: product-tour-trial-entry-node 2.4s ease-in-out infinite;
}

.product-tour-trial-entry-route i:nth-child(2) { animation-delay: -1.8s; }
.product-tour-trial-entry-route i:nth-child(3) { background: var(--brand-gold); animation-delay: -1.2s; }
.product-tour-trial-entry-route i:nth-child(4) { animation-delay: -0.6s; }

.product-tour-trial-entry-copy {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.product-tour-trial-entry-copy span {
  color: var(--brand-emerald);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-tour-trial-entry-copy strong {
  color: var(--brand-ink);
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  font-weight: 650;
  line-height: 1.05;
}

.product-tour-trial-entry-button {
  width: min(640px, 94%);
  min-height: clamp(92px, 10vw, 118px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
  border: 2px solid color-mix(in srgb, var(--brand-cyan) 42%, transparent);
  border-radius: 24px;
  color: var(--brand-canvas);
  background: linear-gradient(135deg, var(--brand-emerald), color-mix(in srgb, var(--brand-teal) 78%, var(--brand-emerald)));
  box-shadow: 0 20px 42px color-mix(in srgb, var(--brand-emerald) 30%, transparent), 0 0 0 0 color-mix(in srgb, var(--brand-gold) 34%, transparent);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 950;
  letter-spacing: -0.02em;
  animation: product-tour-trial-entry-button-pulse 2.2s ease-in-out infinite;
}

.product-tour-trial-entry-button i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-ink);
  background: var(--brand-gold);
  font-size: 1.35rem;
  font-style: normal;
  transition: transform 240ms ease;
}

.product-tour-trial-entry-button:hover i,
.product-tour-trial-entry-button:focus-visible i {
  transform: translateX(4px);
}

.product-tour-trial-entry-takeover small {
  color: var(--brand-ink-soft);
  font-size: clamp(0.78rem, 1.3vw, 0.94rem);
  font-weight: 780;
  text-align: center;
}

.product-tour-trial-ready-card.is-ready-to-enter .product-tour-transition-footer {
  display: none;
}

@keyframes product-tour-trial-entry-node {
  0%, 100% { transform: scale(0.86); opacity: 0.6; }
  50% { transform: scale(1.16); opacity: 1; }
}

@keyframes product-tour-trial-entry-button-pulse {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 20px 42px color-mix(in srgb, var(--brand-emerald) 30%, transparent), 0 0 0 0 color-mix(in srgb, var(--brand-gold) 30%, transparent); }
  50% { transform: translateY(-3px) scale(1.012); box-shadow: 0 24px 48px color-mix(in srgb, var(--brand-emerald) 34%, transparent), 0 0 0 9px transparent; }
}

.product-tour-transition-footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.56fr) minmax(0, 1.44fr);
  align-items: center;
  gap: 16px;
}

.product-tour-transition-footer > p {
  margin: 0 !important;
  color: var(--brand-ink-soft) !important;
  font-size: 0.9rem;
  line-height: 1.42 !important;
}

.product-tour-transition-footer .trial-guide-audio-player {
  margin: 0;
}

.product-tour-transition-actions {
  margin-top: 0;
}

.product-tour-transition-actions .trial-guide-next-button {
  width: min(100%, 360px);
}

@keyframes product-tour-transition-module-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes product-tour-transition-focus-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-gold) 46%, transparent); }
  72%, 100% { box-shadow: 0 0 0 10px transparent; }
}

.product-tour-video-card {
  width: min(1180px, 100%);
  max-height: calc(100dvh - clamp(28px, 4.8vw, 68px));
  display: block;
  overflow-y: auto;
  padding: clamp(18px, 2.4vw, 30px);
  border-color: color-mix(in srgb, var(--brand-cyan) 44%, transparent);
  background: color-mix(in srgb, var(--brand-canvas) 98%, transparent);
  scrollbar-gutter: stable;
}

.product-tour-video-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.product-tour-video-heading h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.7rem);
}

.product-tour-video-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.product-tour-video-step,
.product-tour-video-duration {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--brand-emerald) 24%, transparent);
  border-radius: 999px;
  color: var(--brand-ink-soft);
  background: var(--brand-panel-mint);
  font-size: 0.82rem;
  font-weight: 900;
}

.product-tour-video-step {
  border-color: color-mix(in srgb, var(--brand-gold) 62%, transparent);
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand-gold-soft) 56%, var(--brand-canvas));
}

.product-tour-video-intro {
  max-width: 78ch;
  margin-bottom: 16px !important;
}

.product-tour-player-shell {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 42%, transparent);
  border-radius: 16px;
  background: var(--brand-ink);
  box-shadow: 0 24px 58px color-mix(in srgb, var(--brand-ink) 24%, transparent);
}

.product-tour-player-host {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--brand-emerald) 35%, transparent), transparent 46%),
    var(--brand-ink);
}

.product-tour-player-host mux-player,
.product-tour-player-host video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--brand-ink);
  --media-object-fit: contain;
  --media-background-color: var(--brand-ink);
  --title-display: none;
  --controls-backdrop-color: transparent;
}

.product-tour-player-host mux-player::part(button) {
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-ink) 72%, transparent);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--brand-ink) 28%, transparent);
}

.product-tour-video-loading,
.product-tour-video-error {
  width: min(90%, 560px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  color: var(--brand-canvas);
  text-align: center;
}

.product-tour-video-loading span {
  width: 48px;
  height: 48px;
  border: 4px solid color-mix(in srgb, var(--brand-aqua) 28%, transparent);
  border-top-color: var(--brand-gold);
  border-radius: 50%;
  animation: product-tour-video-spin 900ms linear infinite;
}

.product-tour-video-error > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-ink);
  background: var(--brand-gold);
  font-size: 1.4rem;
  font-weight: 950;
}

.product-tour-video-error p {
  margin: 0;
  color: color-mix(in srgb, var(--brand-canvas) 82%, transparent);
}

.product-tour-video-error .secondary {
  color: var(--brand-ink);
  background: var(--brand-canvas);
}

.product-tour-video-progress-panel {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--brand-emerald) 18%, transparent);
  border-radius: 14px;
  background: var(--brand-panel-mint);
}

.product-tour-video-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--brand-ink);
  font-size: 0.86rem;
}

.product-tour-video-progress-row span {
  color: var(--brand-ink-soft);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.product-tour-video-progress-track {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-emerald) 16%, transparent);
}

.product-tour-video-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-cyan), var(--brand-gold));
  transition: width 180ms linear;
}

.product-tour-video-progress-panel > p {
  margin: 9px 0 0 !important;
  color: var(--brand-ink-soft) !important;
  font-size: 0.8rem;
  font-weight: 720 !important;
}

.product-tour-video-actions {
  align-items: stretch;
  justify-content: flex-start;
  margin-top: 16px;
}

.product-tour-video-actions .secondary,
.product-tour-video-actions .primary {
  min-height: 54px;
}

.product-tour-video-actions .trial-guide-next-button {
  width: min(100%, 340px);
}

.trial-guide-entry-layer {
  padding: clamp(24px, 5vw, 72px);
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--brand-cyan) 24%, transparent), transparent 36%),
    linear-gradient(145deg, var(--brand-emerald), var(--brand-ink));
}

.trial-guide-entry-card {
  width: min(760px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(32px, 6vw, 70px);
  border: 1px solid color-mix(in srgb, var(--brand-aqua) 42%, transparent);
  border-radius: 30px;
  background: var(--brand-canvas);
  box-shadow: 0 40px 110px rgba(2, 24, 22, 0.46);
  text-align: center;
  pointer-events: auto;
}

.trial-guide-entry-card img {
  width: min(430px, 82%);
  height: auto;
  margin-bottom: 12px;
}

.trial-guide-entry-card h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
}

.trial-guide-entry-card > p:not(.trial-guide-kicker) {
  max-width: 56ch;
  margin: 0;
  color: var(--brand-ink-soft);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.65;
}

.trial-guide-entry-button {
  width: min(100%, 420px);
  min-height: 64px;
  margin-top: 10px;
  font-size: 1.08rem;
  box-shadow: 0 18px 42px color-mix(in srgb, var(--brand-emerald) 30%, transparent);
}

.academy-card.is-trial-recommended-start {
  outline: 5px solid var(--brand-gold);
  outline-offset: 6px;
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--brand-gold) 20%, transparent), 0 26px 70px color-mix(in srgb, var(--brand-emerald) 24%, transparent);
}

.trial-recommended-start-badge {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--brand-ink);
  background: var(--brand-gold);
  box-shadow: 0 10px 26px rgba(21, 33, 38, 0.24);
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes product-tour-video-spin {
  to { transform: rotate(360deg); }
}

.trial-guide-next-button {
  width: min(100%, 260px);
}

.trial-guide-next-button:disabled {
  cursor: wait;
  opacity: 0.48;
  box-shadow: none;
}

.trial-guide-coach-card {
  position: fixed;
  right: clamp(16px, 3vw, 42px);
  bottom: clamp(16px, 3vw, 42px);
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(16px, 2vw, 20px);
  pointer-events: auto;
}

.trial-guide-coach-card[data-placement="top"] {
  top: clamp(16px, 3vw, 42px);
  bottom: auto;
}

.trial-guide-coach-card[data-placement="bottom"] {
  top: auto;
  bottom: clamp(16px, 3vw, 42px);
}

.trial-guide-coach-card[data-compact="true"] {
  width: min(720px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(300px, 1.2fr);
  column-gap: 16px;
  padding: 12px 16px;
}

.trial-guide-coach-card[data-compact="true"] .trial-guide-kicker {
  grid-column: 1;
  margin-bottom: 4px;
}

.trial-guide-coach-card[data-compact="true"] h2 {
  grid-column: 1;
  font-size: 1.45rem;
}

.trial-guide-coach-card[data-compact="true"] .trial-guide-audio-player {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin-top: 0;
  padding: 9px 10px;
}

.trial-guide-coach-card[data-compact="true"] .trial-guide-transcript {
  display: none;
}

.trial-guide-coach-card[data-compact="true"] > strong {
  grid-column: 1 / -1;
  min-height: 38px;
  margin-top: 8px;
  padding: 7px 12px;
  font-size: 0.82rem;
}

.trial-guide-coach-card strong {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #20c6af;
  color: #073f39;
  font-size: 0.96rem;
  font-weight: 950;
}

.trial-guide-target {
  position: relative !important;
  z-index: 9002 !important;
  outline: 4px solid #20c6af !important;
  outline-offset: 6px;
  box-shadow:
    0 0 0 10px rgba(32, 198, 175, 0.22),
    0 0 0 18px rgba(255, 226, 150, 0.12),
    0 28px 70px rgba(0, 0, 0, 0.36) !important;
  filter: brightness(1.08) saturate(1.08);
  animation: trial-guide-pulse 1.2s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.academy-card.trial-guide-target {
  overflow: visible;
}

.academy-module-section.trial-guide-target,
.academy-section-heading.trial-guide-target {
  padding: clamp(12px, 2vw, 20px);
  border-radius: 22px;
  background: var(--brand-canvas);
}

.word-title-actions:has(.trial-guide-target) {
  position: relative;
  z-index: 9002;
  overflow: visible;
  gap: 18px;
}

.hear-button.trial-guide-target,
.breakdown-button.trial-guide-target {
  min-width: 154px;
  min-height: 72px;
  border: 2px solid rgba(255, 253, 248, 0.96) !important;
  border-radius: 18px;
  padding-inline: 22px;
  border-color: #20c6af !important;
  background:
    linear-gradient(145deg, #86f3df 0%, #28d3bd 56%, #20c6af 100%) !important;
  color: #073f39 !important;
  font-size: 1.05rem;
  transform: scale(1.08);
}

.word-studio-mic.trial-guide-target {
  border: 2px solid rgba(255, 253, 248, 0.96) !important;
  border-color: #20c6af !important;
  background:
    linear-gradient(145deg, #86f3df 0%, #28d3bd 56%, #20c6af 100%) !important;
  color: #073f39 !important;
  transform: scale(1.12);
}

.trial-guide-click-badge {
  position: absolute;
  right: calc(100% + 18px);
  top: 50%;
  z-index: 9004;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 253, 248, 0.92);
  background: #20c6af;
  color: #073f39;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22), 0 0 0 5px rgba(32, 198, 175, 0.2);
  pointer-events: auto;
  transform: translateY(-50%);
  animation: trial-guide-click-cue 1s ease-in-out infinite;
}

.trial-guide-click-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.trial-guide-click-badge i {
  position: absolute;
  right: -12px;
  top: 50%;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: #ffe296;
  transform: translateY(-50%);
}

.trial-guide-click-badge i::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 3px solid #ffe296;
  border-right: 3px solid #ffe296;
  transform: translateY(-50%) rotate(45deg);
}

.trial-guide-click-badge-academy-word {
  right: 22px;
  top: -34px;
  transform: none;
  animation: trial-guide-click-cue-down 1s ease-in-out infinite;
}

.trial-guide-click-badge-academy-word i {
  right: 28px;
  top: calc(100% + 8px);
  width: 3px;
  height: 24px;
}

.trial-guide-click-badge-academy-word i::after {
  right: 50%;
  top: auto;
  bottom: -2px;
  border-top: 0;
  border-right: 3px solid #ffe296;
  border-bottom: 3px solid #ffe296;
  transform: translateX(50%) rotate(45deg);
}

.word-studio-mic .trial-guide-click-badge {
  right: auto;
  left: calc(100% + 18px);
  top: 50%;
}

.word-studio-mic .trial-guide-click-badge i {
  left: -12px;
  right: auto;
}

.word-studio-mic .trial-guide-click-badge i::after {
  left: -2px;
  right: auto;
  border-top: 0;
  border-right: 0;
  border-bottom: 3px solid #ffe296;
  border-left: 3px solid #ffe296;
  transform: translateY(-50%) rotate(45deg);
}

.mic-button .trial-guide-click-badge,
.mic-button .trial-guide-click-badge span {
  width: auto;
  height: auto;
  border-radius: 999px;
}

.mic-button .trial-guide-click-badge::after,
.mic-button .trial-guide-click-badge span::after {
  content: none;
}

.trial-guide-video-card.is-reminding,
.trial-guide-coach-card.is-reminding {
  animation: trial-guide-remind 0.3s ease;
}

@keyframes trial-guide-pulse {
  50% {
    outline-color: #ffe296;
    box-shadow:
      0 0 0 14px rgba(32, 198, 175, 0.2),
      0 0 0 24px rgba(255, 226, 150, 0.22),
      0 32px 76px rgba(0, 0, 0, 0.4);
  }
}

@keyframes trial-guide-remind {
  50% { transform: translateY(-3px) scale(1.01); }
}

@keyframes trial-guide-click-cue {
  50% { transform: translateY(-50%) translateX(6px); }
}

@keyframes trial-guide-click-cue-down {
  50% { transform: translateY(6px); }
}

.trial-guide-audio-player {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 55%, transparent);
  border-radius: 14px;
  background: var(--brand-panel);
}

.trial-guide-audio-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: var(--brand-text-primary);
  font-size: 0.82rem;
}

.trial-guide-audio-row strong {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-text-primary);
  font-size: 0.84rem;
}

.trial-guide-audio-row > span:last-child {
  color: var(--brand-text-secondary);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.trial-guide-audio-bars {
  height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.trial-guide-audio-bars i {
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-teal);
}

.trial-guide-audio-player.is-playing .trial-guide-audio-bars i {
  animation: trial-guide-audio-wave 760ms ease-in-out infinite alternate;
}

.trial-guide-audio-player.is-playing .trial-guide-audio-bars i:nth-child(2) { animation-delay: -180ms; }
.trial-guide-audio-player.is-playing .trial-guide-audio-bars i:nth-child(3) { animation-delay: -360ms; }
.trial-guide-audio-player.is-playing .trial-guide-audio-bars i:nth-child(4) { animation-delay: -540ms; }

.trial-guide-audio-track {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-emerald) 16%, transparent);
}

.trial-guide-audio-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-teal);
  transition: width 160ms linear;
}

.trial-guide-audio-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.trial-guide-audio-toggle {
  min-width: 118px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--brand-emerald);
  border-radius: 10px;
  color: var(--brand-canvas);
  background: var(--brand-emerald);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--brand-emerald) 18%, transparent);
}

.trial-guide-audio-toggle > span:first-child {
  min-width: 14px;
  font-size: 0.88rem;
  line-height: 1;
}

.trial-guide-audio-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  box-shadow: none;
}

.trial-guide-audio-player.is-paused {
  border-color: color-mix(in srgb, var(--brand-gold) 64%, transparent);
  background: color-mix(in srgb, var(--brand-gold-soft) 18%, var(--brand-panel));
}

.trial-guide-audio-actions .secondary {
  min-height: 44px;
}

.trial-guide-audio-skip {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--brand-emerald);
  font-weight: 850;
  text-decoration: underline;
  cursor: pointer;
}

.trial-guide-transcript {
  margin-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--brand-emerald) 16%, transparent);
}

.trial-guide-transcript summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--brand-emerald);
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.trial-guide-caption {
  max-height: 8rem;
  overflow-y: auto;
}

@keyframes trial-guide-audio-wave {
  to { height: 20px; }
}

@media (max-width: 780px) {

  .trial-guide-video-card {
    grid-template-columns: 1fr;
  }

  .trial-guide-layer-video {
    align-items: center;
    padding: max(14px, env(safe-area-inset-top, 0px)) 14px max(14px, env(safe-area-inset-bottom, 0px));
  }

  .trial-guide-start-card,
  .trial-guide-overview-card {
    max-height: calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border-radius: 16px;
  }

  .trial-guide-start-card {
    min-height: min(620px, calc(100dvh - 28px));
    align-content: center;
    padding: 30px 20px;
  }

  .trial-guide-start-card h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .trial-guide-audio-reminder {
    border-radius: 14px;
  }

  .trial-guide-overview-card {
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    overflow: hidden;
    padding: 18px;
  }

  .trial-guide-overview-mark {
    min-height: 152px;
    grid-template-columns: auto auto;
    column-gap: 12px;
  }

  .trial-guide-overview-mark span {
    grid-row: 1 / span 2;
    font-size: 5rem;
  }

  .trial-guide-overview-mark strong {
    align-self: end;
    margin: 0;
    font-size: 1.1rem;
  }

  .trial-guide-overview-mark small {
    align-self: start;
    margin: 4px 0 0;
  }

  .trial-guide-overview-copy .trial-guide-audio-player {
    margin-top: 14px;
  }

  .trial-guide-overview-copy {
    align-self: stretch;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
  }

  .trial-guide-overview-actions,
  .trial-guide-next-button {
    width: 100%;
  }

  .trial-guide-overview-actions {
    flex: 0 0 auto;
  }

  .product-tour-transition-card {
    max-height: calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    gap: 12px;
    overflow-y: auto;
    padding: 16px;
  }

  .product-tour-transition-heading {
    align-items: flex-start;
  }

  .product-tour-transition-heading h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .product-tour-transition-step {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.72rem;
  }

  .product-tour-transition-appbar {
    grid-template-columns: minmax(150px, 1fr) auto;
    min-height: 48px;
    gap: 10px;
    padding: 8px 10px;
  }

  .product-tour-transition-appbar > span {
    display: none;
  }

  .product-tour-transition-stage {
    grid-template-columns: minmax(0, 1fr);
    padding: 64px 10px 10px;
  }

  .product-tour-transition-status {
    right: 10px;
    left: 10px;
  }

  .product-tour-transition-status strong {
    max-width: 52%;
    font-size: 0.72rem;
  }

  .product-tour-transition-group {
    padding: 9px;
  }

  .product-tour-transition-group > header small {
    display: none;
  }

  .product-tour-transition-grid-feedback {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .product-tour-transition-module-art {
    min-height: 76px;
  }

  .product-tour-transition-module-copy {
    min-height: 48px;
    padding: 6px 8px;
  }

  .product-tour-transition-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .product-tour-transition-footer > p {
    display: none;
  }

  .product-tour-transition-actions,
  .product-tour-transition-actions .trial-guide-next-button {
    width: 100%;
  }

  .product-tour-final-step-chip {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.72rem;
  }

  .product-tour-trial-ready-criteria {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-tour-trial-ready-criteria span {
    padding-block: 7px;
  }

  .product-tour-trial-entry-takeover {
    inset: 48px 0 0;
    min-height: 540px;
    place-content: start center;
    gap: 16px;
    padding: 54px 18px 32px;
  }

  .product-tour-trial-entry-copy strong {
    max-width: 10ch;
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .product-tour-trial-entry-button {
    width: 100%;
    min-height: 108px;
    border-radius: 20px;
    font-size: clamp(1.25rem, 6vw, 1.6rem);
  }

  .product-tour-trial-entry-button i {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  @media (max-height: 650px) {
    .trial-guide-overview-mark {
      min-height: 102px;
    }

    .trial-guide-overview-mark span {
      font-size: 4rem;
    }

    .trial-guide-overview-mark small {
      font-size: 0.74rem;
    }
  }

  .trial-guide-video-mock {
    min-height: 190px;
  }

  .trial-guide-actions {
    flex-direction: column-reverse;
  }

  .trial-guide-actions .primary,
  .trial-guide-actions .secondary {
    width: 100%;
  }

  .trial-guide-coach-card {
    left: 12px;
    right: 12px;
    width: auto;
    max-height: min(44dvh, 360px);
    overflow-y: auto;
    padding: 14px 16px;
  }

  .trial-guide-coach-card[data-placement="top"] {
    top: calc(12px + env(safe-area-inset-top, 0px));
    bottom: auto;
  }

  .trial-guide-coach-card[data-placement="bottom"] {
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .trial-guide-coach-card[data-compact="true"] {
    display: block;
    width: auto;
    max-height: min(34dvh, 280px);
    padding: 12px 14px;
  }

  .trial-guide-coach-card[data-compact="true"] h2 {
    font-size: 1.3rem;
  }

  .trial-guide-coach-card[data-compact="true"] .trial-guide-audio-player {
    margin-top: 8px;
    padding: 8px 9px;
  }

  .trial-guide-coach-card[data-compact="true"] > strong {
    display: flex;
    margin-top: 8px;
  }

  .trial-guide-coach-card h2 {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }

  .academy-module-section-application.trial-guide-target {
    max-height: calc(100dvh - 240px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .trial-guide-coach-card[data-step="academy-application"] {
    display: grid;
    grid-template-columns: minmax(108px, 0.72fr) minmax(0, 1.28fr);
    column-gap: 10px;
    max-height: none;
    overflow: visible;
    padding: 10px 12px;
  }

  .trial-guide-coach-card[data-step="academy-application"] .trial-guide-kicker {
    grid-column: 1;
    margin-bottom: 3px;
  }

  .trial-guide-coach-card[data-step="academy-application"] h2 {
    grid-column: 1;
    font-size: 1.15rem;
  }

  .trial-guide-coach-card[data-step="academy-application"] .trial-guide-audio-player {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
    padding: 8px 9px;
  }

  .trial-guide-coach-card[data-step="academy-application"] .trial-guide-transcript {
    display: none;
  }

  .trial-guide-coach-card[data-step="academy-application"] > strong {
    grid-column: 1 / -1;
    min-height: 44px;
    margin-top: 7px;
    padding: 7px 10px;
    font-size: 0.78rem;
    line-height: 1.2;
  }
  .trial-guide-caption {
    max-height: 6.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trial-guide-target,
  .trial-guide-video-card.is-reminding,
  .trial-guide-coach-card.is-reminding {
    animation: none;
  }

  .trial-guide-audio-player.is-playing .trial-guide-audio-bars i {
    animation: none;
  }

  .product-tour-transition-module,
  .product-tour-transition-focus-node {
    animation: none !important;
  }

  .product-tour-transition-module {
    opacity: 1;
    transform: none;
  }

  .product-tour-transition-group,
  .product-tour-transition-status::after,
  .product-tour-trial-ready-criteria,
  .product-tour-trial-ready-criteria span,
  .product-tour-trial-entry-takeover,
  .product-tour-trial-entry-button i {
    transition: none;
  }

  .product-tour-trial-entry-route i,
  .product-tour-trial-entry-button {
    animation: none;
  }
}

/* Word Studio audio controls: ready, preparing, playing, and stop states. */
.minimal-word-card.words-only {
  background: rgba(255, 253, 247, 0.94);
}

.word-title-row.word-audio-layout {
  display: grid;
  align-items: stretch;
  justify-content: initial;
  gap: clamp(28px, 5vw, 52px);
}

.word-audio-layout h2 {
  line-height: 0.96;
}

.word-title-actions.word-audio-controls {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  justify-content: stretch;
  gap: 12px;
}

.word-audio-controls .word-cue-button {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border: 2px solid #168f83;
  border-radius: var(--radius);
  color: #123f3d;
  background: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.word-audio-controls .word-cue-button:hover {
  border-color: #08766d;
  background: #f0fbf8;
  box-shadow: 0 9px 22px rgba(13, 111, 102, 0.12);
}

.word-audio-controls .word-cue-button:active {
  transform: translateY(1px);
}

.word-audio-controls .word-cue-button:focus-visible,
.word-audio-stop:focus-visible {
  outline: 3px solid #0d8076;
  outline-offset: 4px;
}

.word-cue-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0a8b7f;
}

.word-cue-icon.play {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.word-cue-icon.play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.word-cue-icon.waveform {
  gap: 3px;
}

.word-cue-icon.waveform i,
.word-audio-bars i {
  width: 4px;
  border-radius: 4px;
  background: currentColor;
}

.word-cue-icon.waveform i:nth-child(1),
.word-cue-icon.waveform i:nth-child(5) {
  height: 12px;
}

.word-cue-icon.waveform i:nth-child(2),
.word-cue-icon.waveform i:nth-child(4) {
  height: 24px;
}

.word-cue-icon.waveform i:nth-child(3) {
  height: 34px;
}

.word-cue-icon.meaning {
  background: currentColor;
  -webkit-mask: url("assets/icons/phosphor/speaker-high.svg") center / contain no-repeat;
  mask: url("assets/icons/phosphor/speaker-high.svg") center / contain no-repeat;
}

.word-meaning-card {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--brand-emerald, #08766d) 22%, transparent);
  border-radius: var(--radius);
  color: var(--brand-ink, #152126);
  background: color-mix(in srgb, var(--brand-panel-mint, #e8f4ef) 84%, var(--brand-canvas, #fbf8f0));
}

.word-meaning-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.word-meaning-head p,
.word-meaning-head h3,
.word-meaning-intro,
.word-meaning-examples p {
  margin: 0;
}

.word-meaning-head p {
  color: var(--brand-emerald, #08766d);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.word-meaning-head h3 {
  margin-top: 2px;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1;
}

.word-meaning-close {
  min-width: 64px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--brand-emerald, #08766d) 28%, transparent);
  border-radius: 12px;
  color: var(--brand-emerald, #08766d);
  background: var(--brand-canvas, #fbf8f0);
  font-weight: 800;
  cursor: pointer;
}

.word-meaning-close:focus-visible {
  outline: 3px solid var(--brand-focus, #58ced0);
  outline-offset: 3px;
}

.word-meaning-intro {
  color: var(--brand-ink-soft, #334349);
  font-weight: 750;
}

.word-meaning-audio-error {
  margin: 0;
  padding: 9px 11px;
  border-left: 3px solid var(--brand-gold, #efb94e);
  border-radius: 0 10px 10px 0;
  color: var(--brand-ink-soft, #334349);
  background: color-mix(in srgb, var(--brand-gold-soft, #f7d98d) 28%, var(--brand-canvas, #fbf8f0));
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.word-meaning-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: word-meaning;
}

.word-meaning-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: start;
  gap: 2px 8px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--brand-emerald, #08766d) 14%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand-canvas, #fbf8f0) 92%, transparent);
  counter-increment: word-meaning;
}

.word-meaning-list li::before {
  width: 26px;
  height: 26px;
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-canvas, #fbf8f0);
  background: var(--brand-emerald, #08766d);
  content: counter(word-meaning);
  font-size: 0.78rem;
  font-weight: 900;
}

.word-meaning-list strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.word-meaning-list span {
  color: var(--brand-ink-soft, #334349);
  font-size: 0.9rem;
  line-height: 1.35;
}

.word-meaning-examples {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--brand-emerald, #08766d) 18%, transparent);
}

.word-meaning-examples > strong {
  color: var(--brand-emerald, #08766d);
  font-size: 0.84rem;
}

.word-meaning-examples > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.word-meaning-examples p {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

.word-audio-playback {
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 18px;
  padding: 14px 16px 14px 22px;
  border: 2px solid #168f83;
  border-radius: var(--radius);
  color: #123f3d;
  background: #f2fbf9;
  box-shadow: 0 10px 26px rgba(13, 111, 102, 0.1);
}

.word-audio-playback strong {
  min-width: 0;
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  overflow-wrap: anywhere;
}

.word-audio-bars {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #0a9789;
}

.word-audio-bars i {
  height: 28px;
  animation: word-audio-bar 780ms ease-in-out infinite alternate;
}

.word-audio-bars i:nth-child(2) {
  height: 38px;
  animation-delay: 130ms;
}

.word-audio-bars i:nth-child(3) {
  height: 22px;
  animation-delay: 260ms;
}

.word-audio-playback.preparing .word-audio-bars {
  opacity: 0.65;
}

.word-audio-stop {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #168f83;
  border-radius: var(--radius);
  color: #075e57;
  background: #fff;
  cursor: pointer;
}

.word-audio-stop:hover {
  background: #e4f7f3;
}

.word-audio-stop span {
  width: 17px;
  height: 17px;
  border-radius: 2px;
  background: currentColor;
}

.word-audio-controls .word-cue-button.trial-guide-target {
  width: 100%;
  min-width: 0;
  transform: none;
}

.word-cue-button .trial-guide-click-badge {
  right: auto;
  left: 18px;
  top: -26px;
  transform: none;
  animation: trial-guide-click-cue-down 1s ease-in-out infinite;
}

.word-cue-button .trial-guide-click-badge i {
  right: 18px;
  top: calc(100% + 8px);
  width: 3px;
  height: 20px;
  transform: none;
}

.word-cue-button .trial-guide-click-badge i::after {
  right: 50%;
  top: auto;
  bottom: -2px;
  border-top: 0;
  border-right: 3px solid #ffe296;
  border-bottom: 3px solid #ffe296;
  transform: translateX(50%) rotate(45deg);
}

@keyframes word-audio-bar {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

@media (max-width: 780px) {

  .word-title-row.word-audio-layout {
    gap: 28px;
  }

  .word-audio-controls .word-cue-button {
    min-height: 66px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding-inline: 14px;
    font-size: 1rem;
  }

  .word-cue-icon {
    width: 32px;
    height: 32px;
  }

  .word-audio-playback {
    min-height: 84px;
    grid-template-columns: 38px minmax(0, 1fr) 50px;
    gap: 12px;
    padding: 12px;
  }

  .word-audio-stop {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-audio-bars i,
  .word-cue-button .trial-guide-click-badge {
    animation: none;
  }
}

/* Resilience and cross-device usability pass. */
.continuity-alert {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(36, 126, 120, 0.24);
  border-radius: 16px;
  background: #eef8f4;
  box-shadow: 0 10px 28px rgba(17, 76, 69, 0.08);
}

.continuity-alert > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.continuity-alert span {
  color: var(--muted);
  line-height: 1.45;
}

.continuity-alert-offline {
  border-color: rgba(184, 138, 51, 0.32);
  background: #fff8e8;
}

.continuity-alert-warning {
  border-color: rgba(217, 103, 84, 0.34);
  background: #fff0ed;
}

.microphone-privacy-note {
  margin: 8px 4px 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}

.subscription-cancel-confirm {
  flex: 1 1 460px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(157, 61, 52, 0.22);
  border-radius: 14px;
  background: #fffdf8;
}

.subscription-cancel-confirm p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.subscription-cancel-confirm > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(32, 198, 175, 0.45);
  outline-offset: 3px;
}

.book-club-genres {
  scrollbar-width: none;
}

.book-club-genres::-webkit-scrollbar {
  display: none;
}

@media (max-width: 780px) {

  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .app-shell,
  .app-stage,
  .academy-shell,
  .account-profile-shell,
  .book-club-shell,
  .progress-page,
  .academy-home,
  .academy-section-stack,
  .academy-module-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .practice-focus-shell.academy-shell,
  .practice-focus-shell.book-club-shell,
  .account-profile-shell {
    width: 100%;
    margin-inline: 0;
  }

  .has-mobile-app-nav {
    padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  }

  .continuity-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .continuity-alert button {
    width: 100%;
  }

  .minimal-word-stage > .guided-record-card {
    position: sticky;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    margin-inline: -4px;
    box-shadow: 0 18px 45px rgba(17, 76, 69, 0.2);
  }

  .practice-focus-shell .practice-focus-strip {
    display: none;
  }

  .minimal-word-stage {
    padding: 14px;
  }

  .minimal-word-top {
    margin-bottom: 10px;
  }

  .minimal-word-card,
  .minimal-word-card.words-only {
    padding: 16px;
  }

  .sentence-title-row h2 {
    font-size: clamp(2rem, 10vw, 3.15rem);
    line-height: 1.05;
  }

  .sentence-card {
    min-height: 0;
  }

  .sentence-word-row {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  }

  .sentence-word-row button {
    min-height: 56px;
  }

  .growth-hero,
  .module-growth-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .growth-hero,
  .progress-page > .panel,
  .module-growth-card {
    min-width: 0;
  }

  .book-club-shell .app-header {
    gap: 10px;
  }

  .book-club-shell .header-actions .secondary {
    min-width: 0;
    padding-inline: 12px;
  }

  .book-club-genres {
    width: calc(100% + 18px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-right: 24px;
    scroll-snap-type: x proximity;
  }

  .book-club-genre {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .subscription-cancel-confirm {
    flex-basis: auto;
    width: 100%;
  }

  .subscription-cancel-confirm > div {
    display: grid;
  }

  .auth-story {
    gap: 18px;
    padding: 18px 18px 22px;
  }

  .auth-brand-lockup {
    width: min(100%, 260px);
    padding: 8px 10px;
  }

  .auth-story-copy h1 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 10vw, 2.9rem);
  }

  .auth-story-copy > p:last-child {
    display: none;
  }

  .auth-card {
    min-height: 0;
    padding-top: 26px;
  }
}

@media (max-width: 520px) {
  .guided-record-card,
  .guided-record-card.countdown,
  .guided-record-card.recording,
  .guided-record-card.listening,
  .guided-record-card.checking {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 0;
  }

  .guided-record-card .listening-meter,
  .guided-record-card .sentence-done-button {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    min-height: 56px;
    border-radius: 16px;
  }

  .guided-record-card.countdown .mic-button,
  .guided-record-card.recording .mic-button,
  .guided-record-card.listening .mic-button,
  .guided-record-card.checking .mic-button {
    width: 74px;
    height: 74px;
  }

  .mobile-app-nav {
    right: 6px;
    bottom: 6px;
    left: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.account-preferences {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(21, 83, 76, 0.14);
}

.account-preferences h3 {
  margin: 4px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.preference-toggle {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 83, 76, 0.16);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
}

.preference-toggle span {
  display: grid;
  gap: 4px;
}

.preference-toggle small {
  color: var(--muted);
  line-height: 1.4;
}

.preference-toggle b {
  min-width: 48px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #5f706d;
  background: #edf3ef;
  text-align: center;
}

.preference-toggle[aria-pressed="true"] {
  border-color: rgba(32, 198, 175, 0.42);
  background: #eef8f4;
}

.preference-toggle[aria-pressed="true"] b {
  color: #075f55;
  background: rgba(125, 239, 216, 0.28);
}

.caregiver-summary {
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(184, 138, 51, 0.25);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff8e8, #fffdf8);
  box-shadow: 0 16px 38px rgba(91, 69, 22, 0.08);
}

.caregiver-summary h2 {
  margin: 5px 0 9px;
}

.caregiver-summary p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.simple-mode .academy-section-heading p,
.simple-mode .academy-card-grid > .academy-card:nth-child(n + 3) {
  display: none;
}

.simple-mode .academy-section-heading::after {
  content: "Simpler view is on. More activities are available when you turn it off in Profile.";
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.user-reduced-motion *,
.user-reduced-motion *::before,
.user-reduced-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* Sentence Talk mobile focus layout */
.sentence-mobile-practice-summary,
.sentence-mobile-record-heading,
.sentence-audio-icon {
  display: none;
}

@media (max-width: 780px) {

  .sentence-talk-shell {
    width: min(100%, 460px);
    min-height: 100dvh;
    gap: 0;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 0;
  }

  .sentence-talk-shell .practice-focus-stage {
    min-height: 100dvh;
  }

  .sentence-talk-shell .app-header {
    min-height: 74px;
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding-inline: 76px;
  }

  .sentence-talk-shell .app-header > div:first-child {
    width: min(220px, calc(100vw - 204px));
    max-width: 220px;
    min-width: 0;
    flex: 0 0 min(220px, calc(100vw - 204px));
    text-align: center;
  }

  .sentence-talk-shell .app-header .eyebrow {
    display: none;
  }

  .sentence-talk-shell .app-header h1 {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    width: 100%;
    max-width: none;
    font-size: clamp(0.85rem, 3.7vw, 1.05rem);
    font-weight: 800;
    line-height: 1.1;
    text-wrap: balance;
    white-space: normal;
  }

  .sentence-talk-shell .header-actions {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .sentence-talk-shell .header-actions > * {
    min-width: 0;
    min-height: 44px;
    position: absolute;
    top: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(8, 118, 109, 0.2);
    border-radius: 14px;
    color: var(--ink);
    background: rgba(251, 248, 240, 0.88);
    box-shadow: 0 8px 20px rgba(21, 33, 38, 0.06);
    pointer-events: auto;
    font-size: 0.82rem;
  }

  .sentence-talk-shell .header-actions .home-btn {
    left: 0;
    padding-left: 31px;
  }

  .sentence-talk-shell .home-btn::before {
    width: 17px;
    height: 17px;
    position: absolute;
    left: 10px;
    content: "";
    background: var(--brand-emerald, #08766d);
    -webkit-mask: url("assets/icons/phosphor/arrow-left.svg") center / contain no-repeat;
    mask: url("assets/icons/phosphor/arrow-left.svg") center / contain no-repeat;
  }

  .sentence-talk-shell .header-actions .module-tutorial-button {
    right: 0;
  }

  .sentence-talk-shell .continuity-alert-compact {
    min-height: 44px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    padding: 7px 8px 7px 13px;
    border-color: rgba(8, 118, 109, 0.2);
    border-radius: 14px;
    background: rgba(232, 244, 239, 0.92);
    box-shadow: none;
  }

  .sentence-talk-shell .continuity-alert-compact strong {
    font-size: 0.86rem;
  }

  .sentence-talk-shell .continuity-alert-compact button {
    width: auto;
    min-width: 78px;
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 10px;
    font-size: 0.8rem;
  }

  .sentence-talk-shell .sentence-talk-studio {
    display: block;
  }

  .sentence-talk-shell .sentence-talk-stage {
    width: 100%;
    min-height: 0;
    gap: 0;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .sentence-talk-shell .sentence-talk-top {
    display: none;
  }

  .sentence-talk-shell .sentence-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 4px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .sentence-talk-shell .sentence-title-row {
    display: contents;
  }

  .sentence-talk-shell .sentence-title-row > div:first-child {
    order: 1;
  }

  .sentence-talk-shell .sentence-source {
    margin: 0 0 5px;
    color: var(--brand-emerald, #08766d);
    font-size: 0.72rem;
    letter-spacing: 0.035em;
  }

  .sentence-talk-shell .sentence-title-row h2 {
    max-width: 100%;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.55rem, 12.8vw, 4rem);
    font-weight: 800;
    line-height: 0.98;
    overflow-wrap: normal;
    word-break: normal;
    text-shadow: none;
  }

  .sentence-talk-shell .sentence-word-row {
    order: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .sentence-talk-shell .sentence-word-row button {
    min-width: 0;
    min-height: 82px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 5px;
    border: 1px solid rgba(239, 185, 78, 0.56);
    border-radius: 16px;
    color: var(--ink);
    background: rgba(251, 248, 240, 0.88);
    box-shadow: 0 7px 18px rgba(21, 33, 38, 0.045);
    font-size: clamp(1rem, 4.3vw, 1.16rem);
    line-height: 1.05;
  }

  .sentence-talk-shell .sentence-audio-icon {
    width: 22px;
    height: 22px;
    display: block;
    flex: 0 0 auto;
    background: var(--brand-teal, #0f8f8b);
    -webkit-mask: url("assets/icons/phosphor/speaker-high.svg") center / contain no-repeat;
    mask: url("assets/icons/phosphor/speaker-high.svg") center / contain no-repeat;
  }

  .sentence-talk-shell .word-title-actions {
    order: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    width: 100%;
  }

  .sentence-talk-shell .hear-button,
  .sentence-talk-shell .breakdown-button {
    min-width: 0;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 14px;
    font-size: 0.94rem;
  }

  .sentence-talk-shell .hear-button .sentence-audio-icon {
    background: #ffffff;
  }

  .sentence-talk-shell .breakdown-button {
    border-color: rgba(239, 185, 78, 0.52);
    background: rgba(251, 248, 240, 0.9);
  }

  .sentence-talk-shell .sentence-mobile-practice-summary {
    display: block;
    order: 2;
    margin-top: 12px;
  }

  .sentence-talk-shell .sentence-practice-summary {
    border: 1px solid rgba(8, 118, 109, 0.16);
    border-radius: 14px;
    background: rgba(232, 244, 239, 0.74);
    overflow: hidden;
  }

  .sentence-talk-shell .sentence-practice-summary summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    list-style: none;
  }

  .sentence-talk-shell .sentence-practice-summary summary::-webkit-details-marker {
    display: none;
  }

  .sentence-talk-shell .sentence-practice-summary summary > span:first-child {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }

  .sentence-talk-shell .sentence-practice-summary summary strong {
    color: var(--brand-emerald, #08766d);
    font-size: 0.8rem;
  }

  .sentence-talk-shell .sentence-practice-summary summary small {
    color: var(--muted);
    font-size: 0.72rem;
  }

  .sentence-talk-shell .sentence-summary-arrow {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    background: var(--brand-emerald, #08766d);
    transform: rotate(-90deg);
    transition: transform 180ms ease;
    -webkit-mask: url("assets/icons/phosphor/arrow-left.svg") center / contain no-repeat;
    mask: url("assets/icons/phosphor/arrow-left.svg") center / contain no-repeat;
  }

  .sentence-talk-shell .sentence-practice-summary[open] .sentence-summary-arrow {
    transform: rotate(90deg);
  }

  .sentence-talk-shell .sentence-summary-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    border-top: 1px solid rgba(8, 118, 109, 0.12);
    background: rgba(8, 118, 109, 0.1);
  }

  .sentence-talk-shell .sentence-summary-details > span {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 9px 5px;
    background: rgba(251, 248, 240, 0.92);
    text-align: center;
  }

  .sentence-talk-shell .sentence-summary-details strong {
    color: var(--ink);
    font-size: 1rem;
  }

  .sentence-talk-shell .sentence-summary-details small {
    color: var(--muted);
    font-size: 0.65rem;
  }

  .sentence-talk-shell .batch-panel {
    order: 3;
    margin-top: 10px;
  }

  .sentence-talk-shell .word-nav-row {
    order: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
    padding-top: 0;
  }

  .sentence-talk-shell .word-nav-row button {
    min-height: 48px;
    border-radius: 14px;
  }

  .sentence-talk-shell .practice-gate-note,
  .sentence-talk-shell .sentence-footnote {
    order: 5;
  }

  .sentence-talk-shell .sentence-footnote {
    display: none;
  }

  .sentence-talk-shell .practice-gate-note {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: center;
  }

  .sentence-talk-shell .microphone-privacy-note {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .sentence-talk-shell .sentence-talk-stage > .guided-record-card,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.countdown,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.recording,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.listening,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.checking {
    order: 6;
    min-height: clamp(190px, 29dvh, 250px);
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    position: sticky;
    bottom: 0;
    z-index: 90;
    margin: 14px -14px calc(-18px - env(safe-area-inset-bottom, 0px));
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    border-width: 1px 0 0;
    border-color: rgba(8, 118, 109, 0.2);
    border-radius: 24px 24px 0 0;
    background: rgba(232, 244, 239, 0.96);
    -webkit-backdrop-filter: blur(0.5px);
    backdrop-filter: blur(0.5px);
    box-shadow: 0 -16px 38px rgba(21, 83, 76, 0.12);
    overflow: hidden;
  }

  .sentence-talk-shell .sentence-talk-stage > .guided-record-card::before {
    position: absolute;
    inset: -3px;
    content: "";
    background: url("assets/ui/sentence-talk-neural-edge-v1.png") center / cover no-repeat;
    opacity: 0.72;
    pointer-events: none;
    animation: sentenceNeuralTrayPulse 5.5s ease-in-out infinite;
  }

  .sentence-talk-shell .sentence-mobile-record-heading {
    display: grid;
    justify-items: center;
    gap: 7px;
    position: relative;
    z-index: 1;
  }

  .sentence-talk-shell .sentence-mobile-record-heading strong {
    max-width: 320px;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
  }

  .sentence-talk-shell .sentence-attempt-dots {
    display: flex;
    gap: 7px;
  }

  .sentence-talk-shell .sentence-attempt-dots span {
    width: 8px;
    height: 8px;
    display: block;
    border: 1px solid rgba(8, 118, 109, 0.42);
    border-radius: 50%;
    background: rgba(251, 248, 240, 0.72);
  }

  .sentence-talk-shell .sentence-attempt-dots span.active,
  .sentence-talk-shell .sentence-attempt-dots span.complete {
    border-color: var(--brand-gold, #efb94e);
    background: var(--brand-gold, #efb94e);
  }

  .sentence-talk-shell .sentence-record-desktop-copy {
    display: none;
  }

  .sentence-talk-shell .sentence-talk-stage > .guided-record-card .word-studio-mic,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.countdown .word-studio-mic,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.recording .word-studio-mic,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.listening .word-studio-mic,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.checking .word-studio-mic {
    width: 82px;
    height: 82px;
    position: relative;
    z-index: 1;
    margin: 0;
  }

  .sentence-talk-shell .guided-record-card .listening-meter,
  .sentence-talk-shell .guided-record-card .sentence-done-button {
    width: min(100%, 260px);
    min-height: 44px;
    position: relative;
    z-index: 1;
    grid-column: auto;
    border-radius: 14px;
  }

  .sentence-talk-shell .guided-record-card .listening-meter {
    aspect-ratio: auto;
    grid-template-columns: auto auto auto;
    gap: 6px;
    border-width: 2px;
    padding: 7px 12px;
  }
}

@media (max-width: 360px) {
  .sentence-talk-shell {
    padding-inline: 9px;
  }

  .sentence-talk-shell .app-header {
    padding-inline: 68px;
  }

  .sentence-talk-shell .header-actions > * {
    padding-inline: 8px;
    font-size: 0.75rem;
  }

  .sentence-talk-shell .header-actions .home-btn {
    padding-left: 28px;
  }

  .sentence-talk-shell .sentence-talk-stage {
    padding-inline: 11px;
  }

  .sentence-talk-shell .sentence-title-row h2 {
    font-size: clamp(2.2rem, 12.2vw, 3rem);
  }

  .sentence-talk-shell .sentence-word-row button {
    min-height: 74px;
    font-size: 0.94rem;
  }

  .sentence-talk-shell .sentence-talk-stage > .guided-record-card {
    margin-inline: -11px;
  }
}

@media (max-width: 780px) and (max-height: 650px) {
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.countdown,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.recording,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.listening,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.checking {
    min-height: 160px;
    padding-top: 10px;
  }

  .sentence-talk-shell .sentence-talk-stage > .guided-record-card .word-studio-mic,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.countdown .word-studio-mic,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.recording .word-studio-mic,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.listening .word-studio-mic,
  .sentence-talk-shell .sentence-talk-stage > .guided-record-card.checking .word-studio-mic {
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sentence-talk-shell .sentence-summary-arrow {
    transition: none;
  }

  .sentence-talk-shell .sentence-talk-stage > .guided-record-card::before {
    animation: none;
    opacity: 0.64;
  }
}

@keyframes sentenceNeuralTrayPulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(1);
  }
  50% {
    opacity: 0.78;
    transform: scale(1.012);
  }
}

/* Word Studio mobile focus layout. Mirrors the approved Sentence Talk hierarchy. */
.word-mobile-practice-summary,
.word-mobile-record-heading,
.word-studio-source {
  display: none;
}

@media (max-width: 780px) {

  .word-studio-shell {
    width: min(100%, 460px);
    min-height: 100dvh;
    gap: 0;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 0;
  }

  .word-studio-shell .practice-focus-stage {
    min-height: 100dvh;
  }

  .word-studio-shell .app-header {
    min-height: 64px;
    position: relative;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding-inline: 76px;
  }

  .word-studio-shell .app-header > div:first-child {
    min-width: 0;
    text-align: center;
  }

  .word-studio-shell .app-header .eyebrow {
    display: none;
  }

  .word-studio-shell .app-header h1 {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
  }

  .word-studio-shell .header-actions {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .word-studio-shell .header-actions > * {
    min-width: 0;
    min-height: 44px;
    position: absolute;
    top: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(8, 118, 109, 0.2);
    border-radius: 14px;
    color: var(--brand-ink, #152126);
    background: rgba(251, 248, 240, 0.88);
    box-shadow: 0 8px 20px rgba(21, 33, 38, 0.06);
    pointer-events: auto;
    font-size: 0.82rem;
  }

  .word-studio-shell .header-actions .home-btn {
    left: 0;
    padding-left: 31px;
  }

  .word-studio-shell .home-btn::before {
    width: 17px;
    height: 17px;
    position: absolute;
    left: 10px;
    content: "";
    background: var(--brand-emerald, #08766d);
    -webkit-mask: url("assets/icons/phosphor/arrow-left.svg") center / contain no-repeat;
    mask: url("assets/icons/phosphor/arrow-left.svg") center / contain no-repeat;
  }

  .word-studio-shell .header-actions .module-tutorial-button {
    right: 0;
  }

  .word-studio-shell .continuity-alert-compact {
    min-height: 44px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    padding: 7px 8px 7px 13px;
    border-color: rgba(8, 118, 109, 0.2);
    border-radius: 14px;
    background: rgba(232, 244, 239, 0.92);
    box-shadow: none;
  }

  .word-studio-shell .continuity-alert-compact strong {
    font-size: 0.86rem;
  }

  .word-studio-shell .continuity-alert-compact button {
    width: auto;
    min-width: 78px;
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 10px;
    font-size: 0.8rem;
  }

  .word-studio-shell .minimal-word-studio {
    display: block;
  }

  .word-studio-shell .minimal-word-stage {
    width: 100%;
    min-height: 0;
    gap: 0;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .word-studio-shell .minimal-word-top {
    display: none;
  }

  .word-studio-shell .minimal-word-card.words-only {
    order: 1;
    min-height: 0;
    display: block;
    padding: 4px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .word-studio-shell .word-title-row.word-audio-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .word-studio-shell .word-primary-copy {
    min-width: 0;
  }

  .word-studio-shell .word-studio-source {
    display: block;
    margin: 0 0 5px;
    color: var(--brand-emerald, #08766d);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }

  .word-studio-shell .word-audio-layout h2 {
    max-width: 100%;
    margin: 0;
    color: var(--brand-ink, #152126);
    font-size: clamp(3.4rem, 18vw, 5rem);
    font-weight: 800;
    line-height: 0.95;
    overflow-wrap: anywhere;
  }

  .word-studio-shell .word-title-actions.word-audio-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
  }

  .word-studio-shell .word-audio-controls .word-cue-button {
    min-width: 0;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 10px;
    border-width: 1px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.12;
    text-align: center;
  }

  .word-studio-shell .word-audio-controls .hear-button {
    border-color: var(--brand-emerald, #08766d);
    color: var(--brand-canvas, #fbf8f0);
    background: var(--brand-teal, #0f8f8b);
  }

  .word-studio-shell .word-audio-controls .breakdown-button {
    border-color: rgba(239, 185, 78, 0.52);
    color: var(--brand-ink, #152126);
    background: rgba(251, 248, 240, 0.9);
  }

  .word-studio-shell .word-audio-controls .meaning-button {
    grid-column: 1 / -1;
    border-color: color-mix(in srgb, var(--brand-emerald, #08766d) 36%, transparent);
    color: var(--brand-emerald, #08766d);
    background: color-mix(in srgb, var(--brand-panel-mint, #e8f4ef) 78%, var(--brand-canvas, #fbf8f0));
  }

  .word-studio-shell .word-meaning-card {
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
  }

  .word-studio-shell .word-meaning-head h3 {
    font-size: 1.55rem;
  }

  .word-studio-shell .word-meaning-intro {
    font-size: 0.9rem;
  }

  .word-studio-shell .word-meaning-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .word-studio-shell .word-meaning-list li {
    padding: 9px 10px;
  }

  .word-studio-shell .word-meaning-examples {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 10px;
  }

  .word-studio-shell .word-meaning-examples > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .word-studio-shell .word-meaning-examples p {
    font-size: 0.88rem;
  }

  .word-studio-shell .word-cue-icon.play,
  .word-studio-shell .word-cue-icon.waveform {
    width: 22px;
    height: 22px;
    display: block;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    color: currentColor;
    background: currentColor;
    -webkit-mask: url("assets/icons/phosphor/speaker-high.svg") center / contain no-repeat;
    mask: url("assets/icons/phosphor/speaker-high.svg") center / contain no-repeat;
  }

  .word-studio-shell .word-cue-icon.play::after {
    content: none;
  }

  .word-studio-shell .word-cue-icon.waveform i {
    display: none;
  }

  .word-studio-shell .word-audio-playback {
    min-height: 56px;
    grid-template-columns: 28px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 14px;
    font-size: 0.82rem;
  }

  .word-studio-shell .word-mobile-practice-summary {
    display: block;
    order: 2;
    margin-top: 12px;
  }

  .word-studio-shell .word-practice-summary {
    border: 1px solid rgba(8, 118, 109, 0.16);
    border-radius: 14px;
    background: rgba(232, 244, 239, 0.74);
    overflow: hidden;
  }

  .word-studio-shell .word-practice-summary summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    list-style: none;
  }

  .word-studio-shell .word-practice-summary summary::-webkit-details-marker {
    display: none;
  }

  .word-studio-shell .word-practice-summary summary > span:first-child {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }

  .word-studio-shell .word-practice-summary summary strong {
    color: var(--brand-emerald, #08766d);
    font-size: 0.8rem;
  }

  .word-studio-shell .word-practice-summary summary small {
    color: var(--brand-ink-soft, #334349);
    font-size: 0.72rem;
  }

  .word-studio-shell .word-summary-arrow {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    background: var(--brand-emerald, #08766d);
    transform: rotate(-90deg);
    transition: transform 180ms ease;
    -webkit-mask: url("assets/icons/phosphor/arrow-left.svg") center / contain no-repeat;
    mask: url("assets/icons/phosphor/arrow-left.svg") center / contain no-repeat;
  }

  .word-studio-shell .word-practice-summary[open] .word-summary-arrow {
    transform: rotate(90deg);
  }

  .word-studio-shell .word-summary-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    border-top: 1px solid rgba(8, 118, 109, 0.12);
    background: rgba(8, 118, 109, 0.1);
  }

  .word-studio-shell .word-summary-details > span {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 9px 5px;
    background: rgba(251, 248, 240, 0.92);
    text-align: center;
  }

  .word-studio-shell .word-summary-details strong {
    color: var(--brand-ink, #152126);
    font-size: 1rem;
  }

  .word-studio-shell .word-summary-details small {
    color: var(--brand-ink-soft, #334349);
    font-size: 0.65rem;
  }

  .word-studio-shell .batch-panel {
    order: 3;
    margin-top: 10px;
  }

  .word-studio-shell .word-nav-row {
    order: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
    padding-top: 0;
  }

  .word-studio-shell .word-nav-row button {
    min-height: 48px;
    border-radius: 14px;
  }

  .word-studio-shell .practice-gate-note {
    order: 5;
    margin: 7px 0 0;
    color: var(--brand-ink-soft, #334349);
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: center;
  }

  .word-studio-shell .microphone-privacy-note {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .word-studio-shell .minimal-word-stage > .guided-record-card,
  .word-studio-shell .minimal-word-stage > .guided-record-card.countdown,
  .word-studio-shell .minimal-word-stage > .guided-record-card.recording,
  .word-studio-shell .minimal-word-stage > .guided-record-card.listening,
  .word-studio-shell .minimal-word-stage > .guided-record-card.checking {
    order: 6;
    min-height: clamp(190px, 29dvh, 250px);
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    position: sticky;
    bottom: 0;
    z-index: 90;
    margin: 14px -14px calc(-18px - env(safe-area-inset-bottom, 0px));
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    border-width: 1px 0 0;
    border-color: rgba(8, 118, 109, 0.2);
    border-radius: 24px 24px 0 0;
    background: rgba(232, 244, 239, 0.96);
    -webkit-backdrop-filter: blur(0.5px);
    backdrop-filter: blur(0.5px);
    box-shadow: 0 -16px 38px rgba(21, 83, 76, 0.12);
    overflow: hidden;
  }

  .word-studio-shell .minimal-word-stage > .guided-record-card::before {
    position: absolute;
    inset: -3px;
    content: "";
    background: url("assets/ui/sentence-talk-neural-edge-v1.png") center / cover no-repeat;
    opacity: 0.72;
    pointer-events: none;
    animation: wordStudioNeuralTrayPulse 5.5s ease-in-out infinite;
  }

  .word-studio-shell .word-mobile-record-heading {
    display: grid;
    justify-items: center;
    gap: 7px;
    position: relative;
    z-index: 1;
  }

  .word-studio-shell .word-mobile-record-heading strong {
    max-width: 320px;
    color: var(--brand-ink, #152126);
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
  }

  .word-studio-shell .word-attempt-dots {
    display: flex;
    gap: 7px;
  }

  .word-studio-shell .word-attempt-dots span {
    width: 8px;
    height: 8px;
    display: block;
    border: 1px solid rgba(8, 118, 109, 0.42);
    border-radius: 50%;
    background: rgba(251, 248, 240, 0.72);
  }

  .word-studio-shell .word-attempt-dots span.active,
  .word-studio-shell .word-attempt-dots span.complete {
    border-color: var(--brand-gold, #efb94e);
    background: var(--brand-gold, #efb94e);
  }

  .word-studio-shell .word-record-desktop-copy {
    display: none;
  }

  .word-studio-shell .minimal-word-stage > .guided-record-card .word-studio-mic,
  .word-studio-shell .minimal-word-stage > .guided-record-card.countdown .word-studio-mic,
  .word-studio-shell .minimal-word-stage > .guided-record-card.recording .word-studio-mic,
  .word-studio-shell .minimal-word-stage > .guided-record-card.listening .word-studio-mic,
  .word-studio-shell .minimal-word-stage > .guided-record-card.checking .word-studio-mic {
    width: 82px;
    height: 82px;
    position: relative;
    z-index: 1;
    margin: 0;
  }

  .word-studio-shell .guided-record-card .listening-meter {
    width: min(100%, 260px);
    min-height: 44px;
    position: relative;
    z-index: 1;
    grid-column: auto;
    aspect-ratio: auto;
    grid-template-columns: auto auto auto;
    gap: 6px;
    padding: 7px 12px;
    border-width: 2px;
    border-radius: 14px;
  }
}

@media (max-width: 360px) {
  .word-studio-shell {
    padding-inline: 9px;
  }

  .word-studio-shell .app-header {
    padding-inline: 68px;
  }

  .word-studio-shell .header-actions > * {
    padding-inline: 8px;
    font-size: 0.75rem;
  }

  .word-studio-shell .header-actions .home-btn {
    padding-left: 28px;
  }

  .word-studio-shell .minimal-word-stage {
    padding-inline: 11px;
  }

  .word-studio-shell .word-audio-layout h2 {
    font-size: clamp(3.1rem, 18vw, 4.3rem);
  }

  .word-studio-shell .word-audio-controls .word-cue-button {
    padding-inline: 7px;
    font-size: 0.82rem;
  }

  .word-studio-shell .minimal-word-stage > .guided-record-card {
    margin-inline: -11px;
  }
}

@media (max-width: 780px) and (max-height: 650px) {
  .word-studio-shell .minimal-word-stage > .guided-record-card,
  .word-studio-shell .minimal-word-stage > .guided-record-card.countdown,
  .word-studio-shell .minimal-word-stage > .guided-record-card.recording,
  .word-studio-shell .minimal-word-stage > .guided-record-card.listening,
  .word-studio-shell .minimal-word-stage > .guided-record-card.checking {
    min-height: 160px;
    position: relative;
    bottom: auto;
    z-index: 1;
    padding-top: 10px;
  }

  .word-studio-shell .minimal-word-stage > .guided-record-card .word-studio-mic,
  .word-studio-shell .minimal-word-stage > .guided-record-card.countdown .word-studio-mic,
  .word-studio-shell .minimal-word-stage > .guided-record-card.recording .word-studio-mic,
  .word-studio-shell .minimal-word-stage > .guided-record-card.listening .word-studio-mic,
  .word-studio-shell .minimal-word-stage > .guided-record-card.checking .word-studio-mic {
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-studio-shell .word-summary-arrow {
    transition: none;
  }

  .word-studio-shell .minimal-word-stage > .guided-record-card::before {
    animation: none;
    opacity: 0.64;
  }
}

@keyframes wordStudioNeuralTrayPulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(1);
  }
  50% {
    opacity: 0.78;
    transform: scale(1.012);
  }
}
@media (max-width: 780px) {

  .sentence-talk-shell .hear-button .trial-guide-click-badge,
  .sentence-talk-shell .breakdown-button .trial-guide-click-badge {
    right: auto;
    left: 12px;
    top: -26px;
    transform: none;
    animation: trial-guide-click-cue-down 1s ease-in-out infinite;
  }

  .sentence-talk-shell .hear-button .trial-guide-click-badge i,
  .sentence-talk-shell .breakdown-button .trial-guide-click-badge i {
    right: 18px;
    top: calc(100% + 8px);
    width: 3px;
    height: 20px;
    transform: none;
  }

  .sentence-talk-shell .hear-button .trial-guide-click-badge i::after,
  .sentence-talk-shell .breakdown-button .trial-guide-click-badge i::after {
    right: 50%;
    top: auto;
    bottom: -2px;
    border-top: 0;
    border-right: 3px solid #ffe296;
    border-bottom: 3px solid #ffe296;
    transform: translateX(50%) rotate(45deg);
  }
}

/* Local-only walkthrough bypass mobile safeguard */
@media (max-width: 780px) {
  .trial-guide-layer-video {
    align-items: start;
    overflow-y: auto;
  }
}

/* Compact free-trial walkthrough dock. */
.trial-guide-control-dock,
.trial-guide-control-dock[data-compact="true"] {
  left: 50%;
  right: auto;
  width: min(1120px, calc(100vw - 40px));
  max-height: none;
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(360px, 1.55fr) minmax(160px, 0.7fr);
  align-items: center;
  gap: 14px;
  overflow: visible;
  padding: 12px 14px;
  transform: translateX(-50%);
}

.trial-guide-control-dock[data-placement="top"] { top: clamp(12px, 2vw, 24px); bottom: auto; }
.trial-guide-control-dock[data-placement="bottom"] { top: auto; bottom: clamp(12px, 2vw, 24px); }
.trial-guide-control-dock .trial-guide-step-summary { min-width: 0; }
.trial-guide-control-dock .trial-guide-kicker,
.trial-guide-control-dock[data-compact="true"] .trial-guide-kicker { margin-bottom: 3px; }
.trial-guide-control-dock h2,
.trial-guide-control-dock[data-compact="true"] h2 { font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.05; }
.trial-guide-control-dock .trial-guide-audio-player,
.trial-guide-control-dock[data-compact="true"] .trial-guide-audio-player { min-width: 0; margin: 0; padding: 9px 10px; }
.trial-guide-control-dock .trial-guide-audio-actions { margin-top: 7px; }
.trial-guide-control-dock .trial-guide-audio-actions .secondary,
.trial-guide-control-dock .trial-guide-audio-skip { min-height: 40px; }
.trial-guide-control-dock .trial-guide-action-cue,
.trial-guide-control-dock[data-compact="true"] > .trial-guide-action-cue {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.2;
  text-align: center;
}

.word-audio-controls .word-audio-playback.trial-guide-target { grid-column: 1 / -1; min-width: 0; }
.word-audio-controls .word-audio-playback strong { min-width: 0; overflow-wrap: normal; word-break: normal; }

@media (max-width: 1024px) {
  .trial-guide-control-dock,
  .trial-guide-control-dock[data-compact="true"],
  .trial-guide-control-dock[data-step="academy-application"] {
    left: 12px;
    right: 12px;
    width: auto;
    grid-template-columns: minmax(160px, 0.8fr) minmax(280px, 1.35fr) minmax(140px, 0.65fr);
    transform: none;
  }
}

@media (min-width: 781px) and (max-width: 1180px) and (orientation: landscape) {
  .trial-guide-coach-card,
  .trial-guide-coach-card[data-compact="true"] {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    width: auto;
    max-height: min(34dvh, 250px);
    overflow-y: auto;
    padding: 11px 14px;
  }

  .trial-guide-coach-card[data-placement="top"] {
    top: calc(10px + env(safe-area-inset-top, 0px));
  }

  .trial-guide-coach-card[data-placement="bottom"] {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .trial-guide-coach-card[data-compact="true"] {
    grid-template-columns: minmax(180px, 0.72fr) minmax(300px, 1.28fr);
  }

  .trial-guide-coach-card[data-compact="true"] h2 {
    font-size: 1.28rem;
  }

  .trial-guide-coach-card[data-compact="true"] > strong {
    min-height: 44px;
  }
}

/* Keep the required Application tour stable when an iPad rotates to landscape. */
@media (min-width: 781px) and (max-width: 1180px) and (orientation: landscape) {
  html.trial-guide-application-layout,
  html.trial-guide-application-layout body {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  .trial-guide-application-landscape .academy-module-section-application.trial-guide-target {
    position: fixed !important;
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: clamp(18px, 4vw, 34px);
    left: clamp(18px, 4vw, 34px);
    width: auto;
    margin: 0;
    max-height: var(--trial-guide-application-max-height, calc(100dvh - 190px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
  }

  .trial-guide-application-landscape .trial-guide-control-dock[data-step="academy-application"] {
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-height: none;
    overflow: visible;
  }

  .trial-guide-application-landscape .trial-guide-control-dock[data-step="academy-application"] > .trial-guide-action-cue {
    grid-column: 3;
    grid-row: 1;
    min-height: 54px;
    margin: 0;
  }
}

@media (max-width: 780px) {
  .trial-guide-control-dock,
  .trial-guide-control-dock[data-compact="true"],
  .trial-guide-control-dock[data-step="academy-application"] {
    left: 8px;
    right: 8px;
    width: auto;
    max-height: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    overflow: visible;
    padding: 10px 11px calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
    transform: none;
  }

  .trial-guide-control-dock[data-placement="top"] {
    top: calc(8px + env(safe-area-inset-top, 0px));
    bottom: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .trial-guide-control-dock[data-placement="bottom"] { top: auto; bottom: 8px; }
  .trial-guide-control-dock .trial-guide-step-summary { grid-column: 1; align-self: center; }
  .trial-guide-control-dock h2,
  .trial-guide-control-dock[data-compact="true"] h2,
  .trial-guide-control-dock[data-step="academy-application"] h2 {
    font-size: clamp(1rem, 5.1vw, 1.25rem);
    line-height: 1.05;
  }

  .trial-guide-control-dock .trial-guide-kicker,
  .trial-guide-control-dock[data-step="academy-application"] .trial-guide-kicker { font-size: 0.66rem; }
  .trial-guide-control-dock .trial-guide-audio-player,
  .trial-guide-control-dock[data-compact="true"] .trial-guide-audio-player,
  .trial-guide-control-dock[data-step="academy-application"] .trial-guide-audio-player {
    grid-column: 1 / -1;
    grid-row: auto;
    margin: 0;
    padding: 7px 8px;
  }

  .trial-guide-control-dock .trial-guide-audio-row { gap: 7px; font-size: 0.74rem; }
  .trial-guide-control-dock .trial-guide-audio-row strong { font-size: 0.76rem; }
  .trial-guide-control-dock .trial-guide-audio-track { margin-top: 6px; }
  .trial-guide-control-dock .trial-guide-audio-actions { gap: 8px; margin-top: 6px; }
  .trial-guide-control-dock .trial-guide-audio-actions .secondary,
  .trial-guide-control-dock .trial-guide-audio-skip {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .trial-guide-control-dock .trial-guide-action-cue,
  .trial-guide-control-dock[data-compact="true"] > .trial-guide-action-cue,
  .trial-guide-control-dock[data-step="academy-application"] > .trial-guide-action-cue {
    grid-column: 2;
    grid-row: 1;
    max-width: 108px;
    min-height: 44px;
    margin: 0;
    padding: 7px 9px;
    font-size: 0.74rem;
    line-height: 1.15;
  }

  .word-studio-shell .word-audio-controls .word-audio-playback.trial-guide-target {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .trial-guide-control-dock,
  .trial-guide-control-dock[data-compact="true"],
  .trial-guide-control-dock[data-step="academy-application"] {
    left: 6px;
    right: 6px;
    gap: 7px 8px;
    padding-inline: 9px;
  }

  .trial-guide-control-dock .trial-guide-action-cue,
  .trial-guide-control-dock[data-compact="true"] > .trial-guide-action-cue,
  .trial-guide-control-dock[data-step="academy-application"] > .trial-guide-action-cue {
    max-width: 92px;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trial-guide-control-dock { transition: none; }
}

/* First-run profile onboarding — selected one-question-at-a-time direction. */
.app-shell.onboarding-shell {
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 46px);
  display: grid;
  place-items: center;
  overflow: clip;
}

.onboarding-stage.app-stage {
  width: min(100%, 500px);
  min-width: 0;
}

.onboarding-stage > .app-header,
.onboarding-stage > .continuity-alert {
  display: none;
}

.onboarding-flow {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: min(820px, calc(100dvh - 48px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand-canvas) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-gold) 30%, transparent);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(21, 33, 38, 0.12);
  overflow: hidden;
  backdrop-filter: blur(7px);
}

.onboarding-top {
  padding: 18px 22px 0;
}

.onboarding-top.no-brand {
  padding-top: 24px;
}

.onboarding-brand-logo {
  display: block;
  width: min(205px, 58%);
  height: auto;
  margin: 0 auto 16px;
}

.onboarding-progress {
  position: relative;
  height: 3px;
  margin: 0;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--brand-ink-soft) 18%, transparent);
}

.onboarding-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-teal);
  transition: width 360ms ease;
}

.onboarding-progress > span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-teal);
  transform: translate(50%, -50%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-canvas) 75%, transparent);
}

.onboarding-main {
  align-self: stretch;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(54px, 9vh, 88px) clamp(22px, 7vw, 42px) 30px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--brand-teal) 38%, transparent) transparent;
}

.onboarding-eyebrow {
  margin: 0 0 12px;
  color: var(--brand-teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.onboarding-heading {
  margin-bottom: clamp(42px, 7vh, 66px);
}

.onboarding-heading h2 {
  max-width: 390px;
  margin: 0;
  color: var(--brand-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.08rem, 7.4vw, 3.05rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.onboarding-heading > span {
  position: relative;
  display: block;
  width: 58px;
  height: 1px;
  margin-top: 20px;
  background: var(--brand-gold);
}

.onboarding-heading > span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gold);
  transform: translate(-50%, -50%);
}

.onboarding-name-fields {
  display: grid;
  gap: 26px;
}

.onboarding-field {
  display: grid;
  gap: 10px;
}

.onboarding-field > span {
  color: var(--brand-ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.onboarding-field input {
  width: 100%;
  min-height: 62px;
  padding: 14px 18px;
  color: var(--brand-ink);
  font: inherit;
  font-size: 1rem;
  background: color-mix(in srgb, white 72%, var(--brand-canvas));
  border: 1px solid color-mix(in srgb, var(--brand-ink-soft) 21%, transparent);
  border-radius: 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.onboarding-field input:focus-visible {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-cyan) 25%, transparent);
}

.onboarding-choice-list {
  display: grid;
  gap: 13px;
}

.onboarding-choice {
  width: 100%;
  min-height: 72px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--brand-ink);
  text-align: left;
  background: color-mix(in srgb, white 68%, var(--brand-canvas));
  border: 1px solid color-mix(in srgb, var(--brand-ink-soft) 17%, transparent);
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(21, 33, 38, 0.035);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.onboarding-choice:hover {
  border-color: color-mix(in srgb, var(--brand-teal) 58%, transparent);
  transform: translateY(-1px);
}

.onboarding-choice.active {
  background: color-mix(in srgb, var(--brand-panel-mint) 74%, white);
  border-color: var(--brand-teal);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-teal) 12%, transparent);
}

.onboarding-choice > span { display: grid; gap: 5px; min-width: 0; }
.onboarding-choice strong { font-size: 1.02rem; font-weight: 650; line-height: 1.25; }
.onboarding-choice small { color: var(--brand-ink-soft); font-size: 0.83rem; line-height: 1.35; }
.onboarding-choice img { flex: 0 0 auto; filter: none; }
.onboarding-choice.compact-choice { min-height: 65px; padding-block: 12px; }

.onboarding-type-guide .onboarding-main,
.onboarding-assessment .onboarding-main {
  padding-top: clamp(34px, 5.5vh, 54px);
}

.onboarding-type-guide .onboarding-heading,
.onboarding-assessment .onboarding-heading {
  margin-bottom: 28px;
}

.onboarding-type-guide .onboarding-heading h2,
.onboarding-assessment .onboarding-heading h2 {
  font-size: clamp(1.92rem, 6.6vw, 2.65rem);
}

.onboarding-type-other .onboarding-choice-list {
  gap: 9px;
}

.onboarding-type-other .onboarding-choice.compact-choice {
  min-height: 56px;
  padding-block: 9px;
}

.onboarding-question-help {
  margin: -9px 0 18px;
  color: var(--brand-ink-soft);
  font-size: 0.93rem;
  line-height: 1.45;
}

.onboarding-message {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.onboarding-message.error {
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand-gold-soft) 38%, white);
  border: 1px solid color-mix(in srgb, var(--brand-gold) 52%, transparent);
}

.onboarding-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  min-height: 88px;
  padding: 12px 14px 14px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: stretch;
  gap: 10px;
  background: linear-gradient(to top, var(--brand-canvas) 76%, color-mix(in srgb, var(--brand-canvas) 75%, transparent));
  border-top: 1px solid color-mix(in srgb, var(--brand-ink-soft) 10%, transparent);
}

.onboarding-actions button {
  min-width: 0;
  min-height: 60px;
  padding: 12px 18px;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 700;
}

.onboarding-actions .primary {
  color: var(--brand-action-text);
  background: linear-gradient(140deg, var(--brand-teal), var(--brand-emerald));
  border-color: transparent;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-emerald) 22%, transparent);
}

.onboarding-actions .secondary {
  color: var(--brand-emerald);
  background: transparent;
  border-color: color-mix(in srgb, var(--brand-ink-soft) 18%, transparent);
}

.onboarding-actions .full { grid-column: 1 / -1; }
.onboarding-actions button:disabled { opacity: .46; box-shadow: none; cursor: not-allowed; }
.onboarding-arrow { display: inline-block; vertical-align: middle; margin-inline: 5px; filter: none; }
.onboarding-arrow.right { transform: rotate(180deg); filter: brightness(0) invert(1); }
.onboarding-back .onboarding-arrow { filter: invert(37%) sepia(54%) saturate(821%) hue-rotate(126deg) brightness(83%); }

.onboarding-ready .onboarding-main {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: center;
  text-align: center;
}

.onboarding-ready .onboarding-heading { margin-bottom: 0; text-align: left; }
.onboarding-ready-mark {
  width: min(280px, 72vw);
  height: 210px;
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--brand-gold) 26%, transparent), transparent 58%);
}
.onboarding-ready-mark span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 1px var(--brand-aqua), 0 0 22px color-mix(in srgb, var(--brand-cyan) 55%, transparent);
}
.onboarding-ready-mark span:nth-child(2) { background: var(--brand-gold); box-shadow: 0 0 30px var(--brand-gold-soft); }
.onboarding-ready-wordmark { width: min(255px, 72vw); height: auto; margin: 0 auto 14px; }
.onboarding-ready-copy { margin: 0; color: var(--brand-teal); font-size: 1rem; }
.onboarding-loading-dots { min-height: 38px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.onboarding-loading-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-teal); animation: onboarding-dot 900ms ease-in-out infinite alternate; }
.onboarding-loading-dots span:nth-child(2) { animation-delay: 150ms; }
.onboarding-loading-dots span:nth-child(3) { animation-delay: 300ms; }

@keyframes onboarding-dot {
  from { opacity: .28; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(-2px); }
}

@media (max-width: 540px) {
  .app-shell.onboarding-shell { display: block; padding: 0; }
  .onboarding-stage.app-stage { width: 100%; }
  .onboarding-flow {
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    min-height: 100dvh;
    max-height: 100svh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .onboarding-top { padding-top: 14px; }
  .onboarding-top.no-brand { padding-top: 18px; }
  .onboarding-main { padding-inline: 20px; }
  .onboarding-actions {
    padding-right: max(14px, env(safe-area-inset-right, 0px));
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
    padding-left: max(14px, env(safe-area-inset-left, 0px));
  }
}

@media (max-height: 760px) and (min-width: 541px) {
  .onboarding-flow { min-height: calc(100dvh - 32px); }
  .onboarding-main { padding-top: 34px; }
  .onboarding-heading { margin-bottom: 28px; }
  .onboarding-choice { min-height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-progress > span,
  .onboarding-choice { transition: none; }
  .onboarding-loading-dots span { animation: none; opacity: .78; }
}

/* Book Club PWA mobile composition */
.book-club-mobile-title {
  display: none;
}

@media (max-width: 780px) {
  .practice-focus-shell.book-club-shell {
    width: min(100%, 460px);
    min-height: 100dvh;
    margin-inline: auto;
    gap: 0;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px max(26px, env(safe-area-inset-bottom, 0px));
  }

  .book-club-shell .book-club-stage {
    width: 100%;
  }

  .book-club-shell .app-header {
    min-height: 64px;
    position: relative;
    justify-content: center;
    margin: 0 0 12px;
    padding-inline: 78px;
  }

  .book-club-shell .app-header > div:first-child {
    display: none;
  }

  .book-club-shell .header-actions {
    position: absolute;
    inset: 0 0 auto;
    height: 64px;
    align-self: stretch;
    display: block;
    transform: none;
    pointer-events: none;
  }

  .book-club-mobile-title {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--brand-ink);
    font-size: 1.3rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    transform: translate(-50%, -50%);
  }

  .book-club-shell .header-actions button {
    min-width: 0;
    min-height: 44px;
    position: absolute;
    top: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(8, 118, 109, 0.2);
    border-radius: 14px;
    color: var(--brand-emerald);
    background: rgba(251, 248, 240, 0.9);
    box-shadow: 0 8px 20px rgba(21, 33, 38, 0.06);
    pointer-events: auto;
    font-size: 0.82rem;
  }

  .book-club-shell .header-actions .secondary {
    left: 0;
  }

  .book-club-shell .header-actions .primary {
    right: 0;
  }

  .book-club-library {
    gap: 16px;
  }

  .book-club-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding: 20px;
    border-radius: 25px;
  }

  .book-club-hero h2 {
    max-width: 390px;
    margin: 5px 0 12px;
    font-size: clamp(2.45rem, 11vw, 3.25rem);
    line-height: 0.96;
  }

  .book-club-hero > div > p:last-child {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .book-club-promise {
    max-width: none;
    gap: 6px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(251, 248, 240, 0.9);
  }

  .book-club-promise strong {
    font-size: 1.3rem;
  }

  .book-club-promise small {
    font-size: 0.82rem;
  }

  .book-club-genres {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    overscroll-behavior: auto;
    padding: 0;
    scroll-snap-type: none;
  }

  .book-club-genre {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    font-size: 0.9rem;
    white-space: normal;
    text-align: center;
  }

  .book-club-genre:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .book-club-shelf {
    padding: 18px 14px 22px;
    border-radius: 25px;
  }

  .book-club-shelf::after {
    display: none;
  }

  .book-club-shelf-heading {
    align-items: end;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 16px;
  }

  .book-club-shelf-heading h3 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
    line-height: 1.02;
  }

  .book-club-shelf-heading > span {
    align-self: end;
    justify-self: end;
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .book-club-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .book-club-book {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 12px;
    border-radius: 22px;
  }

  .book-club-book:hover {
    transform: none;
  }

  .book-club-cover-wrap {
    width: 108px;
    min-height: 0;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
  }

  .book-club-cover-badge {
    right: 6px;
    bottom: 6px;
    padding: 5px 7px;
    font-size: 0.62rem;
  }

  .book-club-book-copy {
    min-height: 0;
    padding: 3px 0 0;
  }

  .book-club-book-copy > strong {
    margin: 6px 0 8px;
    font-size: clamp(1.35rem, 6vw, 1.7rem);
    line-height: 1.03;
  }

  .book-club-book-description {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.84rem;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .book-club-status {
    gap: 2px;
    margin-top: 12px;
    padding: 9px 10px;
    border-radius: 13px;
  }

  .book-club-status span {
    font-size: 0.7rem;
  }

  .book-club-status b {
    font-size: 0.88rem;
  }
}

@media (max-width: 360px) {
  .practice-focus-shell.book-club-shell {
    padding-inline: 10px;
  }

  .book-club-shell .app-header {
    padding-inline: 68px;
  }

  .book-club-mobile-title {
    font-size: 1.13rem;
  }

  .book-club-shell .header-actions button {
    padding-inline: 9px;
    font-size: 0.76rem;
  }

  .book-club-hero {
    gap: 12px;
    padding: 16px;
  }

  .book-club-hero h2 {
    margin: 4px 0 9px;
    font-size: 2rem;
  }

  .book-club-hero > div > p:last-child {
    font-size: 0.91rem;
    line-height: 1.42;
  }

  .book-club-promise {
    gap: 3px;
    padding: 13px;
    border-radius: 17px;
  }

  .book-club-promise strong {
    font-size: 1.08rem;
    line-height: 1.08;
  }

  .book-club-promise small {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .book-club-shelf {
    padding-inline: 10px;
  }

  .book-club-shelf-heading h3 {
    font-size: 1.65rem;
  }

  .book-club-book {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .book-club-cover-wrap {
    width: 80px;
  }

  .book-club-book-copy > strong {
    margin: 4px 0 6px;
    font-size: 1.2rem;
  }

  .book-club-book-description {
    -webkit-line-clamp: 2;
  }

  .book-club-status {
    margin-top: 8px;
    padding: 8px;
  }
}

@media (min-width: 560px) and (max-width: 780px) {
  .book-club-genres {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .book-club-genre:last-child:nth-child(odd) {
    grid-column: auto;
  }
}
.continue-practice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 42%, transparent);
  border-left: 4px solid var(--brand-gold);
  border-radius: 1.15rem;
  background: color-mix(in srgb, var(--brand-panel-mint) 74%, var(--brand-canvas));
  color: var(--brand-ink);
  box-shadow: 0 18px 42px rgb(21 33 38 / 0.08);
}

.practice-device-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(21 33 38 / 0.58);
  backdrop-filter: blur(10px);
}

.practice-device-dialog {
  width: min(100%, 34rem);
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 35%, transparent);
  border-radius: 1.4rem;
  background: var(--brand-canvas);
  color: var(--brand-ink);
  box-shadow: 0 30px 90px rgb(21 33 38 / 0.3);
}

.practice-device-dialog h2 {
  margin: 0.3rem 0 0.7rem;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
}

.practice-device-dialog > p:last-of-type {
  color: var(--brand-ink-soft);
  line-height: 1.65;
}

.practice-device-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 520px) {
  .practice-device-actions {
    flex-direction: column-reverse;
  }

  .practice-device-actions button {
    width: 100%;
  }
}

.continue-practice-card h2,
.continue-practice-card p {
  margin: 0;
}

.continue-practice-card h2 {
  margin-block: 0.22rem;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
}

@media (max-width: 640px) {
  .continue-practice-card {
    align-items: stretch;
    flex-direction: column;
    padding: 1rem;
  }

  .continue-practice-card .primary {
    width: 100%;
  }
}

/* Guided Application preview continuity and post-tour access details. */
html:has(.guided-trial-preview-layer),
body:has(.guided-trial-preview-layer),
html:has(.trial-activity-upsell-layer),
body:has(.trial-activity-upsell-layer) {
  overflow: hidden;
  overscroll-behavior: none;
}

.guided-trial-preview-layer {
  position: fixed;
  inset: 0;
  z-index: 9500;
  overflow: hidden;
  background: var(--brand-canvas);
}

.guided-trial-preview-frame {
  width: 100%;
  height: 100dvh;
  display: block;
  border: 0;
  background: var(--brand-canvas);
}

.guided-trial-preview-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 9502;
  width: 48px;
  height: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(21, 33, 38, 0.18);
  border-radius: 50%;
  background: rgba(251, 248, 240, 0.96);
  box-shadow: 0 8px 24px rgba(21, 33, 38, 0.18);
}

.guided-trial-preview-close img {
  width: 22px;
  height: 22px;
}

.guided-trial-preview-close:focus-visible {
  outline: 4px solid rgba(88, 206, 208, 0.35);
  outline-offset: 2px;
}

.trial-activity-upsell-layer {
  position: fixed;
  inset: 0;
  z-index: 1375;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 34px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.trial-activity-upsell-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(21, 33, 38, 0.8);
  backdrop-filter: blur(7px);
}

.trial-activity-upsell {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100dvh - clamp(32px, 6vw, 68px));
  overflow: auto;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(8, 118, 109, 0.24);
  border-radius: 28px;
  color: var(--brand-ink);
  background: var(--brand-canvas);
  box-shadow: 0 32px 90px rgba(21, 33, 38, 0.38);
  isolation: isolate;
}

.trial-activity-upsell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background: url("assets/ui/sentence-talk-neural-edge-v1.png") center top / 100% auto no-repeat;
}

.trial-activity-upsell-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(21, 33, 38, 0.14);
  border-radius: 50%;
  background: rgba(251, 248, 240, 0.96);
}

.trial-activity-upsell-close img {
  width: 22px;
  height: 22px;
}

.trial-activity-upsell-close:focus-visible {
  outline: 4px solid rgba(88, 206, 208, 0.28);
  outline-offset: 2px;
}

.trial-activity-upsell-intro {
  padding-right: 52px;
}

.trial-activity-upsell-label {
  margin: 0 0 8px;
  color: var(--brand-emerald);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.trial-activity-upsell-intro h2 {
  margin: 0 0 16px;
  color: var(--brand-ink);
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.05;
}

.trial-activity-upsell-intro > p:last-child,
.trial-activity-benefit > p:not(.trial-activity-upsell-label),
.trial-activity-offer > p:not(.trial-activity-upsell-label) {
  margin: 0;
  color: var(--brand-ink-soft);
  line-height: 1.55;
}

.trial-activity-upsell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  gap: clamp(18px, 3vw, 30px);
  margin-top: clamp(24px, 4vw, 38px);
}

.trial-activity-benefit,
.trial-activity-offer {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(8, 118, 109, 0.18);
  border-radius: 22px;
}

.trial-activity-benefit {
  background: rgba(232, 244, 239, 0.78);
}

.trial-activity-benefit h3,
.trial-activity-offer h3 {
  margin: 0 0 12px;
  color: var(--brand-ink);
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  line-height: 1.25;
}

.trial-activity-benefit > strong {
  display: block;
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--brand-gold);
  border-radius: 0 12px 12px 0;
  color: var(--brand-ink);
  background: rgba(251, 248, 240, 0.9);
  line-height: 1.5;
}

.trial-activity-offer {
  display: flex;
  flex-direction: column;
  background: rgba(251, 248, 240, 0.94);
}

.trial-activity-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 12px;
}

.trial-activity-price strong {
  color: var(--brand-emerald);
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: 2.75rem;
  line-height: 1;
}

.trial-activity-price span {
  color: var(--brand-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.trial-activity-upsell-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.trial-activity-upsell-actions button {
  width: 100%;
  min-height: 50px;
  margin: 0;
}

.trial-activity-offer > small {
  display: block;
  margin-top: 14px;
  color: var(--brand-ink-soft);
  text-align: center;
}

.trial-guide-start-card .trial-guide-demo-controls {
  box-sizing: border-box;
  width: 100%;
  justify-content: center;
}

@media (max-width: 760px) {
  .trial-activity-upsell-layer {
    align-items: end;
    padding: 0;
  }

  .trial-activity-upsell {
    width: 100%;
    max-height: 100dvh;
    padding: calc(60px + env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
  }

  .trial-activity-upsell-close {
    top: calc(12px + env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
  }

  .trial-activity-upsell-intro {
    padding-right: 0;
  }

  .trial-activity-upsell-grid {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .trial-activity-benefit,
  .trial-activity-offer {
    padding: 18px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trial-activity-upsell-scrim {
    backdrop-filter: none;
  }
}
.guided-trial-preview-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

@media (max-width: 780px) {
  .product-tour-video-layer {
    align-items: start;
    padding: max(10px, env(safe-area-inset-top, 0px)) 10px max(10px, env(safe-area-inset-bottom, 0px));
  }

  .product-tour-video-card {
    max-height: calc(100dvh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    padding: 16px;
    border-radius: 16px;
  }

  .product-tour-video-heading {
    align-items: start;
  }

  .product-tour-video-heading h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .product-tour-video-duration {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.74rem;
  }

  .product-tour-video-intro {
    font-size: 0.88rem;
  }

  .product-tour-player-shell {
    border-radius: 12px;
  }

  .product-tour-video-progress-row {
    align-items: start;
    font-size: 0.78rem;
  }

  .product-tour-video-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-tour-video-actions .trial-guide-next-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .product-tour-video-heading {
    display: grid;
    gap: 10px;
  }

  .product-tour-video-duration {
    width: fit-content;
  }

  .product-tour-video-progress-panel > p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-tour-video-loading span {
    animation: none;
    border-color: var(--brand-cyan);
  }

  .product-tour-video-progress-track i {
    transition: none;
  }
}
