/* Calm, content-first study workspace. No changes to the homepage. */
.app-shell .question-stage{width:100%;min-width:0;margin:0;display:block}.app-shell .study-player-layout{min-width:0}.app-shell .studio .setup{min-width:0}body.light .app-shell{--muted:#60778b;--ink:#263b53;--line:#345e8d2b}
body.light .app-shell .setup select,body.light .app-shell .setup input{background:#edf1f6!important;color:#29415a!important}
@media(max-width:850px){.app-shell .rail{transform:translateX(-100%)!important;transition:transform .25s}.app-shell .rail.open{transform:translateX(0)!important}.app-shell main{margin-left:0;width:100%}.app-shell .mobile-menu{display:block}}
#study-history{margin-top:24px}#study-history .panel-head>span{font-size:10px;color:var(--muted)}#study-history h2{font-size:18px}.study-history-row{border-top:1px solid #a8c5ec20;padding:15px 0;font-size:12px;line-height:1.9}.study-history-row summary{display:flex;justify-content:space-between;gap:10px;cursor:pointer}.study-history-row time{font-size:10px;color:var(--muted)}.study-history-row>div{margin-top:18px}.study-history-row>p{font-size:11px;color:var(--muted)}.study-history-note{padding:13px;background:#a8c5ec07;border-radius:8px;overflow-wrap:anywhere}.study-history-row button{font-size:10px}.study-history-pager{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:18px}.study-history-pager button,.study-history-pager span{font-size:10px}
.app-shell{--study-accent:#a8c5ec}.app-shell main{background:linear-gradient(145deg,#0d1526,#0a111e)}body.light .app-shell main{background:#e3e8ee}.app-shell .page{max-width:1380px;padding-top:34px}.app-shell .page h1{font:600 clamp(25px,3vw,36px)/1.4 'Microsoft YaHei',sans-serif;letter-spacing:0;text-shadow:none}.app-shell .page h2,.app-shell .page h3{text-shadow:none;font-family:'Microsoft YaHei',sans-serif}.app-shell .page-intro{margin-bottom:25px}.app-shell .page-intro>p:last-child{font-size:12px;line-height:1.8}.app-shell .page-intro .overline{font-size:9px;color:#8ba3bf;letter-spacing:.14em}.app-shell main>header{height:72px;background:#0b1423;border-color:#a8c5ec15}body.light .app-shell main>header{background:#e6ebf1}.app-shell .rail{background:#0a1321;border-color:#a8c5ec18}.app-shell .rail:after{opacity:.3}body.light .app-shell .rail{background:#dfe6ee}
.study-subjects{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:24px}.study-subjects button{padding:9px 17px;border:1px solid #a8c5ec20;background:transparent;color:var(--muted);border-radius:30px;font-size:12px;cursor:pointer;transition:background .25s,color .25s}.study-subjects button.selected{background:#a8c5ec15;border-color:#a8c5ec60;color:var(--ink)}.app-shell .studio{max-width:none;grid-template-columns:minmax(0,1fr) 240px;gap:20px}.app-shell .panel{box-shadow:none;border:1px solid #a8c5ec20;background:#121d2f80;border-radius:14px;padding:25px}body.light .app-shell .panel{background:#f5f7fa99;border-color:#375b8526}.setup-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:25px}.setup-title h2{font:500 17px 'Microsoft YaHei',sans-serif;margin:0}.setup-title span{font-size:10px;color:var(--muted)}.app-shell .setup label{font-size:11px;gap:10px;margin-bottom:18px}.app-shell .setup input,.app-shell .setup select{height:43px;border-radius:8px;background:#0b1525;border:1px solid #a8c5ec2b;font-size:12px;color:var(--ink)}body.light .app-shell .setup input,body.light .app-shell .setup select{background:#edf1f6;color:#29415a;border-color:#345e8d30}.app-shell .counter{width:160px;border:1px solid #a8c5ec2b;border-radius:8px;height:42px;overflow:hidden}.app-shell .counter button{width:42px;background:#a8c5ec0c;color:var(--ink);border:0;cursor:pointer}.app-shell .counter output{font:13px Consolas,monospace;flex:1;display:grid;place-items:center}.study-presets{display:flex;gap:7px;margin:-5px 0 22px}.study-presets button{background:transparent;border:1px solid #a8c5ec20;color:var(--muted);border-radius:6px;padding:6px 13px;font-size:10px;cursor:pointer}.study-presets button:hover{color:var(--ink);background:#a8c5ec12}#launch-practice{height:45px;font-size:13px}#launch-practice:disabled{opacity:.35;transform:none}#study-setup-message{font-size:10px;line-height:1.7;color:var(--muted);margin:12px 0 0}#resume-study{margin-top:15px;font-size:12px}.app-shell .preview{display:flex;flex-direction:column}.app-shell .preview strong{font:600 45px Arial,sans-serif;margin:14px 0 7px;color:var(--ink)}.app-shell .preview>span{font-size:11px}.preview-tags{gap:6px}.app-shell .preview-tags i{font-size:10px;border-color:#a8c5ec26;color:var(--muted);padding:5px 7px;border-radius:5px}.app-shell .preview hr{border-color:#a8c5ec20;margin:22px 0}.study-preview-stats{display:grid;gap:15px}.study-preview-stats>div{display:flex;justify-content:space-between;gap:8px;font-size:10px}.study-preview-stats span{color:var(--muted)}.study-preview-stats b{font-weight:500}.app-shell .preview p{font-size:11px;line-height:1.9;color:var(--muted)}#study-empty-note{margin-top:23px}.preview .link{margin-top:auto;align-self:flex-start;font-size:11px;color:var(--study-accent)}
#player{position:relative;border:1px solid #a8c5ec20;background:#0f192a;border-radius:14px;overflow:hidden}.player-top{border-color:#a8c5ec20;gap:15px;padding:16px 22px;flex-wrap:wrap}.player-top .plain{font-size:11px;padding:9px 12px}.timer b{font:16px Consolas,monospace}.timer small{font-size:9px}.player-progress{flex:1;max-width:230px}.study-player-layout{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:0}.app-shell .question-stage{max-width:none;padding:26px 28px 30px}.q-meta span{font-size:10px;color:var(--muted)}#save-question{border:1px solid #a8c5ec25;border-radius:25px;background:transparent;padding:7px 12px;font-size:10px;color:var(--study-accent)}.app-shell .question-stage h2{font:400 18px/2.2 'Microsoft YaHei',sans-serif;margin:28px 0;color:var(--ink);overflow-wrap:anywhere}.question-stage .katex{font-size:1.1em}.answer-options{display:grid;grid-template-columns:1fr;gap:10px}.answer-options>button{display:flex;align-items:baseline;gap:15px;padding:14px 18px;font:13px/1.8 'Microsoft YaHei',sans-serif;background:#a8c5ec03;border:1px solid #a8c5ec24;color:var(--ink);text-align:left}.answer-options>button.correct{border-color:#65be9a;background:#65be9a14}.answer-options>button.wrong{border-color:#d08c91;background:#d08c9114}.study-notes{margin-top:22px}.study-notes label{font-size:11px;margin:0 0 9px;color:var(--muted)}.study-notes textarea{border:1px solid #a8c5ec25;border-radius:9px;background:#091321;color:var(--ink);font:13px/1.8 'Microsoft YaHei',sans-serif;padding:12px;margin-top:9px}.study-notes small{color:var(--muted);font-size:9px}.study-grade{display:flex;gap:10px;margin:16px 0}.study-grade button{font-size:11px;padding:10px 17px}.app-shell #answer-note{font-size:12px;color:var(--muted);line-height:1.8}.app-shell #study-solution{border-top:1px solid #a8c5ec20;margin:20px 0;padding-top:15px}.app-shell #study-solution summary{display:flex;justify-content:space-between;color:var(--study-accent);font-size:11px;cursor:pointer}.app-shell #study-solution>div{font-size:13px;line-height:2;padding-top:15px}.study-question-nav{display:flex;align-items:center;gap:10px;margin-top:26px}.study-question-nav button{font-size:11px;padding:10px 15px}.study-question-nav #continue{margin-left:auto}.study-answer-sheet.panel{border:0;border-left:1px solid #a8c5ec20;border-radius:0;background:#a8c5ec02;padding:24px 15px}.study-answer-sheet header{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.study-answer-sheet h3{font-size:12px;margin:0}.study-answer-sheet header span{font-size:10px;color:var(--muted)}#study-question-map{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}#study-question-map button{height:29px;padding:0;border:1px solid #a8c5ec20;background:transparent;border-radius:6px;color:var(--muted);font:11px Consolas,monospace;cursor:pointer}#study-question-map button.map-current{outline:1px solid #a8c5ec;color:var(--ink)}#study-question-map button.map-ok{background:#65be9a20;color:#83cdae;border-color:#65be9a55}#study-question-map button.map-wrong{background:#d08c9120;color:#dea7ad;border-color:#d08c9155}.study-answer-sheet>p{font-size:9px;line-height:1.9;color:var(--muted);margin:16px 0}.study-answer-sheet i{display:inline-block;width:5px;height:5px;border-radius:50%;margin-right:3px}.study-answer-sheet i.map-ok{background:#65be9a}.study-answer-sheet i.map-wrong{background:#d08c91}#study-finish{font-size:10px;padding:9px}#study-pause-cover{position:absolute;inset:0;background:#0b1529ef;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;backdrop-filter:blur(10px)}#study-pause-cover h2{font-size:22px;margin:0}#study-pause-cover p{font-size:12px;color:#a5bad1}
#study-results h2{font-size:25px}.study-result-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:25px 0}.study-result-stats article{padding:15px;border:1px solid #a8c5ec20;border-radius:9px}.study-result-stats strong{font:500 24px Arial,sans-serif;display:block}.study-result-stats span{display:block;margin-top:8px;font-size:10px;color:var(--muted)}#study-results>p{font-size:11px;color:var(--muted);line-height:1.8}.study-result-list{max-height:300px;overflow-y:auto;margin:20px 0}.study-result-list>div{display:flex;justify-content:space-between;font-size:11px;padding:12px 0;border-bottom:1px solid #a8c5ec14}.study-result-list b{font-weight:500;color:var(--muted)}.study-result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.study-result-actions button{font-size:11px;padding:11px 16px}
.study-library-row{padding:19px 22px;border-bottom:1px solid #a8c5ec1a}.study-library-meta{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted)}.study-library-meta small{font-size:9px}.study-stem-button{display:block;text-align:left;border:0;background:transparent;padding:17px 0;width:100%;color:var(--ink);font:14px/2 'Microsoft YaHei',sans-serif;cursor:pointer;overflow-wrap:anywhere}.study-library-row .row-buttons{display:flex;justify-content:flex-end;gap:8px}.study-library-row .row-buttons button{background:#a8c5ec09;border:1px solid #a8c5ec20;border-radius:7px;font-size:10px;color:var(--study-accent);padding:7px 12px;cursor:pointer}#study-question-dialog{max-width:800px;width:90%;max-height:85vh;padding:28px;border:1px solid #a8c5ec25;border-radius:14px;background:var(--card);color:var(--ink)}#study-question-dialog h2{font:500 17px 'Microsoft YaHei',sans-serif}.study-preview-stem{font-size:17px;line-height:2.2;margin:25px 0}#study-question-dialog details{font-size:13px;line-height:2}#study-question-dialog summary{cursor:pointer;color:var(--study-accent)}
body.light .app-shell .study-notes textarea{background:#f1f4f8;color:#29415a}body.light #player{background:#f7f8fb}body.light #study-pause-cover{background:#e4eaf4ef}body.light #study-pause-cover p{color:#47678a}body.light .app-shell{--study-accent:#315c8a}.study-preview-stem .katex-display,.question-stage .katex-display{max-width:100%;overflow-x:auto}
@media(max-width:1050px){.app-shell .studio{grid-template-columns:1fr}.app-shell .preview{display:none}.study-player-layout{grid-template-columns:1fr}.study-answer-sheet.panel{border-left:0;border-top:1px solid #a8c5ec20}#study-question-map{grid-template-columns:repeat(10,1fr)}}
@media(max-width:650px){.app-shell .page{padding:26px 17px 40px}.app-shell .panel{padding:19px}.app-shell .field-row{grid-template-columns:1fr 1fr;gap:13px}.setup-title{align-items:flex-start}.setup-title span{max-width:90px;line-height:1.7}.study-subjects{gap:5px}.study-subjects button{font-size:10px;padding:8px 12px}.app-shell .setup label{font-size:10px}.app-shell .setup select{font-size:10px;padding:0 9px}.app-shell .question-stage{padding:21px 18px}.app-shell .question-stage h2{font-size:16px}.player-top{padding:12px;gap:9px}.player-progress{max-width:120px}.timer b{font-size:13px}.player-top .plain{padding:8px;font-size:9px}.study-question-nav{gap:6px}.study-question-nav button{font-size:10px;padding:10px}.study-result-stats{grid-template-columns:1fr 1fr;gap:9px}#study-question-map{grid-template-columns:repeat(8,1fr)}.study-library-row{padding:15px}.study-library-meta{flex-wrap:wrap}.study-stem-button{font-size:12px}#study-question-dialog{padding:20px}.study-preview-stem{font-size:15px}}
