:root {
  --ink: #171b16;
  --muted: #6d7169;
  --paper: #f5f4ee;
  --white: #fff;
  --line: #deded5;
  --lime: #dfff62;
  --lime-deep: #c8ed43;
  --forest: #183c2d;
  --coral: #f37b62;
  --cream: #eeeadc;
  --purple: #a887ff;
  --shadow: 0 22px 60px rgba(23, 27, 22, 0.09);
  --radius: 26px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--lime-deep);
  outline-offset: 3px;
}
.hidden {
  display: none !important;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font: 800 20px "Manrope";
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--lime);
  font: 800 20px "Manrope";
  transform: rotate(-5deg);
}
.brand-light {
  color: #fff;
}
.brand-light .brand-mark {
  background: var(--lime);
  color: var(--forest);
}
.eyebrow,
.card-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7f847a;
}
.eyebrow.light {
  color: #b7c8be;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(460px, 1.05fr) minmax(460px, 0.95fr);
  background: #faf9f4;
}
.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 42px 7vw 36px;
  background: var(--forest);
  color: #fff;
  overflow: hidden;
}
.auth-story:before,
.auth-story:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}
.auth-story:before {
  width: 440px;
  height: 440px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle at 30% 30%, #49715c, transparent 67%);
}
.auth-story:after {
  width: 600px;
  height: 260px;
  left: -100px;
  bottom: -120px;
  border: 1px solid rgba(223, 255, 98, 0.25);
  box-shadow:
    0 0 0 44px rgba(223, 255, 98, 0.04),
    0 0 0 88px rgba(223, 255, 98, 0.03);
}
.story-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}
.story-copy h1 {
  margin: 15px 0 24px;
  font: 800 clamp(46px, 6.4vw, 84px) / 0.98 "Manrope";
  letter-spacing: -0.055em;
}
.story-copy h1 em {
  color: var(--lime);
  font-style: normal;
}
.story-copy > p {
  max-width: 520px;
  color: #d1ddd5;
  font-size: 18px;
  line-height: 1.65;
}
.voice-preview {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
  padding: 18px 20px;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}
.voice-preview strong,
.voice-preview small {
  display: block;
}
.voice-preview small {
  margin-top: 4px;
  color: #b8c8be;
}
.orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  background: var(--lime);
}
.orb span {
  width: 3px;
  background: var(--forest);
  border-radius: 3px;
  animation: pulse 1s ease-in-out infinite;
}
.orb span:nth-child(1) {
  height: 12px;
}
.orb span:nth-child(2) {
  height: 22px;
  animation-delay: 0.15s;
}
.orb span:nth-child(3) {
  height: 15px;
  animation-delay: 0.3s;
}
@keyframes pulse {
  50% {
    transform: scaleY(0.45);
  }
}
.story-foot {
  position: relative;
  color: #8ea899;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 48px;
}
.auth-card {
  width: min(410px, 100%);
}
.mobile-brand {
  display: none;
}
.auth-card h2 {
  font: 800 38px "Manrope";
  letter-spacing: -0.04em;
  margin: 12px 0 8px;
}
.auth-card > p {
  color: var(--muted);
  margin: 0 0 30px;
}
.field {
  display: block;
  margin: 18px 0;
}
.field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}
.field input,
.field select {
  width: 100%;
  height: 54px;
  border: 1px solid #d9dbd4;
  border-radius: 14px;
  background: #fff;
  padding: 0 16px;
  color: var(--ink);
  outline: none;
  transition: 0.2s;
}
.field input:focus,
.field select:focus {
  border-color: #77933b;
  box-shadow: 0 0 0 4px rgba(202, 238, 70, 0.2);
}
.btn {
  border: 0;
  border-radius: 14px;
  min-height: 51px;
  padding: 0 21px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.primary {
  background: var(--ink);
  color: #fff;
}
.btn.lime {
  background: var(--lime);
  color: var(--forest);
}
.btn.dark {
  background: var(--ink);
  color: #fff;
}
.btn.ghost {
  background: #fff;
  border: 1px solid var(--line);
}
.btn.wide {
  width: 100%;
  justify-content: space-between;
}
.text-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 15px 0;
}
.text-btn strong {
  color: var(--ink);
}
.form-error {
  color: #b33a2e !important;
  min-height: 18px;
  font-size: 13px;
  margin: 8px 0 !important;
}
.privacy-note {
  font-size: 12px !important;
  text-align: center;
  margin-top: 22px !important;
  color: #9b9d97 !important;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 242px;
  background: #fbfaf6;
  border-right: 1px solid #e4e3dc;
  padding: 31px 24px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 55px;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #777b73;
  text-align: left;
  padding: 0 13px;
  font-weight: 600;
}
.nav-item:hover {
  background: #f0f0e9;
}
.nav-item.active {
  background: var(--ink);
  color: #fff;
}
.nav-item i {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--forest);
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
}
.sidebar-foot {
  margin-top: auto;
}
.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  text-align: left;
}
.profile-chip > span:first-child,
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eadfc3;
  color: #5a462b;
  font-weight: 800;
}
.profile-chip > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.profile-chip strong,
.profile-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-chip small {
  font-size: 11px;
  color: #8b8e86;
  margin-top: 2px;
}
.profile-chip svg {
  width: 17px;
  color: #92958e;
}
.workspace {
  min-height: 100vh;
  margin-left: 242px;
  padding: 42px clamp(28px, 4vw, 68px) 80px;
}
.view {
  display: none;
  max-width: 1160px;
  margin: 0 auto;
}
.active-view {
  display: block;
  animation: viewIn 0.35s ease both;
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 5px 0 34px;
}
.page-head h1 {
  font: 800 40px "Manrope";
  letter-spacing: -0.04em;
  margin: 8px 0 5px;
}
.page-head p {
  color: var(--muted);
  margin: 0;
}
.wave {
  font-size: 30px;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.language-picker,
.streak-pill {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.language-picker b {
  font-weight: 400;
  color: #92958e;
}
.streak-pill svg {
  color: var(--coral);
  fill: #ffe1d9;
}
.streak-pill span {
  font-size: 12px;
  color: var(--muted);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.8fr);
  gap: 20px;
}
.daily-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 34px 36px;
  border-radius: var(--radius);
  background: var(--forest);
  color: #fff;
}
.daily-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}
.daily-top .card-kicker {
  color: #9db5a6;
}
.daily-top > span:last-child {
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
}
.daily-card h2 {
  position: relative;
  z-index: 2;
  font: 800 36px/1.08 "Manrope";
  letter-spacing: -0.04em;
  margin: 23px 0 12px;
}
.daily-card > p {
  position: relative;
  z-index: 2;
  color: #b8c9be;
  max-width: 460px;
  line-height: 1.55;
  margin: 0;
}
.daily-bottom {
  position: absolute;
  z-index: 3;
  left: 36px;
  right: 36px;
  bottom: 29px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.play-dot {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--forest);
  display: grid;
  place-items: center;
}
.play-dot svg {
  width: 13px;
  fill: var(--lime);
  stroke: none;
}
.goal-ring {
  --pct: 0;
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: conic-gradient(
    var(--lime) calc(var(--pct) * 1%),
    rgba(255, 255, 255, 0.12) 0
  );
  display: grid;
  place-content: center;
  text-align: center;
}
.goal-ring:after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--forest);
  border-radius: 50%;
}
.goal-ring span,
.goal-ring small {
  position: relative;
  z-index: 1;
}
.goal-ring span {
  font: 800 21px "Manrope";
}
.goal-ring small {
  font-size: 9px;
  color: #a8baaf;
}
.ambient-lines {
  position: absolute;
  right: -40px;
  bottom: -55px;
  opacity: 0.15;
  transform: rotate(-12deg);
}
.ambient-lines i {
  display: block;
  width: 300px;
  height: 40px;
  border-top: 1px solid var(--lime);
  border-radius: 50%;
}
.coach-teaser {
  position: relative;
  min-height: 330px;
  padding: 31px;
  border-radius: var(--radius);
  background: var(--lime);
  overflow: hidden;
}
.coach-teaser:after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(24, 60, 45, 0.12);
  border-radius: 50%;
  right: -80px;
  bottom: -90px;
  box-shadow: 0 0 0 25px rgba(24, 60, 45, 0.04);
}
.nola-avatar {
  position: relative;
  width: max-content;
}
.face {
  width: 70px;
  height: 70px;
  border-radius: 24px 24px 24px 8px;
  background: var(--forest);
  display: grid;
  place-items: center;
  color: var(--lime);
  font: 800 31px "Manrope";
}
.online {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #56c470;
  border: 3px solid var(--lime);
}
.coach-teaser .card-kicker {
  margin-top: 26px;
}
.card-kicker.dark {
  color: #5f7526;
}
.coach-teaser h3 {
  font: 800 25px "Manrope";
  letter-spacing: -0.03em;
  margin: 8px 0;
}
.coach-teaser p {
  font-size: 14px;
  line-height: 1.5;
  color: #3f5125;
  max-width: 260px;
}
.round-arrow {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 27px;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  border: 0;
  background: var(--forest);
  color: #fff;
  font-size: 21px;
}
.section-block {
  margin-top: 48px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}
