:root {
  --ink: #183332;
  --ink-soft: #4b6260;
  --paper: #f7f5ef;
  --paper-deep: #ece9df;
  --card: #fffdf8;
  --teal: #123b3a;
  --teal-2: #1b5b56;
  --mint: #d8ede5;
  --yellow: #f4d06f;
  --coral: #ed8c6b;
  --line: #e4e2d8;
  --shadow: 0 14px 40px rgba(18, 59, 58, .08);
  --radius: 22px;
  font-family: 'DM Sans', 'Noto Sans SC', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 86% 0%, rgba(244,208,111,.16), transparent 24rem), var(--paper); }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(237,140,107,.55); outline-offset: 3px; }
.app-shell { min-height: 100vh; padding-bottom: 88px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; max-width: 1160px; padding: 0 24px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px 11px 11px 4px; background: var(--teal); color: var(--yellow); font-weight: 800; font-size: 17px; }
.brand strong { display: block; letter-spacing: -.02em; font-size: 14px; }
.brand small { display: block; color: var(--ink-soft); font-size: 10px; margin-top: 2px; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--teal); font-size: 21px; }
.page-wrap { max-width: 1160px; margin: 0 auto; padding: 18px 24px 64px; }
.view { display: none; animation: rise .32s ease both; }
.view.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow, .kicker { color: var(--teal-2); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; }
.kicker { margin: 0 0 10px; letter-spacing: .05em; text-transform: none; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(32px, 5vw, 58px); line-height: .98; letter-spacing: -.055em; max-width: 630px; margin-bottom: 14px; }
h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.03em; }
.muted { color: var(--ink-soft); line-height: 1.7; }
.hero-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px 0 26px; }
.hero-heading p { max-width: 470px; }
.progress-orb { flex: 0 0 auto; display: grid; place-items: center; width: 86px; height: 86px; border: 8px solid var(--mint); border-top-color: var(--teal); border-right-color: var(--yellow); border-radius: 50%; color: var(--teal); font-weight: 800; font-size: 15px; transform: rotate(-18deg); }
.progress-orb span { transform: rotate(18deg); }
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 680px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.stats-strip div { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); padding-left: 18px; }
.stats-strip div:first-child { padding-left: 0; }
.stats-strip div:last-child { border: 0; }
.stats-strip strong { font-size: 25px; letter-spacing: -.06em; }
.stats-strip span { color: var(--ink-soft); font-size: 11px; }
.today-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-bottom: 44px; }
.card, .study-block { background: rgba(255,253,248,.82); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card { padding: 26px; }
.lesson-card { background: var(--teal); color: #f8f4e9; border-color: var(--teal); position: relative; overflow: hidden; }
.lesson-card:after { content: ''; position: absolute; width: 190px; height: 190px; border: 1px solid rgba(244,208,111,.4); border-radius: 50%; right: -70px; bottom: -100px; box-shadow: 0 0 0 19px rgba(244,208,111,.08), 0 0 0 39px rgba(244,208,111,.05); }
.lesson-card .card-label { color: var(--yellow); }
.lesson-card h2 { font-size: 29px; max-width: 440px; margin: 25px 0 10px; }
.lesson-card p { max-width: 420px; margin-bottom: 22px; color: #cbe1d9; }
.card-label { color: var(--teal-2); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; position: relative; z-index: 1; }
.label-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--yellow); border-radius: 50%; }
.soft-note { color: #77908c; font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.lesson-card .soft-note { color: #a7c7bd; }
.tag-row, .keyword-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 23px; }
.tag, .keyword, .time-chip, .count-pill { display: inline-flex; align-items: center; border-radius: 99px; padding: 6px 10px; font-size: 11px; font-weight: 700; }
.tag { background: rgba(255,255,255,.1); color: #d9ebe2; }
.primary-btn, .checkin-btn { border: 0; border-radius: 12px; padding: 13px 16px; font-weight: 800; display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; transition: transform .2s, box-shadow .2s, background .2s; }
.primary-btn { background: var(--yellow); color: var(--teal); min-width: 190px; position: relative; z-index: 1; }
.primary-btn:hover, .checkin-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(18,59,58,.15); }
.routine-card { padding-bottom: 17px; }
.routine-list { margin-top: 22px; }
.routine-list > div { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); align-items: center; }
.routine-num, .step-index { font-size: 11px; color: var(--coral); font-weight: 800; letter-spacing: .08em; }
.routine-list b { display: block; font-size: 14px; }
.routine-list small { display: block; color: var(--ink-soft); font-size: 11px; margin-top: 3px; }
.section-heading, .block-head, .subnav, .lesson-footer, .retell-actions, .listen-controls { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.section-heading { margin-bottom: 15px; }
.section-heading h2 { margin: 5px 0 0; }
.count-pill { background: var(--mint); color: var(--teal); }
.task-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.task-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line); background: var(--card); border-radius: 15px; transition: border .2s, background .2s; }
.task-item.done { background: var(--mint); border-color: #bcd9cf; }
.task-item input { appearance: none; width: 20px; height: 20px; flex: 0 0 20px; margin: 0; border: 1.5px solid #9cb5ae; border-radius: 6px; background: transparent; position: relative; }
.task-item input:checked { border-color: var(--teal); background: var(--teal); }
.task-item input:checked:after { content: '✓'; color: var(--yellow); font-size: 14px; position: absolute; left: 3px; top: -1px; font-weight: 800; }
.task-item span { font-size: 13px; line-height: 1.45; }
.task-item small { display: block; color: var(--ink-soft); font-size: 10px; margin-top: 4px; }
.task-item.done span { text-decoration: line-through; opacity: .7; }
.checkin-btn { width: 100%; margin-top: 15px; background: var(--teal); color: #fffdf8; justify-content: center; }
.checkin-btn:disabled { background: #d5d7d0; color: #8b9891; cursor: not-allowed; box-shadow: none; transform: none; }
.center-note { text-align: center; color: #82928d; font-size: 11px; margin: 10px 0 0; }
.coach-note { display: flex; gap: 14px; align-items: flex-start; padding: 17px 18px; margin-top: 24px; background: #f1ead0; border-radius: 15px; color: var(--teal); }
.note-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); font-weight: 900; }
.coach-note b { font-size: 12px; }
.coach-note p { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: #5f6e67; }
.subnav { color: var(--ink-soft); font-size: 12px; margin-bottom: 34px; }
.back-btn, .text-btn, .next-btn, .outline-btn { border: 0; background: transparent; color: var(--teal-2); font-weight: 800; padding: 7px 0; }
.lesson-page-head { margin-bottom: 28px; }
.lesson-page-head h1 { font-size: clamp(31px, 5vw, 51px); margin-top: 9px; }
.study-block { padding: 24px; margin: 16px 0; box-shadow: 0 8px 25px rgba(18,59,58,.05); }
.block-head { align-items: flex-start; }
.block-head > div { display: flex; gap: 11px; align-items: baseline; }
.block-head h2 { margin: 0; }
.time-chip { background: var(--paper-deep); color: var(--ink-soft); font-weight: 600; }
.instruction { margin: 13px 0 17px 26px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.audio-card { display: flex; align-items: center; gap: 14px; padding: 17px; border-radius: 15px; background: var(--teal); color: #fffdf8; }
.audio-card > div:nth-child(2) { flex: 1; }
.audio-card b, .audio-card small { display: block; }
.audio-card small { color: #afd0c5; margin-top: 4px; font-size: 11px; }
.audio-wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.audio-wave i { display: block; width: 3px; height: 11px; background: var(--yellow); border-radius: 4px; animation: wave 1.1s ease-in-out infinite alternate; animation-play-state: paused; }
.audio-wave i:nth-child(2), .audio-wave i:nth-child(6) { height: 22px; animation-delay: .18s; }.audio-wave i:nth-child(3), .audio-wave i:nth-child(5) { height: 29px; animation-delay: .34s; }.audio-wave i:nth-child(4) { height: 15px; animation-delay: .48s; }
.audio-card.playing .audio-wave i { animation-play-state: running; }
@keyframes wave { to { transform: scaleY(.45); opacity: .65; } }
.play-btn { display: grid; place-items: center; width: 43px; height: 43px; border: 0; border-radius: 50%; background: var(--yellow); color: var(--teal); font-size: 15px; }
.listen-controls { margin: 9px 3px 0; font-size: 11px; }
.transcript-card { border-left: 3px solid var(--yellow); padding-left: 16px; }
.transcript-line { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.transcript-line:last-child { border-bottom: 0; }
.transcript-line button { border: 0; background: none; padding: 0; text-align: left; color: var(--teal); font-weight: 700; font-size: 16px; line-height: 1.45; }
.transcript-line p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; }
.vocab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vocab-card { padding: 15px; background: var(--paper); border-radius: 13px; border: 1px solid var(--line); }
.vocab-card b { font-size: 16px; color: var(--teal); }.vocab-card .meaning { margin-left: 5px; color: var(--coral); font-size: 11px; }.vocab-card p { margin: 7px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink-soft); }
.shadow-list { display: grid; gap: 8px; }
.shadow-line { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.shadow-line button { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--teal); background: transparent; color: var(--teal); font-size: 11px; }.shadow-line span { font-size: 13px; line-height: 1.45; }
.keyword { background: var(--mint); color: var(--teal); }
.retell-input { width: 100%; resize: vertical; min-height: 80px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); padding: 12px; line-height: 1.6; font-size: 13px; }
.retell-actions { justify-content: flex-start; margin-top: 11px; gap: 17px; }.outline-btn { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 12px; }.success-note { color: #327f63; font-size: 11px; margin: 10px 0 0; }
.transfer-card { padding: 18px; background: var(--mint); border-radius: 15px; }.transfer-card small { display: block; color: #5e7770; font-size: 11px; margin-bottom: 4px; }.transfer-intro { margin-bottom: 12px; }.work-ladder { display: grid; gap: 8px; }.work-step { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 11px; background: rgba(255,253,248,.78); }.work-step > span { color: var(--coral); font-size: 10px; font-weight: 800; }.work-step > div { flex: 1; }.work-step strong { color: var(--teal); font-size: 15px; }.work-step p { margin: 4px 0 0; font-size: 12px; line-height: 1.4; }.work-step small { margin-top: 4px; }.work-step button { width: 27px; height: 27px; border: 1px solid var(--teal); border-radius: 50%; background: transparent; color: var(--teal); font-size: 10px; }.advanced-note { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(24,51,50,.2); }.advanced-note b, .advanced-note span { display: block; }.advanced-note b { color: #6b8079; font-size: 10px; }.advanced-note span { margin-top: 4px; color: #6b8079; font-size: 12px; }
.quiz-box { padding: 18px; background: var(--paper); border-radius: 15px; }.quiz-box p { font-weight: 700; line-height: 1.55; }.quiz-options { display: grid; gap: 8px; }.quiz-option { text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 13px; }.quiz-option.correct { border-color: #74af91; background: #e4f2e8; }.quiz-option.wrong { border-color: #e4a08a; background: #fff0e9; }.quiz-feedback { min-height: 18px; color: var(--ink-soft); font-size: 11px; margin: 9px 0 0; }
.check-block .instruction { margin-bottom: 12px; }.check-card { padding: 15px; margin-top: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }.check-card h3 { margin: 0 0 8px; font-size: 13px; }.fill-sentence { color: var(--teal); font-size: 17px; font-weight: 800; letter-spacing: .01em; margin: 9px 0 12px; }.fill-row { display: flex; gap: 8px; }.fill-input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--card); padding: 10px; color: var(--ink); font-size: 13px; }.check-btn { border: 0; border-radius: 9px; background: var(--teal); color: #fffdf8; padding: 10px 12px; font-size: 12px; font-weight: 800; }.check-feedback { min-height: 17px; margin: 8px 0 0; color: var(--ink-soft); font-size: 11px; }.check-feedback.good { color: #327f63; }.check-feedback.try { color: #b86d52; }.voice-line { color: var(--teal); font-size: 17px; font-weight: 800; margin: 9px 0; }.voice-note { color: var(--ink-soft); font-size: 11px; line-height: 1.5; margin: 0 0 10px; }.voice-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }.voice-feedback { color: var(--ink-soft); font-size: 11px; line-height: 1.5; }.voice-feedback.good { color: #327f63; }.voice-feedback.try { color: #b86d52; }
.lesson-footer { padding: 18px 0 6px; }.lesson-footer .checkin-btn { width: auto; padding-left: 22px; padding-right: 22px; }.next-btn { border: 1px solid var(--teal); padding: 11px 15px; border-radius: 11px; }
.intro-copy { max-width: 510px; margin-bottom: 25px; }.course-overview { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 18px; }.course-overview h2 { margin: 9px 0 7px; }.course-overview p { color: var(--ink-soft); font-size: 12px; margin: 0; }.mini-progress { text-align: right; white-space: nowrap; }.mini-progress strong, .mini-progress span { display: block; }.mini-progress strong { font-size: 26px; }.mini-progress span { color: var(--ink-soft); font-size: 11px; margin-top: 2px; }.course-list { display: grid; gap: 9px; }.course-row { display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); }.course-row.current { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,59,58,.06); }.course-row.done { background: var(--mint); }.course-row .course-number { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; border-radius: 50%; background: var(--paper-deep); color: var(--teal); font-weight: 800; font-size: 12px; }.course-row.done .course-number { background: var(--teal); color: var(--yellow); }.course-row > div:nth-child(2) { flex: 1; }.course-row b { font-size: 14px; display: block; }.course-row small { color: var(--ink-soft); display: block; margin-top: 3px; font-size: 11px; }.course-row button { border: 0; background: transparent; color: var(--teal-2); font-weight: 800; font-size: 12px; }
.review-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 24px 0; }.review-summary div { padding: 16px; background: var(--teal); border-radius: 15px; color: #fffdf8; }.review-summary strong, .review-summary span { display: block; }.review-summary strong { color: var(--yellow); font-size: 25px; }.review-summary span { color: #b9d3ca; font-size: 10px; margin-top: 4px; }.review-content { display: grid; gap: 12px; }.empty-review { padding: 28px 20px; text-align: center; border: 1px dashed #b7c5be; border-radius: 17px; color: var(--ink-soft); }.empty-review strong { display: block; color: var(--teal); margin-bottom: 8px; }.review-group { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); }.review-group h3 { margin: 0 0 11px; font-size: 14px; }.review-group p { margin: 6px 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }.review-group button { border: 0; background: transparent; padding: 0; color: var(--teal-2); font-weight: 800; }
.bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; height: 72px; display: flex; justify-content: center; gap: min(11vw, 78px); padding: 9px 18px calc(9px + env(safe-area-inset-bottom)); background: rgba(255,253,248,.94); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }.nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; color: #82928d; border: 0; background: transparent; font-size: 10px; }.nav-item span { font-size: 21px; line-height: 25px; }.nav-item b { font-size: 10px; }.nav-item.active { color: var(--teal); }.nav-item.active span { color: var(--coral); }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 90px; transform: translate(-50%, 15px); padding: 11px 15px; border-radius: 11px; background: var(--teal); color: #fffdf8; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; white-space: nowrap; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 760px) { .bottom-nav { position: static; height: auto; border: 0; background: transparent; backdrop-filter: none; margin: -30px auto 0; padding: 0 24px 30px; max-width: 1160px; justify-content: flex-start; gap: 28px; }.nav-item { flex-direction: row; gap: 6px; min-width: auto; font-size: 11px; }.nav-item span { font-size: 16px; }.page-wrap { padding-top: 28px; }.lesson-page-head { max-width: 700px; } }
@media (max-width: 640px) { .topbar { padding: 0 18px; }.page-wrap { padding: 12px 18px 48px; }.hero-heading { padding-top: 23px; align-items: center; }.hero-heading h1 { font-size: 39px; }.progress-orb { width: 72px; height: 72px; border-width: 7px; font-size: 12px; }.today-grid { grid-template-columns: 1fr; }.card { padding: 21px; }.task-list { grid-template-columns: 1fr; }.lesson-card h2 { font-size: 26px; }.study-block { padding: 19px 17px; }.instruction { margin-left: 0; }.block-head { align-items: center; }.block-head h2 { font-size: 18px; }.time-chip { padding: 5px 8px; font-size: 10px; }.vocab-grid { grid-template-columns: 1fr 1fr; }.lesson-footer { align-items: stretch; flex-direction: column; }.lesson-footer .checkin-btn { width: 100%; }.next-btn { text-align: center; }.course-overview { align-items: flex-start; flex-direction: column; }.mini-progress { text-align: left; }.review-summary div { padding: 13px 11px; }.review-summary strong { font-size: 21px; }.review-summary span { font-size: 9px; } }
