:root {
  --ink: #06275a;
  --ink-soft: #667384;
  --jade: #00936f;
  --jade-dark: #00795c;
  --jade-soft: #eef8f5;
  --coral: #e77d67;
  --line: #d8dee5;
  --line-strong: #aeb9c6;
  --white: #ffffff;
  --font-ui: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --radius-control: 12px;
  --page-gutter: clamp(24px, 6vw, 48px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-ui);
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--white);
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--coral) 70%, white);
  outline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
}

.screen {
  width: min(100%, 853px);
  margin: 0 auto;
  padding: 42px var(--page-gutter) 120px;
}

.today-header,
.lesson-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.today-header h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.today-header p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 3.2vw, 30px);
  line-height: 1.35;
}

.icon-button {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.icon-button svg,
.chevron,
.bottom-nav svg,
.back-link svg,
.audio-controls svg,
.secondary-button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-button svg {
  width: 32px;
  height: 32px;
}

.day-progress {
  display: flex;
  align-items: center;
  gap: 52px;
  margin: 56px 0 70px;
}

.day-progress strong {
  flex: 0 0 auto;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 500;
  line-height: 1;
}

.day-progress strong span {
  color: var(--jade);
}

.progress-dots {
  display: flex;
  flex: 1;
  align-items: center;
}

.progress-dots i {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.progress-dots i.is-active {
  border-color: var(--jade);
  background: var(--jade);
}

.progress-dots b {
  height: 2px;
  flex: 1;
  background: var(--line);
}

.section-heading-row {
  position: relative;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

.section-heading-row h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.memory-mark {
  position: absolute;
  right: 0;
  bottom: -18px;
  width: min(33vw, 220px);
  color: color-mix(in srgb, var(--jade) 42%, white);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.word-focus {
  margin-top: 38px;
}

.word {
  margin: 0;
  font-size: clamp(72px, 17vw, 132px);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.ipa {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(24px, 4.6vw, 40px);
  line-height: 1.25;
}

.audio-button {
  display: grid;
  width: 64px;
  height: 64px;
  margin-top: 26px;
  border: 2px solid var(--jade);
  border-radius: 50%;
  color: var(--jade);
  background: var(--white);
  cursor: pointer;
  place-items: center;
}

.audio-button:hover,
.audio-button.is-speaking {
  color: var(--white);
  background: var(--jade);
}

.audio-button svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.example {
  margin: 30px 0 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(24px, 4.4vw, 38px);
  line-height: 1.35;
}

.example strong,
.lesson-example strong,
.feedback strong {
  color: var(--jade);
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--white);
  background: var(--jade);
  font-size: clamp(20px, 3.6vw, 30px);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--jade-dark);
}

.primary-button:disabled {
  color: #7a8795;
  background: #e8edf1;
  cursor: not-allowed;
}

.schedule {
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.schedule-item {
  position: relative;
  display: grid;
  min-height: 104px;
  grid-template-columns: 42px 1fr 32px;
  align-items: center;
  gap: 24px;
}

.schedule-item::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 66px;
  height: 1px;
  background: var(--line);
  content: "";
}

.schedule-item:last-child::after {
  display: none;
}

.schedule-marker {
  position: relative;
  width: 28px;
  height: 28px;
  justify-self: center;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
}

.schedule-item:not(:last-child) .schedule-marker::after {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 2px;
  height: 68px;
  background: var(--line);
  content: "";
  transform: translateX(-50%);
}

.schedule-item--current .schedule-marker {
  border-color: var(--jade);
  background: var(--jade);
}

.schedule-item--current .schedule-marker::after {
  background: var(--jade);
}

.schedule-item div {
  display: grid;
  gap: 5px;
}

.schedule-item time {
  color: var(--ink-soft);
  font-size: clamp(17px, 3vw, 25px);
}

.schedule-item span:not(.schedule-marker) {
  font-size: clamp(21px, 3.6vw, 31px);
}

.schedule-item--current time,
.schedule-item--current .chevron {
  color: var(--jade);
}

.chevron {
  width: 25px;
  height: 25px;
  color: #7e8996;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  min-height: 86px;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--white) 96%, transparent);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.bottom-nav a.is-active {
  color: var(--jade);
}

.bottom-nav a.is-active::before {
  position: absolute;
  top: 0;
  width: 62%;
  height: 3px;
  background: var(--jade);
  content: "";
}

.bottom-nav svg {
  width: 28px;
  height: 28px;
}

.lesson-screen {
  padding-bottom: 48px;
}

.lesson-header {
  align-items: center;
}

.lesson-header strong {
  position: absolute;
  left: 50%;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 500;
  transform: translateX(-50%);
}

.back-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: clamp(20px, 3.6vw, 28px);
  font-weight: 650;
  text-decoration: none;
}

.back-link svg {
  width: 32px;
  height: 32px;
}

.lesson-progress {
  height: 4px;
  margin: 30px 0 62px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e7ec;
}

.lesson-progress span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: var(--jade);
}

.lesson-label {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: clamp(18px, 3vw, 26px);
}

.lesson-word {
  margin: 0;
  font-size: clamp(82px, 19vw, 150px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.audio-controls {
  display: flex;
  gap: 14px;
  margin: 34px 0 54px;
}

.audio-controls button {
  display: inline-flex;
  min-width: 132px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font-size: clamp(18px, 3.2vw, 25px);
  cursor: pointer;
}

.audio-controls button:last-child,
.audio-controls button:hover,
.audio-controls button.is-speaking {
  border-color: var(--jade);
}

.question h2 {
  margin: 0;
  font-size: clamp(24px, 4.2vw, 35px);
  line-height: 1.25;
}

.lesson-example {
  margin: 24px 0 34px;
  font-size: clamp(22px, 3.8vw, 32px);
  line-height: 1.45;
}

.answer-list {
  display: grid;
  gap: 14px;
}

.answer-row {
  display: flex;
  width: 100%;
  min-height: 70px;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--white);
  font-size: clamp(20px, 3.6vw, 28px);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.answer-row:hover {
  border-color: var(--jade);
}

.answer-row.is-correct {
  border-color: var(--jade);
  color: var(--jade-dark);
  background: var(--jade-soft);
}

.answer-row.is-correct:focus-visible {
  outline-color: var(--jade);
}

.answer-row.is-incorrect {
  border-color: var(--coral);
}

.answer-check,
.feedback-check {
  display: none;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: var(--jade);
  place-items: center;
}

.answer-row.is-correct .answer-check,
.feedback-check {
  display: grid;
}

.answer-check svg,
.feedback-check svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius-control);
  background: var(--jade-soft);
}

.feedback[hidden] {
  display: none;
}

.feedback p {
  margin: 0;
  font-size: clamp(18px, 3.3vw, 26px);
  line-height: 1.45;
}

.secondary-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-size: clamp(18px, 3.2vw, 25px);
  font-weight: 600;
  cursor: pointer;
}