.section-title h2 {
  font: 800 27px "Manrope";
  letter-spacing: -0.03em;
  margin: 5px 0 0;
}
.arrow {
  font-weight: 700;
  color: #5e625a;
}
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.lesson-card {
  position: relative;
  padding: 22px;
  background: #fff;
  border: 1px solid #e2e1da;
  border-radius: 20px;
  min-height: 176px;
  transition: 0.25s;
}
.lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.lesson-card.locked {
  opacity: 0.65;
}
.lesson-icon {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: var(--cream);
}
.lesson-card:nth-child(2) .lesson-icon {
  background: #e6ddff;
}
.lesson-card:nth-child(3) .lesson-icon {
  background: #ffdfd7;
}
.lesson-card h3 {
  font: 700 17px "Manrope";
  margin: 18px 0 5px;
}
.lesson-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.lesson-progress {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 4px;
  border-radius: 5px;
  background: #ecece6;
}
.lesson-progress span {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--forest);
}
.insight-strip {
  margin-top: 35px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 21px 23px;
  border-radius: 19px;
  background: #eae6d9;
}
.insight-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.insight-strip p {
  margin: 4px 0 0;
  font-weight: 600;
}
.insight-strip button {
  border: 0;
  background: transparent;
  font-weight: 700;
}
.mobile-head,
.bottom-nav {
  display: none;
}
.page-head.compact h1 {
  margin-bottom: 7px;
}
.coach-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}
.coach-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fc06b;
}
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  height: calc(100vh - 205px);
  min-height: 550px;
}
.chat-panel,
.conversation-guide {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.messages {
  flex: 1;
  overflow: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.message {
  max-width: 78%;
  padding: 14px 17px;
  border-radius: 18px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.message.assistant {
  align-self: flex-start;
  background: #eff0e9;
  border-bottom-left-radius: 5px;
}
.message.user {
  align-self: flex-end;
  background: var(--forest);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.message.typing {
  color: #82877e;
}
.quick-prompts {
  display: flex;
  gap: 8px;
  padding: 0 20px 12px;
  overflow: auto;
}
.quick-prompts button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fafaf7;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 12px;
}
.chat-compose {
  margin: 0 18px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #d9dbd4;
  border-radius: 17px;
  background: #fafaf7;
}
.chat-compose:focus-within {
  border-color: #8da14f;
}
.chat-compose input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  padding: 0 5px;
}
.icon-btn {
  width: 41px;
  height: 41px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.icon-btn.mic {
  background: #eceee6;
}
.icon-btn.mic.listening {
  background: #ffddd5;
  color: #b63825;
  animation: softPulse 1.2s infinite;
}
.icon-btn.send {
  background: var(--ink);
  color: #fff;
}
.conversation-guide {
  padding: 27px;
  display: flex;
  flex-direction: column;
}
.conversation-guide h3 {
  font: 700 22px/1.35 "Manrope";
  margin: 13px 0 20px;
}
.listen-btn {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 10px 13px;
  background: var(--lime);
  font-weight: 700;
}
.tip-box {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding: 17px;
  border-radius: 15px;
  background: #f1eee3;
}
.tip-box p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.pronounce-card {
  max-width: 850px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 20px 70px rgba(23, 27, 22, 0.04);
}
.phrase-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.phrase-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin: 43px 0;
}
.sound-orb {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 18px;
  background: var(--lime);
  color: var(--forest);
}
.phrase-main small {
  font-weight: 700;
  color: #92958e;
  letter-spacing: 0.12em;
}
.phrase-main h2 {
  font: 800 30px/1.25 "Manrope";
  letter-spacing: -0.035em;
  margin: 8px 0;
}
.phrase-main p {
  color: var(--muted);
  margin: 0;
}
.recorder {
  position: relative;
  min-height: 190px;
  border: 1px dashed #cfd3c8;
  border-radius: 22px;
  background: #f7f7f2;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.record-btn {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.record-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
.record-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: #fff;
  border-radius: 50%;
  margin-bottom: 12px;
  box-shadow: 0 0 0 8px #e5eadf;
}
.record-btn small {
  color: var(--muted);
  margin-top: 4px;
}
.recorder.recording .record-icon {
  background: var(--coral);
  animation: softPulse 1.1s infinite;
}
@keyframes softPulse {
  50% {
    box-shadow: 0 0 0 12px rgba(243, 123, 98, 0.18);
  }
}
.waveform {
  position: absolute;
  display: flex;
  gap: 5px;
  align-items: center;
  opacity: 0.12;
}
.waveform i {
  width: 4px;
  height: 35px;
  border-radius: 4px;
  background: var(--forest);
}
.waveform i:nth-child(2n) {
  height: 65px;
}
.waveform i:nth-child(3n) {
  height: 90px;
}
.recorder.recording .waveform {
  opacity: 0.2;
}
.recorder.recording .waveform i {
  animation: pulse 0.7s ease infinite alternate;
}
.mobile-analysis-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.mobile-analysis-hint .text-btn {
  display: block;
  margin: 7px auto 0;
  color: var(--forest);
}
.pronounce-result {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 21px;
  margin-top: 20px;
  padding: 21px;
  border-radius: 19px;
  background: #eff5dc;
}
.score-disc {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 21px;
}
.score-disc strong {
  font: 800 25px "Manrope";
}
.score-disc span {
  font-size: 12px;
}
.pronounce-result h3 {
  margin: 5px 0 3px;
}
.pronounce-result p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.pronounce-result .pronounce-breakdown {
  margin-top: 7px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
}
.phrase-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}
.path-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 850px;
}
.path-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.path-number {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--lime);
  font: 800 18px "Manrope";
}
.path-item.done .path-number {
  background: var(--lime);
  color: var(--forest);
}
.path-item h3 {
  margin: 0 0 4px;
  font: 700 17px "Manrope";
}
.path-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.path-item button {
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  background: #efefe9;
  font-weight: 700;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stats-grid article {
  min-height: 160px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 21px;
  display: flex;
  flex-direction: column;
}
.stats-grid article > span,
.stats-grid small {
  color: var(--muted);
  font-size: 12px;
}
.stats-grid strong {
  font: 800 34px "Manrope";
  letter-spacing: -0.04em;
  margin: auto 0 5px;
}
.stats-grid strong b {
  font: inherit;
}
.progress-panel {
  margin-top: 24px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 23px;
}
.activity-list {
  display: flex;
  flex-direction: column;
}
.activity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid #ecece6;
}
.activity-icon {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f0eee4;
}
.activity strong,
.activity small {
  display: block;
}
.activity small {
  margin-top: 2px;
  color: var(--muted);
}
.activity-score {
  font-weight: 800;
  color: var(--forest);
}
.empty {
  padding: 25px 0;
  color: var(--muted);
}
.popover {
  position: fixed;
  z-index: 60;
  top: 99px;
  right: 68px;
  width: 230px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
}
.popover button {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 11px;
  text-align: left;
}
.popover button:hover {
  background: #f2f2ec;
}
.popover button span {
  grid-row: 1/3;
  font-size: 25px;
}
.popover button b {
  font-size: 13px;
}
.popover button small {
  color: var(--muted);
}
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(17, 20, 16, 0.52);
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  width: min(430px, 100%);
  padding: 31px;
  background: #faf9f4;
  border-radius: 25px;
  box-shadow: var(--shadow);
}
.modal-card h2 {
  font: 800 27px "Manrope";
  margin: 8px 0 20px;
}
.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 50%;
  background: #ecece6;
}
.danger {
  display: block;
  margin: 8px auto 0;
  color: #ae4035;
}
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: 0.3s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-panel {
    min-height: 100vh;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 800 19px "Manrope";
    margin-bottom: 45px;
  }
  .sidebar {
    width: 208px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .workspace {
    margin-left: 208px;
    padding: 35px 25px 100px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .coach-teaser {
    min-height: 230px;
  }
  .lesson-grid {
    grid-template-columns: 1fr;
  }
  .lesson-card {
    min-height: 150px;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .conversation-guide {
    display: none;
  }
}
@media (max-width: 700px) {
  .sidebar {
    display: none;
  }
  .mobile-head {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 69px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 19px;
    background: rgba(245, 244, 238, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(222, 222, 213, 0.7);
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .workspace {
    margin-left: 0;
    padding: 22px 17px 108px;
  }
  .page-head {
    display: block;
    margin: 2px 0 24px;
  }
  .page-head h1 {
    font-size: 31px;
  }
  .head-actions {
    margin-top: 18px;
    justify-content: space-between;
  }
  .hero-grid {
    gap: 14px;
  }
  .daily-card {
    min-height: 385px;
    padding: 27px 24px;
  }
  .daily-card h2 {
    font-size: 31px;
  }
  .daily-bottom {
    left: 24px;
    right: 24px;
  }
  .coach-teaser {
    min-height: 225px;
    padding: 25px;
  }
  .section-block {
    margin-top: 35px;
  }
  .section-title {
    align-items: center;
  }
  .section-title h2 {
    font-size: 23px;
  }
  .section-title .arrow {
    font-size: 0;
  }
  .section-title .arrow:after {
    content: "Alle →";
    font-size: 13px;
  }
  .lesson-grid {
    display: flex;
    overflow: auto;
    scroll-snap-type: x mandatory;
    margin-right: -17px;
    padding-right: 17px;
  }
  .lesson-card {
    min-width: 78vw;
    scroll-snap-align: start;
  }
  .insight-strip {
    grid-template-columns: auto 1fr;
    padding: 18px;
  }
  .insight-strip button {
    display: none;
  }
  .bottom-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 50;
    left: 0;
    right: 0;
    bottom: 0;
    height: 76px;
    padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
    background: rgba(252, 251, 247, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .bottom-nav button {
    position: relative;
    border: 0;
    background: transparent;
    color: #8b8e86;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 9px;
  }
  .bottom-nav button svg {
    width: 21px;
  }
  .bottom-nav button.active {
    color: var(--forest);
    font-weight: 700;
  }
  .bottom-nav .center-action span {
    position: absolute;
    bottom: 31px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--forest);
    color: #fff;
    box-shadow: 0 5px 18px rgba(24, 60, 45, 0.25);
  }
  .bottom-nav .center-action small {
    position: absolute;
    bottom: 4px;
    font-size: 9px;
  }
  .popover {
    top: 137px;
    right: 17px;
  }
  .chat-layout {
    height: calc(100vh - 220px);
    min-height: 500px;
  }
  .messages {
    padding: 18px;
  }
  .message {
    max-width: 88%;
    font-size: 14px;
  }
  .quick-prompts {
    padding-left: 12px;
  }
  .chat-compose {
    margin: 0 10px 10px;
  }
  .pronounce-card {
    padding: 22px 17px;
    border-radius: 22px;
  }
  .phrase-main {
    grid-template-columns: 1fr;
    margin: 30px 0;
    text-align: center;
  }
  .sound-orb {
    margin: auto;
  }
  .phrase-main h2 {
    font-size: 24px;
  }
  .phrase-actions .btn {
    padding: 0 15px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid article:last-child {
    grid-column: 1/3;
  }
  .progress-panel {
    padding: 20px;
  }
  .path-item {
    grid-template-columns: auto 1fr;
    padding: 17px;
  }
  .path-item button {
    grid-column: 2;
  }
  .auth-panel {
    padding: 26px;
  }
  .auth-card h2 {
    font-size: 32px;
  }
}

/* Nola classroom: a code-native, animated tutor stage keeps the conversation
   visible, expressive and local without relying on a remote avatar service. */
.avatar-classroom {
  --avatar-hair: #2b174d;
  --avatar-shirt: #6335d8;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  min-height: 478px;
  overflow: hidden;
  border: 1px solid rgba(40, 21, 76, .12);
  border-radius: 30px;
  background: #28154c;
  color: #fff;
  box-shadow: 0 24px 60px rgba(40, 21, 76, .17);
}
.avatar-stage-visual {
  position: relative;
  min-height: 478px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 35%, rgba(217, 255, 90, .22), transparent 27%),
    radial-gradient(circle at 18% 15%, rgba(161, 108, 255, .35), transparent 33%),
    linear-gradient(145deg, #352067 0%, #251344 58%, #1a102e 100%);
}
.avatar-stage-visual::before,
.avatar-stage-visual::after {
  position: absolute;
  z-index: -1;
  display: block;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  content: "";
}
.avatar-stage-visual::before {
  width: 470px;
  height: 470px;
  right: -170px;
  bottom: -285px;
}
.avatar-stage-visual::after {
  width: 320px;
  height: 320px;
  left: -180px;
  top: 230px;
}
.avatar-halo {
  position: absolute;
  width: 290px;
  height: 290px;
  left: 50%;
  top: 142px;
  z-index: -1;
  border: 1px solid rgba(217,255,90,.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,255,90,.2), rgba(115,54,255,.12) 47%, transparent 70%);
  box-shadow: 0 0 0 26px rgba(217,255,90,.035), 0 0 0 52px rgba(217,255,90,.025);
  transform: translateX(-50%);
  animation: avatarHalo 5s ease-in-out infinite;
}
.avatar-floor {
  position: absolute;
  width: 70%;
  height: 105px;
  bottom: -62px;
  left: 15%;
  border-radius: 50%;
  background: rgba(217,255,90,.1);
  filter: blur(2px);
  transform: rotate(-5deg);
}
.avatar-speech-bubble {
  position: absolute;
  top: 28px;
  left: 30px;
  right: 30px;
  z-index: 5;
  max-width: 390px;
  padding: 15px 18px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 17px 17px 17px 5px;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  box-shadow: 0 15px 30px rgba(16,7,32,.2);
}
.avatar-speech-bubble::after {
  position: absolute;
  bottom: -10px;
  left: 22px;
  width: 18px;
  height: 18px;
  border-right: 1px solid rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(255,255,255,.96);
  background: #fff;
  content: "";
  transform: skewY(-28deg) rotate(24deg);
}
.avatar-speech-bubble span,
.avatar-speech-bubble strong {
  display: block;
}
.avatar-speech-bubble span {
  margin-bottom: 5px;
  color: #7956be;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.avatar-speech-bubble strong {
  font-size: 14px;
  line-height: 1.4;
}
.avatar-speech-bubble small {
  display: block;
  margin-top: 7px;
  color: #82759d;
  font-size: 10px;
  font-weight: 700;
}
.avatar-character {
  position: absolute;
  width: min(78%, 350px);
  height: auto;
  bottom: 1px;
  left: 50%;
  z-index: 2;
  overflow: visible;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: avatarFloat 4.5s ease-in-out infinite;
}
.avatar-ground-shadow {
  fill: rgba(8, 3, 21, .33);
}
.avatar-body,
.avatar-arm {
  stroke: var(--avatar-shirt);
}
.avatar-body { fill: var(--avatar-shirt); }
.avatar-hair-back,
.avatar-hair-fringe { fill: var(--avatar-hair); }
.avatar-head-group {
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform .35s ease;
}
.avatar-arm {
  transform-box: fill-box;
  transform-origin: center 18%;
  transition: transform .35s ease;
}
.avatar-arm-left { animation: avatarGestureLeft 4.8s ease-in-out infinite; }
.avatar-arm-right { animation: avatarGestureRight 5.4s ease-in-out infinite; }
.avatar-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: avatarBlink 5.4s infinite;
}
.avatar-mouth-open { opacity: 0; }
.avatar-live-pill {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 6;
  display: grid;
  grid-template-columns: 8px 1fr;
  column-gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
  background: rgba(24,12,45,.72);
  backdrop-filter: blur(10px);
}
.avatar-live-pill > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(217,255,90,.12);
}
.avatar-live-pill strong,
.avatar-live-pill small { grid-column: 2; }
.avatar-live-pill strong { font-size: 11px; }
.avatar-live-pill small {
  margin-top: 2px;
  color: #d7cceb;
  font-size: 10px;
}
.avatar-classroom-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 40px 36px;
  background: linear-gradient(160deg, #3d1e72 0%, #29154b 100%);
}
.avatar-classroom-copy .eyebrow { color: #cfc2ea; }
.avatar-classroom-copy h2 {
  max-width: 390px;
  margin: 12px 0 10px;
  color: #fff;
  font: 800 clamp(28px, 3vw, 42px)/1.05 "Manrope", sans-serif;
  letter-spacing: -.055em;
}
.avatar-classroom-copy > p {
  max-width: 420px;
  margin: 0;
  color: #ded6ed;
  font-size: 14px;
  line-height: 1.62;
}
.avatar-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.avatar-tool-row .btn { min-height: 46px; padding-inline: 17px; }
.avatar-tool-row .btn.ghost {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.avatar-tool-row .btn.ghost:hover { background: rgba(255,255,255,.15); }
.avatar-tool-row .play-dot {
  width: 26px;
  height: 26px;
  background: rgba(39,19,70,.15);
}
.avatar-tool-row .ghost .play-dot { background: rgba(255,255,255,.12); }
.tutor-tone-row,
.avatar-choice-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}
.tutor-tone-row > span,
.avatar-choice-row > span {
  flex: 0 0 100%;
  color: #b7a8d3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.tutor-tone-row button {
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.06);
  color: #e3dcef;
  font-size: 11px;
  font-weight: 700;
}
.tutor-tone-row button.active,
.tutor-tone-row button:hover {
  border-color: var(--lime);
  background: rgba(217,255,90,.13);
  color: var(--lime);
}
.avatar-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 8px 5px 5px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  background: rgba(255,255,255,.05);
  color: #fff;
  text-align: left;
}
.avatar-choice.active,
.avatar-choice:hover {
  border-color: rgba(217,255,90,.65);
  background: rgba(217,255,90,.12);
}
.avatar-choice i {
  display: grid;
  flex: 0 0 27px;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: #9b6cff;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.avatar-choice[data-tutor-avatar="maya"] i { background: #ff9b80; }
.avatar-choice[data-tutor-avatar="leo"] i { background: #54c4ad; }
.avatar-choice span {
  display: grid;
  gap: 1px;
  font-size: 11px;
  font-weight: 800;
}
.avatar-choice small {
  color: #bfb1d7;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}
.avatar-lesson-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-top: 25px;
  color: #c5b8dd;
  font-size: 10px;
}
.avatar-lesson-steps span { display: inline-flex; align-items: center; gap: 5px; }
.avatar-lesson-steps b {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: rgba(217,255,90,.15);
  color: var(--lime);
  font-size: 10px;
}
.avatar-classroom[data-avatar="maya"] { --avatar-hair: #6e2c4a; --avatar-shirt: #d65e8b; }
.avatar-classroom[data-avatar="leo"] { --avatar-hair: #173d56; --avatar-shirt: #2b9d93; }
.avatar-classroom[data-mood="speaking"] .avatar-mouth-smile,
.avatar-classroom[data-mood="thinking"] .avatar-mouth-smile,
.avatar-classroom[data-mood="listening"] .avatar-mouth-smile { opacity: 0; }
.avatar-classroom[data-mood="speaking"] .avatar-mouth-open {
  opacity: 1;
  animation: avatarMouth 260ms ease-in-out infinite alternate;
}
.avatar-classroom[data-mood="speaking"] .avatar-arm-left { animation: avatarTalkLeft 750ms ease-in-out infinite alternate; }
.avatar-classroom[data-mood="speaking"] .avatar-arm-right { animation: avatarTalkRight 900ms ease-in-out infinite alternate; }
.avatar-classroom[data-mood="listening"] .avatar-head-group { transform: rotate(-4deg) translateY(3px); }
.avatar-classroom[data-mood="listening"] .avatar-arm-left { animation: avatarListenLeft 1.8s ease-in-out infinite alternate; }
.avatar-classroom[data-mood="listening"] .avatar-arm-right { animation: avatarListenRight 1.8s ease-in-out infinite alternate; }
.avatar-classroom[data-mood="thinking"] .avatar-head-group { transform: rotate(3deg) translateY(1px); }
.avatar-classroom[data-mood="thinking"] .avatar-brow { transform: translateY(-4px); }
.avatar-classroom[data-mood="happy"] .avatar-head-group { transform: translateY(-4px) scale(1.02); }
.avatar-classroom[data-mood="happy"] .avatar-mouth-smile { stroke-width: 7; }
@keyframes avatarFloat { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-7px); } }
@keyframes avatarHalo { 0%,100% { opacity: .7; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.035); } }
@keyframes avatarBlink { 0%, 91%, 96%, 100% { transform: scaleY(1); } 93%, 95% { transform: scaleY(.08); } }
@keyframes avatarMouth { from { transform: scaleY(.55); } to { transform: scaleY(1.2); } }
@keyframes avatarGestureLeft { 0%,65%,100% { transform: rotate(0); } 78% { transform: rotate(-5deg); } }
@keyframes avatarGestureRight { 0%,55%,100% { transform: rotate(0); } 72% { transform: rotate(5deg); } }
@keyframes avatarTalkLeft { from { transform: rotate(-7deg) translateY(0); } to { transform: rotate(5deg) translateY(-3px); } }
@keyframes avatarTalkRight { from { transform: rotate(7deg) translateY(0); } to { transform: rotate(-6deg) translateY(-2px); } }
@keyframes avatarListenLeft { from { transform: rotate(-2deg); } to { transform: rotate(-8deg); } }
@keyframes avatarListenRight { from { transform: rotate(2deg); } to { transform: rotate(8deg); } }
@media (max-width: 1000px) {
  .avatar-classroom { grid-template-columns: minmax(0, 1fr); }
  .avatar-stage-visual { min-height: 420px; }
  .avatar-classroom-copy { padding: 32px; }
}
@media (max-width: 700px) {
  .avatar-classroom { border-radius: 22px; }
  .avatar-stage-visual { min-height: 390px; }
  .avatar-speech-bubble { top: 18px; left: 18px; right: 18px; }
  .avatar-character { width: min(88%, 330px); }
  .avatar-live-pill { right: 15px; bottom: 15px; }
  .avatar-classroom-copy { padding: 27px 22px 25px; }
  .avatar-classroom-copy h2 { font-size: 31px; }
  .avatar-classroom-copy > p { font-size: 13px; }
  .avatar-choice-row { align-items: stretch; }
  .avatar-choice { flex: 1 1 130px; }
  .avatar-lesson-steps { gap: 8px 11px; }
}

/* The guided lesson uses the same visual tutor language as the conversation
   stage, so Nola remains present while she explains, listens and reacts. */
.focus-tutor-avatar {
  --focus-hair: #2b174d;
  --focus-shirt: #6335d8;
  position: relative;
  width: 148px;
  height: 172px;
  margin: 0 auto 20px;
  transform-origin: 50% 100%;
  animation: avatarFloat 4.5s ease-in-out infinite;
}
.focus-avatar-halo {
  position: absolute;
  inset: 7px 0 0;
  border: 1px solid rgba(217,255,90,.32);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,255,90,.18), transparent 65%);
  box-shadow: 0 0 0 16px rgba(217,255,90,.035);
}
.focus-avatar-body {
  position: absolute;
  width: 94px;
  height: 70px;
  left: 27px;
  bottom: 4px;
  border-radius: 46px 46px 15px 15px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--focus-shirt), white 18%), var(--focus-shirt));
}
.focus-avatar-body::before,
.focus-avatar-body::after {
  position: absolute;
  top: 10px;
  width: 23px;
  height: 63px;
  border-radius: 20px;
  background: #6335d8;
  content: "";
}
.focus-avatar-body::before { left: -13px; transform: rotate(22deg); }
.focus-avatar-body::after { right: -13px; transform: rotate(-22deg); }
.focus-avatar-head {
  position: absolute;
  width: 75px;
  height: 88px;
  top: 27px;
  left: 36px;
  z-index: 2;
  border: 5px solid var(--focus-hair);
  border-radius: 43% 43% 46% 46%;
  background: linear-gradient(145deg, #ffd8c8, #ecae9b);
}
.focus-avatar-head::before {
  position: absolute;
  width: 72px;
  height: 58px;
  top: -7px;
  left: -4px;
  border-radius: 42px 42px 16px 16px;
  background: var(--focus-hair);
  content: "";
  clip-path: polygon(0 0,100% 0,100% 60%,79% 38%,62% 67%,34% 72%,0 88%);
}
.focus-avatar-eye {
  position: absolute;
  top: 44px;
  width: 7px;
  height: 10px;
  border-radius: 50%;
  background: #241631;
  animation: avatarBlink 5.4s infinite;
}
.focus-avatar-eye-left { left: 20px; }
.focus-avatar-eye-right { right: 20px; }
.focus-avatar-mouth {
  position: absolute;
  width: 19px;
  height: 7px;
  bottom: 18px;
  left: 23px;
  border-bottom: 4px solid #9a4256;
  border-radius: 0 0 50% 50%;
}
.focus-tutor-avatar[data-mood="speaking"] .focus-avatar-mouth {
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #9a4256;
  animation: avatarMouth 260ms ease-in-out infinite alternate;
}
.focus-tutor-avatar[data-mood="listening"] .focus-avatar-head { transform: rotate(-5deg); }
.focus-tutor-avatar[data-mood="thinking"] .focus-avatar-head { transform: rotate(4deg); }
.focus-tutor-avatar[data-mood="speaking"] .focus-avatar-body::before { animation: avatarTalkLeft 750ms ease-in-out infinite alternate; }
.focus-tutor-avatar[data-mood="speaking"] .focus-avatar-body::after { animation: avatarTalkRight 900ms ease-in-out infinite alternate; }
.focus-tutor-avatar[data-avatar="maya"] { --focus-hair: #6e2c4a; --focus-shirt: #d65e8b; }
.focus-tutor-avatar[data-avatar="leo"] { --focus-hair: #173d56; --focus-shirt: #2b9d93; }

/* Guided conversation: the speaking space stays calm while the rest of the
   product keeps the high-contrast LingoFlow visual language. */
.conversation-section {
  margin-top: 26px;
}
.conversation-heading {
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}
.conversation-heading > div {
  min-width: 0;
}
.conversation-heading p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
}
.scenario-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin-bottom: 15px;
  padding: 2px 1px 4px;
  scrollbar-width: thin;
}
.scenario-tabs button {
  flex: 0 0 auto;
  border: 1px solid #ded6ef;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.scenario-tabs button:hover {
  border-color: var(--purple);
  transform: translateY(-1px);
}
.scenario-tabs button.active {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 18px rgba(115, 54, 255, 0.18);
}
.conversation-section .chat-layout {
  height: auto;
  min-height: 0;
}
.conversation-section .chat-panel,
.conversation-section .conversation-guide {
  min-height: 470px;
}
.conversation-section .conversation-guide {
  display: flex;
}
.chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 24px;
  border-bottom: 1px solid #ece8f4;
}
.chat-panel-head strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  letter-spacing: -0.025em;
}
.conversation-memory {
  flex: 0 0 auto;
  color: #7f778f;
  font-size: 11px;
  font-weight: 700;
}
.conversation-section .messages {
  min-height: 280px;
  background: linear-gradient(180deg, #fff, #fcfbff);
}
.conversation-section .message.assistant {
  background: #f0ebff;
  border: 1px solid #e4dafa;
}
.conversation-section .message.user {
  background: var(--purple);
  color: #fff;
}
.message-hint {
  display: block;
  margin-top: 8px;
  color: inherit;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.72;
}
.message-part + .message-part {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(28, 35, 31, 0.09);
}
.message-part small {
  display: block;
  margin-bottom: 4px;
  color: #767b77;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.message-part span {
  display: block;
}
.message-part.target span {
  font-size: 17px;
  line-height: 1.55;
}
.message-part.follow-up {
  padding-left: 11px;
  border-left: 3px solid var(--purple);
}
.message-part.follow-up small {
  color: #75609f;
}
.conversation-section .quick-prompts button {
  border-color: #ded6ef;
  background: #fff;
}
.conversation-section .quick-prompts button:hover {
  border-color: var(--purple);
  background: #f3efff;
}
.conversation-section .chat-compose {
  border-color: #ded6ef;
  background: #fff;
}
.conversation-section .chat-compose:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(168, 135, 255, 0.15);
}
.conversation-section .icon-btn.mic {
  background: #f0ebff;
  color: var(--purple);
}
.conversation-section .icon-btn.send {
  background: var(--purple);
}
.conversation-section .conversation-guide {
  background:
    radial-gradient(circle at 100% 0, rgba(217, 255, 90, 0.45), transparent 34%),
    linear-gradient(145deg, #28154c, #35195f);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.conversation-section .conversation-guide .eyebrow {
  color: #c8bce0;
}
.conversation-guide h3 {
  color: #fff;
}
.conversation-section .listen-btn {
  color: var(--forest);
}
.deepseek-status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 13px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.deepseek-status-card.ready {
  border-color: rgba(217, 255, 90, 0.5);
  background: rgba(217, 255, 90, 0.12);
}
.local-tutor-glyph {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--forest);
  font-size: 16px;
}
.deepseek-status-card strong,
.deepseek-status-card small {
  display: block;
}
.deepseek-status-card strong {
  font-size: 12px;
}
.deepseek-status-card small {
  margin-top: 3px;
  color: #c8bce0;
  font-size: 10px;
  line-height: 1.35;
}
.deepseek-status-card.ready small {
  color: #e2f3a2;
}
.conversation-progress {
  margin-top: 28px;
}
.conversation-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d9d0ea;
  font-size: 12px;
}
.conversation-progress-head strong {
  color: var(--lime);
  font-size: 12px;
}
.conversation-progress-track {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.conversation-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transition: width 220ms ease;
}
.conversation-progress small {
  display: block;
  margin-top: 8px;
  color: #c8bce0;
  font-size: 11px;
  line-height: 1.45;
}
.conversation-section .tip-box {
  background: rgba(255, 255, 255, 0.1);
}
.conversation-section .tip-box p {
  color: #eee9f7;
}

