/* 用途：每日背词与学习计划；文件：public/assets/study.css。 */
/* 模块：背词界面。入口：public/assets/study.css。 */
/* 样式分区：.study-main；维护此组件的布局、外观与交互状态。 */

.study-main{max-width:1120px;margin:42px auto 70px;padding:0 36px;min-height:65vh}
/* 样式分区：.study-heading；维护此组件的布局、外观与交互状态。 */
.study-heading{display:flex;align-items:center;justify-content:space-between;gap:35px;margin:0 0 28px}.study-heading h1{font-size:35px;line-height:1.45;letter-spacing:-1.2px;margin:10px 0}.study-heading p{color:var(--muted);font-size:12px;max-width:550px}
/* 样式分区：.habit-streak；维护此组件的布局、外观与交互状态。 */
.habit-streak{flex-shrink:0;background:var(--green);color:white;border-radius:17px;padding:20px 26px;min-width:188px}.habit-streak strong{font-size:47px;font-weight:500;line-height:1.2}.habit-streak span,.habit-streak small{display:block;font-size:11px;opacity:.8}.habit-streak small{font-size:9px;margin-top:8px}
/* 样式分区：.habit-panel；维护此组件的布局、外观与交互状态。 */
.habit-panel{padding:22px 25px;border:1px solid var(--border);background:#fcfcf7;border-radius:15px;margin-bottom:35px}.habit-panel>div:first-child{display:flex;justify-content:space-between;gap:12px}.habit-panel>div:first-child strong{font-size:13px}.habit-panel>div:first-child span{font-size:10px;color:var(--muted)}
/* 样式分区：.habit-calendar；维护此组件的布局、外观与交互状态。 */
.habit-calendar{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:7px;margin:18px 0 10px}
/* 样式分区：.habit-day；维护此组件的布局、外观与交互状态。 */
.habit-day{min-height:42px;border-radius:7px;background:#edf0e9;display:flex;align-items:center;justify-content:center;gap:5px;color:#9da697;font-size:10px}.habit-day small{font-size:10px;min-width:9px}.habit-day.complete{background:#8ca575;color:#fff}.habit-day.partial{background:#dee9c8;color:#627c4c}.habit-day.today{outline:1px solid var(--green);outline-offset:2px}.habit-panel>p{font-size:9px;color:var(--muted);margin:0}
/* 样式分区：.study-section-title；维护此组件的布局、外观与交互状态。 */
.study-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:32px 0 20px}.study-section-title h2{font-size:19px;font-weight:500;margin:0}
/* 样式分区：.study-plan-grid；维护此组件的布局、外观与交互状态。 */
.study-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.study-plan{background:#fff;border:1px solid var(--border);border-radius:16px;padding:27px;min-width:0}.study-plan-top{display:flex;justify-content:space-between;gap:15px;align-items:start;margin-bottom:20px}.study-plan-top small{font-size:10px;color:var(--muted);letter-spacing:.5px}.study-plan-top h2{margin:6px 0 0;font-size:24px;font-weight:500;overflow-wrap:anywhere}.study-plan-top>.text-link{font-size:11px;flex-shrink:0;margin-top:4px}.study-plan-counts{display:flex;gap:22px;flex-wrap:wrap;margin:25px 0 20px}.study-plan-counts>span{font-size:10px;color:var(--muted)}.study-plan-counts strong{display:block;font-size:22px;font-weight:500;color:var(--green);margin:3px 0}.study-plan progress,.session-progress{width:100%;height:6px;border:0;border-radius:5px;background:#edf0e7;appearance:none}.study-plan progress::-webkit-progress-bar,.session-progress::-webkit-progress-bar{background:#edf0e7;border-radius:5px}.study-plan progress::-webkit-progress-value,.session-progress::-webkit-progress-value{background:#94ac73;border-radius:5px}.study-plan progress::-moz-progress-bar,.session-progress::-moz-progress-bar{background:#94ac73;border-radius:5px}.study-plan>.primary{width:100%;margin:12px 0 17px}
/* 样式分区：.study-extra；维护此组件的布局、外观与交互状态。 */
.study-extra{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;margin-bottom:17px}.study-extra select{min-width:0;width:100%;font-size:10px;padding:9px;border:1px solid var(--border);border-radius:7px;background:#fafbf6;color:var(--ink)}.study-extra .secondary{font-size:10px;padding:9px}.study-plan>a.text-link{font-size:10px}
/* 样式分区：.study-note；维护此组件的布局、外观与交互状态。 */
.study-note{font-size:11px;color:var(--muted);line-height:1.85}
/* 样式分区：.learning-rule；维护此组件的布局、外观与交互状态。 */
.learning-rule{padding:0 4px;margin-top:25px}
/* 样式分区：.settings-plan；维护此组件的布局、外观与交互状态。 */
.settings-plan{border-color:#a7bd99;margin-bottom:28px;background:#fdfef9}
/* 样式分区：.study-settings-grid；维护此组件的布局、外观与交互状态。 */
.study-settings-grid{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:16px}.study-settings-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px}.study-settings-bottom label{display:flex;gap:7px;align-items:center;font-size:11px;color:var(--muted)}.study-settings-bottom input{width:auto}
/* 样式分区：.study-welcome；维护此组件的布局、外观与交互状态。 */
.study-welcome{max-width:650px;padding:70px 0}.study-welcome h1{line-height:1.4}.study-welcome p{max-width:480px;color:var(--muted);margin:25px 0}.study-welcome .primary{display:inline-block;margin:0 20px 15px 0}
/* 样式分区：.practice-top；维护此组件的布局、外观与交互状态。 */
.practice-top{display:flex;justify-content:space-between;align-items:center;gap:15px;max-width:760px;margin:auto auto 15px}.practice-top span{font-size:11px;color:var(--muted)}
/* 样式分区：.session-progress；维护此组件的布局、外观与交互状态。 */
.session-progress{display:block;max-width:760px;margin:auto auto 28px}
/* 样式分区：.practice-card；维护此组件的布局、外观与交互状态。 */
.practice-card{max-width:760px;margin:auto;background:white;border:1px solid var(--border);border-radius:19px;padding:35px 42px;box-shadow:0 14px 55px #17352b05}
/* 样式分区：.practice-caption；维护此组件的布局、外观与交互状态。 */
.practice-caption{display:flex;justify-content:space-between;gap:14px;font-size:10px;color:var(--muted);margin-bottom:40px}
/* 样式分区：.practice-prompt；维护此组件的布局、外观与交互状态。 */
.practice-prompt{text-align:center;font-size:26px;line-height:1.6;overflow-wrap:anywhere;max-width:650px;margin:10px auto 23px}
/* 样式分区：.korean-prompt；维护此组件的布局、外观与交互状态。 */
.korean-prompt{font-size:48px;font-weight:500;letter-spacing:-1px}
/* 样式分区：.practice-audio；维护此组件的布局、外观与交互状态。 */
.practice-audio{display:flex;gap:15px;align-items:center;justify-content:center;margin:22px 0 32px}
/* 样式分区：.listen-button；维护此组件的布局、外观与交互状态。 */
.listen-button{border:1px solid #cad8c2;border-radius:50px;padding:20px 30px;background:#eef4e7;color:var(--green);font-size:19px}.practice-card>.study-note{text-align:center;margin-bottom:28px}
/* 样式分区：.spell-field；维护此组件的布局、外观与交互状态。 */
.spell-field{margin:30px 0 25px}.spell-field input{font-size:25px;padding:14px;text-align:center;min-height:62px}.spell-field .ko-input-toggle{width:32px;height:32px;right:12px}
/* 样式分区：.answer-choices；维护此组件的布局、外观与交互状态。 */
.answer-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:32px 0}.answer-choices button{border:1px solid var(--border);border-radius:10px;padding:17px 15px;display:flex;gap:13px;align-items:center;text-align:left;min-width:0}.answer-choices small{font-size:10px;color:#a0ae95;background:#f0f3eb;border-radius:50%;width:23px;height:23px;display:grid;place-items:center;flex-shrink:0}.answer-choices span{overflow-wrap:anywhere;font-size:15px}.answer-choices button[aria-pressed=true]{background:#f0f6e7;border-color:#90a974;color:var(--green)}.answer-choices button[aria-pressed=true] small{background:var(--green);color:white}
/* 样式分区：.practice-actions；维护此组件的布局、外观与交互状态。 */
.practice-actions{display:flex;gap:max(var(--action-gap),12px);align-items:center;justify-content:center;flex-wrap:wrap;margin-top:28px}
/* 样式分区：.task-hint；维护此组件的布局、外观与交互状态。 */
.task-hint{border:1px solid #d6e2c8;background:#f5f8ef;border-radius:10px;padding:20px;text-align:center;margin:25px 0}.task-hint strong{font-size:29px;font-weight:500;overflow-wrap:anywhere}.task-hint p{font-size:15px;white-space:pre-wrap}.task-hint small{font-size:10px;color:#879579}
/* 样式分区：.practice-footnote；维护此组件的布局、外观与交互状态。 */
.practice-footnote{max-width:760px;margin:20px auto;text-align:center}
/* 样式分区：.answer-result；维护此组件的布局、外观与交互状态。 */
.answer-result{border-radius:14px;padding:25px;text-align:center;margin-top:28px}.answer-result.correct{background:#f0f6e8;border:1px solid #d3e1bd}.answer-result.again{background:#faf2e8;border:1px solid #ead7bd}.answer-result>small{font-size:12px;color:var(--green)}.answer-result.again>small{color:#ab805b}.answer-result h2{font-size:35px;font-weight:500;margin:14px 0;overflow-wrap:anywhere}.answer-result>p:not(.study-note){font-size:15px;white-space:pre-wrap}
/* 样式分区：.result-tools；维护此组件的布局、外观与交互状态。 */
.result-tools{display:flex;gap:18px;align-items:center;justify-content:center;flex-wrap:wrap;margin:22px 0}.answer-result>.primary{margin-top:12px;min-width:155px}
/* 样式分区：.study-completion；维护此组件的布局、外观与交互状态。 */
.study-completion{max-width:760px;margin:20px auto;text-align:center;background:#fff;border:1px solid var(--border);border-radius:18px;padding:40px}
/* 样式分区：.completion-mark；维护此组件的布局、外观与交互状态。 */
.completion-mark{width:62px;height:62px;background:#edf4e2;color:var(--green);border-radius:50%;display:grid;place-items:center;font-size:29px;margin:0 auto 25px}.study-completion h1{font-size:32px;margin:15px 0}.study-completion>p{font-size:12px;color:var(--muted)}
/* 样式分区：.completion-stats；维护此组件的布局、外观与交互状态。 */
.completion-stats{display:flex;justify-content:center;gap:45px;margin:32px 0}.completion-stats span{font-size:11px;color:var(--muted)}.completion-stats strong{display:block;font-size:29px;font-weight:500;color:var(--green)}
/* 样式分区：.completion-wrong；维护此组件的布局、外观与交互状态。 */
.completion-wrong{text-align:left;border-top:1px solid var(--border);padding-top:20px;margin:25px 0}.completion-wrong h2{font-size:15px;font-weight:500}.completion-wrong>div{display:flex;gap:18px;align-items:start;border-bottom:1px solid #edf0e7;padding:12px 0;font-size:12px}.completion-wrong strong{font-size:19px;font-weight:500;min-width:95px;overflow-wrap:anywhere}.completion-wrong span{color:var(--muted);overflow-wrap:anywhere}
/* 样式分区：@media(max-width:760px)；维护此组件的布局、外观与交互状态。 */

@media(max-width:760px){.study-main{padding:0;margin:26px 20px 45px}.study-heading{align-items:start;gap:15px}.study-heading h1{font-size:25px}.study-heading p{font-size:10px}.habit-streak{min-width:95px;padding:13px 11px;margin-top:22px}.habit-streak strong{font-size:35px}.habit-streak span{font-size:9px}.habit-streak small{display:none}.habit-panel{padding:18px 15px;margin-bottom:24px}.habit-panel>div:first-child{flex-direction:column;gap:4px}.habit-calendar{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.habit-day{min-height:35px}.study-section-title h2{font-size:17px}.study-section-title a{font-size:10px}.study-plan-grid{grid-template-columns:1fr;gap:17px}.study-plan{padding:21px}.study-plan-top h2{font-size:21px}.study-plan-counts{gap:24px}.study-plan-counts strong{font-size:21px}.study-extra{grid-template-columns:1fr 1fr}.study-extra select{grid-column:1/-1;padding:10px;font-size:12px}.study-extra .secondary{font-size:11px}.study-settings-grid{grid-template-columns:1fr 1fr}.study-settings-grid>.field:last-child{grid-column:1/-1}.study-settings-bottom{flex-wrap:wrap}.study-settings-bottom button{width:100%}.practice-top span{font-size:10px}.practice-top .text-link{font-size:11px}.practice-card{padding:24px 20px;border-radius:14px}.practice-caption{margin-bottom:30px;font-size:9px;flex-wrap:wrap}.practice-prompt{font-size:23px}.korean-prompt{font-size:39px}.answer-choices{grid-template-columns:1fr;gap:10px;margin:26px 0}.answer-choices button{padding:14px}.spell-field input{font-size:22px;min-height:57px}.practice-actions{gap:max(var(--action-gap),12px);margin-top:25px}.practice-actions>.primary{width:100%}.practice-actions .secondary{padding:11px 14px}.study-completion{padding:30px 20px}.study-completion h1{font-size:25px}.completion-stats{gap:28px}.completion-stats strong{font-size:25px}.completion-wrong>div{flex-direction:column;gap:3px}.study-welcome{padding:35px 0}.study-welcome h1{font-size:36px}}
.study-plan-links{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px}
/* 样式分区：.mistake-list；维护此组件的布局、外观与交互状态。 */
.mistake-list{margin-top:20px;border-top:1px solid var(--border);padding-top:15px}.mistake-list-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.mistake-list-heading small,.mistake-list-heading button{font-size:10px;color:var(--muted)}
/* 样式分区：.mistake-word；维护此组件的布局、外观与交互状态。 */
.mistake-word{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;gap:4px 10px;text-align:left;padding:12px 0;border-bottom:1px solid var(--border)}.mistake-word strong{font-size:19px;font-weight:500;overflow-wrap:anywhere}.mistake-word span{font-size:11px;color:var(--muted);grid-column:1;overflow-wrap:anywhere}.mistake-word small{font-size:9px;grid-row:1/3;grid-column:2;align-self:center;color:var(--green)}
/* 样式分区：.new-word-meaning；维护此组件的布局、外观与交互状态。 */


.new-word-meaning{text-align:center;font-size:18px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:25px 0 35px}.new-word-intro .practice-actions{margin-top:32px}
.study-plan-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:36px 24px;text-align:center;border:1px dashed var(--border);min-height:240px}.study-plan-empty .study-empty-symbol{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--soft);color:var(--green);font-size:25px}.study-plan-empty>strong{font-size:18px;font-weight:500}.study-plan-empty>p{max-width:420px;font-size:12px;line-height:1.9;color:var(--muted);margin:0}.study-plan-empty>a.primary{display:inline-flex;width:auto;min-width:150px;min-height:44px;align-items:center;justify-content:center;margin:4px 0 0;padding:11px 20px}@media(max-width:600px){.study-plan-empty{padding:28px 18px;gap:12px;min-height:240px}.study-plan-empty>strong{font-size:16px}.study-plan-empty>a.primary{width:min(100%,240px);align-self:center}}
/* 模块：学习日历。日期独占中心位置，完成标记置于下一行，避免数字被空白标记挤偏。 */
.habit-day{display:grid;grid-template-rows:1fr 12px;gap:0;padding:6px 0 4px;text-align:center;justify-items:center;align-items:center}.habit-day>span{width:100%;text-align:center;line-height:1.2;font-variant-numeric:tabular-nums}.habit-day>small{width:100%;line-height:12px;text-align:center}.study-settings-bottom .danger{color:#a86656}