.translation {
  margin: 12px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--coral);
  color: var(--ink-soft);
  background: #fff8f5;
  font-size: 17px;
  line-height: 1.55;
}

.lesson-next {
  margin-top: 22px;
}

.review-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.daily-screen {
  padding-bottom: 64px;
}

.daily-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.daily-date {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.45;
}

.daily-header h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.daily-intro {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.8vw, 23px);
  line-height: 1.55;
}

.daily-total-progress {
  flex: 0 0 auto;
  margin-top: 52px;
  color: var(--ink-soft);
  font-size: 20px;
  font-weight: 600;
}

.daily-total-progress span {
  color: var(--jade);
}

.daily-schedule {
  display: grid;
  margin: 46px 0 68px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.daily-schedule a {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 92px;
  align-content: center;
  gap: 3px;
  padding: 14px 12px 14px 38px;
  color: var(--ink-soft);
  text-decoration: none;
}

.daily-schedule a:not(:last-child) {
  border-right: 1px solid var(--line);
}

.daily-schedule a.is-current {
  color: var(--ink);
  background: var(--jade-soft);
}

.daily-schedule a.is-current::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--jade);
  content: "";
}

.daily-schedule time {
  font-size: 15px;
  font-weight: 650;
}

.daily-schedule a > span:last-child {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-schedule__marker {
  position: absolute;
  top: 50%;
  left: 12px;
  display: grid;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transform: translateY(-50%);
  place-items: center;
}

.daily-schedule__marker svg {
  display: none;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.daily-schedule a.is-completed .daily-schedule__marker {
  border-color: var(--jade);
  color: var(--white);
  background: var(--jade);
}

.daily-schedule a.is-completed .daily-schedule__marker svg {
  display: block;
}

.daily-slot-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 17px;
}

.daily-slot-progress strong {
  color: var(--ink);
  font-weight: 650;
}

.daily-word-progress {
  margin: 14px 0 54px;
}

.daily-word-progress span {
  transition: width 220ms ease;
}

.daily-word-audio-controls {
  margin: 30px 0 18px;
}

.daily-word {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.daily-word.is-long {
  font-size: clamp(58px, 9vw, 86px);
  letter-spacing: -0.055em;
}

.daily-word.is-very-long {
  font-size: clamp(48px, 7.5vw, 70px);
}

.daily-example {
  max-width: 700px;
  margin-bottom: 16px;
}

.example-audio-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 30px;
  padding: 9px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}

.example-audio-button:hover,
.example-audio-button.is-speaking {
  border-color: var(--jade);
  color: var(--jade-dark);
}

.example-audio-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tts-fallback-note {
  margin: -6px 0 28px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.daily-word-answer {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.daily-definition-en {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 650;
  line-height: 1.4;
}

.daily-definition-zh {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: clamp(20px, 3.3vw, 27px);
  line-height: 1.5;
}

.daily-root-note {
  margin-top: 18px;
}

.daily-word-answer h3 {
  margin: 40px 0 18px;
  font-size: clamp(22px, 3.6vw, 30px);
}

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

.rating-grid button {
  display: flex;
  min-height: 88px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.rating-grid button:hover,
.rating-grid button:focus-visible {
  border-color: var(--jade);
}

.rating-grid button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.rating-grid strong {
  font-size: 18px;
}

.rating-grid span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
}

.daily-complete-state {
  padding: 46px 0 12px;
  text-align: center;
}

.daily-complete-state > span {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--jade);
  place-items: center;
}

.daily-complete-state svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.daily-complete-state h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
}

.daily-complete-state p {
  margin: 14px 0 28px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.daily-feedback {
  max-width: 720px;
  margin: 38px auto 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  text-align: left;
  background: #f7f8f5;
}

.daily-feedback.is-ready {
  border-color: color-mix(in srgb, var(--jade) 38%, var(--line));
  background: var(--jade-soft);
}

.daily-feedback .lesson-label {
  margin: 0 0 10px;
}

.daily-feedback h3 {
  margin: 0;
  font-size: clamp(20px, 3.5vw, 26px);
  line-height: 1.4;
}

.daily-feedback [data-feedback-result] > p {
  margin: 18px 0 0;
}

.daily-feedback-revision {
  display: grid;
  gap: 7px;
  padding: 18px;
  border-radius: var(--radius-control);
  background: var(--white);
}

.daily-feedback-revision span {
  color: var(--jade-dark);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.daily-feedback-revision strong {
  color: var(--ink);
  font-size: clamp(18px, 3vw, 23px);
  line-height: 1.45;
}

.daily-error {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--coral);
  color: #873f35;
  background: #fff8f5;
  font-size: 17px;
  line-height: 1.5;
}

.daily-open-content > .lesson-label {
  margin-bottom: 18px;
}

.daily-open-content > h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.daily-phrase {
  color: var(--jade-dark);
}

.daily-open-content .audio-controls {
  margin: 30px 0 38px;
}

.daily-support {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(20px, 3.3vw, 27px);
  line-height: 1.55;
}

.daily-open-content blockquote {
  margin: 32px 0 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--coral);
  font-size: clamp(23px, 3.8vw, 32px);
  line-height: 1.5;
}

.daily-response-form {
  margin-top: 54px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.daily-response-form label {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(21px, 3.5vw, 29px);
  font-weight: 680;
  line-height: 1.4;
}

.daily-response-form textarea {
  display: block;
  width: 100%;
  min-height: 138px;
  resize: vertical;
  padding: 18px 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--white);
  font: 500 19px/1.55 var(--font-ui);
}

.daily-response-form textarea:focus {
  border-color: var(--jade);
  outline: 3px solid color-mix(in srgb, var(--jade) 16%, transparent);
}

.daily-response-form .primary-button {
  margin-top: 20px;
}

.daily-form-note {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.voice-input {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #f7f8f5;
}

.voice-input.is-unavailable {
  border-style: dashed;
}

.voice-input .lesson-label {
  margin: 0 0 7px;
}

.voice-input h3 {
  margin: 0;
  font-size: clamp(19px, 3vw, 24px);
}

.voice-input > div:first-child > p:last-child {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.voice-input__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.voice-input__controls .secondary-button {
  min-height: 48px;
  padding: 10px 18px;
}

.voice-input__controls span,
.voice-input__status {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.voice-input audio {
  width: 100%;
  margin-top: 18px;
}

.voice-input__status {
  margin: 16px 0 0;
}

.daily-reading article {
  color: #163b69;
  font: 500 clamp(20px, 3.2vw, 27px)/1.75 Georgia, "Times New Roman", serif;
}

.daily-reading details {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.daily-reading summary {
  padding: 18px 0;
  color: var(--jade-dark);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.daily-reading details p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.daily-recall {
  text-align: center;
}

.recall-timer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: -8px;
}

.recall-timer strong {
  color: var(--jade);
  font-size: clamp(86px, 18vw, 138px);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 1;
}

.recall-timer span {
  color: var(--ink-soft);
  font-size: 22px;
}

.recall-start {
  width: min(100%, 360px);
  margin: 24px auto 44px;
}

.daily-recall ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0;
  list-style: none;
  counter-reset: recall;
  text-align: left;
}

.daily-recall li {
  position: relative;
  min-height: 76px;
  padding: 22px 0 22px 58px;
  border-bottom: 1px solid var(--line);
  counter-increment: recall;
  font-size: clamp(19px, 3.2vw, 26px);
  line-height: 1.48;
}

.daily-recall li::before {
  position: absolute;
  top: 20px;
  left: 0;
  display: grid;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--jade);
  border-radius: 50%;
  color: var(--jade);
  content: counter(recall);
  font-size: 16px;
  font-weight: 750;
  place-items: center;
}

.daily-recall .daily-response-form {
  text-align: left;
}

@media (max-width: 680px) {
  .daily-header {
    display: block;
  }

  .daily-total-progress {
    display: block;
    margin-top: 20px;
  }

  .daily-schedule {
    margin: 38px calc(var(--page-gutter) * -1) 52px;
  }

  .daily-schedule a {
    min-height: 82px;
    padding: 12px 4px;
    text-align: center;
  }

  .daily-schedule a > span:last-child {
    font-size: 13px;
  }

  .daily-schedule__marker {
    display: none;
  }

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

  .daily-word.is-long {
    font-size: clamp(38px, 10.2vw, 44px);
  }

  .daily-word.is-very-long {
    font-size: clamp(32px, 8.8vw, 38px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-word-progress span {
    transition: none;
  }
}

.diagnostic-screen {
  min-height: 100vh;
  padding-bottom: 56px;
}

.diagnostic-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.brand-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--jade);
  font-size: 18px;
  font-weight: 760;
  text-decoration: none;
}

.diagnostic-header h1,
.access-state h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.diagnostic-header > div > p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.8vw, 24px);
  line-height: 1.5;
}

.diagnostic-time {
  flex: 0 0 auto;
  margin: 54px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.diagnostic-progress {
  margin: 48px 0 52px;
}

.diagnostic-progress__labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 16px;
}

.diagnostic-progress__labels span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.diagnostic-progress__track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e7ec;
}