@media (max-width: 700px) {
  .conversation-heading {
    display: block;
  }
  .conversation-heading .coach-status {
    width: max-content;
    margin-top: 14px;
  }
  .conversation-section .chat-layout {
    display: block;
    min-height: 0;
  }
  .conversation-section .chat-panel {
    min-height: 520px;
  }
  .conversation-section .conversation-guide {
    min-height: 0;
    margin-top: 14px;
  }
  .chat-panel-head {
    padding: 16px;
  }
  .conversation-memory {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.resume-training {
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 19px 22px;
  border: 1px solid #d8ddc5;
  border-radius: 19px;
  background: #f0f7d8;
}
.resume-pulse {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--lime);
  box-shadow: 0 0 0 7px rgba(24, 60, 45, 0.08);
}
.resume-pulse svg {
  width: 16px;
  fill: currentColor;
  stroke: none;
}
.resume-training h3 {
  margin: 4px 0 2px;
  font: 700 17px "Manrope";
}
.resume-training p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.focus-mode {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--forest);
  color: #fff;
  overflow: auto;
}
.focus-mode:before,
.focus-mode:after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
}
.focus-mode:before {
  width: 600px;
  height: 600px;
  right: -250px;
  top: -260px;
  background: radial-gradient(circle, #3e6853 0, transparent 67%);
}
.focus-mode:after {
  width: 500px;
  height: 500px;
  left: -330px;
  bottom: -320px;
  border: 1px solid rgba(223, 255, 98, 0.14);
  box-shadow:
    0 0 0 55px rgba(223, 255, 98, 0.025),
    0 0 0 110px rgba(223, 255, 98, 0.02);
}
.focus-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 26px 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.focus-head .brand-mark {
  background: var(--lime);
  color: var(--forest);
}
.focus-progress {
  display: flex;
  gap: 9px;
}
.focus-progress span {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #b9c9bf;
}
.focus-progress b {
  color: #fff;
}
.pause-btn {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 12px;
  background: transparent;
  color: #d3ded7;
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 700;
}
.pause-btn svg {
  width: 16px;
}
.focus-workspace {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 38px));
  margin: auto;
  text-align: center;
  padding: 55px 0 65px;
}
.focus-orb {
  width: 72px;
  height: 72px;
  margin: 0 auto 25px;
  border-radius: 25px 25px 25px 8px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.focus-orb i {
  width: 4px;
  height: 19px;
  border-radius: 4px;
  background: var(--forest);
  animation: pulse 1s ease infinite;
}
.focus-orb i:nth-child(2) {
  height: 34px;
  animation-delay: 0.15s;
}
.focus-orb i:nth-child(3) {
  height: 24px;
  animation-delay: 0.3s;
}
.focus-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  color: #94aa9c;
}
.focus-workspace h2 {
  max-width: 760px;
  margin: 17px auto 19px;
  font: 800 clamp(30px, 4vw, 50px) / 1.16 "Manrope";
  letter-spacing: -0.04em;
}
.focus-hint {
  border: 0;
  background: transparent;
  color: var(--lime);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.focus-workspace > #focusHint {
  color: #b8c9be;
  font-size: 17px;
  margin: 14px 0 0;
}
.focus-feedback {
  max-width: 660px;
  margin: 24px auto 0;
  padding: 16px 20px;
  border: 1px solid rgba(223, 255, 98, 0.2);
  border-radius: 15px;
  background: rgba(223, 255, 98, 0.08);
  text-align: left;
}
.focus-feedback strong {
  color: var(--lime);
}
.focus-feedback p {
  margin: 5px 0 0;
  color: #d3ded7;
  line-height: 1.5;
}
.focus-compose {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 38px auto 0;
  padding: 9px;
  width: min(720px, 100%);
  border-radius: 19px;
  background: #fff;
}
.focus-compose input {
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}
.focus-mic,
.focus-send {
  height: 48px;
  border: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.focus-mic {
  width: 48px;
  background: #edf0e8;
  color: var(--forest);
}
.focus-mic.listening {
  background: #ffded7;
  color: #b33a2e;
  animation: softPulse 1.2s infinite;
}
.focus-send {
  gap: 9px;
  padding: 0 18px;
  background: var(--lime);
  color: var(--forest);
  font-weight: 800;
}
.focus-send svg {
  width: 18px;
}
.focus-compose.busy {
  opacity: 0.7;
  pointer-events: none;
}
.focus-note {
  margin: 17px 0 0;
  color: #81998a;
  font-size: 12px;
}
@media (max-width: 700px) {
  .resume-training {
    grid-template-columns: auto 1fr;
    padding: 17px;
  }
  .resume-training .btn {
    grid-column: 1/3;
    width: 100%;
  }
  .focus-head {
    grid-template-columns: 1fr auto;
    padding: 17px;
  }
  .focus-head .brand span:last-child {
    display: none;
  }
  .focus-progress {
    grid-row: 2;
    grid-column: 1/3;
    justify-content: center;
    margin-top: 15px;
  }
  .pause-btn {
    font-size: 0;
  }
  .pause-btn svg {
    width: 19px;
    height: 19px;
  }
  .focus-workspace {
    padding: 38px 0 35px;
    margin: auto;
  }
  .focus-orb {
    width: 62px;
    height: 62px;
    border-radius: 21px 21px 21px 7px;
  }
  .focus-workspace h2 {
    font-size: 29px;
  }
  .focus-compose {
    grid-template-columns: auto 1fr;
  }
  .focus-send {
    grid-column: 1/3;
  }
  .focus-send span {
    display: inline;
  }
  .focus-note {
    padding: 0 20px;
  }
}
.focus-target {
  min-height: 43px;
  margin: 13px auto 7px;
  color: var(--lime);
  font: 800 clamp(28px, 3.4vw, 43px) / 1.2 "Manrope";
  letter-spacing: -0.03em;
  transition: 0.25s;
}
.focus-target.concealed {
  opacity: 0;
  transform: translateY(5px);
}
.focus-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 660px;
  margin: 23px auto 7px;
}
.focus-choices button {
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid rgba(223, 255, 98, 0.32);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 750 15px/1.35 "Manrope";
  cursor: pointer;
}
.focus-choices button:hover:not(:disabled),
.focus-choices button:focus-visible:not(:disabled) {
  border-color: var(--lime);
  background: rgba(223, 255, 98, 0.13);
  outline: none;
}
.focus-choices button:disabled { cursor: wait; opacity: 0.7; }
@media (max-width: 560px) { .focus-choices { grid-template-columns: 1fr; } }
.auto-recorder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: max-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  color: #bfd0c5;
}
.auto-recorder > span {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
}
.auto-recorder svg {
  width: 18px;
}
.auto-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
}
.auto-wave i {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--lime);
}
.auto-wave i:nth-child(2),
.auto-wave i:nth-child(4) {
  height: 16px;
}
.auto-wave i:nth-child(3) {
  height: 25px;
}
.auto-recorder.speaking .auto-wave i {
  animation: pulse 0.75s ease infinite alternate;
}
.auto-recorder.listening {
  border-color: rgba(223, 255, 98, 0.38);
  background: rgba(223, 255, 98, 0.1);
  color: #fff;
}
.auto-recorder.listening > span {
  background: var(--lime);
  color: var(--forest);
  animation: softPulse 1.1s infinite;
}
.auto-recorder.listening .auto-wave i {
  animation: pulse 0.55s ease infinite alternate;
}
.auto-recorder.thinking .auto-wave i {
  animation: pulse 1.15s ease infinite alternate;
}
.focus-transcript {
  margin: 12px auto 0;
  color: #9db1a5;
  font-size: 13px;
}
.focus-feedback {
  text-align: center;
}
.focus-workspace.voice-error .focus-compose {
  display: grid !important;
}
.focus-workspace.voice-error .auto-recorder {
  display: none;
}
@media (max-width: 700px) {
  .focus-target {
    font-size: 28px;
  }
  .auto-recorder {
    margin-top: 19px;
  }
  .focus-feedback {
    margin-top: 17px;
  }
  .focus-workspace h2 {
    font-size: 26px;
    max-width: 350px;
  }
  .focus-note {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
    line-height: 1.45;
  }
}
.dictionary-total {
  min-width: 108px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  text-align: center;
}
.dictionary-total strong,
.dictionary-total span {
  display: block;
}
.dictionary-total strong {
  font: 800 27px "Manrope";
  color: var(--forest);
}
.dictionary-total span {
  font-size: 11px;
  color: var(--muted);
}
.dictionary-filters {
  display: flex;
  gap: 9px;
  margin-bottom: 23px;
  overflow: auto;
  padding-bottom: 2px;
}
.dictionary-filters button {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 10px 15px;
  color: var(--muted);
  font-weight: 700;
}
.dictionary-filters button.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}
.dictionary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.dictionary-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(23, 27, 22, 0.035);
}
.dictionary-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.dictionary-word {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}
.dictionary-word h2 {
  margin: 0 0 4px;
  font: 800 24px/1.2 "Manrope";
  letter-spacing: -0.03em;
}
.dictionary-word p {
  margin: 0;
  color: var(--muted);
}
.dictionary-word button {
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 14px;
  background: var(--lime);
  color: var(--forest);
}
.dictionary-word button svg {
  width: 21px;
}
.mastery {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #ecece6;
}
.mastery > span {
  font-size: 12px;
  font-weight: 800;
}
.mastery > div {
  display: flex;
  gap: 4px;
}
.mastery i {
  width: 16px;
  height: 5px;
  border-radius: 5px;
  background: #e5e7df;
}
.mastery i.active {
  background: var(--forest);
}
.mastery small {
  grid-column: 1/3;
  color: var(--muted);
  font-size: 10px;
}
.dictionary-empty {
  grid-column: 1/-1;
  padding: 70px 24px;
  border: 1px dashed #ccd0c4;
  border-radius: 24px;
  background: #f8f8f4;
  text-align: center;
}
.dictionary-empty > span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 17px;
  border-radius: 20px;
  background: var(--lime);
  font-size: 28px;
}
.dictionary-empty h2 {
  margin: 0 0 7px;
  font: 800 25px "Manrope";
}
.dictionary-empty p {
  max-width: 460px;
  margin: 0 auto 22px;
  color: var(--muted);
  line-height: 1.55;
}
.focus-retry {
  margin: 24px auto 0;
}
.path-item.locked {
  opacity: 0.55;
}
.path-item button:disabled {
  cursor: not-allowed;
}
.focus-workspace.voice-error .auto-recorder {
  display: none;
}
@media (max-width: 960px) {
  .dictionary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-left: 5px;
    padding-right: 5px;
  }
  .bottom-nav button {
    min-width: 0;
    font-size: 9px;
  }
  .bottom-nav button svg {
    width: 20px;
  }
  .bottom-nav .center-action span {
    width: 52px;
    height: 52px;
  }
  .bottom-nav .center-action small {
    font-size: 9px;
  }
  .dictionary-grid {
    grid-template-columns: 1fr;
  }
  .dictionary-total {
    margin-top: 16px;
    width: max-content;
  }
  .dictionary-filters {
    margin-right: -17px;
    padding-right: 17px;
  }
}
.voice-coach-card {
  position: relative;
  max-width: 900px;
  min-height: 510px;
  margin: 0 auto;
  padding: 55px;
  border-radius: 30px;
  background: var(--forest);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.voice-coach-card:before,
.voice-coach-card:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.voice-coach-card:before {
  width: 420px;
  height: 420px;
  right: -230px;
  top: -250px;
  background: rgba(223, 255, 98, 0.08);
}
.voice-coach-card:after {
  width: 350px;
  height: 350px;
  left: -250px;
  bottom: -260px;
  border: 1px solid rgba(223, 255, 98, 0.16);
  box-shadow: 0 0 0 42px rgba(223, 255, 98, 0.025);
}
.voice-coach-card > * {
  position: relative;
  z-index: 1;
}
.voice-coach-orb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 0 auto 26px;
}
.voice-coach-orb .face {
  margin-right: 8px;
  background: var(--lime);
  color: var(--forest);
}
.voice-coach-orb i {
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: var(--lime);
  animation: pulse 1s ease infinite alternate;
}
.voice-coach-orb i:nth-of-type(2) {
  height: 34px;
}
.voice-coach-orb i:nth-of-type(3) {
  height: 24px;
}
.voice-coach-card .eyebrow {
  color: #9db5a6;
}
.voice-coach-card h2 {
  margin: 10px 0 13px;
  font: 800 clamp(30px, 4vw, 44px) / 1.12 "Manrope";
  letter-spacing: -0.04em;
}
.voice-coach-card > p {
  max-width: 690px;
  margin: 0 auto;
  color: #bfd0c5;
  line-height: 1.65;
}
.voice-coach-steps {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.voice-coach-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}
.voice-coach-steps b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
}
@media (max-width: 700px) {
  .voice-coach-card {
    min-height: 0;
    padding: 38px 20px;
  }
  .voice-coach-card h2 {
    font-size: 29px;
  }
  .voice-coach-steps {
    display: grid;
    text-align: left;
  }
  .voice-coach-card .btn {
    width: 100%;
  }
}
.lesson-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lesson-card-top > span {
  padding: 5px 8px;
  border-radius: 8px;
  background: #f0f0e9;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.lesson-card {
  min-height: 200px;
  padding-bottom: 55px;
}
.lesson-card p {
  line-height: 1.35;
}
.lesson-card > small {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 27px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}
.lesson-card .lesson-progress {
  bottom: 16px;
}
.course-overview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 24px;
  padding: 24px 24px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}
