:root {
  --navy: #14213d;
  --navy-soft: #20345d;
  --mint: #30c59b;
  --mint-light: #e7f8f3;
  --cream: #f7f4ee;
  --white: #fff;
  --ink: #172039;
  --muted: #6f7789;
  --line: #e5e7ec;
  --shadow: 0 18px 50px rgba(23, 32, 57, .09);
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 90% 0%, rgba(48,197,155,.14), transparent 32rem),
    var(--cream);
}
button { font: inherit; }
button:focus-visible { outline: 3px solid rgba(48,197,155,.45); outline-offset: 3px; }
.app-shell { width: min(100%, 620px); margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 20px max(30px, env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: var(--navy); color: white; font: 800 24px Georgia, serif; box-shadow: 0 8px 20px rgba(20,33,61,.18); }
.topbar h1 { margin: 2px 0 0; font-size: 20px; letter-spacing: -.04em; }
.eyebrow { margin: 0; color: var(--mint); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.library-chip, .starter-chip { border: 0; border-radius: 999px; padding: 9px 12px; color: var(--navy); background: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; box-shadow: 0 5px 20px rgba(23,32,57,.06); white-space: nowrap; }
.starter-chip { margin-left: auto; color: white; background: var(--navy); }
.library-chip { margin-left: auto; color: #16765c; background: var(--mint-light); }
.starter-chip + .library-chip { margin-left: 0; }
.header-library-action { margin-left: auto; border: 1px solid rgba(4,91,65,.26); border-radius: 16px; padding: 12px 16px; color: white; background: linear-gradient(135deg, #087f5b, #0ca678); font-size: 11px; font-weight: 850; box-shadow: 0 9px 24px rgba(5,112,80,.28); white-space: nowrap; }
.header-library-action:hover { background: linear-gradient(135deg, #066c4d, #099268); }
.progress-row { margin: 30px 2px 18px; }
.progress-row > div:first-child { display: flex; justify-content: space-between; align-items: end; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.progress-row strong { color: var(--navy); font-size: 12px; }
.progress-track { height: 7px; border-radius: 99px; overflow: hidden; background: rgba(20,33,61,.09); }
.progress-bar { width: 12.5%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), #74d7bb); transition: width .35s ease; }
.prompt-card { position: relative; padding: 25px 23px 21px; border: 1px solid rgba(255,255,255,.8); border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.card-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.card-label span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px var(--mint-light); }
.korean-prompt { margin: 25px 0 18px; font-size: clamp(22px, 6.2vw, 31px); line-height: 1.42; font-weight: 800; letter-spacing: -.055em; word-break: keep-all; }
.text-button { border: 0; padding: 5px 0; color: var(--navy-soft); background: transparent; font-size: 12px; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.prompt-help-actions { display: flex; align-items: center; gap: 18px; }
.answer-button { color: #16765c; }
.hint { margin: 12px 0 0; padding: 12px 14px; border-radius: 13px; background: var(--mint-light); color: #28735f; font-size: 13px; }
.answer-text { margin: 12px 0 0; padding: 14px 16px; border: 1px solid rgba(48,197,155,.25); border-radius: 13px; color: var(--navy); background: #f3fbf8; font-size: 15px; font-weight: 800; line-height: 1.55; }
.example-answers { margin-top: 10px; padding: 13px 14px; border-radius: 13px; color: #205f4e; background: #e9f8f2; font-size: 11px; line-height: 1.55; }
.example-answers strong { display: block; margin-bottom: 5px; font-size: 10px; }
.example-answers ul { margin: 0; padding-left: 18px; }
.example-answers li + li { margin-top: 4px; }
.practice-panel { display: flex; flex-direction: column; align-items: center; padding: 42px 10px 18px; text-align: center; }
.status-orb { position: relative; width: 108px; height: 108px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); box-shadow: 0 12px 35px rgba(20,33,61,.25), 0 0 0 12px rgba(20,33,61,.06); transition: .25s ease; }
.mic-icon { width: 25px; height: 37px; border: 3px solid white; border-radius: 14px; position: relative; }
.mic-icon::before { content: ""; position: absolute; left: 50%; bottom: -12px; width: 38px; height: 23px; transform: translateX(-50%); border: 3px solid white; border-top: 0; border-radius: 0 0 22px 22px; }
.mic-icon::after { content: ""; position: absolute; left: 50%; bottom: -20px; width: 3px; height: 10px; transform: translateX(-50%); background: white; box-shadow: -8px 9px 0 -1px white, 8px 9px 0 -1px white; }
.practice-panel.is-recording .status-orb { background: #ef5d64; box-shadow: 0 12px 35px rgba(239,93,100,.28), 0 0 0 13px rgba(239,93,100,.09); animation: pulse 1.5s infinite; }
.practice-panel.is-loading .status-orb { animation: breathe 1.2s infinite alternate; }
.practice-panel h2 { margin: 30px 0 8px; font-size: 19px; }
.practice-panel > p { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.record-button, .primary-button, .secondary-button { border: 0; border-radius: 16px; font-weight: 800; cursor: pointer; }
.record-button { min-width: 185px; padding: 15px 22px; color: white; background: var(--navy); box-shadow: 0 10px 24px rgba(20,33,61,.18); }
.record-button:disabled { opacity: .55; cursor: wait; }
.button-dot { width: 8px; height: 8px; display: inline-block; margin-right: 9px; border-radius: 50%; background: var(--mint); }
.is-recording .button-dot { background: white; }
.result-panel { margin-top: 22px; padding: 24px 20px; border-radius: 26px; background: white; box-shadow: var(--shadow); }
.score-head { display: flex; align-items: center; gap: 18px; }
.score-ring { width: 82px; height: 82px; flex: 0 0 auto; display: grid; place-content: center; text-align: center; border-radius: 50%; background: conic-gradient(var(--mint) var(--score-angle, 0deg), #edf0f2 0); position: relative; }
.score-ring::after { content:""; position:absolute; inset:7px; border-radius:50%; background:white; }
.score-ring strong, .score-ring span { position: relative; z-index: 1; }
.score-ring strong { font-size: 27px; line-height: 1; }
.score-ring span { color: var(--muted); font-size: 10px; }
.verdict-label { margin: 0 0 5px; color: var(--mint); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.score-head h2 { margin: 0; font-size: 18px; line-height: 1.4; }
.transcript-box, .correction-box { margin-top: 20px; padding: 16px; border-radius: 17px; background: #f7f8fa; }
.transcript-box span, .correction-box > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.transcript-box p, .correction-box p { margin: 8px 0 0; line-height: 1.5; font-weight: 700; }
.feedback-grid { display: grid; gap: 10px; margin-top: 16px; }
.feedback-grid article { display: flex; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.feedback-grid h3 { margin: 0 0 4px; font-size: 13px; }
.feedback-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.feedback-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; font-size: 11px; font-weight: 900; }
.feedback-icon.meaning { color: #198464; background: #e1f7ef; }
.feedback-icon.grammar { color: #4a66b4; background: #e9efff; }
.feedback-icon.natural { color: #9c6b1c; background: #fff3d6; }
.correction-box { background: var(--mint-light); }
.correction-box ul { margin: 10px 0 0; padding-left: 18px; color: #357360; font-size: 12px; line-height: 1.7; }
.correction-box small { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.result-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin-top: 20px; }
.result-actions .retry-speaking { box-shadow: 0 8px 20px rgba(20,33,61,.18); }
.primary-button, .secondary-button { padding: 14px 10px; }
.primary-button { color: white; background: var(--navy); }
.secondary-button { color: var(--navy); background: #edf0f5; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 10; width: min(calc(100% - 40px), 520px); transform: translateX(-50%); padding: 14px 17px; border-radius: 14px; color: white; background: #b63d46; box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 13px; }
[hidden] { display: none !important; }
.home-screen { padding-top: 34px; }
.install-card { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; margin: -12px 0 20px; padding: 16px 42px 16px 17px; border: 1px solid rgba(48,197,155,.3); border-radius: 18px; background: #e3f8f1; box-shadow: 0 10px 24px rgba(23,32,57,.07); }
.install-card strong { font-size: 13px; }
.install-card p { margin: 4px 0 0; color: #427465; font-size: 10px; line-height: 1.45; }
.install-card > button:not(.install-dismiss) { border: 0; border-radius: 12px; padding: 10px 12px; color: white; background: #087f5b; font-size: 11px; font-weight: 850; white-space: nowrap; }
.install-dismiss { position: absolute; top: 7px; right: 8px; border: 0; color: #527268; background: transparent; font-size: 19px; }
.home-hero { padding: 7px 3px 23px; }
.home-hero h2 { margin: 10px 0 12px; font-size: clamp(27px, 7.5vw, 38px); line-height: 1.25; letter-spacing: -.06em; }
.home-hero > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.continue-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 20px; border-radius: 22px; color: white; background: linear-gradient(135deg, var(--navy), #27436f); box-shadow: 0 14px 35px rgba(20,33,61,.2); }
.continue-card span { color: #82e0c5; font-size: 10px; font-weight: 850; }
.continue-card h3 { margin: 6px 0 4px; font-size: 16px; }
.continue-card p { margin: 0; color: rgba(255,255,255,.68); font-size: 10px; }
.continue-card .primary-button { padding: 12px 14px; color: var(--navy); background: white; white-space: nowrap; }
.home-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 14px; }
.home-choice { min-height: 142px; display: flex; flex-direction: column; align-items: flex-start; border: 0; border-radius: 21px; padding: 18px; text-align: left; box-shadow: 0 10px 28px rgba(23,32,57,.07); }
.starter-choice { color: white; background: var(--navy); }
.library-choice { color: var(--navy); background: white; }
.pattern-choice { color: #174f45; background: linear-gradient(135deg, #dff7ef, #f4fcf9); }
.choice-icon { width: 46px; height: 36px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; font-size: 10px; font-weight: 900; }
.starter-choice .choice-icon { color: var(--navy); background: var(--mint); }
.library-choice .choice-icon { color: #16765c; background: var(--mint-light); }
.pattern-choice .choice-icon { color: white; background: #23876e; }
.pattern-menu-screen { padding-top: 30px; }
.pattern-course-list { display: grid; gap: 14px; margin-top: 28px; }
.pattern-course-card { min-height: 190px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; border: 0; border-radius: 25px; padding: 24px; text-align: left; box-shadow: 0 14px 35px rgba(23,32,57,.1); }
.pattern-course-card span { margin-bottom: auto; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.pattern-course-card strong { font-size: 21px; }
.pattern-course-card p { margin: 9px 0 0; font-size: 11px; line-height: 1.65; opacity: .72; }
.core-course { color: white; background: linear-gradient(135deg, var(--navy), #2b4772); }
.core-course span { color: var(--mint); }
.expansion-course { color: #174f45; background: linear-gradient(135deg, #d7f5eb, #f5fcfa); }
.expansion-course span { color: #23876e; }
.situational-course { color: #573d19; background: linear-gradient(135deg, #fff0cf, #fffaf0); }
.situational-course span { color: #b67a20; }
.home-choice strong { font-size: 16px; }
.home-choice small { margin-top: 6px; color: inherit; opacity: .65; font-size: 9px; line-height: 1.5; }
.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.home-stats div { padding: 15px 8px; border-radius: 17px; text-align: center; background: rgba(255,255,255,.78); }
.home-stats strong { display: block; font-size: 20px; }
.home-stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.library-screen { padding-top: 30px; }
.library-heading { display: flex; align-items: center; gap: 12px; }
.library-heading h2, .sheet-title-row h2 { margin: 2px 0 0; font-size: 23px; letter-spacing: -.04em; }
.round-back, .icon-button { width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--navy); background: white; font-size: 21px; box-shadow: 0 6px 20px rgba(23,32,57,.08); }
.add-book-button { margin-left: auto; border: 0; border-radius: 13px; padding: 11px 14px; color: white; background: var(--navy); font-size: 12px; font-weight: 800; }
.library-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 23px; }
.library-summary div { padding: 15px 8px; border-radius: 17px; text-align: center; background: rgba(255,255,255,.8); }
.library-summary strong { display: block; font-size: 20px; }
.library-summary span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.empty-library { margin-top: 42px; padding: 30px 24px; border: 1px dashed #cfd4dc; border-radius: 25px; text-align: center; background: rgba(255,255,255,.54); }
.book-illustration { width: 78px; height: 92px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 8px 18px 18px 8px; color: white; background: var(--navy); font: italic 700 24px Georgia, serif; box-shadow: 8px 8px 0 var(--mint); }
.empty-library h3 { margin: 0 0 8px; }
.empty-library p { margin: 0 auto 20px; max-width: 300px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.book-list { display: grid; gap: 13px; margin-top: 22px; }
.book-card { padding: 18px; border-radius: 20px; background: white; box-shadow: 0 10px 30px rgba(23,32,57,.07); }
.book-card-head { display: flex; gap: 13px; align-items: center; }
.book-spine { width: 48px; height: 60px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px 13px 13px 7px; color: white; background: var(--book-color, var(--navy)); font: 800 18px Georgia, serif; }
.book-card h3 { margin: 0 0 4px; font-size: 15px; }
.book-card p { margin: 0; color: var(--muted); font-size: 11px; }
.book-group-list { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.unit-grid-guide { margin-top: 15px !important; text-align: center; line-height: 1.5; }
.unit-overview-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; margin-top: 12px; }
.unit-overview-grid button { aspect-ratio: 1; min-width: 0; display: grid; place-content: center; gap: 1px; border: 0; border-radius: 8px; padding: 0; color: var(--navy); background: #eef1f5; font-weight: 850; }
.unit-overview-grid button strong { font-size: clamp(9px, 2.5vw, 12px); line-height: 1; }
.unit-overview-grid button small { color: var(--muted); font-size: clamp(6px, 1.8vw, 8px); line-height: 1; }
.unit-overview-grid button:hover, .unit-overview-grid button:focus-visible { color: white; background: var(--navy); }
.unit-overview-grid button.completed { color: white; background: var(--mint); }
.unit-overview-grid button:hover small, .unit-overview-grid button:focus-visible small, .unit-overview-grid button.completed small { color: rgba(255,255,255,.85); }
.material-section-grid { margin-top: 12px; padding-top: 0; }
.material-section-grid button { background: #edf7f3; }
.material-section-grid button:hover, .material-section-grid button:focus-visible { background: #087f5b; }
.book-group-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px; border-radius: 14px; background: #f7f8fa; }
.book-group-row.completed { background: linear-gradient(90deg, #effaf6, #f7f8fa); box-shadow: inset 0 0 0 1px rgba(48,197,155,.2); }
.group-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #21755d; background: var(--mint-light); font-size: 11px; font-weight: 900; }
.book-group-row.completed .group-number { color: white; background: var(--mint); }
.book-group-row h4 { margin: 0 0 3px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.book-group-row .group-meta { color: var(--muted); }
.book-group-row.completed .group-meta { color: #23755e; font-weight: 750; }
.book-group-row button { padding: 9px 13px; border: 0; border-radius: 10px; color: white; background: var(--navy); font-size: 10px; font-weight: 800; }
.section-list { display: flex; gap: 7px; margin-top: 14px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: thin; }
.section-list button { flex: 0 0 auto; max-width: 210px; overflow: hidden; padding: 8px 11px; border: 1px solid #dfe6e3; border-radius: 999px; color: #286f5c; background: #f2faf7; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.book-card-actions { display: grid; grid-template-columns: 1fr 42px; gap: 8px; margin-top: 15px; }
.book-card-actions button { border: 0; border-radius: 11px; padding: 10px 7px; font-size: 11px; font-weight: 800; }
.book-card-actions.delete-only { grid-template-columns: 1fr auto; align-items: center; }
.book-card-actions.delete-only span { color: var(--muted); font-size: 10px; }
.book-card-actions .builtin-label { color: #16765c; font-weight: 750; }
.book-card-actions.delete-only .delete-book { padding: 8px 11px; }
.start-book { color: white; background: var(--navy); }
.random-book { color: #23755e; background: var(--mint-light); }
.delete-book { color: #a64249; background: #fff0f1; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; padding-top: 40px; background: rgba(10,18,35,.48); backdrop-filter: blur(4px); }
.bottom-sheet { width: min(100%, 620px); max-height: 92vh; overflow-y: auto; padding: 10px 22px max(25px, env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--cream); box-shadow: 0 -20px 50px rgba(10,18,35,.2); }
.sheet-handle { width: 42px; height: 5px; margin: 2px auto 18px; border-radius: 99px; background: #cdd0d6; }
.sheet-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.icon-button { box-shadow: none; background: #e9ebef; }
.field-label { display: block; margin: 14px 0; color: var(--navy); font-size: 12px; font-weight: 800; }
.field-label span { color: var(--muted); font-weight: 500; }
.field-label input { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid #dfe2e7; border-radius: 13px; color: var(--ink); background: white; outline: 0; }
.field-label input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(48,197,155,.13); }
.drop-zone { display: flex; flex-direction: column; align-items: center; margin-top: 18px; padding: 25px 15px; border: 2px dashed #c9cfd8; border-radius: 18px; background: rgba(255,255,255,.65); cursor: pointer; }
.drop-zone.dragging { border-color: var(--mint); background: var(--mint-light); }
.upload-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; color: white; background: var(--navy); font-size: 21px; }
.drop-zone strong { font-size: 13px; }
.drop-zone small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.selected-file { margin-top: 12px; padding: 12px 14px; border-radius: 13px; color: #25725c; background: var(--mint-light); font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.privacy-note, .extraction-notes { color: var(--muted); font-size: 10px; line-height: 1.5; }
.full-button { width: 100%; margin-top: 12px; }
.full-button:disabled { opacity: .45; cursor: not-allowed; }
.editor-sheet { max-height: 95vh; }
.lesson-editor-list { display: grid; gap: 13px; }
.lesson-editor { position: relative; padding: 16px; border-radius: 17px; background: white; }
.lesson-editor.confidence-medium { border-left: 4px solid #e3a008; }
.lesson-editor.confidence-low { border-left: 4px solid #c2414d; }
.lesson-editor.confidence-high { border-left: 4px solid #278365; }
.lesson-editor.confidence-manual { border-left: 4px solid #5267a6; }
.lesson-editor-number { display: inline-grid; width: 24px; height: 24px; place-items: center; margin-bottom: 8px; border-radius: 8px; color: white; background: var(--navy); font-size: 10px; font-weight: 800; }
.confidence-badge { display: inline-block; margin-left: 7px; padding: 5px 8px; border-radius: 999px; color: #5b6475; background: #eef1f5; font-size: 9px; font-weight: 850; vertical-align: top; }
.confidence-high .confidence-badge { color: #17654d; background: #e2f5ed; }
.confidence-medium .confidence-badge { color: #8a5a00; background: #fff4cf; }
.confidence-low .confidence-badge { color: #9a2935; background: #ffe6e9; }
.confidence-manual .confidence-badge { color: #324579; background: #e8edff; }
.lesson-editor label { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.lesson-editor textarea, .lesson-editor input { width: 100%; margin-top: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 12px; resize: vertical; }
.remove-lesson { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border: 0; border-radius: 9px; color: #a64249; background: #fff0f1; }
.source-badge { margin-bottom: 12px; padding: 9px 12px; border-radius: 11px; color: #286f5c; background: var(--mint-light); font-size: 11px; font-weight: 750; }
.section-book-summary { margin-top: 22px; padding: 18px; border-radius: 20px; color: white; background: var(--navy); box-shadow: 0 12px 30px rgba(20,33,61,.18); }
.section-book-summary > p { margin: 0 0 14px; color: rgba(255,255,255,.72); font-size: 12px; }
.section-mode-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.section-mode-actions button { padding: 10px 5px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; color: white; background: rgba(255,255,255,.09); font-size: 10px; font-weight: 800; }
.section-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 27px 2px 12px; }
.section-list-heading h3 { margin: 0; font-size: 15px; }
.section-list-heading span { color: var(--muted); font-size: 11px; }
.section-practice-list { display: grid; gap: 9px; padding-bottom: 30px; }
.section-practice-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border-radius: 17px; background: white; box-shadow: 0 7px 22px rgba(23,32,57,.055); }
.section-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #21755d; background: var(--mint-light); font-size: 12px; font-weight: 900; }
.section-practice-card h3 { margin: 0 0 4px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.section-practice-card p { margin: 0; color: var(--muted); font-size: 10px; }
.section-practice-card button { padding: 9px 10px; border: 0; border-radius: 10px; color: white; background: var(--navy); font-size: 10px; font-weight: 800; }
.manual-fallback { width: min(100%, 420px); margin-top: 17px; color: var(--muted); font-size: 11px; }
.manual-fallback summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.manual-fallback div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; margin-top: 10px; }
.manual-fallback input { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 16px; }
.manual-fallback button { border: 0; border-radius: 12px; padding: 10px; color: white; background: #087f5b; font-size: 10px; font-weight: 800; }
@keyframes pulse { 50% { transform: scale(1.04); box-shadow: 0 12px 35px rgba(239,93,100,.28), 0 0 0 22px rgba(239,93,100,0); } }
@keyframes breathe { to { transform: scale(.94); opacity: .78; } }
@media (min-width: 700px) { .app-shell { padding-top: 44px; } }
@media (max-width: 480px) { body { overscroll-behavior-y: none; } .app-shell { padding-left: 14px; padding-right: 14px; } .topbar { gap: 9px; } .header-library-action { padding: 11px 10px; } .prompt-card { padding: 22px 18px 19px; } .practice-panel { padding-top: 34px; } .record-button { min-height: 52px; } .primary-button, .secondary-button { min-height: 48px; } }
@media (max-width: 380px) { .topbar h1 { font-size: 17px; } .level-chip, .library-chip { padding: 8px 9px; font-size: 10px; } .home-choice-grid { grid-template-columns: 1fr; } .home-choice { min-height: 118px; } .install-card { grid-template-columns: 1fr; } .install-card > button:not(.install-dismiss) { justify-self: start; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
