:root {
  color-scheme: light;
  --ink: #193530;
  --muted: #536b61;
  --line: #d4e3da;
  --paper: #fffefa;
  --canvas: #f2f7f1;
  --green: #246b54;
  --green-soft: #e4f2e9;
  --choice: #edf3f6;
  --choice-line: #52718a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-width: 0; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; line-height: 1.5; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #236f9f; outline-offset: 3px; }
.site-head { width: min(100%, 704px); margin: 0 auto; padding: 14px clamp(16px, 4vw, 28px) 0; }
.site-head nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.site-head a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-weight: 700; text-decoration: none; }
.english-shell { width: min(100%, 704px); min-height: calc(100dvh - 58px); margin: 0 auto; padding: clamp(16px, 4vw, 28px); }
.english-card { min-width: 0; padding: clamp(20px, 5vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 14px 44px rgba(24, 65, 42, .07); }
h1, h2, p, figure { margin: 0; }
h1 { font-size: clamp(1.65rem, 6vw, 2.2rem); line-height: 1.25; word-break: keep-all; }
.eyebrow { margin-bottom: 12px; color: var(--green); font-size: .92rem; font-weight: 750; }
.landing h1 { margin-bottom: 26px; }
.start-options { display: grid; gap: 12px; }
.start-card { display: grid; gap: 5px; width: 100%; min-height: 88px; padding: 14px 18px; border: 1.5px solid #a9cbb8; border-radius: 16px; background: #f8fbf6; color: var(--ink); text-align: left; }
.start-card:hover { border-color: var(--green); background: var(--green-soft); }
.start-card span { color: var(--muted); font-size: .9rem; }
.start-card strong { font-size: 1.14rem; }
.primary, .quiet { min-height: 52px; padding: 11px 18px; border-radius: 14px; font-weight: 750; }
.primary { border: 1px solid var(--green); background: var(--green); color: #fff; }
.primary:hover:not(:disabled) { background: #185642; }
.quiet { border: 1px solid #abc8b7; background: #fff; color: var(--ink); }
.quiet:hover:not(:disabled) { background: #f0f7f1; }
.full { width: 100%; }
.level-settings { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.page-status { margin-top: 18px; color: var(--muted); font-weight: 650; }
.level-settings summary { min-height: 44px; padding: 8px 0; color: var(--green); font-weight: 700; cursor: pointer; }
.level-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; }
.level-row label { flex: none; font-weight: 650; }
#catalog-size { margin-top: 14px; color: var(--muted); }
.level-row select { min-height: 44px; min-width: 0; width: min(65%, 22rem); padding: 6px 10px; border: 1px solid #a9cbb8; border-radius: 10px; background: #fff; }
.lesson-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.position { min-width: 0; color: var(--muted); font-size: .9rem; font-weight: 650; }
.lesson-top .quiet { flex: none; min-height: 44px; padding: 7px 12px; font-size: .91rem; white-space: nowrap; }
.lesson h1 { margin-bottom: 20px; }
.context-ko { margin: 0 0 18px; padding: 12px 15px; border-left: 4px solid #8ebd9a; border-radius: 0 12px 12px 0; background: #f3f8f2; font-weight: 650; word-break: keep-all; }
.prompt { margin-bottom: 20px; font-size: 1.1rem; font-weight: 650; word-break: keep-all; }
.scene-figure { margin-bottom: 20px; }
.scene-figure img { display: block; width: 100%; max-height: 240px; aspect-ratio: 16 / 9; border-radius: 16px; background: #e4ece4; object-fit: cover; }
.scene-figure figcaption { margin-top: 6px; color: var(--muted); font-size: .8rem; }
.stimulus { margin: 10px 0 20px; padding: 18px 16px; border-radius: 16px; background: #f2f7f0; font-size: clamp(1.3rem, 5.5vw, 1.8rem); font-weight: 750; text-align: center; overflow-wrap: anywhere; }
.meaning-ko { margin: -10px 0 20px; color: var(--muted); text-align: center; font-weight: 650; word-break: keep-all; }
.listen { width: 100%; }
.audio-status { min-height: 1.5em; margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.transcript { margin: 8px 0; font-size: 1.1rem; font-weight: 650; overflow-wrap: anywhere; }
.options { display: grid; gap: 10px; margin-top: 16px; }
.option-row { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 8px; align-items: stretch; }
.option { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 56px; padding: 9px 12px; border: 1.5px solid #a9cbb8; border-radius: 14px; background: #fff; color: var(--ink); text-align: left; font-weight: 700; overflow-wrap: anywhere; }
.option.is-selected { border-color: var(--choice-line); background: var(--choice); }
.option-number { display: inline-grid; flex: none; place-items: center; min-width: 28px; height: 28px; border-radius: 9px; background: #edf4ee; font-size: .92rem; }
.option.is-selected .option-number { background: #dbe8ee; }
.option-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.option-en { font-size: 1.08rem; line-height: 1.3; }
.option-ko { font-size: .91rem; font-weight: 550; color: var(--muted); }
.option-listen { min-width: 52px; min-height: 52px; padding: 5px; border: 1.5px solid #a9cbb8; border-radius: 14px; background: #fff; color: var(--green); font-size: 1.2rem; }
.option-listen:hover { background: #f0f7f1; }
.writing { margin-top: 16px; }
.writing label { display: block; margin-bottom: 8px; font-weight: 700; }
.writing input { display: block; width: 100%; min-height: 54px; padding: 10px 14px; border: 2px solid #9cbaaa; border-radius: 14px; color: var(--ink); background: #fff; font-size: 1.1rem; }
.feedback { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--green-soft); font-weight: 650; overflow-wrap: anywhere; }
.feedback small { display: block; color: var(--muted); font-size: .8rem; font-weight: 650; }
.feedback p[lang="en"] { font-size: 1.1rem; margin-top: 5px; }
.next { margin-top: 24px; }
.example { margin: 24px 0 30px; font-size: clamp(1.4rem, 6vw, 1.85rem); font-weight: 750; overflow-wrap: anywhere; }
.today-next { margin: 0 0 22px; color: var(--muted); }
@media (min-width: 580px) { .start-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 350px) { .site-head a, .position { font-size: .82rem; } .english-card { padding: 18px; } .option { padding: 8px; } }

.options > .meaning-ko { margin: 0; text-align: left; }

.learning-path { margin: -10px 0 24px; color: var(--muted); word-break: keep-all; }
.unit-panel { display: grid; gap: 8px; margin-bottom: 16px; }
.unit-row { width: 100%; min-height: 52px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 12px; text-align: left; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #f7faf6; overflow-wrap: anywhere; }
.unit-row strong { font-size: 1.15rem; }
.unit-row span[lang] { grid-column: 1; color: var(--muted); }
.unit-speaker { grid-column: 2; grid-row: 1 / 3; }
.other-words summary { min-height: 44px; padding: 10px 2px; cursor: pointer; color: var(--green); }
.other-words .unit-row + .unit-row, #finished-menu { margin-top: 8px; }