.course-overview > div:not(.course-overview-bar) {
  padding: 0 22px;
  border-right: 1px solid var(--line);
}
.course-overview > div:first-child {
  padding-left: 0;
}
.course-overview > div:nth-child(3) {
  border: 0;
}
.course-overview span,
.course-overview strong {
  display: block;
}
.course-overview span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}
.course-overview strong {
  font: 800 21px "Manrope";
}
.course-overview-bar {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 16px;
  height: 5px;
  border-radius: 5px;
  background: #ecece6;
}
.course-overview-bar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--lime-deep);
  transition: width 0.4s;
}
.path-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.path-meta span {
  padding: 3px 7px;
  border-radius: 7px;
  background: #edf0e8;
  color: var(--forest);
  font-size: 9px;
  font-weight: 800;
}
.path-meta b {
  color: var(--muted);
  font-size: 10px;
}
.path-progress {
  height: 4px;
  margin-top: 11px;
  border-radius: 5px;
  background: #ecece6;
  overflow: hidden;
}
.path-progress i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--forest);
}
@media (max-width: 700px) {
  .course-overview {
    grid-template-columns: 1fr 1fr;
    padding: 20px 18px 31px;
  }
  .course-overview > div:not(.course-overview-bar) {
    padding: 0 12px;
  }
  .course-overview > div:nth-child(2) {
    border: 0;
  }
  .course-overview > div:nth-child(3) {
    grid-column: 1/3;
    margin-top: 16px;
    padding: 15px 0 0;
    border-top: 1px solid var(--line);
  }
  .course-overview-bar {
    left: 18px;
    right: 18px;
  }
  .path-item {
    align-items: start;
  }
  .path-item button {
    width: max-content;
  }
  .lesson-card {
    min-height: 205px;
  }
}
body.focus-open {
  overflow: hidden;
}
.progress-step-0 {
  width: 0%;
}
.progress-step-1 {
  width: 12.5%;
}
.progress-step-2 {
  width: 25%;
}
.progress-step-3 {
  width: 37.5%;
}
.progress-step-4 {
  width: 50%;
}
.progress-step-5 {
  width: 62.5%;
}
.progress-step-6 {
  width: 75%;
}
.progress-step-7 {
  width: 87.5%;
}
.progress-step-8 {
  width: 100%;
}
.course-step-0 {
  width: 0%;
}
.goal-ring.goal-step-0 {
  --pct: 0;
}
.course-step-1 {
  width: 5%;
}
.goal-ring.goal-step-1 {
  --pct: 5;
}
.course-step-2 {
  width: 10%;
}
.goal-ring.goal-step-2 {
  --pct: 10;
}
.course-step-3 {
  width: 15%;
}
.goal-ring.goal-step-3 {
  --pct: 15;
}
.course-step-4 {
  width: 20%;
}
.goal-ring.goal-step-4 {
  --pct: 20;
}
.course-step-5 {
  width: 25%;
}
.goal-ring.goal-step-5 {
  --pct: 25;
}
.course-step-6 {
  width: 30%;
}
.goal-ring.goal-step-6 {
  --pct: 30;
}
.course-step-7 {
  width: 35%;
}
.goal-ring.goal-step-7 {
  --pct: 35;
}
.course-step-8 {
  width: 40%;
}
.goal-ring.goal-step-8 {
  --pct: 40;
}
.course-step-9 {
  width: 45%;
}
.goal-ring.goal-step-9 {
  --pct: 45;
}
.course-step-10 {
  width: 50%;
}
.goal-ring.goal-step-10 {
  --pct: 50;
}
.course-step-11 {
  width: 55%;
}
.goal-ring.goal-step-11 {
  --pct: 55;
}
.course-step-12 {
  width: 60%;
}
.goal-ring.goal-step-12 {
  --pct: 60;
}
.course-step-13 {
  width: 65%;
}
.goal-ring.goal-step-13 {
  --pct: 65;
}
.course-step-14 {
  width: 70%;
}
.goal-ring.goal-step-14 {
  --pct: 70;
}
.course-step-15 {
  width: 75%;
}
.goal-ring.goal-step-15 {
  --pct: 75;
}
.course-step-16 {
  width: 80%;
}
.goal-ring.goal-step-16 {
  --pct: 80;
}
.course-step-17 {
  width: 85%;
}
.goal-ring.goal-step-17 {
  --pct: 85;
}
.course-step-18 {
  width: 90%;
}
.goal-ring.goal-step-18 {
  --pct: 90;
}
.course-step-19 {
  width: 95%;
}
.goal-ring.goal-step-19 {
  --pct: 95;
}
.course-step-20 {
  width: 100%;
}
.goal-ring.goal-step-20 {
  --pct: 100;
}
.microphone-setting {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8f8f3;
}
.microphone-setting > div:first-child strong,
.microphone-setting > div:first-child small {
  display: block;
}
.microphone-setting > div:first-child strong {
  font: 800 16px "Manrope";
}
.microphone-setting > div:first-child small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.settings-section-label {
  display: block;
  margin-bottom: 5px;
  color: #7f847a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.microphone-setting .field {
  margin: 15px 0 12px;
}
.microphone-test {
  display: flex;
  align-items: center;
  gap: 13px;
}
.microphone-test .btn {
  min-height: 42px;
  padding: 0 14px;
  font-size: 12px;
  white-space: nowrap;
}
.microphone-meter {
  height: 8px;
  flex: 1;
  border-radius: 8px;
  background: #e3e4dc;
  overflow: hidden;
}
.microphone-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime-deep), #54a970);
  transition: width 0.08s linear;
}
@media (max-width: 560px) {
  .modal-card {
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }
  .microphone-test {
    align-items: stretch;
    flex-direction: column;
  }
  .microphone-test .btn {
    width: 100%;
  }
}