.diagnostic-progress__track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--jade);
  transition: width 220ms ease;
}

.diagnostic-loading {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 18px;
  text-align: center;
}

.diagnostic-loading span {
  width: 34px;
  height: 34px;
  border: 3px solid #dfe6e5;
  border-top-color: var(--jade);
  border-radius: 50%;
  animation: diagnostic-spin 700ms linear infinite;
}

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

.diagnostic-domain {
  margin: 0 0 18px;
  color: var(--jade);
  font-size: 18px;
  font-weight: 720;
}

.diagnostic-question h2,
.diagnostic-result h2,
.diagnostic-empty h2,
.diagnostic-error h2 {
  margin: 0;
  font-size: clamp(28px, 4.8vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.diagnostic-passage {
  margin: 0 0 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.diagnostic-passage p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 3.2vw, 27px);
  line-height: 1.65;
}

.diagnostic-question fieldset {
  padding: 0;
  margin: 34px 0 0;
  border: 0;
}

.diagnostic-choices {
  display: grid;
  gap: 12px;
}

.diagnostic-choice {
  position: relative;
  display: grid;
  min-height: 68px;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--white);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 620;
  line-height: 1.35;
  cursor: pointer;
}

.diagnostic-choice:hover,
.diagnostic-choice:has(input:checked) {
  border-color: var(--jade);
}

