[hidden]{display:none!important}
:root{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#203b4a;background:#e9f4fb;font-size:16px}*{box-sizing:border-box}body{margin:0;min-width:320px;background:linear-gradient(160deg,#dff0ff 0%,#f4f9f7 37%,#f8fbf6 82%);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #6ca0c6;outline-offset:2px}.shell{max-width:1300px;margin:auto;padding:0 32px 30px}.topbar{height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #cbdfe4}.brand{display:flex;align-items:center;gap:12px;color:#24577f}.brand-mark{width:37px;height:37px;border:2px solid #36719b;border-radius:11px 11px 14px 14px;display:grid;place-items:center;font-family:Georgia,serif;font-size:24px;font-weight:bold;transform:rotate(-5deg)}.brand>div{display:flex;flex-direction:column;line-height:1.1;gap:4px}.brand strong{font-size:17px;letter-spacing:.01em}.brand span:not(.brand-mark){font-size:13px;color:#526d76}.plain-button,.text-button{border:0;background:transparent;color:#2f688c;padding:10px 4px;font-weight:600}.plain-button span{background:#d3e9e7;border-radius:20px;margin-left:4px;padding:2px 7px;font-size:13px}.heading{display:flex;align-items:end;justify-content:space-between;padding:36px 0 28px;gap:20px}.heading h1{font-family:Georgia,"Noto Serif SC","Songti SC",serif;font-size:clamp(29px,4vw,43px);margin:3px 0 0;color:#255c88;font-weight:650;letter-spacing:-.025em}.heading>p{margin:0 0 7px;color:#617d81}.eyebrow{letter-spacing:.17em;color:#65946e;font-size:12px;font-weight:800;margin:0 0 8px}.task-tabs{display:flex;gap:12px;overflow-x:auto;margin-bottom:18px;padding-bottom:3px}.task-tab{border:1px solid #c8dbdf;border-radius:13px;background:rgba(255,255,255,.75);color:#36596b;padding:15px 19px;white-space:nowrap;text-align:left;min-width:198px;font-weight:650}.task-tab span{color:#7e9c9c;font-size:13px;margin-left:6px}.task-tab.active{background:#286995;border-color:#286995;color:white;box-shadow:0 8px 19px rgba(39,94,132,.16)}.task-tab.active span{color:#d8edf7}.main-grid{display:grid;grid-template-columns:290px minmax(0,1fr);gap:18px;align-items:start}.surface{background:rgba(255,255,255,.93);border:1px solid #d9e7e6;border-radius:18px;box-shadow:0 18px 48px rgba(67,110,114,.07)}.sidebar{padding:22px;position:sticky;top:18px}.label-row{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:19px}.label-row h2{font-size:19px;margin:0;color:#214c68}.label-row span{font-size:13px;color:#6d8b80}.sidebar label{display:block;font-size:14px;color:#45636b;font-weight:650;margin:16px 0 7px}.sidebar select,.sidebar input{width:100%;border:1px solid #d3e0e0;border-radius:9px;padding:10px 12px;color:#29485a;background:#fbfdfd;font-size:14px}.sidebar select[size]{height:312px;padding:4px}.sidebar option{padding:8px 7px;white-space:normal;line-height:1.4}.source-note{font-size:12px;line-height:1.6;color:#789193;margin:18px 0 0}.workspace{padding:26px 32px 32px;min-height:700px}.workspace-head{display:flex;justify-content:space-between;gap:18px}.workspace-head h2{font-size:25px;color:#255b82;margin:0}.workspace-head #saveStatus{font-size:13px;color:#488667}.stage-area{margin:24px 0 22px;background:#f4f8f2;border:1px solid #dce9dc;border-radius:13px;padding:15px 18px}.stage-label{font-size:13px;color:#527a5d;font-weight:800}.stage-switch{display:flex;gap:8px;flex-wrap:wrap;margin:11px 0}.stage-switch button{border:1px solid #ceddd1;background:#fff;color:#4a6656;border-radius:9px;padding:9px 12px;font-size:14px}.stage-switch button.selected{background:#6e9c77;color:white;border-color:#6e9c77}.stage-hint{font-size:13px;color:#5b7164;margin:5px 0 0;line-height:1.55}.prompt{border-top:1px solid #e3eceb;padding:24px 0 15px;line-height:1.75;color:#324d56}.prompt p{white-space:pre-line;margin:0 0 15px}.prompt .cue{font-size:20px;line-height:1.6;color:#203e53}.prompt .context{color:#789096;font-size:14px}.prompt h3{font-size:14px;text-transform:uppercase;letter-spacing:.08em;color:#5f9071;margin:20px 0 5px}.prompt .speech{background:#f6faf9;border-left:3px solid #8bb7a3;padding:12px 16px;border-radius:0 10px 10px 0}.answer-area{border-top:1px solid #e3eceb;padding-top:22px}.answer-title{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px}.answer-title label{font-weight:750;color:#285b7a}.answer-title span{font-size:13px;color:#809393}textarea{width:100%;min-height:185px;resize:vertical;border:1px solid #cedfdc;border-radius:11px;padding:16px;line-height:1.7;color:#254257;background:#fcfefe}.actions,.timer-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:15px}.primary-button,.secondary-button{border-radius:9px;padding:11px 17px;font-size:14px;font-weight:700}.primary-button{background:#2c709b;color:white;border:1px solid #2c709b}.secondary-button{background:white;color:#2b6889;border:1px solid #bad2dc}.timer-row{background:#f5fafb;border-radius:11px;padding:10px 12px}.timer-row span:last-child{font-size:13px;color:#70888b}.timer-display{font-variant-numeric:tabular-nums;color:#276c97;font-weight:750;font-size:21px;min-width:62px}.timer-display.done{color:#bf6853}.feedback{margin-top:22px;padding:19px 21px;border-radius:12px;border:1px solid #d2e4d8;background:#f6faf4;line-height:1.7}.feedback h3{font-size:16px;margin:0 0 8px;color:#4e7c54}.feedback ul{margin:8px 0;padding-left:22px}.feedback .reference{white-space:pre-wrap;background:white;border:1px solid #dce8e3;padding:15px;border-radius:9px;color:#2d526a}.privacy-note{font-size:13px;color:#637f82;line-height:1.7;margin:21px 0 0}.history-dialog{width:min(630px,calc(100% - 32px));max-height:78vh;border:1px solid #cddfdd;border-radius:16px;padding:24px;background:#fff;color:#294656;box-shadow:0 30px 80px #233d4b33}.history-dialog::backdrop{background:#20384788}.dialog-head{display:flex;align-items:center;justify-content:space-between}.dialog-head h2{margin:0;font-size:21px}.dialog-subtitle{font-size:13px;color:#678186}.history-entry{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #e7eeee;padding:14px 0}.history-entry button{border:0;background:none;text-align:left;color:#2d668b;font-weight:700;padding:0}.history-entry button.delete{color:#a26161;font-size:13px;white-space:nowrap}.history-entry small{display:block;color:#829395;font-weight:400;margin-top:4px}.empty{text-align:center;color:#829699;padding:24px}@media(max-width:850px){.shell{padding:0 18px 24px}.heading{padding:26px 0 22px;align-items:start;flex-direction:column;gap:6px}.main-grid{grid-template-columns:1fr}.sidebar{position:static}.sidebar select[size]{height:155px}.workspace{padding:23px;min-height:0}}@media(max-width:520px){.topbar{height:72px}.heading h1{font-size:30px}.task-tabs{gap:8px}.task-tab{min-width:170px;padding:12px}.workspace{padding:19px}.workspace-head h2{font-size:22px}.stage-switch button{flex:1 1 125px}.prompt .cue{font-size:18px}}

/* Sentence-building practice resembles the official arrangement task while
   showing clearly which boxes have been generated from the user's answer key. */
.sentence-builder{padding:0 0 18px;border-top:1px solid #e3eceb}
.sentence-instruction{margin:21px 0 14px;color:#295678;font-weight:750;font-size:16px}
.sentence-target{min-height:83px;border:2px dashed #9bbfca;border-radius:13px;background:#f7fbfd;padding:14px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;line-height:1.5}
.sentence-bank{min-height:70px;margin-top:16px;padding:14px;border-radius:13px;background:#f2f7f0;border:1px solid #d9e5d7;display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.word-tile{border:1px solid #a9c4cd;border-radius:7px;background:white;color:#23475f;padding:9px 12px;min-height:43px;box-shadow:0 2px 3px #23475f10;font-size:16px;line-height:1.2;touch-action:manipulation}
.word-tile:hover{background:#e5f2fa}
.sentence-target .word-tile{border-color:#6f9fb5;background:#e7f3fb}
.fixed-fragment{font-size:17px;font-weight:650;color:#264f6b;white-space:pre-wrap}
.empty-slots{color:#7b9aa5;font-size:14px}
.given-fragment{margin-top:18px!important;padding:10px 14px;background:#f6f9f5;border-radius:8px;font-size:14px;color:#607865}
.sentence-controls,.sentence-navigation{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.sentence-controls span,.generated-note{font-size:13px;color:#6e8587;line-height:1.55}
.generated-note{margin:14px 0 0}
.sentence-navigation{padding-top:15px;border-top:1px solid #e3eceb}
.legacy-sentence{background:#fff8ed;padding:12px;border-radius:8px;font-size:14px;color:#735f3f;overflow-wrap:anywhere}
@media(max-width:520px){.word-tile{padding:9px 11px;font-size:15px}.sentence-target,.sentence-bank{padding:10px;gap:7px}}

.prep-card{margin:18px 0;border:1px solid #d3e2e7;border-radius:10px;background:#f7fafb;font-size:1rem;line-height:1.65}
.prep-card>summary{cursor:pointer;padding:12px 15px;font-weight:700;color:#275267}
.prep-card>summary span{font-weight:400;color:#65808b;font-size:.875rem;margin-left:8px}
.prep-card summary:focus-visible{outline:3px solid #eda62f;outline-offset:3px}
.prep-body{padding:0 16px 12px;overflow-wrap:anywhere}
.prep-body p{margin:12px 0}.prep-body strong{display:block;font-size:.875rem;color:#315d6c;margin-bottom:3px}
.prep-body .prep-note{color:#647d86;font-size:.875rem}.prep-example{border-top:1px solid #dce7eb;padding-top:10px;font-size:.875rem}.prep-example summary{cursor:pointer;color:#2c6774}
.practice-timer-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 0}.practice-timer-row .record-status{font-size:.875rem}
@media(max-width:520px){.prep-card>summary span{display:block;margin:2px 0 0 18px}.practice-timer-row .record-status{flex-basis:100%}}
.topbar .button-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.topbar a.plain-button{text-decoration:none}.topbar a.plain-button:hover{text-decoration:underline}