.listening-card {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, #f5f7ed, #fff);
}
.listening-card h2 { margin: 7px 0 8px; font: 800 clamp(23px, 3vw, 32px) "Manrope"; }
.listening-card p { max-width: 720px; color: var(--muted); line-height: 1.6; }
.listening-card > .btn { margin-top: 18px; }
.listening-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.listening-answers button { min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); font-weight: 750; text-align: left; cursor: pointer; }
.listening-answers button:hover:not(:disabled) { border-color: var(--lime-deep); transform: translateY(-1px); }
.listening-answers button.correct { border-color: #4c9b69; background: #e7f6e9; }
.listening-answers button.wrong { border-color: #d4776f; background: #fff0ed; }
.listening-feedback { min-height: 25px; margin: 14px 0 0 !important; color: var(--ink) !important; font-weight: 700; }
@media (max-width: 560px) { .listening-answers { grid-template-columns: 1fr; } }

/* LingoFlow visual system: expressive, high-contrast and conversation-first. */
:root {
  --ink: #171321;
  --muted: #716c7e;
  --paper: #f7f6f3;
  --white: #ffffff;
  --line: #e6e2ec;
  --lime: #d9ff5a;
  --lime-deep: #b9e83d;
  --forest: #28154c;
  --coral: #ff775f;
  --cream: #f0ebfa;
  --purple: #7336ff;
  --shadow: 0 24px 70px rgba(40, 21, 76, 0.12);
  --radius: 26px;
}

html,
body {
  min-width: 320px;
}

body,
button,
input,
select {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
.brand,
.brand-mark,
.auth-card h2,
.mobile-brand,
.daily-card h2,
.coach-teaser h3,
.section-title h2,
.phrase-main h2,
.path-item h3,
.stats-grid strong,
.dictionary-word h2,
.dictionary-empty h2,
.voice-coach-card h2,
.modal-card h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
  background: var(--paper);
}

.auth-story {
  background:
    radial-gradient(circle at 78% 10%, rgba(115, 54, 255, 0.55), transparent 32%),
    linear-gradient(145deg, #241342 0%, #2f1956 52%, #1a1030 100%);
}

.auth-story:before {
  width: 520px;
  height: 520px;
  right: -170px;
  top: -180px;
  background: radial-gradient(circle at 35% 35%, rgba(217, 255, 90, 0.25), transparent 64%);
}

.auth-story:after {
  border-color: rgba(217, 255, 90, 0.28);
  box-shadow:
    0 0 0 44px rgba(217, 255, 90, 0.06),
    0 0 0 88px rgba(217, 255, 90, 0.035);
}

.story-copy h1 {
  max-width: 700px;
  letter-spacing: -0.065em;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-head h1,
.lesson-card h3,
.daily-card h2,
.coach-teaser h3,
.section-title h2,
.phrase-main h2,
.path-item h3,
.stats-grid strong,
.dictionary-word h2,
.dictionary-empty h2,
.voice-coach-card h2,
.modal-card h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.story-copy h1 em {
  color: var(--lime);
}

.voice-preview {
  border-color: rgba(217, 255, 90, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

.orb {
  background: var(--lime);
  box-shadow: 0 0 0 8px rgba(217, 255, 90, 0.12);
}

.auth-panel {
  background: #fbfaf8;
}

.auth-card h2 {
  letter-spacing: -0.055em;
}

.field input,
.field select {
  background: #fff;
  border-color: #ded8e8;
}

.field input:focus,
.field select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(115, 54, 255, 0.14);
}

.btn {
  border-radius: 999px;
}

.btn.primary,
.btn.dark {
  background: var(--ink);
}

.btn.lime {
  background: var(--lime);
  color: var(--forest);
  box-shadow: 0 10px 24px rgba(217, 255, 90, 0.14);
}

.sidebar {
  background: var(--forest);
  border-right: 0;
  box-shadow: 16px 0 40px rgba(40, 21, 76, 0.08);
}

.sidebar .brand {
  color: #fff;
}

.sidebar .brand-mark,
.focus-head .brand-mark {
  background: var(--lime);
  color: var(--forest);
}

.nav-item {
  color: #c6bddd;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-item.active {
  background: rgba(217, 255, 90, 0.14);
  color: var(--lime);
}

.nav-item i {
  background: var(--lime);
  color: var(--forest);
}

.profile-chip {
  border-top-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.profile-chip > span:first-child,
.avatar {
  background: #ffd6c9;
  color: #6c2f39;
}

.profile-chip small {
  color: #c6bddd;
}

.profile-chip svg {
  color: #b6a7d1;
}

.workspace {
  background:
    radial-gradient(circle at 88% 0%, rgba(115, 54, 255, 0.06), transparent 24%),
    var(--paper);
}

.page-head h1 {
  font-size: clamp(34px, 3.2vw, 48px);
  letter-spacing: -0.06em;
}

.language-picker,
.streak-pill,
.coach-status {
  border-color: #ddd7e8;
  box-shadow: 0 8px 24px rgba(40, 21, 76, 0.04);
}

.language-picker:hover,
.streak-pill:hover {
  border-color: var(--purple);
}

.daily-card {
  background:
    radial-gradient(circle at 92% 12%, rgba(115, 54, 255, 0.7), transparent 28%),
    linear-gradient(135deg, #28154c 0%, #371b67 58%, #21123c 100%);
  box-shadow: 0 24px 50px rgba(40, 21, 76, 0.2);
}

.daily-card h2 {
  max-width: 520px;
  letter-spacing: -0.06em;
}

.coach-teaser {
  background: linear-gradient(145deg, #d9ff5a, #efffa6);
  box-shadow: 0 24px 50px rgba(40, 21, 76, 0.08);
}

.face {
  background: var(--forest);
}

.lesson-card,
.pronounce-card,
.path-item,
.stats-grid article,
.progress-panel,
.dictionary-card,
.course-overview {
  border-color: #e4dfeb;
  box-shadow: 0 16px 38px rgba(40, 21, 76, 0.05);
}

.lesson-card:hover,
.dictionary-card:hover {
  border-color: rgba(115, 54, 255, 0.28);
  box-shadow: 0 24px 48px rgba(40, 21, 76, 0.1);
}

.lesson-icon {
  background: #fff1d7;
}

.lesson-card:nth-child(2) .lesson-icon {
  background: #e7ddff;
}

.lesson-card:nth-child(3) .lesson-icon {
  background: #ffdcd4;
}

.lesson-progress span,
.path-progress i {
  background: var(--purple);
}

.insight-strip {
  background: linear-gradient(90deg, #eee8ff, #f8f4ff);
  border: 1px solid #e2d9fa;
}

.insight-icon {
  background: var(--purple);
  color: #fff;
}

.resume-training {
  background: #efffa6;
  border-color: #d7eb83;
}

.resume-pulse {
  background: var(--forest);
  color: var(--lime);
}

.coach-status span {
  background: #61ce7b;
  box-shadow: 0 0 0 4px rgba(97, 206, 123, 0.14);
}

.voice-coach-card {
  background:
    radial-gradient(circle at 75% 8%, rgba(115, 54, 255, 0.76), transparent 24%),
    linear-gradient(135deg, #28154c, #35195f 58%, #211039);
  box-shadow: 0 28px 72px rgba(40, 21, 76, 0.22);
}

.voice-coach-orb .face {
  background: var(--lime);
  color: var(--forest);
}

.voice-coach-card .eyebrow {
  color: #c8bce0;
}

.pronounce-card {
  box-shadow: 0 22px 60px rgba(40, 21, 76, 0.08);
}

.sound-orb,
.dictionary-word button {
  background: var(--lime);
  color: var(--forest);
}

.record-icon {
  background: var(--purple);
  box-shadow: 0 0 0 8px #eee8ff;
}

.record-btn small,
.phrase-main p,
.pronounce-result p {
  color: var(--muted);
}

.pronounce-result {
  background: #f0ebff;
  border: 1px solid #e2d8fc;
}

.score-disc {
  background: var(--purple);
}

.dictionary-filters button.active,
.path-number,
.path-item.done .path-number {
  background: var(--purple);
  color: #fff;
}

.path-item.done .path-number {
  color: var(--lime);
}

.dictionary-empty {
  border-color: #cfc2eb;
  background: #fbf9ff;
}

.dictionary-empty > span {
  background: var(--lime);
}

.dictionary-total strong,
.activity-score {
  color: var(--purple);
}

.focus-mode {
  background:
    radial-gradient(circle at 75% 0%, rgba(115, 54, 255, 0.62), transparent 28%),
    linear-gradient(135deg, #28154c 0%, #34185e 55%, #1b102f 100%);
}

.focus-workspace h2 {
  letter-spacing: -0.05em;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.focus-choices button:hover:not(:disabled),
.focus-choices button:focus-visible:not(:disabled) {
  border-color: var(--lime);
  background: rgba(217, 255, 90, 0.14);
}

.popover {
  border-color: #ded6ef;
  box-shadow: 0 22px 60px rgba(40, 21, 76, 0.16);
}

.popover button:hover {
  background: #f1ecfb;
}

.modal-card {
  box-shadow: 0 30px 80px rgba(40, 21, 76, 0.2);
}

.microphone-setting {
  background: #f6f2fd;
  border-color: #e5dcf4;
}

@media (max-width: 700px) {
  .mobile-head {
    background: rgba(40, 21, 76, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .mobile-head .brand {
    color: #fff;
  }

  .mobile-head .brand-mark {
    background: var(--lime);
    color: var(--forest);
  }

  .mobile-head .avatar {
    background: #ffd6c9;
    color: #6c2f39;
  }

  .bottom-nav {
    background: rgba(40, 21, 76, 0.97);
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  .bottom-nav button {
    color: #bfb3d6;
  }

  .bottom-nav button.active {
    color: var(--lime);
  }

  .bottom-nav .center-action span {
    background: var(--lime);
    color: var(--forest);
    box-shadow: 0 8px 22px rgba(217, 255, 90, 0.22);
  }

  .bottom-nav .center-action small {
    color: #bfb3d6;
  }

  .daily-card,
  .voice-coach-card {
    box-shadow: 0 18px 40px rgba(40, 21, 76, 0.18);
  }
}

/* Immersive video-tutor layer: the classroom keeps a close, human-feeling
   teacher portrait in view while local audio and recognition drive the lesson. */
.avatar-classroom {
  grid-template-columns: minmax(0, 1.03fr) minmax(350px, .97fr);
  min-height: 590px;
}
.avatar-stage-visual {
  min-height: 590px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 219, 160, .28), transparent 29%),
    radial-gradient(circle at 18% 15%, rgba(161, 108, 255, .38), transparent 33%),
    linear-gradient(145deg, #362066 0%, #241341 58%, #180e2b 100%);
}
.avatar-halo,
.avatar-floor,
.avatar-character { display: none; }
.avatar-video-tutor {
  position: absolute;
  width: min(76%, 410px);
  height: 560px;
  left: 50%;
  bottom: -4px;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 30px 30px 12px 12px;
  background: #b48c91;
  box-shadow: 0 27px 55px rgba(9, 3, 23, .34), 0 0 0 8px rgba(255,255,255,.035);
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: tutorFocusFloat 6s ease-in-out infinite;
}
.avatar-video-tutor::before {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 15%, transparent 76%, rgba(15,7,28,.52)),
    radial-gradient(circle at 50% 40%, transparent 45%, rgba(18,6,31,.18) 100%);
  content: "";
}
.avatar-video-tutor::after {
  position: absolute;
  right: 18px;
  bottom: 60px;
  left: 18px;
  height: 1px;
  z-index: 5;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.27), transparent);
  opacity: .55;
  content: "";
}
.avatar-video-tutor-base,
.avatar-video-tutor-gesture {
  position: absolute;
  inset: 0;
  background: center 39% / cover no-repeat;
  transition: opacity .38s ease, transform .38s ease, filter .38s ease;
}
.avatar-video-tutor-base { background-image: url("avatar/tutor-ava-base.png"); }
.avatar-video-tutor-gesture {
  background-image: url("avatar/tutor-ava-speaking.png");
  opacity: 0;
}
.avatar-video-tutor[data-mood="speaking"] .avatar-video-tutor-base {
  opacity: .18;
  transform: scale(1.018);
  filter: saturate(.92);
}
.avatar-video-tutor[data-mood="speaking"] .avatar-video-tutor-gesture {
  opacity: 1;
  animation: tutorGestureFrame 1.8s ease-in-out infinite;
}
.avatar-video-tutor[data-mood="listening"] .avatar-video-tutor-base {
  animation: tutorListenFrame 3.6s ease-in-out infinite;
}
.avatar-video-tutor[data-mood="thinking"] .avatar-video-tutor-base {
  transform: translateX(5px) rotate(1deg) scale(1.015);
  filter: saturate(.84) brightness(.97);
}
.avatar-video-tutor[data-mood="happy"] .avatar-video-tutor-base {
  filter: saturate(1.08) brightness(1.03);
  transform: scale(1.02);
}
.avatar-video-lip-sync,
.focus-video-lip-sync {
  position: absolute;
  top: 48.5%;
  left: 50%;
  width: 35px;
  height: 7px;
  z-index: 6;
  border-radius: 50%;
  background: rgba(128, 48, 57, .62);
  box-shadow: 0 2px 4px rgba(72, 18, 25, .18);
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(.25);
}
.avatar-video-tutor[data-mood="speaking"] .avatar-video-lip-sync,
.focus-tutor-avatar[data-mood="speaking"] .focus-video-lip-sync {
  opacity: .82;
  animation: tutorLipSync .19s ease-in-out infinite alternate;
}
.avatar-video-label {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(27, 11, 43, .58);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}
.avatar-video-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff806d;
  box-shadow: 0 0 0 4px rgba(255,128,109,.17);
  animation: tutorLiveDot 1.5s ease-in-out infinite;
}
.avatar-video-subtitles {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(23, 9, 39, .69);
  color: #fff;
  box-shadow: 0 10px 23px rgba(10,3,21,.22);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}
.avatar-video-subtitles span { flex: 1; }
.avatar-video-subtitles i {
  display: block;
  flex: 0 0 26px;
  height: 16px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--lime) 0 2px, transparent 2px 5px);
  opacity: .9;
}
.avatar-video-tutor[data-mood="speaking"] .avatar-video-subtitles i { animation: tutorWave .56s ease-in-out infinite alternate; }
.avatar-video-scanline {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(255,255,255,.024) 5px 6px);
  mix-blend-mode: screen;
  opacity: .28;
}
.avatar-live-pill { bottom: 18px; }
.avatar-speech-bubble {
  top: 24px;
  left: 24px;
  right: auto;
  max-width: min(44%, 235px);
  padding: 12px 14px 13px;
  background: rgba(255,255,255,.94);
}
.avatar-speech-bubble strong { font-size: 13px; }

.nola-avatar {
  width: 70px;
  height: 70px;
  overflow: visible;
}
.nola-avatar .face {
  width: 70px;
  height: 70px;
  border-radius: 24px 24px 24px 8px;
  background: url("avatar/tutor-ava-base.png") center 26% / 205% auto no-repeat;
  box-shadow: 0 8px 18px rgba(40, 21, 76, .18);
  color: transparent;
}
.avatar-classroom-copy {
  padding: 46px 42px 39px;
  background: linear-gradient(160deg, #43227a 0%, #29154b 100%);
}
.avatar-classroom-copy > p { font-size: 14px; }

/* Full-screen lesson mode uses the same portrait as the coach view, so the
   learner never drops from a video-class feeling into an abstract mini icon. */
.focus-tutor-avatar {
  width: min(420px, 74vw);
  height: min(480px, 55vh);
  min-height: 300px;
  margin: 0 auto 25px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 28px 28px 10px 10px;
  background: #9c737b;
  box-shadow: 0 24px 55px rgba(7, 2, 18, .36), 0 0 0 7px rgba(255,255,255,.035);
  animation: tutorCameraBreath 6s ease-in-out infinite;
}
.focus-tutor-avatar > .focus-avatar-halo,
.focus-tutor-avatar > .focus-avatar-body,
.focus-tutor-avatar > .focus-avatar-head { display: none; }
.focus-video-tutor,
.focus-video-tutor-base,
.focus-video-tutor-gesture {
  position: absolute;
  inset: 0;
}
.focus-video-tutor { overflow: hidden; }
.focus-video-tutor::before {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(180deg, rgba(255,255,255,.09), transparent 18%, transparent 75%, rgba(15,7,28,.55));
  content: "";
}
.focus-video-tutor-base,
.focus-video-tutor-gesture {
  background: center 39% / cover no-repeat;
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}
.focus-video-tutor-base { background-image: url("avatar/tutor-ava-base.png"); }
.focus-video-tutor-gesture { background-image: url("avatar/tutor-ava-speaking.png"); opacity: 0; }
.focus-tutor-avatar[data-mood="speaking"] .focus-video-tutor-base { opacity: .16; transform: scale(1.018); }
.focus-tutor-avatar[data-mood="speaking"] .focus-video-tutor-gesture { opacity: 1; animation: tutorGestureFrame 1.8s ease-in-out infinite; }
.focus-tutor-avatar[data-mood="listening"] .focus-video-tutor-base { animation: tutorListenFrame 3.6s ease-in-out infinite; }
.focus-tutor-avatar[data-mood="thinking"] .focus-video-tutor-base { transform: translateX(5px) rotate(1deg) scale(1.015); filter: saturate(.84); }
.focus-tutor-avatar[data-mood="happy"] .focus-video-tutor-base { filter: saturate(1.08) brightness(1.03); transform: scale(1.02); }
.focus-video-lip-sync { top: 48.5%; }
.focus-tutor-avatar[data-mood="speaking"] .focus-video-lip-sync { z-index: 7; }
.focus-workspace { width: min(940px, calc(100% - 38px)); padding-top: 30px; }
.focus-kicker { color: #c2d1c7; }
.focus-workspace h2 { margin-top: 13px; }
.focus-target { margin-top: 8px; }
@keyframes tutorCameraBreath { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.012); } }
@keyframes tutorFocusFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.012); } }
@keyframes tutorGestureFrame { 0%,100% { transform: translateX(0) scale(1); } 50% { transform: translateX(-2px) scale(1.014); } }
@keyframes tutorListenFrame { 0%,100% { transform: translateX(0) rotate(0); } 45% { transform: translateX(-4px) rotate(-.5deg); } 70% { transform: translateX(2px) rotate(.35deg); } }
@keyframes tutorLipSync { from { transform: translate(-50%, -50%) scaleY(.2) scaleX(.8); } to { transform: translate(-50%, -50%) scaleY(1.55) scaleX(1.18); } }
@keyframes tutorLiveDot { 50% { opacity: .45; transform: scale(.78); } }
@keyframes tutorWave { from { transform: scaleY(.45); } to { transform: scaleY(1.2); } }

/* Real-time 3D tutor layer. The generated portrait remains underneath until
   the GLB has loaded, so slow networks and older browsers stay usable. */
.avatar-3d-tutor,
.focus-3d-tutor {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
.avatar-3d-tutor canvas,
.focus-3d-tutor canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.avatar-video-tutor.is-3d-loading .avatar-3d-tutor,
.focus-tutor-avatar.is-3d-loading .focus-3d-tutor { opacity: .16; }
.avatar-video-tutor.is-3d-ready .avatar-3d-tutor,
.focus-tutor-avatar.is-3d-ready .focus-3d-tutor { opacity: 1; }
.avatar-video-tutor.is-3d-ready .avatar-video-tutor-base,
.avatar-video-tutor.is-3d-ready .avatar-video-tutor-gesture,
.avatar-video-tutor.is-3d-ready .avatar-video-lip-sync,
.focus-tutor-avatar.is-3d-ready .focus-video-tutor { opacity: 0; }
.avatar-video-tutor.is-3d-ready,
.focus-tutor-avatar.is-3d-ready { background: #6b4a55; }
.avatar-video-tutor.is-3d-ready::before,
.focus-tutor-avatar.is-3d-ready .focus-3d-tutor::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 18%, transparent 72%, rgba(15,7,28,.48)),
    radial-gradient(circle at 50% 35%, transparent 40%, rgba(18,6,31,.16) 100%);
}
.focus-tutor-avatar { position: relative; }
.focus-tutor-avatar.is-3d-ready .focus-3d-tutor::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  content: "";
}
@media (max-width: 1000px) {
  .avatar-classroom { grid-template-columns: minmax(0, 1fr); }
  .avatar-stage-visual { min-height: 610px; }
  .avatar-video-tutor { width: min(74%, 410px); }
  .avatar-classroom-copy { padding: 34px; }
}
@media (max-width: 700px) {
  .avatar-stage-visual { min-height: 520px; }
  .avatar-video-tutor { width: min(84%, 360px); height: 500px; }
  .avatar-speech-bubble { max-width: 57%; }
  .avatar-video-subtitles { font-size: 10px; }
  .avatar-classroom-copy { padding: 29px 22px 26px; }
  .focus-tutor-avatar { width: min(330px, 82vw); height: min(390px, 53vh); }
  .focus-workspace { padding-top: 22px; }
}

/* Sofia cartoon pass: this is the visual language of the reference clip.
   The tutor is a small animated portrait, not a developer-style 3D viewer.
   Audio state changes the keyframe layer while idle blinking, breathing and
   an occasional teaching gesture keep the character alive between turns. */
.avatar-video-tutor,
.focus-tutor-avatar {
  background: #a96a5b;
}
.avatar-video-tutor-base,
.avatar-video-tutor-blink,
.avatar-video-tutor-speaking,
.avatar-video-tutor-gesture,
.focus-video-tutor-base,
.focus-video-tutor-blink,
.focus-video-tutor-speaking,
.focus-video-tutor-gesture {
  position: absolute;
  inset: 0;
  background-position: center 41%;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity .26s ease, transform .36s ease, filter .36s ease;
}
.avatar-video-tutor-base { z-index: 1; background-image: url("avatar/cartoon/sofia-idle.jpg"); }
.avatar-video-tutor-blink { z-index: 2; background-image: url("avatar/cartoon/sofia-blink.jpg"); opacity: 0; animation: sofiaBlinkCycle 6.8s steps(1, end) infinite; }
.avatar-video-tutor-speaking { z-index: 3; background-image: url("avatar/cartoon/sofia-speaking.jpg"); opacity: 0; }
.avatar-video-tutor-gesture { z-index: 3; background-image: url("avatar/cartoon/sofia-gesture.jpg"); opacity: 0; }
.avatar-video-tutor[data-mood="speaking"] .avatar-video-tutor-speaking {
  opacity: 1;
  animation: sofiaTalkFrame .34s steps(2, end) infinite;
}
.avatar-video-tutor[data-mood="speaking"] .avatar-video-tutor-base,
.focus-tutor-avatar[data-mood="speaking"] .focus-video-tutor-base {
  opacity: 1 !important;
  transform: scale(1.008);
  filter: saturate(.98);
}
.avatar-video-tutor[data-mood="speaking"] .avatar-video-tutor-blink,
.avatar-video-tutor[data-mood="speaking"] .avatar-video-tutor-gesture { opacity: 0 !important; }
.avatar-video-tutor[data-mood="listening"] .avatar-video-tutor-base {
  background-image: url("avatar/cartoon/sofia-listening.jpg");
  animation: tutorListenFrame 3.6s ease-in-out infinite;
}
.avatar-video-tutor[data-mood="thinking"] .avatar-video-tutor-base {
  transform: translateX(5px) rotate(1deg) scale(1.015);
  filter: saturate(.92) brightness(.98);
}
.avatar-video-tutor[data-mood="happy"] .avatar-video-tutor-base { opacity: .12; }
.avatar-video-tutor[data-mood="happy"] .avatar-video-tutor-gesture {
  opacity: 1;
  animation: sofiaGestureFrame 2.8s ease-in-out infinite;
}
.avatar-video-tutor[data-mood="happy"] .avatar-video-tutor-blink { opacity: 0 !important; }

.focus-video-tutor-base { z-index: 1; background-image: url("avatar/cartoon/sofia-idle.jpg"); }
.focus-video-tutor-blink { z-index: 2; background-image: url("avatar/cartoon/sofia-blink.jpg"); opacity: 0; animation: sofiaBlinkCycle 6.8s steps(1, end) infinite; }
.focus-video-tutor-speaking { z-index: 3; background-image: url("avatar/cartoon/sofia-speaking.jpg"); opacity: 0; }
.focus-video-tutor-gesture { z-index: 3; background-image: url("avatar/cartoon/sofia-gesture.jpg"); opacity: 0; }
.focus-tutor-avatar[data-mood="speaking"] .focus-video-tutor-speaking {
  opacity: 1;
  animation: sofiaTalkFrame .34s steps(2, end) infinite;
}
.focus-tutor-avatar[data-mood="speaking"] .focus-video-tutor-blink,
.focus-tutor-avatar[data-mood="speaking"] .focus-video-tutor-gesture { opacity: 0 !important; }
.focus-tutor-avatar[data-mood="listening"] .focus-video-tutor-base {
  background-image: url("avatar/cartoon/sofia-listening.jpg");
  animation: tutorListenFrame 3.6s ease-in-out infinite;
}
.focus-tutor-avatar[data-mood="thinking"] .focus-video-tutor-base { transform: translateX(5px) rotate(1deg) scale(1.015); filter: saturate(.92) brightness(.98); }
.focus-tutor-avatar[data-mood="happy"] .focus-video-tutor-base { opacity: .12; }
.focus-tutor-avatar[data-mood="happy"] .focus-video-tutor-gesture { opacity: 1; animation: sofiaGestureFrame 2.8s ease-in-out infinite; }
.focus-tutor-avatar[data-mood="happy"] .focus-video-tutor-blink { opacity: 0 !important; }

/* The cartoon keyframes are the primary presentation. Do not let the
   optional experimental GLB layer hide them once it happens to load. */
.avatar-3d-tutor,
.focus-3d-tutor { display: none !important; }
.avatar-video-tutor.is-3d-ready .avatar-video-tutor-base { opacity: 1 !important; }
.avatar-video-tutor.is-3d-ready .avatar-video-tutor-gesture,
.avatar-video-tutor.is-3d-ready .avatar-video-tutor-speaking { opacity: 0 !important; }
.avatar-video-tutor.is-3d-ready[data-mood="speaking"] .avatar-video-tutor-speaking { opacity: 1 !important; }
.avatar-video-tutor.is-3d-ready[data-mood="happy"] .avatar-video-tutor-gesture { opacity: 1 !important; }
.focus-tutor-avatar.is-3d-ready .focus-video-tutor { opacity: 1 !important; }
.focus-tutor-avatar.is-3d-ready .focus-video-tutor-gesture,
.focus-tutor-avatar.is-3d-ready .focus-video-tutor-speaking { opacity: 0 !important; }
.focus-tutor-avatar.is-3d-ready[data-mood="speaking"] .focus-video-tutor-speaking { opacity: 1 !important; }
.focus-tutor-avatar.is-3d-ready[data-mood="happy"] .focus-video-tutor-gesture { opacity: 1 !important; }

@keyframes sofiaBlinkCycle {
  0%, 93% { opacity: 0; }
  94%, 96% { opacity: 1; }
  97%, 100% { opacity: 0; }
}
@keyframes sofiaTalkFrame {
  0%, 42% { opacity: 0; transform: translateY(0) scale(1); }
  43%, 86% { opacity: 1; transform: translateY(-1px) scale(1.006); }
  87%, 100% { opacity: 0; transform: translateY(0) scale(1); }
}
@keyframes sofiaGestureFrame {
  0%, 100% { transform: translateX(0) scale(1); }
  42% { transform: translateX(-3px) rotate(-.45deg) scale(1.012); }
  62% { transform: translateX(1px) rotate(.25deg) scale(1.008); }
}
@media (prefers-reduced-motion: reduce) {
  .avatar-video-tutor-base,
  .avatar-video-tutor-blink,
  .avatar-video-tutor-speaking,
  .avatar-video-tutor-gesture,
  .focus-video-tutor-base,
  .focus-video-tutor-blink,
  .focus-video-tutor-speaking,
  .focus-video-tutor-gesture { animation: none !important; transition: none; }
}

/* A loaded GLB is the real tutor surface. The cartoon stills remain only as
   a graceful loading/error fallback; they never replace the 3D renderer. */
.avatar-3d-tutor,
.focus-3d-tutor {
  display: block !important;
  opacity: 0;
}
.avatar-video-tutor.is-3d-ready .avatar-3d-tutor,
.focus-tutor-avatar.is-3d-ready .focus-3d-tutor { opacity: 1; }
.avatar-video-tutor.is-3d-ready .avatar-video-tutor-base,
.avatar-video-tutor.is-3d-ready .avatar-video-tutor-blink,
.avatar-video-tutor.is-3d-ready .avatar-video-tutor-speaking,
.avatar-video-tutor.is-3d-ready .avatar-video-tutor-gesture,
.focus-tutor-avatar.is-3d-ready .focus-video-tutor { opacity: 0 !important; }
.avatar-video-tutor.is-3d-ready .avatar-video-tutor-blink,
.avatar-video-tutor.is-3d-ready .avatar-video-tutor-speaking,
.avatar-video-tutor.is-3d-ready .avatar-video-tutor-gesture,
.focus-tutor-avatar.is-3d-ready .focus-video-tutor-blink,
.focus-tutor-avatar.is-3d-ready .focus-video-tutor-speaking,
.focus-tutor-avatar.is-3d-ready .focus-video-tutor-gesture { animation: none !important; }
.avatar-video-tutor.is-3d-ready,
.focus-tutor-avatar.is-3d-ready {
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 220, 177, .25), transparent 24%),
    radial-gradient(circle at 16% 82%, rgba(89, 38, 71, .32), transparent 38%),
    linear-gradient(155deg, #b88382 0%, #9e6a70 48%, #653e58 100%);
}

/* Highest-specificity guard: once the real renderer is ready, no mood rule
   may bring a bitmap speaking/gesture frame back above the GLB. */
.avatar-video-tutor.is-3d-ready[data-mood="speaking"] .avatar-video-tutor-speaking,
.avatar-video-tutor.is-3d-ready[data-mood="happy"] .avatar-video-tutor-gesture,
.focus-tutor-avatar.is-3d-ready[data-mood="speaking"] .focus-video-tutor-speaking,
.focus-tutor-avatar.is-3d-ready[data-mood="happy"] .focus-video-tutor-gesture {
  opacity: 0 !important;
  animation: none !important;
}

/* Immersive voice studio: the speaking lesson fills the screen and keeps the
   microphone, scene selection, and transcript within easy reach. */
body.coach-screen-open {
  overflow: hidden;
}
#coachView.active-view {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 16px clamp(16px, 3vw, 48px) 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(52, 95, 72, .24), transparent 47%),
    linear-gradient(145deg, #111b16 0%, #18251f 52%, #0e1712 100%);
  color: #f1f5f1;
  animation: coachStudioIn .28s ease both;
}
@keyframes coachStudioIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#coachView > .page-head {
  position: relative;
  z-index: 10;
  align-items: center;
  min-height: 54px;
  margin: 0;
  padding: 0 2px 10px;
}
#coachView .page-head .eyebrow {
  display: none;
}
#coachView .page-head h1 {
  margin: 0;
  color: #f6f7f4;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: -.035em;
}
#coachView .page-head h1 span {
  color: #c9f08b;
}
#coachView #speakIntro {
  display: none;
}
.coach-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
#coachView .coach-status {
  padding: 8px 11px;
  border-color: rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(7, 13, 9, .42);
  color: #d9e4db;
  font-size: 11px;
}
#coachView .coach-status span:first-child {
  flex: 0 0 8px;
  background: #9edb71;
  box-shadow: 0 0 0 4px rgba(158,219,113,.12);
}
.coach-header-link {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #e5ece6;
  font-size: 11px;
  font-weight: 750;
  transition: background .16s ease, border-color .16s ease;
}
.coach-header-link:hover,
.coach-header-link[aria-pressed="true"] {
  border-color: rgba(201,240,139,.5);
  background: rgba(201,240,139,.12);
  color: #d7f7ae;
}
#coachView .avatar-classroom {
  display: contents;
}
#coachView .avatar-classroom-copy {
  display: none !important;
}
#coachView .avatar-stage-visual {
  grid-row: 2;
  grid-column: 1;
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(204,226,186,.12), transparent 30%),
    radial-gradient(ellipse at 12% 10%, rgba(120,162,131,.11), transparent 33%),
    linear-gradient(145deg, #1d3027, #17241d 60%, #111a15);
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 24px 60px rgba(0,0,0,.16);
}
#coachView .avatar-video-tutor {
  width: min(35vw, 440px);
  height: min(83%, 720px);
  bottom: 0;
  border-color: rgba(255,255,255,.16);
  border-radius: 220px 220px 18px 18px;
  background: #89796f;
  box-shadow: 0 24px 60px rgba(0,0,0,.34), 0 0 0 8px rgba(255,255,255,.025);
}
#coachView .avatar-speech-bubble {
  top: auto;
  right: auto;
  bottom: 22px;
  left: 50%;
  z-index: 9;
  width: min(760px, calc(100% - 40px));
  max-width: 760px;
  padding: 15px 21px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(12, 19, 15, .88);
  color: #f4f6f2;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