.diagnostic-choice:has(input:checked) {
  background: var(--jade-soft);
}

.diagnostic-choice input {
  position: absolute;
  opacity: 0;
}

.diagnostic-choice:has(input:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--coral) 70%, white);
  outline-offset: 3px;
}

.diagnostic-choice__marker {
  display: grid;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 760;
  place-items: center;
}

.diagnostic-choice:has(input:checked) .diagnostic-choice__marker {
  border-color: var(--jade);
  color: var(--white);
  background: var(--jade);
}

.diagnostic-note,
.diagnostic-disclaimer,
.diagnostic-noscript {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.diagnostic-submit {
  margin-top: 24px;
}

.diagnostic-result__intro,
.diagnostic-empty p,
.diagnostic-error p,
.access-state p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 3vw, 23px);
  line-height: 1.55;
}

.diagnostic-levels {
  display: grid;
  gap: 26px;
  margin-top: 42px;
}

.diagnostic-level > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  font-size: 18px;
}

.diagnostic-level strong {
  color: var(--jade-dark);
}

.diagnostic-level__track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebef;
}

.diagnostic-level__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--jade);
}

.diagnostic-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.diagnostic-summary p {
  display: grid;
  gap: 8px;
  padding: 24px;
  margin: 0;
}

.diagnostic-summary p + p {
  border-left: 1px solid var(--line);
}

