:root {
  --ink: #192d30;
  --muted: #798786;
  --green: #176958;
  --lime: #d9ef98;
  --paper: #f6f7f2;
  --line: #e5e9e1;
  --orange: #e9ad57;
  --blue: #dfe9fa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: #e9ede5;
  font:
    14px "DM Sans",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #df9a44;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.logo {
  font-family: Manrope, sans-serif;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.3px;
  line-height: 1.2;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.4px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 11px;
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 16px;
}
.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
.desktop {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 236px;
  background: #fff;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.logo {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1px;
}
.logo span {
  color: var(--green);
}
.brandmark {
  width: 34px;
  height: 34px;
  background: var(--green);
  color: var(--lime);
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.side-nav {
  display: grid;
  gap: 9px;
  margin-top: 52px;
}
.side-nav button {
  text-align: left;
  background: none;
  padding: 15px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 600;
  color: #7a8580;
}
.side-nav button.active {
  background: #eaf2e2;
  color: var(--green);
}
.side-note {
  margin-top: auto;
  background: var(--paper);
  border-radius: 18px;
  padding: 18px;
  line-height: 1.6;
}
.side-note b {
  display: block;
  margin: 8px 0;
}
.workspace {
  margin-left: 236px;
  max-width: 1450px;
}
.topbar {
  height: 90px;
  padding: 0 48px;
  border-bottom: 1px solid #dde3da;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f6f7f2;
}
.breadcrumbs {
  color: #829087;
  font-size: 12px;
}
.topactions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.avatar {
  height: 36px;
  width: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eadbc6;
  font-weight: 800;
}
.level {
  border: 1px solid #dce4d6;
  padding: 7px 12px;
  border-radius: 30px;
  font-size: 10px;
  color: var(--green);
  font-weight: 700;
}
.content {
  max-width: 1100px;
  margin: auto;
  padding: 34px 48px 60px;
}
.pagehead {
  margin-bottom: 28px;
}
.pagehead p {
  margin-top: 9px;
  color: var(--muted);
}
.tag {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  background: #e9f1e2;
  color: var(--green);
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 23px;
}
.btn {
  padding: 14px 18px;
  background: var(--green);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
}
.btn.light {
  background: #edf3e7;
  color: var(--green);
}
.btn.outline {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.full {
  width: 100%;
}
.link {
  background: none;
  color: var(--green);
  font-weight: 700;
  padding: 0;
  font-size: 12px;
}
.homegrid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.hero {
  background: var(--green);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 255px;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero:after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid #ffffff15;
  border-radius: 50%;
  right: -75px;
  top: 10px;
}
.hero h2 {
  font-size: 28px;
  max-width: 280px;
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 12px 0;
}
.hero p {
  color: #bfd5c3;
  font-size: 12px;
  max-width: 220px;
}
.hero .btn {
  background: var(--lime);
  color: #22492e;
  align-self: flex-start;
  margin-top: 25px;
  padding: 12px 18px;
}
.hero .fred {
  position: absolute;
  right: 17px;
  bottom: 28px;
  width: 125px;
  height: 125px;
  transform: rotate(7deg);
}
.fred {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.goal-num {
  font-size: 34px;
  letter-spacing: -2px;
  font-weight: 800;
}
.bar {
  height: 7px;
  background: #ebeee6;
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
}
.bar span {
  height: 100%;
  display: block;
  background: var(--green);
  border-radius: 10px;
}
.days {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}
.day {
  text-align: center;
  color: #8d978d;
  font-size: 10px;
  display: grid;
  gap: 8px;
}
.day span {
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 25px;
  width: 25px;
  display: grid;
  place-items: center;
}
.day.done span {
  background: #e9f2df;
  color: var(--green);
  border: 0;
}
.day.today span {
  border-color: var(--green);
  color: var(--green);
}
.sectiontitle {
  margin: 30px 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.exercises {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.exercise {
  padding: 20px 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  display: grid;
  place-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
}
.exercise .bubble {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #edf3e7;
}
.exercise:nth-child(2) .bubble {
  background: #fbecdb;
}
.exercise:nth-child(3) .bubble {
  background: #e7eafb;
}
.exercise:nth-child(4) .bubble {
  background: #f4e5e8;
}
.exercise:nth-child(5) .bubble {
  background: #e0efef;
}
.listening {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  background: #e8eee1;
  border: 0;
}
.play {
  width: 49px;
  height: 49px;
  background: white;
  border-radius: 50%;
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.listening .text {
  flex: 1;
}
.pills {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 4px;
  margin: 22px 0;
}
.pill {
  white-space: nowrap;
  padding: 11px 16px;
  border-radius: 30px;
  background: white;
  border: 1px solid var(--line);
  color: #6c7971;
  font-size: 12px;
}
.pill.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.module {
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 19px;
}
.module-art {
  width: 100%;
  height: 150px;
  display: block;
}
.module-body {
  padding: 17px;
}
.module-body h3 {
  margin: 7px 0;
}
.module-body .bar {
  height: 4px;
  margin: 14px 0 9px;
}
.module-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}
.status {
  color: #b18234;
}
.status.done {
  color: var(--green);
}
.coach {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #eaf1df;
  border: 0;
}
.coach p {
  font-size: 12px;
}
.progressgrid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.skillrow {
  display: grid;
  grid-template-columns: 100px 1fr 34px;
  gap: 15px;
  align-items: center;
  width: 100%;
  background: none;
  padding: 12px 0;
  text-align: left;
  font-size: 12px;
}
.skillrow .bar {
  margin: 0;
  height: 6px;
}
.skillrow:first-of-type .bar span {
  background: #e7ac61;
}
.phoneme {
  background: #faf7ed;
  border: 1px solid #eee7ce;
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
}
.phoneme strong {
  font-size: 24px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.stat {
  padding: 20px 12px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 25px;
  margin-bottom: 5px;
}
.rank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.rank:last-child {
  border: 0;
}
.rank .avatar {
  width: 31px;
  height: 31px;
  font-size: 11px;
}
.rank .name {
  flex: 1;
}
.rank.you {
  background: #edf3e4;
  margin: 6px -12px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
}
.settings {
  max-width: 640px;
  margin: auto;
}
.setting {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.setting:last-child {
  border: 0;
}
.setting label {
  font-size: 12px;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}
.setting input,
.setting select {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  width: 100%;
  color: var(--ink);
}
.segmented {
  display: flex;
  background: #eef1e9;
  border-radius: 11px;
  padding: 4px;
  gap: 4px;
}
.segmented button {
  flex: 1;
  padding: 11px 5px;
  border-radius: 8px;
  background: none;
  font-size: 11px;
}
.segmented button.active {
  background: white;
  box-shadow: 0 2px 7px #1b412310;
  color: var(--green);
  font-weight: 700;
}
.bottomnav {
  display: none;
}
.lesson {
  max-width: 640px;
  margin: auto;
}
.lessonhead {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 24px;
}
.circlebtn {
  background: white;
  border: 1px solid var(--line);
  height: 38px;
  width: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.stepper {
  display: flex;
  gap: 5px;
  flex: 1;
}
.stepper span {
  height: 5px;
  background: #dde4d7;
  border-radius: 5px;
  flex: 1;
}
.stepper span.active {
  background: var(--green);
}
.lesson .card {
  margin-top: 18px;
}
.word {
  font-size: 42px;
  letter-spacing: -1.5px;
  margin: 16px 0 3px;
}
.sound {
  display: inline-flex;
  background: #e9f1e0;
  color: var(--green);
  padding: 9px 15px;
  border-radius: 30px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.quote {
  padding: 20px;
  background: #f1f4ec;
  border-radius: 14px;
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.5;
}
.feedback {
  margin-top: 16px;
  background: #eaf2df;
  border-radius: 13px;
  padding: 16px;
  line-height: 1.6;
  font-size: 12px;
}
.mic {
  margin: 30px auto 18px;
  background: var(--green);
  color: white;
  border: 9px solid #e9f0e1;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.mic .icon {
  width: 30px;
  height: 30px;
}
.wave {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 16px 0;
}
.wave i {
  width: 4px;
  border-radius: 10px;
  background: #9abe8e;
}
.mouths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.mouth {
  background: #f1f4eb;
  padding: 14px;
  border-radius: 14px;
  text-align: center;
}
.mouth svg {
  width: 100%;
  height: 95px;
  display: block;
}
.modalback {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #142d2bb3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(7px);
}
.modal {
  background: var(--paper);
  border-radius: 26px;
  max-width: 420px;
  width: 100%;
  padding: 30px;
  position: relative;
}
.modal h2 {
  font-size: 27px;
  line-height: 1.25;
  margin: 18px 0 12px;
}
.modal .close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: none;
  font-size: 20px;
}
.modal .btn {
  margin-top: 12px;
}
.checklist {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  font-size: 12px;
}
.checklist div:before {
  content: "✓";
  margin-right: 10px;
  color: var(--green);
  font-weight: 800;
}
.notice {
  font-size: 10px;
  line-height: 1.6;
  color: #7f8b7d;
  margin-top: 15px;
}
.mocktools {
  position: fixed;
  bottom: 18px;
  left: 22px;
  z-index: 12;
  width: 190px;
  display: flex;
  gap: 7px;
}
.mocktools button {
  background: #dbe5d3;
  border: 1px solid #cdd9c7;
  padding: 8px;
  border-radius: 8px;
  font-size: 10px;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 14px;
  padding: 14px 22px;
  z-index: 40;
  font-size: 12px;
  max-width: 90%;
  text-align: center;
}
.overview {
  display: grid;
  grid-template-columns: repeat(5, 350px);
  gap: 24px;
  padding: 30px;
  align-items: start;
  overflow: auto;
}
.overview iframe {
  width: 350px;
  height: 820px;
  border: 7px solid #253b35;
  border-radius: 35px;
  background: var(--paper);
}
.overview label {
  font: 700 13px Manrope;
  display: block;
  margin: 0 0 12px 8px;
}
.overview-title {
  padding: 35px 38px 0;
}
.overview-title p {
  margin-top: 10px;
}
.mobile-brand {
  display: none;
}
.completion {
  text-align: center;
  padding: 35px 20px;
}
.completion .fred {
  width: 115px;
  height: 115px;
  margin-bottom: 20px;
}
.module-lesson {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: none;
  width: 100%;
  text-align: left;
}
.module-lesson .num {
  height: 36px;
  width: 36px;
  background: #edf2e5;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--green);
}
.module-lesson .desc {
  flex: 1;
}
.module-lesson h3 {
  font-size: 13px;
  margin-bottom: 5px;
}
@media (min-width: 1500px) {
  .workspace {
    margin-right: auto;
    margin-left: 236px;
    max-width: none;
  }
  .content {
    max-width: 1200px;
  }
}
@media (max-width: 1100px) {
  .desktop {
    width: 195px;
    padding: 30px 18px;
  }
  .workspace {
    margin-left: 195px;
  }
  .topbar {
    padding: 0 28px;
  }
  .content {
    padding: 30px 28px;
  }
  .modules {
    grid-template-columns: repeat(2, 1fr);
  }
  .mocktools {
    left: 16px;
    width: 170px;
  }
  .hero .fred {
    width: 100px;
    height: 100px;
    right: 8px;
  }
  .hero h2 {
    font-size: 24px;
    max-width: 210px;
  }
  .hero p {
    max-width: 180px;
  }
}
@media (max-width: 700px) {
  body {
    background: var(--paper);
  }
  .desktop,
  .breadcrumbs,
  .topactions > .avatar,
  .topactions > .level,
  .mocktools {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 76px;
    padding: 12px 22px;
    border: 0;
    gap: 10px;
    background: var(--paper);
  }
  .mobile-brand {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .logo {
    font-size: 21px;
  }
  .brandmark {
    width: 29px;
    height: 29px;
    border-radius: 10px;
  }
  .topactions {
    gap: 0;
  }
  .content {
    padding: 13px 22px 110px;
  }
  .pagehead {
    margin-bottom: 23px;
  }
  .pagehead h1 {
    font-size: 28px;
  }
  .pagehead p {
    font-size: 12px;
    margin-top: 7px;
  }
  .homegrid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .hero {
    min-height: 220px;
    padding: 23px;
  }
  .hero h2 {
    font-size: 27px;
    max-width: 220px;
    margin: 10px 0;
  }
  .hero p {
    max-width: 200px;
  }
  .hero .fred {
    width: 115px;
    height: 115px;
    right: 7px;
    bottom: 35px;
  }
  .hero .btn {
    margin-top: 22px;
    font-size: 12px;
    padding: 12px 16px;
  }
  .card {
    padding: 20px;
    border-radius: 20px;
  }
  .goalcard {
    padding: 19px;
  }
  .goalcard .bar {
    margin: 12px 0;
  }
  .goal-num {
    font-size: 28px;
  }
  .days {
    margin-top: 16px;
  }
  .sectiontitle {
    margin: 25px 0 13px;
  }
  h2 {
    font-size: 18px;
  }
  .exercises {
    gap: 7px;
  }
  .exercise {
    padding: 12px 1px;
    font-size: 9px;
    gap: 9px;
    border-radius: 13px;
  }
  .exercise .bubble {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }
  .exercise .icon {
    width: 19px;
    height: 19px;
  }
  .listening {
    padding: 17px;
    gap: 12px;
  }
  .listening h3 {
    font-size: 14px;
  }
  .listening .small {
    font-size: 10px;
  }
  .listening > .icon {
    display: none;
  }
  .play {
    height: 42px;
    width: 42px;
  }
  .bottomnav {
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 78px;
    padding: 10px 10px max(15px, env(safe-area-inset-bottom));
    background: #fffffff5;
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--line);
    z-index: 10;
  }
  .bottomnav button {
    background: transparent;
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 55px;
    color: #899388;
    font-size: 9px;
    padding: 3px 6px;
  }
  .bottomnav button.active {
    color: var(--green);
    font-weight: 700;
  }
  .bottomnav button.active .icon {
    background: #e8f1df;
    box-sizing: content-box;
    border-radius: 9px;
    padding: 3px;
    margin: -3px;
  }
  .pills {
    margin: 20px -22px;
    padding: 0 22px 5px;
    gap: 7px;
  }
  .pill {
    padding: 10px 13px;
    font-size: 11px;
  }
  .modules {
    gap: 12px;
  }
  .module-art {
    height: 114px;
  }
  .module-body {
    padding: 12px;
  }
  .module-body h3 {
    font-size: 13px;
    line-height: 1.4;
    min-height: 35px;
  }
  .module-meta {
    font-size: 9px;
  }
  .module .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .module-body p {
    font-size: 10px;
  }
  .module .tag {
    font-size: 8px;
  }
  .progressgrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 16px 8px;
  }
  .stat b {
    font-size: 22px;
  }
  .stat .tiny {
    font-size: 9px;
  }
  .skillrow {
    grid-template-columns: 92px 1fr 30px;
    gap: 10px;
  }
  .lesson .card {
    padding: 21px;
  }
  .lessonhead {
    margin-top: 5px;
  }
  .lesson h1 {
    font-size: 27px;
  }
  .word {
    font-size: 38px;
  }
  .quote {
    font-size: 17px;
  }
  .toast {
    bottom: 94px;
  }
  .settings .card {
    padding: 20px;
  }
  .overview {
    padding: 20px;
    gap: 20px;
  }
  .overview-title {
    padding: 25px 20px 0;
  }
  .overview-title h1 {
    font-size: 26px;
  }
  .module-lesson {
    padding: 16px 0;
  }
}

/* Application layout: compact, readable, and independent from the marketing theme. */
:root {
  --muted: #536c6b;
  --line: #ccd7cc;
}
body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--paper);
}
h1,
h2,
h3,
.logo {
  font-family: inherit;
}
a {
  color: var(--green);
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.skip-app {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 100;
}
.skip-app:focus {
  top: 10px;
  background: white;
  padding: 12px;
}
.content {
  max-width: 1050px;
  margin: 0 auto;
  padding: 18px 22px 100px;
}
.topbar {
  height: 80px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.header-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
}
.header-action .icon {
  width: 20px;
  height: 20px;
}
.brand-home {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-fred-image {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
}
.logo {
  color: var(--ink);
  font-weight: 850;
}
.logo span {
  color: var(--green);
}
.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 40px;
}
.side-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
}
.side-nav button.active {
  background: var(--green);
  color: white;
}
.side-note {
  margin-top: auto;
  font-size: 13px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  border-radius: 13px;
  padding: 13px 18px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.35;
  min-height: 44px;
}
.btn.outline {
  background: white;
  color: var(--green);
  border-color: #94b2a7;
}
.btn.full {
  width: 100%;
}
.link {
  color: var(--green);
  background: transparent;
  text-decoration: none;
  font-weight: 650;
  padding: 8px 0;
}
.skip {
  display: block;
  margin: 8px auto;
  text-align: center;
}
.pagehead {
  margin-bottom: 20px;
}
.pagehead p {
  margin-top: 7px;
}
.small,
.notice {
  font-size: 13px;
}
.notice {
  color: var(--muted);
  line-height: 1.55;
  margin-top: 12px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 22px;
}
.row {
  flex-wrap: wrap;
}
.bar {
  height: 6px;
  border-radius: 8px;
  background: #e7ece3;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 8px;
}
.home-summary {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 2fr);
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 16px;
}
.weekly-compact {
  border-right: 1px solid var(--line);
  padding-right: 12px;
}
.weekly-compact > .small,
.last-seven > .small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  margin: 0 0 8px;
}
.weekly-compact .row {
  gap: 3px;
  margin-bottom: 8px;
}
.weekly-compact strong {
  font-size: 18px;
}
.weekly-compact .small {
  font-size: 11px;
}
.weekly-compact > .small {
  font-size: 13px;
}
.days {
  display: flex;
  justify-content: space-between;
  gap: 3px;
  margin: 0;
}
.day {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.day span {
  display: grid;
  place-items: center;
  border: 1px solid #a0b49d;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  font-size: 12px;
}
.day.done span {
  background: #e1efd6;
  color: var(--green);
}
.home-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.home-greeting .fred {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}
.home-greeting h1 {
  font-size: 26px;
  letter-spacing: -0.8px;
}
.home-greeting p {
  margin-top: 4px;
}
.next-lesson {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #185647;
  color: white;
  padding: 18px;
}
.next-lesson p {
  font-size: 14px;
  margin: 0 0 7px;
}
.next-lesson h2 {
  font-size: 15px;
  letter-spacing: 0;
}
.next-lesson h2 span {
  margin: 0 5px;
}
.resume-button {
  width: 37px;
  min-height: 37px;
  height: 37px;
  padding: 0;
  background: white;
  color: #185647;
  border: 0;
  border-radius: 11px;
  flex-shrink: 0;
}
.resume-button .icon {
  width: 18px;
  height: 18px;
}
.quick-practice-heading {
  margin: 28px 0 15px;
}
.quick-practice-heading p {
  margin-top: 5px;
  color: var(--muted);
}
.daily-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.daily-shortcut {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 11px;
  min-height: 108px;
  padding: 15px 8px;
  border: 1px solid #a4bca1;
  border-radius: 20px;
  background: white;
}
.daily-shortcut b {
  font-size: 15px;
}
.daily-shortcut .bubble {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #e8efdc;
}
.daily-shortcut:nth-child(2) .bubble {
  background: #faecd7;
}
.daily-shortcut:nth-child(3) .bubble {
  background: #e9e5f6;
}
.daily-shortcut:nth-child(4) .bubble {
  background: #f5e4e9;
}
.learn-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
}
.learn-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 10px 6px;
  min-height: 44px;
  border: 1px solid #9fb79c;
  border-radius: 13px;
  background: white;
  color: #23433e;
  font-size: 14px;
  font-weight: 650;
}
.learn-tab.active,
.segmented .active,
.progress-tabs .active,
.focus-tabs .active {
  background: var(--green);
  color: white;
}
.learn-tab .icon {
  width: 20px;
  height: 20px;
}
.level-filter {
  margin: 15px 0 24px;
  scroll-margin-top: 90px;
}
.level-filter label {
  display: block;
  margin-bottom: 9px;
}
.segmented {
  display: flex;
  padding: 4px;
  gap: 4px;
  border-radius: 15px;
  background: #e2e8db;
  border: 1px solid #becbb6;
}
.segmented button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 10px 5px;
  min-height: 42px;
  background: transparent;
  border-radius: 11px;
  color: #2d4944;
  font-weight: 600;
  font-size: 13px;
}
.segmented button.active {
  background: var(--green);
  color: white;
}
.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.module {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: white;
  padding: 0;
}
.module-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.module-body {
  padding: 12px;
}
.module-body h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 9px 0;
}
.module-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 8px 0;
}
.module-lessons-meta .icon {
  width: 14px;
  height: 14px;
}
.module-status.complete {
  color: #287c36;
}
.module-status.started {
  color: #b17915;
}
.module .bar {
  height: 4px;
}
.module-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 18px;
}
.module-detail-thumb {
  width: 110px;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 13px;
}
.module-detail-header h1 {
  font-size: 24px;
  letter-spacing: -0.5px;
  margin: 4px 0;
}
.lesson-list {
  margin-top: 18px;
  padding: 8px 14px;
}
.module-lesson {
  gap: 10px;
  padding: 14px 0;
}
.module-lesson:last-child {
  border: 0;
}
.module-lesson .desc h3 {
  font-size: 15px;
}
.module-lesson .num {
  flex-shrink: 0;
}
.lesson {
  max-width: 740px;
  margin: auto;
}
.lesson-intro-header {
  margin: 8px 0 18px;
}
.lesson-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lesson-heading-row p {
  flex: 1;
  min-width: 0;
}
.lesson-back {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--green);
}
.lesson-intro-header h1 {
  font-size: 25px;
  margin-top: 9px;
}
.lesson-intro-header p .icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}
.theory-card {
  padding: 16px;
  margin: 12px 0 16px;
}
.theory-card p {
  margin-bottom: 12px;
  font-size: 16px;
}
.theory-card p:last-child {
  margin: 0;
}
/* Shared compact header for quizzes, listening and speaking practice. */
.lesson-practice-header {
  margin: 0 0 16px;
}
.practice-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
}
.practice-heading-copy {
  flex: 1;
  min-width: 0;
}
.practice-heading-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.35;
}
.practice-heading-subtitle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.practice-count {
  flex-shrink: 0;
  border-radius: 20px;
  padding: 5px 11px;
  background: #e2eee8;
  color: var(--green);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.practice-progress {
  height: 4px;
  background: var(--line);
  overflow: hidden;
}
.practice-progress > span {
  display: block;
  height: 100%;
  background: var(--green);
  transition: width .18s ease;
}
.lesson-practice-header + .card {
  margin-top: 0;
}
@media (max-width: 700px) {
  .practice-progress {
    margin-inline: -14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .practice-progress > span {
    transition: none;
  }
}
.lesson-index {
  display: inline-block;
  margin-right: 5px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.quiz-question-heading {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
}
.quiz-question-heading h1 {
  flex: 1;
  min-width: 0;
}
.quiz-question-heading .audio-mini {
  flex: 0 0 32px;
  margin: 2px 0 0 auto;
}
.quiz-question h1 {
  font-size: 21px;
  letter-spacing: -0.4px;
  line-height: 1.4;
}
.quiz-choices {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}
.quiz-choice {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #c1ccbf;
  border-radius: 13px;
  background: #fff;
}
.quiz-choice .answer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-align: left;
  background: none;
  border: 0;
  border-radius: inherit;
  margin: 0;
  min-width: 0;
  padding: 12px;
  font-size: 15px;
  min-height: 48px;
}
.quiz-choice .answer:disabled {
  opacity: 1;
  cursor: default;
}
.answer > span {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 11px;
  border-radius: 8px;
  background: #edf2e8;
  padding: 5px;
}
.quiz-choice.correct {
  background: #e3f3f9;
  border-color: #78b7c7;
}
.quiz-choice.wrong {
  background: #fff6da;
  border-color: #d9bd65;
}
.audio-mini {
  background: #eaf1e6;
  color: #176958;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-right: 6px;
}
.audio-mini .icon {
  width: 14px;
  height: 14px;
}
.quiz-feedback {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 13px;
  margin-top: 12px;
}
.quiz-feedback.is-correct {
  background: #e7f5fc;
}
.quiz-feedback.is-wrong {
  background: #fff5d9;
}
.quiz-feedback .feedback-fred {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.quiz-feedback p {
  font-size: 13px;
  margin-top: 3px;
}
.quiz-view > .btn {
  margin-top: 12px;
}
.listen-player {
  margin-top: 12px;
}
.speech-phrase {
  background-color: #fff6dd;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 23px;
  line-height: 1.4;
  text-align: center;
  font-weight: 500;
  margin: 9px 0 12px;
}
.voice-instruction {
  font-weight: 700;
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
}
.voice-original {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 9px 0 12px;
}
.voice-original .audio-mini {
  margin: 0;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}
.voice-original .speech-phrase {
  margin: 0;
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.voice-recording-card .mic {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 15px auto 8px;
  border-radius: 50%;
  background: #176958;
  color: white;
}
.mic .icon {
  width: 34px;
  height: 34px;
}
.voice-recording-card .btn {
  margin-top: 10px;
}
.voice-loading {
  min-height: 20px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}
.not-ready {
  opacity: 0.6;
}
.speech-audio-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 25px 0 16px;
}
.speech-audio-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 6px;
  width: 100%;
  min-height: 50px;
  border: 1px solid #9ab5a7;
  background: white;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  color: #176958;
}
.speech-audio-ipa {
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
  margin-top: 7px;
}
.speech-verdict {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff5d9;
  border-radius: 18px;
  padding: 13px;
}
.speech-verdict > img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}
.speech-verdict > div {
  flex: 1;
  min-width: 0;
}
.speech-verdict h2 {
  font-size: 19px;
}
.speech-verdict p {
  font-size: 13px;
  margin-top: 5px;
}
.app-score {
  --ring: #d4a224;
  background: conic-gradient(var(--ring) var(--score), #e6e6d9 0);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  animation: score-in 0.7s ease-out;
}
.app-score.good {
  --ring: #329858;
}
.app-score b {
  background: white;
  width: 55px;
  height: 55px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  font-size: 20px;
  text-align: center;
  line-height: 1.1;
}
.app-score small {
  font-size: 10px;
  font-weight: 400;
}
.speech-result-actions {
  display: flex;
  gap: 10px;
  margin: 13px 0;
}
.speech-result-actions .btn {
  flex: 1;
}
.speech-word-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.speech-word {
  border: 1px solid #dbcfa1;
  background: #fff9e9;
  padding: 10px;
  border-radius: 16px;
  min-width: 0;
}
.speech-word.correct {
  background: #edf8f0;
  border-color: #add3b4;
}
.speech-word h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.speech-correct-mouth {
  margin: 0;
  text-align: center;
}
.speech-correct-mouth img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: white;
  border-radius: 9px;
}
.speech-correct-mouth figcaption {
  font-size: 10px;
  margin-top: 5px;
}
.speech-phonemes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 12px;
  margin-top: 8px;
}
.needs-practice {
  color: #8c5e08;
}
.matched {
  color: #237147;
}
.speech-correction {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 8px;
  font-size: 14px;
  background: white;
}
.result-heading {
  margin: 23px 0 12px;
}
.progress-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 18px;
}
.progress-tabs button {
  border: 1px solid #a4b99e;
  background: white;
  border-radius: 13px;
  min-height: 44px;
  padding: 10px 5px;
  font-size: 13px;
  font-weight: 650;
}
.focus-card {
  padding: 17px 12px;
}
.focus-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 15px 0;
}
.focus-tabs button {
  font-size: 12px;
  padding: 10px 5px;
  background: #eef3e8;
  border-radius: 10px;
  color: #254c42;
}
.focus-tip {
  display: grid;
  gap: 5px;
  padding: 13px 5px;
  border-bottom: 1px solid var(--line);
}
.focus-tip span {
  font-size: 13px;
  color: var(--muted);
}
.phoneme-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}
.focus-card h3 {
  margin-top: 20px;
}
details summary {
  cursor: pointer;
  color: var(--green);
  padding: 12px 0;
  font-weight: 600;
}
.radar {
  max-width: 400px;
  margin: 18px auto;
}
.radar svg {
  display: block;
  width: 100%;
}
.radar text {
  font: 11px system-ui;
  fill: #355951;
}
.radar-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13px;
}
.radar-values span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.result-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
}
.result-totals b {
  display: block;
  font-size: 24px;
  margin-bottom: 5px;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 5px;
  border-bottom: 1px solid var(--line);
}
.rank-row > span {
  flex: 1;
}
.rank-row strong {
  white-space: nowrap;
}
.rank-row .icon,
.leaderboard-guest .icon {
  width: 16px;
  height: 16px;
  color: #192d30;
}
.rank-row.own {
  margin-top: 20px;
  background: #e9f2de;
  border-radius: 12px;
}
.nowrap {
  white-space: nowrap;
}
.leaderboard-guest {
  padding: 20px 0 0;
}
.leaderboard-guest p {
  font-size: 14px;
  margin-bottom: 9px;
}
.leaderboard-guest .link {
  font-size: 13px;
}
.account-summary {
  margin-bottom: 20px;
}
.account-summary p {
  margin: 10px 0 15px;
}
.account-form {
  display: grid;
  gap: 16px;
}
.account-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.account-form input,
.account-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #a8bda6;
  background: white;
  border-radius: 12px;
  color: #25443c;
}
.account-form .notice {
  margin: 0;
}
.completion > .fred {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 15px;
}
.completion .btn {
  margin-top: 20px;
}
.modal-open {
  overflow: hidden;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #123b34a8;
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade-in 0.2s ease-out;
}
.pro-modal {
  position: relative;
  max-width: 420px;
  padding: 26px;
  background: white;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 100px #102e3540;
  animation: modal-in 0.25s ease-out;
}
.pro-modal .fred {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 16px;
}
.pro-modal h2 {
  font-size: 25px;
}
.pro-modal p {
  font-size: 15px;
  margin: 12px 0 20px;
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  font-size: 26px;
}
.tag {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 8px;
  background: #edf2e4;
  font-size: 12px;
}
.startup-error {
  max-width: 600px;
  margin: 15vh auto;
  padding: 24px;
}
.startup-error p {
  margin: 18px 0;
}
.situation-filter {
  margin-bottom: 22px;
}
.sectiontitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 22px 0 12px;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes score-in {
  from {
    transform: scale(0.85);
    opacity: 0.5;
  }
}
@media (max-width: 700px) {
  .topbar {
    padding: 10px 14px;
    height: 76px;
  }
  .content {
    padding: 10px 14px 100px;
  }
  .modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .module-body {
    padding: 10px;
  }
  .module-body h3 {
    font-size: 14px;
  }
  .pagehead h1 {
    font-size: 28px;
  }
  .pagehead p {
    font-size: 14px;
  }
  .lesson .card {
    padding: 14px 12px;
  }
  .lesson-intro-header h1 {
    font-size: 23px;
  }
  .lesson-intro-header {
    margin-bottom: 14px;
  }
  .speech-word-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bottomnav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: auto;
    min-height: 72px;
    padding: 12px 8px max(12px, env(safe-area-inset-bottom));
    width: 100%;
    box-sizing: border-box;
  }
  .bottomnav button {
    min-width: 0;
    font-size: 11px;
  }
  .module-detail-header h1 {
    font-size: 21px;
  }
  .module-detail-thumb {
    width: 94px;
  }
  .quiz-question h1 {
    font-size: 20px;
  }
  .home-greeting h1 {
    font-size: 24px;
  }
  .weekly-compact strong {
    font-size: 17px;
  }
  .day {
    font-size: 10px;
  }
  .home-summary {
    gap: 10px;
    padding: 14px 12px;
  }
  .speech-audio-button {
    font-size: 13px;
  }
  .result-totals {
    font-size: 11px;
  }
  .result-totals b {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.voice-loading:not(:empty) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  line-height: 1.5;
}
.voice-loading:not(:empty)::before {
  content: "";
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 3px solid #dcebe5;
  border-top-color: #28a58a;
  border-right-color: #e6aa32;
  border-bottom-color: #628ed3;
  border-radius: 50%;
  animation: fred-analysis-spin 1s linear infinite;
}
@keyframes fred-analysis-spin {
  to { transform: rotate(360deg); }
}
@keyframes fred-app-mic-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: no-preference) {
  .voice-recording-card .mic:not(:disabled):not(.is-recording) {
    animation: fred-app-mic-float 2.4s ease-in-out infinite;
  }
  .voice-recording-card .mic:hover,
  .voice-recording-card .mic:focus-visible {
    animation-play-state: paused;
  }
}
.recent-analysis {
  margin-bottom: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .voice-loading:not(:empty)::before {
    animation: none;
  }
}