#coachView .avatar-speech-bubble::after {
  display: none;
}
#coachView .avatar-speech-bubble span {
  color: #c9f08b;
}
#coachView .avatar-speech-bubble strong {
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.48;
}
#coachView .avatar-speech-bubble small {
  color: #bac8bd;
}
#coachView .avatar-video-subtitles {
  display: none;
}
#coachView .avatar-live-pill {
  right: 18px;
  bottom: 18px;
  background: rgba(10, 17, 13, .72);
}
#coachView .avatar-live-pill small {
  color: #c3d1c6;
}
#coachView .conversation-section {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  min-height: 0;
  margin: 10px 0 0;
}
#coachView .conversation-heading {
  display: none;
}
#coachView .scenario-tabs {
  justify-content: center;
  margin: 0;
  padding: 0 0 1px;
}
#coachView .scenario-tabs button {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  color: #dce7df;
}
#coachView .scenario-tabs button.active {
  border-color: rgba(201,240,139,.48);
  background: rgba(201,240,139,.13);
  color: #dcf4c1;
  box-shadow: none;
}
#coachView .chat-layout,
#coachView .chat-panel {
  display: contents;
}
#coachView .chat-panel-head,
#coachView .messages,
#coachView .quick-prompts,
#coachView .conversation-guide {
  display: none !important;
}
#coachView .quick-prompts[hidden] {
  display: none !important;
}
#coachView .chat-compose {
  width: min(650px, 100%);
  min-height: 66px;
  margin: 0 auto;
  padding: 6px 7px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(11, 18, 13, .82);
  box-shadow: 0 16px 38px rgba(0,0,0,.25);
  backdrop-filter: blur(18px);
}
#coachView .chat-compose input {
  color: #f5f8f4;
  font-size: 14px;
}
#coachView .chat-compose input::placeholder {
  color: #a6b5a9;
}
#coachView .conversation-section .icon-btn.mic {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #c9f08b;
  color: #17251a;
  box-shadow: 0 6px 18px rgba(201,240,139,.18);
}
#coachView .conversation-section .icon-btn.mic.listening {
  background: #f6a58e;
  color: #301b16;
  animation: tutorLiveDot 1.2s ease-in-out infinite;
}
#coachView .conversation-section .icon-btn.send {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #e4ece5;
}
#coachView .conversation-section .icon-btn:disabled {
  opacity: .55;
  cursor: wait;
}
body.coach-transcript-open #coachView .chat-layout {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: block;
  width: min(440px, calc(100vw - 32px));
  height: auto;
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: rgba(14, 22, 17, .93);
  box-shadow: 0 22px 70px rgba(0,0,0,.4);
  backdrop-filter: blur(18px);
}
body.coach-transcript-open #coachView .chat-panel {
  display: flex;
  height: 100%;
  min-height: 0;
  border-color: rgba(255,255,255,.1);
  background: transparent;
}
body.coach-transcript-open #coachView .chat-panel-head {
  display: flex;
  padding: 12px 13px;
  border-color: rgba(255,255,255,.1);
  color: #f0f5f0;
}
body.coach-transcript-open #coachView .chat-panel-head .eyebrow {
  color: #bfd3c2;
}
body.coach-transcript-open #coachView .conversation-memory {
  color: #b3c3b7;
}
body.coach-transcript-open #coachView .messages {
  display: flex !important;
  min-height: 0;
  padding: 14px 7px;
  background: transparent;
}
body.coach-transcript-open #coachView .message {
  max-width: 92%;
  color: #eaf0eb;
}
body.coach-transcript-open #coachView .message.assistant {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.09);
}
body.coach-transcript-open #coachView .message.user {
  background: #53745c;
}
body.coach-transcript-open #coachView .message-part + .message-part {
  border-color: rgba(255,255,255,.13);
}
body.coach-transcript-open #coachView .message-part small {
  color: #b8c8bb;
}
body.coach-transcript-open #coachView .message-part.follow-up {
  border-left-color: #c9f08b;
}
body.coach-transcript-open #coachView .quick-prompts:not([hidden]) {
  display: flex !important;
  padding: 0 8px 9px;
}
body.coach-transcript-open #coachView .quick-prompts button {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: #eaf0eb;
}
body.coach-transcript-open #coachView .chat-compose {
  width: auto;
  margin: 0 2px 2px;
}
body.coach-transcript-open #coachView .conversation-guide {
  display: none !important;
}
@media (max-width: 700px) {
  #coachView.active-view {
    padding: 10px 11px 12px;
  }
  #coachView > .page-head {
    min-height: 48px;
    padding-bottom: 7px;
  }
  #coachView .page-head h1 {
    font-size: 15px;
  }
  .coach-header-actions {
    gap: 5px;
  }
  #coachView .coach-status {
    padding: 7px;
  }
  #coachPageStatusLabel {
    display: none;
  }
  .coach-header-link {
    min-height: 32px;
    padding: 0 9px;
    font-size: 10px;
  }
  #coachView .avatar-stage-visual {
    border-radius: 19px;
  }
  #coachView .avatar-video-tutor {
    width: min(74vw, 360px);
    height: min(78%, 500px);
    border-radius: 190px 190px 12px 12px;
  }
  #coachView .avatar-speech-bubble {
    bottom: 12px;
    width: calc(100% - 22px);
    padding: 12px 14px;
    border-radius: 15px;
  }
  #coachView .avatar-speech-bubble strong {
    font-size: 13px;
  }
  #coachView .avatar-live-pill {
    right: 10px;
    bottom: 12px;
    transform: scale(.88);
    transform-origin: bottom right;
  }
  #coachView .scenario-tabs {
    justify-content: flex-start;
    gap: 6px;
  }
  #coachView .scenario-tabs button {
    padding: 8px 10px;
    font-size: 11px;
  }
  #coachView .chat-compose {
    min-height: 58px;
  }
  #coachView .conversation-section .icon-btn.mic {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }
}
#coachView .coach-status #coachPageStatusLabel {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
body.coach-transcript-open #coachView .chat-layout {
  position: fixed;
  top: 80px;
  right: 24px;
  bottom: 145px;
}
@media (max-width: 700px) {
  body.coach-transcript-open #coachView .chat-layout {
    top: 60px;
    right: 11px;
    bottom: 132px;
  }
}
.quick-prompts[hidden] {
  display: none !important;
}