.diagnostic-summary strong {
  font-size: clamp(28px, 5vw, 42px);
}

.diagnostic-summary span {
  color: var(--ink-soft);
  font-size: 15px;
}

.diagnostic-empty,
.diagnostic-error,
.access-state {
  padding-top: 18vh;
  text-align: center;
}

.diagnostic-empty .secondary-button,
.diagnostic-error .secondary-button {
  margin-top: 30px;
}

.access-state__mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 32px;
  border-radius: 50%;
  color: var(--jade);
  background: var(--jade-soft);
  place-items: center;
}

.access-state__mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-state p {
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
}

.daily-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.daily-footer a {
  color: var(--jade-dark);
  font-weight: 700;
  text-underline-offset: 4px;
}

.privacy-screen {
  min-height: 100vh;
  padding-bottom: 72px;
}

.privacy-header {
  max-width: 680px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.privacy-eyebrow {
  margin: 0 0 12px;
  color: var(--jade);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.privacy-header h1,
.privacy-deleted h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.privacy-header > p:last-child,
.privacy-deleted > p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2.7vw, 22px);
  line-height: 1.6;
}

.privacy-card {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-card__heading {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
}

.privacy-card__heading > span {
  color: var(--jade);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.privacy-card h2 {
  margin: -6px 0 8px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.025em;
}

.privacy-card__heading p,
.privacy-retained,
.privacy-help {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.privacy-list {
  display: grid;
  gap: 8px;
  margin: 24px 0 28px 42px;
  padding-left: 22px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.privacy-download {
  width: fit-content;
  min-height: 56px;
  margin-left: 42px;
  padding-right: 28px;
  padding-left: 28px;
  font-size: 18px;
  text-decoration: none;
}

.privacy-danger {
  border-bottom-color: color-mix(in srgb, var(--coral) 45%, var(--line));
}

.privacy-danger .privacy-card__heading > span {
  color: var(--coral);
}

.privacy-retained {
  margin: 24px 0 28px 58px;
}

.privacy-danger form {
  display: grid;
  gap: 12px;
  margin-left: 58px;
}

.privacy-danger label {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.privacy-danger code {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  color: #873728;
  background: #fff1ed;
  font-size: 0.88em;
}

.privacy-danger input {
  width: 100%;
  min-height: 56px;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.privacy-danger input:focus {
  border-color: var(--coral);
  outline: 3px solid color-mix(in srgb, var(--coral) 20%, white);
}

.privacy-help {
  font-size: 14px;
}

.privacy-error {
  margin: 0;
  color: #9b3526;
  font-weight: 700;
}

.danger-button {
  width: fit-content;
  min-height: 54px;
  margin-top: 8px;
  padding: 14px 22px;
  border: 1px solid #b84532;
  border-radius: var(--radius-control);
  color: var(--white);
  background: #b84532;
  font: inherit;
  font-size: 17px;
  font-weight: 720;
  cursor: pointer;
}

.danger-button:disabled {
  border-color: var(--line);
  color: var(--ink-soft);
  background: #eef1f4;
  cursor: not-allowed;
}

.privacy-note {
  margin-top: 32px;
  padding: 20px 22px;
  border-left: 3px solid var(--jade);
  background: var(--jade-soft);
}

.privacy-note p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.privacy-deleted {
  min-height: 100vh;
  padding-top: 18vh;
}

.privacy-deleted__mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 30px;
  border-radius: 50%;
  color: var(--jade);
  background: var(--jade-soft);
  place-items: center;
}

.privacy-deleted__mark svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.privacy-deleted .privacy-retained {
  margin-left: 0;
  font-size: 16px;
}

@media (min-width: 854px) {
  body {
    background: #f3f6f8;
  }

  .app-shell {
    width: min(100%, 853px);
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 0 1px rgb(6 39 90 / 5%);
  }

  .bottom-nav {
    right: auto;
    left: 50%;
    width: 853px;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .screen {
    padding-top: 24px;
  }

  .today-header h1 {
    font-size: 22px;
    letter-spacing: -0.025em;
    white-space: nowrap;
  }

  .today-header p {
    margin-top: 8px;
    font-size: 16px;
  }

  .today-header {
    gap: 12px;
  }

  .menu-button {
    width: 42px;
    height: 42px;
  }

  .day-progress {
    gap: 24px;
    margin: 28px 0 34px;
  }

  .progress-dots i {
    width: 20px;
    height: 20px;
  }

  .section-heading-row {
    min-height: 76px;
  }

  .section-heading-row h2 {
    font-size: 25px;
  }

  .memory-mark {
    width: 118px;
  }

  .word {
    font-size: 68px;
  }

  .word-focus {
    margin-top: 24px;
  }

  .word-focus .ipa {
    margin-top: 14px;
    font-size: 23px;
  }

  .audio-button {
    width: 56px;
    height: 56px;
    margin-top: 18px;
  }

  .example {
    margin: 20px 0 22px;
    padding-top: 20px;
    font-size: 22px;
  }

  .today-screen .primary-button {
    min-height: 58px;
    font-size: 20px;
  }

  .schedule {
    margin-top: 30px;
  }

  .schedule-item {
    min-height: 92px;
    grid-template-columns: 34px 1fr 28px;
    gap: 16px;
  }

  .schedule-item::after {
    left: 50px;
  }

  .audio-controls button {
    min-width: 0;
    flex: 1;
  }

  .lesson-progress {
    margin: 18px 0 36px;
  }

  .lesson-label {
    margin-bottom: 14px;
  }

  .lesson-word {
    font-size: 72px;
  }

  .lesson-screen > .ipa {
    margin-top: 14px;
    font-size: 23px;
  }

  .audio-controls {
    margin: 24px 0 34px;
  }

  .question h2 {
    font-size: 23px;
  }

  .lesson-example {
    margin: 18px 0 24px;
    font-size: 21px;
  }

  .answer-list {
    gap: 10px;
  }

  .answer-row {
    min-height: 60px;
    padding: 12px 18px;
    font-size: 20px;
  }

  .feedback {
    gap: 14px;
    margin-top: 16px;
    padding: 16px;
  }

  .feedback p {
    font-size: 18px;
  }

  .secondary-button {
    min-height: 54px;
    margin-top: 14px;
    font-size: 19px;
  }

  .lesson-next {
    min-height: 58px;
    margin-top: 16px;
  }

  .diagnostic-screen {
    padding-bottom: 44px;
  }

  .diagnostic-header {
    align-items: flex-start;
    gap: 18px;
  }

  .diagnostic-header h1 {
    margin-top: 14px;
    font-size: 34px;
  }

  .diagnostic-header p {
    font-size: 16px;
  }

  .diagnostic-time {
    padding: 8px 10px;
    font-size: 13px !important;
    white-space: nowrap;
  }

  .diagnostic-progress {
    margin: 34px 0 40px;
  }

  .diagnostic-question h2,
  .diagnostic-result h2,
  .diagnostic-empty h2,
  .diagnostic-error h2 {
    font-size: 28px;
  }

  .diagnostic-passage {
    padding: 20px 0;
  }

  .diagnostic-passage p {
    font-size: 20px;
  }

  .diagnostic-question fieldset {
    margin-top: 28px;
  }

  .diagnostic-choice {
    min-height: 62px;
    grid-template-columns: 36px 1fr;
    gap: 13px;
    padding: 12px 15px;
    font-size: 18px;
  }

  .diagnostic-choice__marker {
    width: 32px;
    height: 32px;
  }

  .diagnostic-submit {
    min-height: 58px;
    font-size: 20px;
  }

  .diagnostic-levels,
  .diagnostic-summary {
    margin-top: 34px;
  }

  .diagnostic-summary p {
    padding: 20px 14px;
  }

  .diagnostic-summary strong {
    font-size: 27px;
  }

  .diagnostic-empty,
  .diagnostic-error,
  .access-state {
    padding-top: 12vh;
  }

  .daily-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-top: 48px;
  }

  .privacy-header {
    padding-bottom: 28px;
  }

  .privacy-card {
    padding: 30px 0;
  }

  .privacy-card__heading {
    grid-template-columns: 34px 1fr;
    gap: 10px;
  }

  .privacy-list,
  .privacy-download {
    margin-left: 34px;
  }

  .privacy-retained,
  .privacy-danger form {
    margin-left: 44px;
  }

  .privacy-download,
  .danger-button {
    width: 100%;
  }

  .privacy-deleted {
    padding-top: 12vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