/* Final responsive foundations, without accumulated mockup overrides. */
.home-summary {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
}
.weekly-compact {
  width: auto;
  min-width: 0;
}
.last-seven {
  padding: 0;
  border: 0;
  min-width: 0;
}
.weekly-compact > .small,
.last-seven > .small {
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  margin-bottom: 8px;
}
.days {
  margin: 0;
}
.lesson .card {
  padding: 16px;
}
.topbar > .mobile-brand {
  display: none;
}
.desktop .brand-home {
  margin-bottom: 5px;
}
.bottomnav {
  display: none;
}
@media (max-width: 700px) {
  .topbar > .mobile-brand {
    display: flex;
  }
  .home-summary {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .lesson .card {
    padding: 14px 12px;
  }
  .bottomnav {
    display: grid;
  }
  .last-seven .day span {
    width: 20px;
    height: 20px;
  }
  .home-greeting h1 {
    line-height: 1.25;
  }
}
@media (max-width: 350px) {
  .home-summary {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 9px;
  }
  .weekly-compact {
    padding-right: 7px;
  }
  .weekly-compact > .small,
  .last-seven > .small {
    font-size: 12px;
  }
  .day span {
    width: 18px;
    height: 18px;
  }
  .day {
    font-size: 9px;
  }
  .learn-tab {
    font-size: 13px;
    gap: 5px;
    padding: 10px 4px;
  }
  .learn-tab .icon {
    width: 18px;
    height: 18px;
  }
}
.module-body h3,
.quiz-question h1,
.quiz-choice .answer,
.speech-word h3 {
  overflow-wrap: anywhere;
}
.rank-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.header-actions {
  flex-shrink: 0;
}
.speech-correction p {
  width: 100%;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.app-score {
  outline: 1px solid var(--ring);
  outline-offset: 2px;
}
.app-score.needs-work b {
  color: #8c6509;
}
.app-score.good b {
  color: #237147;
}

/* Progress and practice refinements. */
.weekly-compact .bar {
  margin: 0;
}
#recording-timer {
  text-align: center;
  width: 100%;
}
.home-practice-note {
  line-height: 1.65;
}
.progress-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.progress-tabs .icon {
  width: 20px;
  height: 20px;
}
.focus-tip {
  background: #ffffeb;
  border: 1px solid #dce6d8;
  border-radius: 16px;
  padding: 16px;
  gap: 9px;
  margin: 12px 0;
}
.focus-tip > b {
  font-size: 17px;
  line-height: 1.35;
}
.focus-tip > span {
  color: #48655d;
  font-weight: 600;
}
.focus-practice {
  justify-self: start;
  padding: 9px 12px;
  font-size: 13px;
  min-height: 40px;
  margin-top: 3px;
}
.radar-values > .skill-result {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  background: #f2f7ef;
  border: 1px solid #dce6d8;
  border-radius: 14px;
  padding: 12px;
  min-width: 0;
}
.skill-result-icon {
  display: grid;
  place-items: center;
  color: var(--green);
}
.skill-result-icon .icon {
  width: 22px;
  height: 22px;
}
.radar-values .skill-result > span {
  display: block;
  font-weight: 600;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.skill-result > b {
  grid-column: 2;
  font-size: 24px;
  line-height: 1.1;
  color: var(--green);
}
.leaderboard-guest {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dce6d8;
  border-radius: 16px;
  background: #f2f7ef;
}
.leaderboard-join {
  margin: 12px 0;
  font-size: 14px;
  text-align: center;
}
.module {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.module-thumb {
  flex-shrink: 0;
}

.listen-player {
  margin: 0 0 14px;
}

.app-loading {
  --loader-size: min(240px, 60vw, 60svh);
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: var(--paper);
}
.loading-mascot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: var(--loader-size);
  height: var(--loader-size);
}
.loading-mascot::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #dce8d5;
  border-top-color: #176958;
  border-radius: 50%;
  animation: fs-loading-ring 2s linear infinite;
}
.loading-mascot img {
  display: block;
  width: 85%;
  height: 85%;
  object-fit: contain;
  border-radius: 50%;
}
.loading-dots {
  position: absolute;
  top: calc(50% + var(--loader-size) / 2 + 20px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.loading-dots i {
  width: 6px;
  height: 6px;
  background: #176958;
  border-radius: 50%;
  animation: fs-loading-dot 1.2s ease-in-out infinite;
}
.loading-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.loading-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes fs-loading-ring {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fs-loading-dot {
  50% {
    transform: translateY(-4px);
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-mascot::before,
  .loading-mascot img,
  .loading-dots i {
    animation: none;
  }
}

.heard-ipa .ipa-correct {
  color: #18713d;
  font-weight: 650;
}
.heard-ipa .ipa-incorrect {
  color: #bc3038;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #e7a2a6;
  text-underline-offset: 4px;
}

/* Safe theory formatting for the imported Grammar curriculum. */
.theory-card { line-height: 1.75; overflow-wrap: anywhere; }
.theory-card > :first-child { margin-top: 0; }
.theory-card > :last-child { margin-bottom: 0; }
.theory-card p { margin: 0 0 1em; }
.theory-card blockquote { margin: 1.15em 0; padding: 1em 1.1em; border-left: 4px solid #176958; border-radius: 0 12px 12px 0; background: #f1f7f3; color: #203e33; }
.theory-card blockquote p:last-child { margin-bottom: 0; }
.theory-card strong { font-weight: 700; }
.theory-card ul, .theory-card ol { padding-left: 1.4em; margin: 1em 0; }

/* A red stop square replaces the microphone only while recording. */
.mic.is-recording { background: #fff1f2; color: #c62828; box-shadow: 0 0 0 7px #fbe2e4; }
.mic .record-stop-square { display: block; width: 28px; height: 28px; border-radius: 3px; background: #c62828; }

.withdrawal-modal{width:min(560px,calc(100% - 32px));max-height:85vh;overflow:auto;border:1px solid #d6e3dd;border-radius:20px;padding:28px;color:#183f34;background:#fff;font:inherit;box-sizing:border-box}.withdrawal-modal::backdrop{background:rgba(10,32,25,.55)}.withdrawal-modal h2{margin-top:0}.withdrawal-modal label{display:grid;gap:8px}.withdrawal-modal select{max-width:100%;width:100%;padding:10px;font:inherit}.withdrawal-modal p{overflow-wrap:anywhere}.withdrawal-modal .row{flex-wrap:wrap;gap:12px}.withdrawal-modal [role=alert]{color:#9a2929}

/* Listening transcript preference applies to every listening exercise. */
.listen-transcription-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink);
}
.listen-transcription-switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 26px;
  padding: 3px;
  border: 1px solid #819790;
  border-radius: 999px;
  background: #dce4df;
  cursor: pointer;
}
.listen-transcription-switch > span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0003;
  transition: transform .18s ease;
}
.listen-transcription-switch[aria-checked="true"] {
  background: #176958;
  border-color: #176958;
}
.listen-transcription-switch[aria-checked="true"] > span { transform: translateX(18px); }
.listen-transcription-switch:focus-visible { outline: 3px solid #c5a342; outline-offset: 3px; }
.listen-transcript {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-left: 3px solid #176958;
  border-radius: 4px;
  background: #f3f7f2;
  color: #183c44;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.listen-transcript[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .listen-transcription-switch > span { transition: none; }
}

.speech-phonetics { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; margin: 0 0 1.25rem; }
.speech-phonetics .listen-transcription-control { justify-content: center; }
.speech-ipa { order: -1; text-align: center; font-family: "Segoe UI", Arial, sans-serif; font-size: 1.2rem; line-height: 1.6; overflow-wrap: anywhere; margin: .5rem 0; color: #365c50; }
.speech-ipa[hidden] { display: none; }