#coachView .tutor-retry-button {
  display: block;
  margin: 9px auto 0;
  padding: 7px 12px;
  border: 1px solid rgba(201,240,139,.35);
  border-radius: 999px;
  background: rgba(201,240,139,.12);
  color: #d8f3ba;
  font-size: 11px;
  font-weight: 750;
}
#coachView .tutor-retry-button[hidden] {
  display: none;
}
#coachView .chat-compose {
  width: 78px;
  justify-content: center;
}
#coachView #chatInput,
#coachView .icon-btn.send {
  display: none;
}
#coachView .conversation-section .icon-btn.mic {
  flex-basis: 56px;
  width: 56px;
  height: 56px;
}
#coachView .avatar-live-pill {
  top: 18px;
  right: 18px;
  bottom: auto;
}
body.coach-transcript-open #coachView .chat-compose {
  width: auto;
  justify-content: initial;
}
body.coach-transcript-open #coachView #chatInput {
  display: block;
}
body.coach-transcript-open #coachView .icon-btn.send {
  display: flex;
}
@media (max-width: 700px) {
  #coachView .chat-compose {
    width: 70px;
  }
  #coachView .avatar-live-pill {
    top: 10px;
    right: 9px;
    bottom: auto;
    transform: scale(.88);
    transform-origin: top right;
  }
}

@keyframes tutorStudioFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-5px) scale(1.012); }
}
#coachView .avatar-video-tutor {
  animation: tutorStudioFloat 6s ease-in-out infinite;
}
