.learning-content{max-width:1240px;margin:auto;padding:38px 42px 48px}.learning-content>.heading{margin-bottom:30px}.learning-layout{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:34px;align-items:start}.daily-panel{min-width:0}.budget-control{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:12px;white-space:nowrap}.budget-control select,.learning-controls select{padding:9px 12px;border:1px solid var(--line);border-radius:5px;background:white;font:inherit;color:var(--ink)}.allocation-note{display:flex;justify-content:space-between;gap:15px;font-size:12px;padding:17px 0;border-top:2px solid var(--ink);border-bottom:1px solid var(--line);color:var(--muted)}.allocation-note b{font-size:18px;color:var(--ink);font-weight:600}.learning-row{display:flex;align-items:center;gap:14px;min-height:85px;padding:18px 0;border-bottom:1px solid var(--line)}.learning-row:hover strong{color:var(--accent)}.learning-row>div{flex:1;min-width:0}.learning-row strong{font-size:15px;font-weight:600;line-height:1.5}.learning-row p{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.6}.learning-kind{padding:5px 7px;border-radius:4px;font-size:10px;white-space:nowrap;background:#edf1f5;color:#4a6176}.learning-kind.memory{background:#f6edf0;color:var(--accent)}.learning-kind.problem{background:#f2efe6;color:#786540}.learning-time,.learning-due{font-size:12px;white-space:nowrap;color:var(--muted)}.learning-due{min-width:48px;text-align:right}.learning-due.late{color:var(--accent)}.learning-row>span:last-child{font-size:14px;color:#8a9099}.learning-aside{border:1px solid var(--line);border-radius:8px;background:#fff;padding:23px}.learning-aside h2{font-size:18px;line-height:1.6;margin-top:13px;font-weight:600;letter-spacing:-.5px}.learning-phases{list-style:none;margin:25px 0 0;padding:0}.learning-phases li{display:flex;gap:15px;margin-top:22px;font-size:12px;line-height:1.85}.learning-phases b{min-width:41px;color:var(--accent);font-weight:600}.learning-phases span{color:var(--muted)}.learning-footer{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:var(--muted);padding:18px 0;line-height:1.7}.learning-footer a{white-space:nowrap;color:var(--accent)}.next-learning{margin-top:35px}.next-learning .section-title{margin-bottom:10px}.learning-caption{font-size:11px;color:var(--muted);margin-top:27px;line-height:1.8}.learning-details{border-top:1px solid var(--line);margin-top:26px;padding:17px 0;font-size:13px}.learning-details summary{cursor:pointer;font-weight:600;line-height:1.8}.learning-details summary span{font-weight:400;color:var(--muted);font-size:11px;margin-left:8px}.learning-details>p{color:var(--muted);line-height:1.9;margin:14px 0}.learning-details>a{color:var(--accent);font-size:12px}.learning-empty{padding:28px 0;color:var(--muted);font-size:14px;line-height:1.8}.learning-controls{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.learning-controls label{font-size:12px;display:flex;align-items:center;gap:9px}.learning-tabs{display:flex;gap:26px}.learning-tabs button{font-size:14px;padding:14px 0;border-bottom:2px solid transparent;color:var(--muted)}.learning-tabs [aria-pressed=true]{color:var(--accent);font-weight:650;border-color:var(--accent)}.view-intro{font-size:13px;color:var(--muted);margin:23px 0;line-height:1.8}.exam-course{border:1px solid var(--line);border-radius:7px;background:#fff;margin:18px 0;padding:22px}.exam-course .section-title p{font-size:12px;color:var(--muted);margin-top:8px}.exam-date input{font:inherit;border:1px solid var(--line);padding:8px;border-radius:4px;color:var(--ink);background:white}.scope-table{margin-top:20px}.scope-table>div{display:grid;grid-template-columns:minmax(150px,1fr) minmax(100px,1fr) 65px;gap:15px;padding:14px 0;border-top:1px solid var(--line);align-items:center}.scope-table b{font-size:13px;font-weight:550}.scope-table small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.scope-table>div>span{font-size:12px;color:var(--muted);line-height:1.7}.scope-table>div>span:last-child{text-align:right}.scope-table a:hover{color:var(--accent)}.method-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:22px}.method-grid p{font-size:12px;line-height:1.9;color:var(--muted);margin-top:9px}.schedule-message,.schedule-warning{border-left:2px solid var(--accent);background:#f8f2f4;padding:13px 16px;font-size:12px;line-height:1.8;margin-top:20px}.course-learning{margin-top:34px}.course-learning .section-title{margin-bottom:10px}.memory-content{max-width:800px;margin:auto;padding:36px 48px 60px}.memory-meta{display:flex;align-items:center;gap:16px;margin-top:32px;font-size:12px;color:var(--muted);flex-wrap:wrap}.memory-step{display:flex;gap:24px;margin:32px 0;font-size:11px;color:var(--muted)}.memory-content h1{font-size:27px;font-weight:600;line-height:1.6;letter-spacing:-.8px}.memory-instruction{font-size:13px;line-height:1.8;color:var(--muted);margin:13px 0 28px}#memory-answer{display:block;width:100%;border:1px solid #cdd1d7;border-radius:6px;font:inherit;font-size:18px;padding:18px;margin-top:10px;background:#fff;color:var(--ink)}#memory-answer[readonly]{background:#f3f4f6}.memory-answer{border-left:3px solid var(--accent);background:#f8f3f5;padding:22px 24px;margin-top:24px}.memory-answer>span{font-size:12px;color:var(--muted)}.memory-answer h2{font-size:24px;margin:12px 0}.memory-answer p{font-size:13px;color:var(--muted);line-height:1.8}.memory-answer a{font-size:11px;color:var(--accent);display:inline-block;margin-top:15px}.self-rating{font-size:12px;color:var(--muted);line-height:1.8;margin:22px 0 14px}.memory-ratings{display:flex;gap:10px;flex-wrap:wrap}.memory-result{margin-top:24px;border-top:1px solid var(--line);padding:24px 0 0}.memory-result>b{font-size:15px}.memory-result p{font-size:13px;line-height:1.8;color:var(--muted);margin-top:12px}.memory-record{margin:26px 0}.recall-history{padding:0 24px 20px;font-size:13px;line-height:1.8}.recall-history>div{padding:15px 0;border-top:1px solid var(--line)}.recall-history span{font-size:11px;color:var(--muted)}.recall-history p{white-space:pre-wrap;overflow-wrap:anywhere}.memory-record summary{flex-wrap:wrap;gap:15px}.memory-record summary>span{font-size:12px;color:var(--muted)}
@media(max-width:1100px){.learning-layout{grid-template-columns:minmax(0,1fr)}.learning-aside{padding:20px}.learning-aside h2{font-size:16px}.learning-phases{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:10px}.learning-phases li{margin:10px 0;display:block}.learning-phases b{display:block;margin-bottom:6px}.learning-aside .text-link{margin-top:12px}}
@media(max-width:700px){.learning-content{padding:27px 20px 36px}.learning-content>.heading{align-items:flex-start;flex-direction:column;gap:20px}.learning-content>.heading p{font-size:13px}.learning-row{gap:10px;flex-wrap:wrap;padding:18px 0}.learning-row>div{flex-basis:calc(100% - 85px)}.learning-row .learning-time{margin-left:77px}.learning-row .learning-due{margin-left:auto}.learning-row strong{font-size:14px}.learning-layout{gap:22px}.learning-phases{gap:12px}.learning-phases li{font-size:11px}.learning-footer{flex-direction:column;gap:6px}.learning-details summary span{display:block;margin-left:0}.learning-controls{gap:12px;flex-wrap:wrap;align-items:flex-start;padding-bottom:12px}.learning-tabs{gap:25px}.learning-controls label{margin-top:5px}.exam-course{padding:18px 15px}.exam-course .section-title{align-items:flex-start;flex-wrap:wrap;gap:15px}.scope-table>div{grid-template-columns:minmax(0,1fr) 115px;gap:8px}.scope-table>div>span:last-child{grid-column:2;text-align:left;font-size:11px}.method-grid{grid-template-columns:1fr;gap:16px}.memory-content{padding:27px 20px 40px}.memory-content h1{font-size:25px}.memory-step{gap:18px}.memory-ratings .button{flex:1;white-space:nowrap}.allocation-note{font-size:11px;align-items:center}.learning-caption{font-size:11px}}

.lesson-plan{margin-top:23px}.lesson-plan>h3{font-size:12px;color:var(--muted);font-weight:500;padding-bottom:9px;border-bottom:1px solid var(--line)}

.memory-content h1{word-break:keep-all;overflow-wrap:anywhere}

.budget-picker{display:flex;flex-direction:column;align-items:flex-end;gap:9px}.budget-picker>a{color:var(--muted);font-size:11px}.budget-picker>a:hover{color:var(--accent)}.budget-summary{display:flex;justify-content:space-between;gap:18px;padding:17px 0;margin-bottom:22px;border-top:1px solid var(--line);font-size:12px;line-height:1.8}.budget-summary>div{display:flex;flex-direction:column;gap:4px}.budget-summary b{font-weight:600}.budget-summary span{color:var(--muted)}.budget-summary>span{white-space:nowrap;color:var(--accent)}.budget-scope-note{color:var(--muted);font-size:11px;line-height:1.8;margin:10px 0}.settings-content{max-width:900px}.time-settings{background:white;border:1px solid var(--line);border-radius:8px;padding:32px}.settings-field>label{font-size:17px;font-weight:600}.settings-field p{font-size:13px;line-height:1.8;color:var(--muted);margin-top:10px}.minutes-input{display:flex;align-items:center;gap:12px;margin:22px 0 16px}.minutes-input input{width:130px;font:inherit;font-size:25px;border:1px solid #cdd1d7;border-radius:6px;padding:13px;color:var(--ink);background:#fff}.minutes-input>span{font-size:14px;color:var(--muted)}.time-presets{display:flex;gap:10px;flex-wrap:wrap}.time-presets button{border:1px solid var(--line);border-radius:5px;padding:9px 13px;font-size:12px}.time-presets [aria-pressed=true]{border-color:var(--accent);background:var(--tint);color:var(--accent)}#time-range{font-size:11px;margin-top:14px}.settings-calculation{margin:28px 0;padding:21px;background:#f6f7f9;border-radius:6px;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.settings-calculation>span{font-size:13px}.settings-calculation b{font-size:21px;font-weight:600}.settings-calculation p{grid-column:1/-1;font-size:12px;color:var(--muted);line-height:1.8}.settings-rules p{font-size:13px;line-height:1.9;color:var(--muted);margin-top:10px}.settings-rules b{color:var(--ink);margin-right:7px;font-weight:600}.settings-actions{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap}.settings-status{font-size:13px;line-height:1.8;color:var(--accent);margin-top:18px}.time-settings>.learning-caption{margin-top:16px}
@media(max-width:700px){.budget-picker{align-items:flex-start}.budget-summary{flex-direction:column;gap:7px}.time-settings{padding:23px 18px}.settings-calculation{padding:17px}.settings-calculation b{font-size:18px}.allocation-note{flex-wrap:wrap}.budget-control select{max-width:205px}}

.terminology-policy{margin-top:30px;padding:26px 0;border-top:1px solid var(--line)}.terminology-policy p{font-size:13px;color:var(--muted);line-height:1.9;margin:15px 0}.terminology-policy table{width:100%;border-collapse:collapse;margin:20px 0;font-size:13px;text-align:left}.terminology-policy th,.terminology-policy td{padding:13px 12px;border-bottom:1px solid var(--line)}.terminology-policy th{font-size:12px;font-weight:500;color:var(--muted)}.terminology-policy td:last-child{color:var(--accent)}.terminology-policy summary{font-size:12px;cursor:pointer}@media(max-width:700px){.terminology-policy th,.terminology-policy td{padding:12px 6px;font-size:12px}}

.workload-details{margin:-6px 0 26px;font-size:13px}.workload-details>summary{cursor:pointer;font-weight:600;line-height:1.9}.workload-details>summary>span{font-size:11px;color:var(--muted);font-weight:400;margin-left:10px}.workload-details>section{margin-top:20px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:20px}.workload-details .section-title h3{font-size:14px;font-weight:600;line-height:1.7}.workload-details .section-title>b{font-size:14px;white-space:nowrap;color:var(--accent)}.workload-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:18px 0 12px}.workload-stages>div{border-left:2px solid var(--line);padding-left:12px}.workload-stages span{font-size:12px;color:var(--muted)}.workload-stages b{font-size:16px;display:block;margin:9px 0;font-weight:600}.workload-stages p{font-size:12px;line-height:1.8}.workload-stages small{font-size:11px;color:var(--muted);line-height:1.8;display:block;margin-top:6px}.workload-overflow{font-size:12px;line-height:1.9;background:#f7edf0;border-left:2px solid var(--accent);padding:14px 17px;margin:-8px 0 25px}.lesson-workload{padding:13px 0;font-size:12px}.lesson-workload summary{cursor:pointer;line-height:1.9}.lesson-workload summary>b{margin-left:15px;font-weight:600;color:var(--accent)}.lesson-workload summary>span{color:var(--muted)}
@media(max-width:700px){.workload-stages{grid-template-columns:1fr;gap:15px}.workload-stages>div{display:grid;grid-template-columns:1fr auto;gap:4px 10px}.workload-stages b{font-size:14px;margin:0}.workload-stages small{grid-column:1/-1;margin:0}.workload-stages p{grid-column:1/-1}.workload-details>section{padding:17px}.workload-details .section-title{align-items:flex-start}.workload-details .section-title h3{font-size:13px}}

/* Content-first layout: navigation, study material, and actions have separate surfaces. */
.prototype{height:30px;min-height:30px;background:#f5f5f6;color:#73737b;border-bottom:1px solid #e6e6e9;padding:0 24px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px}.prototype>span,.prototype>a{font-size:11px}.prototype>a{color:#64646e}.shell{min-height:calc(100vh - 30px)}.sidebar{top:30px;height:calc(100vh - 30px);background:#f7f7f8}.view{background:#fcfcfd}.topline{min-height:58px}.main-nav .active{background:#eee6e9;color:var(--accent)}.main-nav .active .nav-icon{color:var(--accent)}.heading h1{font-size:30px;font-weight:650;margin:10px 0 0}.heading .eyebrow{letter-spacing:.3px}.learning-content,.organize-content{max-width:1180px;padding:40px 44px 60px}.heading{gap:24px;align-items:flex-end}.quiet-link{font-size:13px;color:var(--muted)}.quiet-link:hover{color:var(--accent)}.budget-control{align-items:flex-start;gap:6px;font-size:11px}.budget-control select{font-size:13px;min-width:210px}.budget-picker>a{font-size:11px}.today-focus{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:22px;margin-top:32px}.study-resume{background:white;border:1px solid #dfdce0;border-top:3px solid var(--accent);border-radius:10px;padding:27px 30px}.section-kicker{font-size:12px;font-weight:600;color:var(--accent);display:flex;justify-content:space-between;align-items:center}.section-kicker>span{font-weight:400;color:var(--muted)}.study-resume h2{font-size:27px;font-weight:620;letter-spacing:-.9px;margin:23px 0 9px}.study-resume>p{font-size:13px;color:var(--muted)}.resume-preview{display:flex;align-items:center;gap:18px;margin:23px 0;padding:18px;background:#f7f7f9;border-radius:6px}.preview-sheet{display:block;background:white;border:1px solid #dedde2;width:70px;height:78px;padding:10px;font-size:17px;color:var(--accent);box-shadow:0 2px 3px #15151b08}.preview-sheet>span{display:block;font-size:7px;margin-top:5px;color:#555}.preview-sheet i{display:block;height:2px;background:#d8d8de;margin-top:6px;width:40px}.preview-sheet i:last-child{width:28px}.resume-preview>div{display:flex;flex-direction:column;gap:6px}.resume-preview b{font-size:15px;font-weight:550}.resume-preview>div>span{font-size:12px;color:var(--muted)}.resume-preview small{font-size:11px;color:#89838a}.resume-actions{display:flex;align-items:center;gap:22px}.resume-actions .text-link{margin:0;font-weight:500;color:#65606a}.due-card{border:1px solid var(--line);border-radius:10px;padding:28px 24px;background:#f7f7f9;display:flex;flex-direction:column;align-items:flex-start}.due-card .section-kicker{color:var(--ink)}.due-count{font-size:62px;letter-spacing:-2px;font-weight:500;line-height:1;margin:24px 0 12px}.due-count>span{font-size:13px;font-weight:400;color:var(--muted);margin-left:7px;letter-spacing:0}.due-card>p{font-size:12px;color:var(--accent)}.due-subject{margin:24px 0;font-size:13px;display:flex;flex-direction:column;gap:7px}.due-subject>span{font-size:12px;color:var(--muted)}.due-card>.button{width:100%;margin-top:auto}.due-card>.quiet-link{margin-top:13px;align-self:center;font-size:12px}#today .dashboard>section{margin-top:28px}
#today .dashboard>section>.section-title{padding-bottom:14px;flex-wrap:wrap;row-gap:8px}
#today .dashboard>section>details>summary{padding:16px 4px;line-height:1.6;cursor:pointer}
#today .dashboard>section>details[open]{padding-bottom:12px}
.today-lessons{margin-top:36px}.today-lessons .section-title{padding-bottom:15px;border-bottom:1px solid var(--ink)}.today-lessons .section-title h2>span{font-size:13px;font-weight:400;color:var(--muted);margin-left:8px}.day-lesson{display:flex;align-items:center;gap:17px;padding:19px 4px;border-bottom:1px solid var(--line)}.day-lesson>div{flex:1;min-width:0}.day-lesson h3{font-size:15px;font-weight:550;margin-top:5px;line-height:1.5}.lesson-duration{font-size:12px;color:var(--muted);white-space:nowrap}.lesson-open{font-size:12px;color:var(--accent);margin-left:14px;white-space:nowrap}.carry-note{font-size:12px;line-height:1.8;color:#805e38;background:#faf5ec;border-radius:5px;padding:12px 16px;margin-top:16px}.today-lessons .learning-details{border-top:0;margin:0;padding:17px 0;color:var(--muted)}.today-lessons .learning-details section{padding:18px 0}.today-lessons .learning-details h3{font-size:14px;color:var(--ink)}.dashboard-footer{margin-top:20px;display:flex;gap:25px;font-size:12px;color:var(--muted)}.review-overview{display:flex;justify-content:space-between;align-items:center;padding:28px 0;gap:15px}.review-overview h2{font-size:18px;font-weight:550}.review-overview h2>b{color:var(--accent);margin-left:8px}.review-overview p{font-size:12px;color:var(--muted);margin-top:8px}.task-list{border-top:1px solid var(--line)}.task-list .learning-row{padding:20px 8px}.week-heading{padding:25px 0}.empty-state{padding:75px 25px;background:white;border:1px solid var(--line);border-radius:8px;text-align:center;margin:24px 0}.empty-state h1,.empty-state h2{font-size:22px;font-weight:600;line-height:1.6}.empty-state p{font-size:14px;line-height:1.8;color:var(--muted);margin:12px 0 24px}.empty-state .text-link{display:block;margin-top:22px}.empty-symbol{display:block;font-size:34px;color:#a098a1;margin-bottom:20px}.records-title{padding-bottom:20px;border-bottom:1px solid var(--line)}.record-entry,.live-session-record{background:white}.course-collection{margin-top:32px}.course-tile{box-shadow:none}.schedule-section{background:white}.guided-content{max-width:860px}.guided-grid{display:block}.guided-main{width:100%;max-width:740px;margin:auto}.guide-progress{justify-content:space-between}.guide-heading h1{font-size:27px}.memory-content{max-width:760px}.reader-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 30px;background:white;border-bottom:1px solid var(--line)}.reader-heading h1{font-size:20px;font-weight:600;margin-bottom:9px}.reader-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;min-height:calc(100vh - 190px)}.reader-document{background:#eeeff2;min-width:0;padding-bottom:22px}.reader-toolbar{display:flex;justify-content:space-between;align-items:center;padding:18px 25px;color:var(--muted);font-size:12px}.reader-toolbar a{color:#706475;font-size:11px}.reading-paper{margin:8px 28px 20px;background:white;border:1px solid #e2e2e8;box-shadow:0 3px 12px #28223508;padding:35px;min-height:450px}.reading-chapter{font-size:9px;letter-spacing:1.4px;color:#898590}.reading-paper h2{font-size:29px;letter-spacing:-.6px;margin:25px 0 10px;font-weight:600}.reading-paper>p{font-size:13px;color:#76717e;line-height:1.6}.reading-diagram{margin:30px 0;display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #eeedf1;border-bottom:1px solid #eeedf1;padding:25px 5px}.reading-diagram>div{display:flex;flex-direction:column;align-items:center;gap:7px}.reading-diagram small{font-size:12px;color:#837881}.reading-diagram b{font-size:35px;font-weight:500;letter-spacing:-1px;color:var(--accent)}.reading-diagram span{font-size:10px;color:#8a848c}.reading-diagram .reading-arrows>span{font-size:45px;color:#9a7783;line-height:1}.reading-diagram .reading-arrows>small{font-size:9px}.reading-paper ul{padding-left:18px;font-size:13px;color:#48444e;line-height:1.9}.reading-paper li{margin-top:10px}.reading-paper footer{font-size:9px;line-height:1.8;color:#99949c;margin-top:30px;padding-top:15px;border-top:1px solid #eeedf1}.reader-pagination{display:flex;justify-content:center;align-items:center;gap:25px;font-size:12px;color:var(--muted)}.reader-pagination button{border:1px solid #dad9e1;background:white;border-radius:5px;width:34px;height:34px}.reader-pagination button:disabled{opacity:.35;cursor:default}.reader-notes{background:white;border-left:1px solid var(--line);min-width:0}.reader-notes .note-tabs{justify-content:space-between;gap:15px;height:54px}.note-page{font-size:11px;color:#8f7d87}.reader-notes .note-content h2{font-size:21px;line-height:1.6}.reader-notes .note-content p{font-size:15px;line-height:1.9}.supplement{background:#f7f7fa;padding:18px;border-radius:5px;margin-top:25px}.supplement h3{margin:0 0 10px;font-size:12px;color:#737080}.reader-notes .supplement p{font-size:13px}.reader-source{font-size:11px;color:var(--muted);margin-top:23px}.reader-source summary{cursor:pointer}.reader-notes .reader-source p{font-size:12px;margin-top:10px}.reader-notes .note-study{font-size:13px}.reader-notes .note-content textarea{font-size:15px;margin-top:12px}.reader-notes .note-content .small{font-size:11px}.learning-details>section>h3{margin-bottom:10px}.memory-instruction{font-size:13px}
@media(min-width:1450px){.reader-layout{grid-template-columns:minmax(0,1fr) 370px}.reading-paper{max-width:790px;margin-left:auto;margin-right:auto;padding:45px 50px}.reader-document{padding-left:25px;padding-right:25px}}
@media(max-width:1100px){.learning-content,.organize-content{padding:32px 28px 48px}.today-focus{grid-template-columns:minmax(0,1fr) 215px;gap:18px}.study-resume{padding:25px}.study-resume h2{font-size:24px}.due-card{padding:25px 20px}.reader-layout{grid-template-columns:minmax(0,1fr) 280px}.reading-paper{margin:5px 16px 20px;padding:25px}.reading-paper h2{font-size:25px}}
@media(max-width:850px){.today-focus{grid-template-columns:1fr}.due-card{display:grid;grid-template-columns:1fr auto;gap:10px 25px}.due-card .section-kicker{grid-column:1}.due-count{grid-column:2;grid-row:1/4;margin:0;font-size:48px}.due-card>p{grid-column:1}.due-subject{grid-column:1;margin:4px 0 8px;display:block}.due-subject>span{margin-left:8px}.due-card>.button{grid-column:1/3}.due-card>.quiet-link{grid-column:1/3;justify-self:center;margin:0}.heading{align-items:flex-start}.dashboard>.heading{flex-wrap:wrap}.reader-layout{grid-template-columns:1fr}.reader-notes{border-left:0;border-top:1px solid var(--line)}.reading-paper{max-width:640px;margin:5px auto 20px}.reader-document{padding:0 22px 20px}.reader-notes .note-content{max-width:700px;margin:auto}}
@media(max-width:700px){.prototype{min-height:28px;height:28px;padding:0 16px;flex-direction:row}.prototype>span,.prototype>a{font-size:10px}.sidebar{height:auto;top:auto;flex-wrap:wrap;padding:14px 18px 8px;gap:12px}.sidebar .brand{font-size:15px}.main-nav{flex-basis:100%;justify-content:space-between;gap:8px;margin:0}.main-nav>a{justify-content:center;flex:1;padding:10px 4px;font-size:13px;white-space:nowrap}.sidebar .schedule-shortcut{display:none}.learning-content,.organize-content{padding:27px 21px 40px}.heading h1{font-size:27px}.budget-picker{width:100%;align-items:flex-start}.budget-control{flex-direction:row;align-items:center;font-size:12px;justify-content:space-between;width:100%}.budget-control select{min-width:0;max-width:220px}.budget-picker>a{margin-top:2px;align-self:flex-end}.today-focus{margin-top:23px}.study-resume{padding:24px 22px}.study-resume h2{font-size:25px;line-height:1.5;margin-top:20px}.resume-actions{gap:20px}.resume-actions .button{font-size:13px}.day-lesson{gap:10px;flex-wrap:wrap;padding:17px 0}.day-lesson>div{flex-basis:calc(100% - 30px)}.lesson-duration{margin-left:17px}.lesson-open{margin-left:auto}.today-lessons .section-title{gap:12px;flex-wrap:wrap}.today-lessons .section-title h2{font-size:16px}.learning-row{flex-wrap:wrap;gap:8px 10px}.learning-row>div{flex-basis:65%}.learning-row .learning-time{margin-left:auto}.learning-controls{gap:8px}.learning-tabs{gap:18px}.learning-controls label{font-size:11px}.learning-controls select{padding:7px;font-size:12px;max-width:90px}.review-overview h2{font-size:17px}.review-overview .button{font-size:12px;padding:10px 12px}.reader-heading{padding:20px;flex-wrap:wrap}.reader-heading h1{font-size:20px}.reader-heading>.button{width:100%;font-size:13px}.reader-document{padding:0 13px 20px}.reader-toolbar{padding:16px 6px}.reading-paper{padding:27px 22px;min-height:0}.reading-paper h2{font-size:26px}.reading-paper>p{font-size:12px}.reading-diagram{gap:8px}.reading-diagram b{font-size:30px}.reading-paper ul{font-size:12px}.reader-notes .note-tabs{justify-content:space-around}.reader-notes .note-content{padding:26px 24px}.empty-state{padding:46px 20px}.empty-state h2{font-size:20px}.empty-state p{font-size:13px}.guided-content{padding:25px 22px 45px}.guide-progress{gap:8px}.guide-progress>span{font-size:11px;gap:6px}.guide-progress>span>b{font-size:10px}.guide-heading h1{font-size:24px}.memory-content{padding:28px 23px 40px}}
.overdue-label{display:inline-block;margin-left:7px;color:var(--accent);font-size:10px;background:#f3e9ed;padding:2px 5px;border-radius:3px}.live-session-record{margin-top:22px}

/* Settings follow a category navigation + focused panel pattern. */
.settings-workspace{max-width:1210px;margin:auto;padding:35px 42px 65px}.settings-workspace>.heading{margin-bottom:30px}.settings-layout{display:grid;grid-template-columns:160px minmax(0,1fr);gap:40px}.settings-nav{display:flex;flex-direction:column;gap:5px;align-self:start;position:sticky;top:25px}.settings-nav a{padding:12px 14px;border-radius:6px;font-size:14px;color:var(--muted)}.settings-nav a[aria-current]{background:#eee6ea;color:var(--accent);font-weight:600}.settings-nav a:hover{background:#f0edf1}.settings-panel{min-width:0}.settings-panel>header{margin:4px 0 24px}.settings-panel>header h2{font-size:22px;font-weight:600}.settings-panel>header p{font-size:13px;color:var(--muted);margin-top:8px}.preferences-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:23px 25px;margin-bottom:20px}.preferences-card>h2{font-size:15px;font-weight:650;padding-bottom:18px;border-bottom:1px solid var(--line)}.preference-row{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:20px 0;border-bottom:1px solid #ececf0}.preference-row:last-child{border-bottom:0;padding-bottom:0}.preference-row>div:first-child{min-width:0}.preference-row h3{font-size:14px;font-weight:550;line-height:1.5}.preference-row p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:6px;max-width:380px;word-break:keep-all}.preference-control{flex-shrink:0;max-width:48%}.preference-control select,.preference-control input[type=date]{border:1px solid #dcdce3;background:#fff;border-radius:5px;padding:9px 11px;color:var(--ink);font:inherit;font-size:13px;max-width:100%}.preference-state{font-size:11px;color:#807783;white-space:nowrap;background:#f4f2f5;border-radius:4px;padding:5px 8px}.time-preferences .settings-field{padding:20px 0 0}.time-preferences .settings-field>label{font-size:14px;font-weight:550}.time-preferences .settings-field>p{font-size:12px;line-height:1.8}.time-preferences .minutes-input{margin-top:18px}.time-preferences .settings-actions{padding-top:20px;margin-top:0}.time-preferences .settings-status{margin-top:10px}.time-preferences .settings-status:empty{display:none}.time-preferences #settings-total{white-space:nowrap;font-size:16px;font-weight:550}.time-preferences .time-presets button{font-size:12px}.preference-status,.preference-note{font-size:12px;line-height:1.9;color:var(--muted);margin-top:18px}.pdf-settings-intro{display:flex;align-items:center;gap:18px;margin-bottom:25px}.pdf-file-icon{width:48px;height:61px;border:1px solid #d6c1c8;border-radius:5px;display:grid;place-items:center;color:var(--accent);font-size:12px;background:#fff}.pdf-settings-intro h2{font-size:18px;font-weight:600}.pdf-settings-intro p{font-size:12px;color:var(--muted);margin-top:7px}.pdf-example{display:flex;gap:20px;align-items:center;justify-content:space-between;padding-top:22px}.pdf-example b{font-size:14px;font-weight:550}.pdf-example p{font-size:11px;line-height:1.8;color:var(--muted);margin-top:8px}.pdf-example .button{font-size:12px}.switch-label{display:flex;align-items:center;gap:9px;font-size:12px}.switch-label input{height:18px;width:18px;accent-color:var(--accent)}.type-preview{border:1px solid #e9e6eb;background:#faf9fb;border-radius:5px;padding:19px;margin-top:12px}.type-preview>span{font-size:10px;color:var(--muted)}.type-preview>p{font-size:16px;margin-top:10px;line-height:1.8}.terminology-setting .terminology-policy{border:0;padding:0;margin:0;background:transparent}.terminology-setting .terminology-policy p{font-size:12px}.terminology-setting .terminology-policy h2{font-size:15px}.reader-actions{display:flex;gap:10px;flex-wrap:wrap}.reader-actions .button{font-size:12px}.preference-row .button{font-size:12px}.settings-panel .quiet-link{font-size:12px;white-space:nowrap}
html[data-reading-size=large] .type-preview>p,html[data-reading-size=large] .reader-notes .note-content p,html[data-reading-size=large] .reading-paper li,html[data-reading-size=large] .learning-source p,html[data-reading-size=large] .problem-stem p,html[data-reading-size=large] .guide-response textarea,html[data-reading-size=large] .own-output p,html[data-reading-size=large] .memory-content input,html[data-reading-size=large] .memory-answer p{font-size:19px;line-height:1.9}
html[data-reduce-motion=true] *,html[data-reduce-motion=true] *::before,html[data-reduce-motion=true] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(max-width:1050px){.settings-workspace{padding:30px 26px 45px}.settings-layout{grid-template-columns:135px minmax(0,1fr);gap:23px}.preferences-card{padding:20px}.preference-row{gap:15px}.pdf-example{align-items:flex-start;flex-direction:column}.preference-state{white-space:normal;line-height:1.6}}
@media(max-width:800px){.settings-layout{grid-template-columns:1fr;gap:25px}.settings-nav{position:static;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;border-bottom:1px solid var(--line);padding-bottom:15px}.settings-nav a{text-align:center;padding:10px 5px;font-size:13px}.settings-workspace>.heading{margin-bottom:20px}.settings-panel>header{margin-top:0}.preference-row p{max-width:none}}
@media(max-width:500px){.settings-workspace{padding:26px 20px 40px}.preferences-card{padding:20px 17px}.preference-row{align-items:flex-start;flex-wrap:wrap;gap:12px}.preference-control{max-width:100%}.preference-row>div:first-child{flex-basis:100%}.preference-row .preference-state{display:inline-block}.settings-panel>header h2{font-size:21px}.pdf-settings-intro h2{font-size:16px}.pdf-settings-intro p{line-height:1.7}.reader-actions{width:100%}.reader-actions .button{flex:1}.settings-panel .settings-actions .button{width:100%}}
html[data-reading-size=large] #memo-input,html[data-reading-size=large] .reading-paper>p,html[data-reading-size=large] .guide-choices label,html[data-reading-size=large] .guide-feedback>p{font-size:19px;line-height:1.9}
.question-sources{display:flex;align-items:center;gap:18px;padding:14px 0;margin:10px 0 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.question-sources>span{font-size:12px;font-weight:600;white-space:nowrap}.question-sources small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:5px}.question-sources>div{display:flex;flex-wrap:wrap;gap:8px}.question-sources a{font-size:12px;color:var(--accent);background:white;border:1px solid #dfd4da;border-radius:5px;padding:8px 11px}.question-sources a:hover{background:#f8f0f3}.question-sources a>span{margin-left:8px}.source-return{display:flex;align-items:center;gap:20px;padding:14px 30px;border-bottom:1px solid #e1d4db;background:#f7f1f4;position:sticky;top:0;z-index:3}.source-return>div{display:flex;align-items:center;gap:8px;font-size:12px}.source-return>div>span{color:var(--muted);margin-right:5px}.source-return>div>a{background:#fff;padding:6px 10px;border:1px solid #e2d7dd;border-radius:4px}.source-return a[aria-current]{border-color:var(--accent);color:var(--accent);font-weight:600}.source-return>small{margin-left:auto;color:var(--muted);font-size:11px}.source-used{font-size:11px;color:var(--accent);margin:-9px 0 18px}.cell-shapes{display:flex;align-items:end;justify-content:space-around;gap:15px;margin:30px 0;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.cell-shapes>div{display:flex;align-items:center;flex-direction:column;gap:15px}.cell-shapes i{display:block;background:#f1dce4;border:2px solid #986277;border-radius:5px}.shape-flat{height:18px;width:70px}.shape-cube{height:48px;width:48px}.shape-column{height:76px;width:36px}.cell-shapes span{font-size:12px;color:#756a75}.gradient-example{display:flex;justify-content:space-around;gap:20px;background:#f7f3f6;border-radius:6px;margin:28px 0;padding:28px 12px}.gradient-example span{display:block;font-size:11px;color:var(--muted);margin-bottom:12px}.gradient-example b{font-size:21px;font-weight:500;color:var(--accent)}
@media(max-width:700px){.source-return{padding:12px 18px;gap:12px;flex-wrap:wrap}.source-return>small{display:none}.source-return>.button{font-size:12px}.source-return>div{font-size:11px}.cell-shapes{gap:10px}.cell-shapes span{font-size:10px}.shape-flat{width:58px}.gradient-example b{font-size:17px}.question-sources{gap:15px}}
.memory-ratings button:disabled{opacity:.4;cursor:not-allowed}
.creation-workspace{max-width:1200px}.creation-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:32px;align-items:start}.creation-form{background:#fff;border:1px solid var(--line);border-radius:10px;padding:28px}.creation-form select{width:100%;padding:12px;border:1px solid #d9d3d8;border-radius:5px;background:#fff;font:inherit;font-size:14px}.creation-types{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:26px 0}.creation-types button{text-align:left;background:#fff;border:1px solid var(--line);border-radius:7px;padding:18px;cursor:pointer;color:inherit;font:inherit}.creation-types button[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:#fbf6f8}.creation-types b{display:block;font-size:15px;margin-bottom:8px}.creation-types span{font-size:12px;color:var(--muted)}.creation-options label{display:block;font-size:13px;font-weight:600;margin:20px 0 10px}.creation-options p,.creation-submit p{font-size:12px;line-height:1.8;color:var(--muted)}.creation-submit{border-top:1px solid var(--line);margin-top:26px;padding-top:22px}.creation-submit button:disabled{opacity:.45;cursor:not-allowed}.creation-preview{padding:12px 0}.creation-preview h2{font-size:23px;margin:10px 0 25px}.creation-preview dl{margin:0}.creation-preview dl>div{display:grid;grid-template-columns:50px 1fr;gap:15px;border-bottom:1px solid var(--line);padding:15px 0;font-size:13px}.creation-preview dt{color:var(--muted)}.creation-preview dd{margin:0;line-height:1.6}.creation-sample{margin-top:30px}.creation-sample h3{font-size:14px}.creation-sample p{font-size:12px;color:var(--muted);line-height:1.8;margin:10px 0 18px}.course-sections{flex-wrap:wrap}
@media(max-width:850px){.creation-layout{grid-template-columns:1fr;gap:24px}.creation-preview{padding:0 5px}.creation-form{padding:22px}.creation-types button{padding:15px}.creation-types span{line-height:1.7;display:block}}
.summary-lead{font-size:16px!important;line-height:1.85!important;color:#342e35}.summary-section{margin-top:26px}.summary-section h3,.summary-caution b{font-size:13px;font-weight:700}.summary-section ol,.summary-section ul{padding-left:20px;margin:13px 0 0}.summary-section li{font-size:14px;line-height:1.85;padding-left:3px;margin-bottom:12px}.summary-section li::marker{color:var(--accent);font-weight:600}.summary-caution{border-left:2px solid var(--accent);padding:4px 0 4px 15px;margin:24px 0}.summary-caution p{font-size:13px!important;margin:8px 0 0!important}.source-unavailable{font-size:12px!important;color:var(--muted);line-height:1.8!important}.summary-extra{border-top:1px solid var(--line);padding:18px 0;margin-top:24px}.summary-extra summary{cursor:pointer;font-size:13px;font-weight:600}.summary-extra p{margin-top:12px}.transcript-empty h2{font-size:19px;margin-top:28px}.transcript-empty p{font-size:14px;line-height:1.9}.transcript-segment{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.transcript-segment>span,.transcript-caption{font-size:12px;color:var(--muted)}.transcript-segment p{white-space:pre-wrap;line-height:1.9}.transcript-segment small{color:var(--accent)}.memo-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.memo-heading .guide-label{margin:0}.memo-heading button{border:0;background:none;font:inherit;font-size:11px;cursor:pointer;white-space:nowrap}.memo-save-status{font-size:11px!important;color:var(--muted);margin:10px 0 20px!important;line-height:1.7!important}.memo-save-status.failed{color:#a12f32}.memo-permissions{border:0;border-top:1px solid var(--line);margin:24px 0 0;padding:15px 0 0}.memo-permissions legend{font-size:13px;font-weight:600;padding-right:12px}.memo-permissions p{font-size:12px!important;color:var(--muted);margin:0 0 14px!important}.memo-permissions label{display:flex;gap:8px;align-items:center;font-size:13px;margin:12px 0}.memo-permissions input{accent-color:var(--accent)}.memo-storage-note{font-size:11px!important;line-height:1.8!important;color:var(--muted);margin-top:22px!important}.creation-memos{border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.creation-memos h3{font-size:13px}.creation-memos p{font-size:13px}.creation-memos a{display:inline-block;font-size:12px;color:var(--accent);margin:0 12px 12px 0}.creation-memos small{display:block;color:var(--muted);font-size:11px;line-height:1.8}html[data-reading-size=large] .summary-section li{font-size:18px}
.review-timeline{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:12px;list-style:none;padding:0;margin:20px 0 12px}.review-timeline li{border-top:2px solid #d9c5ce;padding-top:12px}.review-timeline b{display:block;font-size:16px;color:var(--accent);margin-bottom:8px}.review-timeline span{font-size:12px;color:var(--muted)}.review-plan-note{font-size:12px!important;color:var(--muted);line-height:1.8!important}.repetition-panel{margin-top:35px;padding-top:25px;border-top:1px solid var(--line)}.repeat-item{border-bottom:1px solid var(--line)}.repeat-item>summary{display:flex;justify-content:space-between;gap:15px;cursor:pointer;padding:20px 0;font-size:14px}.repeat-item>summary span{font-size:12px;color:var(--muted);white-space:nowrap}.repeat-item>div{padding:0 10px 22px}.repeat-item[open]>summary strong{color:var(--accent)}.scope-table>div>span>small{display:block;font-size:10px;margin-top:6px;color:var(--muted)}#memory-answer{box-sizing:border-box;width:100%;min-height:125px;padding:17px;border:1px solid var(--line);border-radius:6px;background:#fff;font:inherit;line-height:1.8;resize:vertical}.memory-answer h2{font-size:20px;line-height:1.7}.learning-kind{white-space:normal;line-height:1.6}.memory-content .learning-caption{line-height:1.8}html[data-reading-size=large] #memory-answer{font-size:19px}.review-timeline+.review-plan-note{margin-bottom:20px}
@media(max-width:600px){.review-timeline{grid-template-columns:1fr 1fr}.repeat-item>summary{flex-direction:column;gap:8px}}

/* Shared type hierarchy: compact interface headings, unchanged reading text. */
:root{--type-page:24px;--type-task:22px;--type-panel:18px;--type-section:16px}
.heading h1,.organize-content .heading h1{font-size:var(--type-page);line-height:1.4;letter-spacing:-.6px;margin-top:8px}
.learning-content>.heading,.organize-content .heading,.settings-workspace>.heading{margin-bottom:24px}
.study-resume h2,.resume h2{font-size:var(--type-task);line-height:1.5;letter-spacing:-.5px;margin-top:18px}
.study-resume{padding:24px 26px}.today-focus{margin-top:26px}
.resume-preview{margin:20px 0;padding:16px}
.due-count{font-size:36px;line-height:1.15;letter-spacing:-1px;margin:18px 0 10px}
.due-subject{margin:18px 0}.review-number{font-size:36px;letter-spacing:-1px}
.section-title h2,.review-overview h2,.learning-aside h2{font-size:var(--type-section);line-height:1.5}
.course-tile h3{font-size:var(--type-panel);line-height:1.5;margin-top:16px}
.guide-heading h1,.memory-content h1,.study-question h1,.guide-unavailable h1{font-size:var(--type-task);line-height:1.55;letter-spacing:-.4px}
.learning-source h3{font-size:var(--type-section)}
.guide-feedback h2,.memory-answer h2{font-size:var(--type-panel);line-height:1.65}
.reader-heading h1{font-size:var(--type-panel);line-height:1.5;margin-bottom:6px}
.reading-paper h2{font-size:24px;line-height:1.4;letter-spacing:-.4px;margin-top:20px}
.reader-notes .note-content h2{font-size:var(--type-panel);line-height:1.6}
.reading-diagram b,.diffusion-figure b{font-size:28px;letter-spacing:-.5px}
.gradient-example b{font-size:18px}
.settings-panel>header h2,.creation-preview h2{font-size:var(--type-panel);line-height:1.5}
.minutes-input input{font-size:18px;padding:11px 13px}
.empty-state h1,.empty-state h2,.semester-empty h2{font-size:var(--type-panel);line-height:1.6}
.catchup-dialog h2,dialog h2{font-size:20px;line-height:1.5}
.button{font-size:13px}
html:not([data-reading-size=large]) #memory-answer{font-size:16px;line-height:1.8}
@media(max-width:850px){.due-count{margin:0;font-size:34px}}
@media(max-width:700px){
 :root{--type-page:22px;--type-task:20px;--type-panel:17px}
 .study-resume{padding:21px 20px}.today-focus{margin-top:20px}
 .reading-paper h2{font-size:22px}.reading-diagram b,.diffusion-figure b{font-size:26px}
 .main-nav>a{font-size:12px}.button{font-size:13px}
}

/* Reading checkpoints and cumulative practice share the compact study typography. */
.reader-learning-flow{margin:22px 28px 0;background:white;border:1px solid var(--line);border-radius:7px;padding:17px 19px}
.reader-learning-flow>div{display:flex;align-items:center;gap:13px}.flow-position{font-size:11px;color:var(--accent);white-space:nowrap}.reader-learning-flow>div>div{flex:1;min-width:0}.reader-learning-flow b{font-size:13px;font-weight:600;line-height:1.5}.reader-learning-flow>div>div>span{display:block;font-size:11px;color:var(--muted);margin-top:5px}.reader-learning-flow .button{font-size:12px;white-space:nowrap}.reader-learning-flow details{margin-top:15px;border-top:1px solid var(--line);padding-top:12px;font-size:12px}.reader-learning-flow summary{color:var(--muted);cursor:pointer}.reader-learning-flow ol{list-style:none;padding:0;margin:12px 0}.reader-learning-flow li{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line);line-height:1.6}.reader-learning-flow li>a:last-child{color:var(--accent);white-space:nowrap}.reader-learning-flow .quiet-link{font-size:12px}
.practice-content{max-width:820px;margin:auto;padding:28px 36px 48px}.practice-stage{display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--line);padding-bottom:16px;font-size:12px;color:var(--muted)}.practice-stage [aria-current]{color:var(--accent);font-weight:600}.practice-provenance{font-size:11px;color:var(--muted);margin:22px 0 12px}.practice-card{background:white;border:1px solid var(--line);border-radius:9px;padding:27px 30px}.practice-question-meta{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:15px}.practice-question-meta>span:first-child{color:var(--accent)}.practice-card h1{font-size:var(--type-task);line-height:1.55;font-weight:600;letter-spacing:-.4px;margin-bottom:14px}.practice-instruction{font-size:14px;line-height:1.8;color:var(--muted);margin-bottom:21px}.practice-options{border:0;padding:0;margin:24px 0 16px;display:grid;gap:10px;min-width:0}.practice-options label{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:6px;padding:14px 15px;font-size:15px;line-height:1.7;cursor:pointer}.practice-options label:has(input:checked){border-color:#a66c7d;background:#faf5f7}.practice-options input{accent-color:var(--accent);flex-shrink:0}.practice-options label>span{font-size:12px;color:var(--muted)}.practice-options:disabled label{cursor:default}.practice-fields{display:grid;gap:13px;margin:24px 0 16px}.practice-fields label{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);align-items:center;gap:16px;font-size:13px}.practice-fields input{font:inherit;font-size:16px;min-width:0;width:100%;padding:11px 13px;border:1px solid #d3d3da;border-radius:5px;color:var(--ink);background:white;line-height:1.7}.practice-fields input[readonly]{background:#f7f7f9}.practice-tools{display:flex;align-items:center;gap:14px;font-size:11px;color:var(--muted);margin-bottom:18px}.practice-tools .text-link{margin:0;font-size:12px}.practice-feedback{margin:22px 0;border-left:3px solid #889c88;background:#f6f8f6;padding:17px 19px}.practice-feedback.is-wrong{border-color:#a97886;background:#fcf7f8}.practice-feedback h2{font-size:16px;margin-bottom:10px}.practice-feedback p{font-size:14px;line-height:1.85;margin-top:9px}.practice-feedback .practice-expected{font-weight:600}.practice-feedback small{display:block;color:var(--muted);font-size:11px;margin-top:12px}.practice-feedback .practice-next-review{font-size:12px;color:var(--accent)}.practice-error{color:var(--accent);font-size:13px;line-height:1.7;margin-top:13px}.practice-error:empty{display:none}.practice-storage{font-size:11px;line-height:1.8;color:var(--muted);margin:18px 0}.practice-storage .save-failed{color:var(--accent);margin-bottom:10px}.practice-storage .button{font-size:12px;margin-right:10px}.practice-score{display:flex;gap:25px;padding:20px 0;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}.practice-score b{font-size:20px;font-weight:550;color:var(--ink);margin-left:8px}.practice-results details{border-bottom:1px solid var(--line);padding:15px 0}.practice-results summary{display:flex;justify-content:space-between;gap:16px;cursor:pointer;font-size:13px;line-height:1.6}.practice-results summary>b{color:var(--accent);font-weight:500;white-space:nowrap}.practice-results p{font-size:13px;line-height:1.85;margin-top:12px;overflow-wrap:anywhere}.practice-summary-note{font-size:12px;line-height:1.8;color:var(--muted);margin:22px 0}.practice-figure{margin:22px 0;padding:24px 18px;background:#f8f7fa;border:1px solid var(--line);border-radius:6px}.practice-figure>div{display:flex;justify-content:space-around;gap:20px;min-height:110px;align-items:flex-end}.practice-figure>div>div{display:flex;flex-direction:column;align-items:center;gap:18px}.practice-cell{display:block;border:2px solid #99728d;background:#ece2ed;position:relative;border-radius:5px;width:56px;height:56px}.practice-cell:after{content:'';position:absolute;width:12px;height:12px;background:#94708b;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%)}.practice-cell.flat{width:85px;height:20px}.practice-cell.flat:after{height:8px;width:16px}.practice-cell.column{width:38px;height:88px}.practice-figure b{font-size:13px;font-weight:550}.practice-figure figcaption{font-size:11px;color:var(--muted);margin-top:24px;text-align:center}
html[data-reading-size=large] .practice-instruction,html[data-reading-size=large] .practice-options label,html[data-reading-size=large] .practice-fields input,html[data-reading-size=large] .practice-feedback p{font-size:19px;line-height:1.9}
@media(max-width:700px){.reader-learning-flow{margin:20px 0 0;padding:15px}.reader-learning-flow>div{flex-wrap:wrap}.reader-learning-flow>div>div{min-width:180px}.reader-learning-flow>div>.button{margin-left:auto}.reader-learning-flow li{flex-wrap:wrap;gap:5px}.practice-content{padding:23px 18px 40px}.practice-card{padding:22px 18px}.practice-stage{gap:22px}.practice-fields label{grid-template-columns:1fr;gap:7px}.practice-options label{font-size:14px;padding:12px;gap:9px}.practice-figure{padding:20px 8px}.practice-figure>div{gap:12px}.practice-cell.flat{width:65px}.practice-score{gap:18px}}
.memory-written label{grid-template-columns:1fr;gap:8px}.memory-written textarea{width:100%;min-height:78px;resize:vertical;border:1px solid #d3d3da;border-radius:5px;padding:12px;font:inherit;font-size:15px;line-height:1.8;color:var(--ink);background:white}.memory-written textarea[readonly]{background:#f7f7f9}.memory-rubric{margin-top:24px;border-top:1px solid var(--line);padding-top:20px}.memory-rubric h2{font-size:16px}.memory-rubric>p{font-size:12px;color:var(--muted);line-height:1.8;margin:9px 0 18px}.memory-rubric fieldset{border:0;border-bottom:1px solid var(--line);padding:10px 0 16px;margin:0 0 16px;min-width:0}.memory-rubric legend{font-size:14px;line-height:1.8;max-width:100%}.memory-rubric fieldset>div{display:flex;gap:12px;margin-top:8px}.memory-rubric label{display:flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--line);border-radius:5px;font-size:12px;cursor:pointer}.memory-rubric label:has(input:checked){border-color:var(--accent);background:#faf5f7}.memory-rubric input{accent-color:var(--accent)}.memory-rubric>small{font-size:11px;color:var(--muted)}.memory-missed{font-size:13px;line-height:1.8;margin-top:17px}.memory-missed>b{font-weight:600}.memory-missed ul{margin:8px 0;padding-left:19px}.lesson-memory-plan{margin:22px 0;background:white;border:1px solid var(--line);border-radius:7px;padding:20px}.lesson-memory-plan h2{font-size:16px;margin:0}.lesson-memory-plan .section-title{margin-bottom:10px;gap:16px}.lesson-memory-plan .text-link{font-size:12px;margin:0;white-space:nowrap}.memory-objectives>div{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid var(--line)}.memory-objectives b{font-size:13px;font-weight:550;line-height:1.6}.memory-objectives small{display:block;font-size:11px;color:var(--muted);margin-top:4px;line-height:1.7}.memory-objectives>div>span{text-align:right;font-size:12px;color:var(--accent);white-space:nowrap}.lesson-memory-plan details{font-size:12px;margin-top:16px;color:var(--muted);line-height:1.8}.lesson-memory-plan summary{cursor:pointer}.lesson-memory-plan dl{margin:15px 0}.lesson-memory-plan dl>div{display:grid;grid-template-columns:65px 1fr;gap:10px;margin:10px 0}.lesson-memory-plan dt{font-weight:600;color:var(--ink)}.lesson-memory-plan dd{margin:0}.lesson-memory-plan details p{font-size:11px}.resume-actions{flex-wrap:wrap}html[data-reading-size=large] .memory-written textarea,html[data-reading-size=large] .memory-rubric legend{font-size:19px;line-height:1.9}
@media(max-width:700px){.lesson-memory-plan{padding:17px}.memory-written textarea{font-size:16px}.memory-objectives>div{gap:10px}.memory-rubric label{min-height:42px}.memory-rubric legend{font-size:14px}}

/* Original source figures: preserve aspect ratio; hide labels with viewports only. */
.source-figure{margin:24px 0;background:white}
.source-figure img{display:block;width:100%;height:auto}
.source-figure-reader>a{display:block;cursor:zoom-in}
.source-figure-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.source-figure-panel{min-width:0;border:1px solid var(--line);border-radius:7px;padding:12px 8px 8px;background:#fff}
.source-figure-panel>span{display:block;font-size:13px;font-weight:600;padding:0 5px;color:var(--ink)}
.source-figure-panel svg{display:block;width:100%;height:auto;aspect-ratio:334/255;overflow:hidden}
.source-figure figcaption{font-size:11px;line-height:1.7;color:var(--muted);margin-top:12px}
.source-figure figcaption>span{display:block;margin-bottom:4px}
.source-figure figcaption small{font-size:10px}
.source-figure figcaption a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.source-figure-panels{grid-template-columns:1fr;gap:10px}.source-figure-panel{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;padding:10px 12px}.source-figure-panel svg{max-width:300px;margin:auto}}

#material-registration .material-types{display:block;margin:4px 0;padding:0;border:0}
#material-registration .material-types legend{font-size:13px;font-weight:600;margin-bottom:10px}
.material-type-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#material-registration label.material-type-choice{display:flex;align-items:center;gap:7px;margin:0;padding:10px 9px;border:1px solid var(--line);border-radius:5px;font-size:12px;font-weight:400;cursor:pointer;white-space:nowrap}
#material-registration label.material-type-choice:has(:checked){border-color:var(--accent);background:#f5e9e1;color:var(--accent)}
#material-registration .material-type-choice input{width:15px;height:15px;min-height:0;margin:0;padding:0;display:inline-block;accent-color:var(--accent)}
.material-other-row{grid-column:1/-1;display:flex;gap:8px;align-items:center}.material-other-row>input{flex:1;min-width:0}
#material-registration .material-other-row>input:disabled{opacity:.55}
.material-kind{font-size:11px;color:var(--accent);margin-left:10px;padding:3px 6px;background:#f4ebe0;border-radius:3px}
@media(max-width:440px){.material-type-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
.material-row-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
#material-registration{padding:24px;max-height:calc(100dvh - 32px);overflow:auto}#material-registration .material-course-name{margin:8px 0 10px}#material-registration label{margin-top:12px}#material-registration .material-types{margin-top:14px}#material-registration .preference-note{margin:12px 0;font-size:12px}#material-registration input{font-size:13px}
.material-reader{max-width:1500px;margin:auto;padding:30px 36px 60px}
.material-reader-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.material-reader-title h1{font-size:23px;line-height:1.45;margin:8px 0;overflow-wrap:anywhere}.material-reader-title>span{font-size:13px;color:var(--muted);white-space:nowrap}
.material-reader-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:30px;align-items:start;margin-top:24px}
.material-original{position:sticky;top:20px;min-width:0;max-height:calc(100dvh - 40px);overflow-y:auto;scrollbar-width:thin}.material-original nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.material-original nav label{font-size:12px}.material-original input{width:58px;padding:8px;border:1px solid var(--line);border-radius:4px;font:inherit;color:var(--ink);background:transparent}
.material-page-image{border:1px solid var(--line);background:white;min-height:120px;display:grid;place-items:center}.material-page-image a,.material-page-image img{display:block;width:100%}.material-original-text{max-height:70vh;overflow:auto;padding:20px;background:#f7f4eb;border:1px solid var(--line)}
.material-tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin-bottom:22px}.material-tabs button{padding:12px 0;border:0;border-bottom:3px solid transparent;font:inherit;font-size:14px;cursor:pointer;background:transparent;color:var(--muted)}.material-tabs button.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}
.material-reading{min-width:0;font-size:14px;line-height:1.85}.material-reading h2{font-size:19px;line-height:1.5;margin:0 0 18px}.material-reading h3{font-size:15px;margin:26px 0 10px}.material-reading h4{font-size:14px;line-height:1.7;margin:0 0 12px}.material-reading h3 small{font-size:11px;color:var(--muted);font-weight:400;margin-left:8px}.material-reading ul{padding-left:20px}.material-reading li{margin-bottom:9px}
.material-prose{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9;margin:0 0 18px}.material-placeholder{padding:24px 0;color:var(--muted)}.material-placeholder h3{margin-top:0;color:var(--ink)}
.material-processing{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-height:36px;font-size:12px;color:var(--muted)}.material-processing progress{width:130px;height:5px;accent-color:var(--accent)}
.material-analysis-options,.material-coverage{padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.material-coverage[open]{line-height:1.8}.material-coverage[open]>h3{margin:24px 0 12px}.material-coverage[open]>ul{display:grid;gap:10px;margin:0 0 24px;padding-left:22px;max-width:90ch}.material-analysis-options>summary,.material-coverage>summary{cursor:pointer;color:var(--accent);font-weight:600}.material-analysis-options form{max-width:700px;padding-top:20px}.material-range{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.material-range label{display:grid;gap:6px;font-size:12px}.material-range input{width:95px;min-height:40px;font:inherit;color:var(--ink);border:1px solid var(--line);border-radius:4px;padding:8px;background:transparent}.material-range small{color:var(--muted)}
.material-related{border:0;padding:0;margin:20px 0}.material-related legend{font-weight:600;margin-bottom:10px}.material-related legend small{font-weight:400;margin-left:8px;color:var(--muted)}.material-related label{display:flex;align-items:center;gap:10px;padding:8px 0;cursor:pointer}.material-related label small{display:block;color:var(--muted);font-size:11px}.material-related input{accent-color:var(--accent)}
.material-sources{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 20px}.material-sources a{font-size:11px;padding:5px 8px;border:1px solid var(--line);border-radius:4px;color:var(--accent);text-decoration:none}.material-question{padding:20px 0;border-top:1px solid var(--line)}.material-question summary{cursor:pointer;color:var(--accent);font-size:12px}.material-question details[open] summary{margin-bottom:12px}.material-model{font-size:11px;color:var(--muted)}
.material-caution{background:#f9f0db;padding:12px 18px;border-left:2px solid #b59154;font-size:12px;line-height:1.7;margin:12px 0}.material-caution h3{margin:0}.material-caution ul{padding-left:18px;margin:6px 0}.material-coverage{margin-bottom:15px}.material-coverage .material-prose{margin-top:16px}.material-coverage h3{font-size:14px}
.material-page-note{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.material-note-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.material-note-heading label{font-size:14px;font-weight:600}.material-note-heading label span{margin-left:6px;font-size:12px;font-weight:400;color:var(--muted)}#material-note{display:block;box-sizing:border-box;width:100%;min-height:120px;margin-top:10px;resize:vertical;padding:12px;border:1px solid var(--line);border-radius:4px;font:inherit;font-size:14px;line-height:1.8;background:transparent;color:var(--ink)}[data-material-note-status]{font-size:12px;color:var(--muted)}
@media(max-width:1000px){.material-reader-grid{grid-template-columns:1fr;gap:20px}.material-original{position:static;max-height:none;overflow:visible}.material-page-image{max-width:780px;margin:auto}.material-reader{padding:24px 22px 50px}}
/* Source-backed study plans reuse the existing course row and reading styles. */
.plan-row{gap:16px}.plan-row>div{flex:1;min-width:0}.plan-row .lesson-duration{white-space:nowrap}.plan-row .lesson-duration small{display:block;font-size:12px;margin-top:5px;color:var(--muted,#766f62)}
.plan-kind{font-size:12px;min-width:64px;color:var(--accent,#782f3b)}
.plan-session{max-width:960px}.plan-session h1{font-size:26px}.plan-session h2{font-size:19px}.plan-session h3{font-size:16px;line-height:1.65}.plan-session>section{margin:30px 0}.plan-study{padding:22px;border:1px solid var(--line,#e5d9c1);border-radius:10px}.plan-study li{margin:8px 0;line-height:1.7}.plan-question textarea{display:block;width:100%;min-height:90px;margin:8px 0 18px;padding:12px;font:inherit;font-size:15px;line-height:1.6;border:1px solid var(--line,#e5d9c1);border-radius:6px;background:transparent;box-sizing:border-box}.plan-question label{font-size:14px}.plan-grades{border:0;padding:12px 0;display:flex;gap:24px}.plan-grades legend{font-size:13px;color:var(--muted,#766f62)}.plan-grades label{display:flex;gap:7px;align-items:center}.plan-session summary{cursor:pointer;line-height:1.8}.plan-session .material-question{padding:22px 0}.plan-session .settings-actions{flex-wrap:wrap}
@media(max-width:600px){.plan-row{gap:10px;flex-wrap:wrap}.plan-kind{min-width:auto}.plan-row .lesson-duration{font-size:13px}.plan-session h1{font-size:22px}.plan-grades{gap:16px}}
.material-update{margin:18px 0;padding:18px 20px;border:1px solid var(--line,#e5d9c1);border-left:3px solid var(--accent,#782f3b);border-radius:6px;background:var(--surface,#fffaf0);font-size:14px;line-height:1.7}.material-update>strong{font-size:13px;color:var(--accent,#782f3b)}.material-update h3{font-size:16px;margin:8px 0}.material-update dt{font-size:12px;color:var(--muted,#766f62)}.material-update dd{margin:2px 0 10px}.material-update a{font-size:13px;text-decoration:underline}.material-row-actions details{font-size:13px}.material-row-actions details button{display:block;margin:8px 0}#material-registration-form select{padding:10px;width:100%;border:1px solid var(--line,#e5d9c1);border-radius:6px;background:transparent;color:inherit;font:inherit;margin:8px 0 16px}#material-registration-form [data-material-parent-row] small{display:block;margin-bottom:16px}
/* The tutor stays available while the student scrolls through the source. */
.material-tutor{margin:0}.material-ask-button{position:fixed;right:24px;bottom:24px;z-index:40;gap:8px;box-shadow:0 4px 16px #34231d26}.material-tutor-panel{position:fixed;right:24px;bottom:88px;z-index:41;width:min(440px,calc(100vw - 32px));height:min(660px,calc(100dvh - 112px));display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line,#e4d7be);border-radius:14px;background:var(--paper,#fffaf0);box-shadow:0 12px 48px #34231d33}.material-tutor-panel[hidden]{display:none}.material-tutor-heading,.material-tutor-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.material-tutor-heading{padding:16px 18px 8px;flex-shrink:0}.material-tutor-heading h2{font-size:17px;margin:0}.material-tutor-heading small{font-size:13px;font-weight:400}.material-tutor-context{padding:0 18px 12px;margin:0;border-bottom:1px solid var(--line,#e4d7be);font-size:12px;flex-shrink:0}.material-tutor-history{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 18px}.material-tutor-panel form{padding:12px 18px;border-top:1px solid var(--line,#e4d7be);flex-shrink:0}.material-tutor-panel label{display:block;font-size:13px;margin:0 0 6px}.material-tutor-panel textarea{box-sizing:border-box;width:100%;resize:none;height:80px;padding:10px;font:inherit;font-size:14px}.material-tutor-actions{margin-top:8px;flex-wrap:wrap;font-size:12px}.material-tutor-panel [data-tutor-status]{font-size:12px;margin:8px 0 0}.material-tutor-panel [data-tutor-status]:empty{display:none}.material-tutor-turn{padding:14px 0;border-bottom:1px solid var(--line,#e4d7be);overflow-wrap:anywhere}.material-tutor-turn h3{font-size:14px;white-space:pre-wrap;margin:0 0 10px;color:var(--accent,#782f38)}.material-tutor-turn p,.material-tutor-turn li{font-size:14px;line-height:1.75}.material-tutor-turn .material-model{display:block;margin-top:8px;font-size:11px}.material-tutor-turn table{font-size:12px}.material-tutor-panel :focus-visible{outline:2px solid var(--accent,#782f38);outline-offset:2px}
@media(max-width:600px){.material-ask-button{right:16px;bottom:16px}.material-tutor-panel{right:12px;bottom:78px;width:calc(100vw - 24px);height:min(620px,calc(100dvh - 96px))}}

.reading-flow{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 20px;margin:18px 0;border:1px solid var(--line,#e4d7be);border-radius:10px;background:var(--paper,#fffaf0)}.reading-flow h2{margin:4px 0;font-size:19px}.reading-flow small{font-size:13px}.reading-flow-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.reading-flow-actions label{font-size:14px}.reading-flow [role=status]{font-size:13px;flex-basis:100%}.reading-flow [role=status]:empty{display:none}.study-stage-tabs{display:flex;align-items:center;gap:18px;margin-bottom:20px}.study-stage-tabs [aria-current]{font-weight:600}.study-background{padding:14px 18px;margin:16px 0 24px;border-left:3px solid var(--accent,#7b303d);background:var(--paper,#fffaf0)}.study-background h3{margin-top:0;font-size:16px}.study-background small{font-size:12px;color:var(--muted,#796f62)}@media(max-width:700px){.reading-flow{padding:14px}.reading-flow-actions{gap:10px}.reading-flow-actions label{width:100%}}

.past-exam-progress{border:1px solid var(--line);border-radius:8px;padding:0 16px}.past-exam-progress>details>summary{padding:16px 0!important;cursor:pointer;font-size:14px}.past-exam-progress summary span{margin-left:10px;color:var(--muted);font-size:13px}.past-exam-file{padding:14px 0;border-top:1px solid var(--line)}.past-exam-file>a{font-size:14px}.plan-past-exams{padding:20px;border:1px solid var(--line);border-radius:8px}.plan-past-exams summary{padding:12px 0}.plan-past-exams details p{padding:6px 0}

/* A single question and answer action lead the practice screen. */
.plan-session .plan-practice{margin-top:22px}.plan-options{border:0;padding:0;margin:20px 0}.plan-options legend,.plan-answer-label{font-size:13px;color:var(--muted);margin-bottom:12px}.plan-option{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:9px;padding:14px 16px;margin:9px 0;cursor:pointer;line-height:1.7}.plan-option:hover{background:var(--tint)}.plan-option.is-selected{border-color:var(--accent);background:var(--tint)}.plan-option input{margin-top:6px;accent-color:var(--accent);flex:0 0 auto}.plan-option .option-number{font-weight:600;min-width:18px;color:var(--accent)}.plan-option>span:last-child{min-width:0;flex:1}.plan-option p{margin:0;font-size:15px}.plan-option:focus-within{outline:2px solid var(--accent);outline-offset:2px}.plan-question-tools{display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px 24px;margin:16px 0;font-size:13px}.plan-question-tools>details[open]{flex-basis:100%}.plan-question-tools summary{cursor:pointer;color:var(--muted)}.plan-check-answer{margin:8px 0 16px;min-width:160px}.plan-solution:not([open]):not(.is-revealed){display:none}.plan-solution[open]{padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--paper);margin-top:8px}.plan-solution>summary{font-size:15px;font-weight:600;margin-bottom:14px}.plan-answer-result{font-size:18px;font-weight:650;margin:8px 0 16px!important}.plan-question-controls{padding-top:18px}.plan-study>summary{cursor:pointer;font-size:14px}.plan-study[open]>summary{margin-bottom:18px}.plan-practice-heading{margin-bottom:14px}.plan-question .plan-question-meta{margin-bottom:12px}.plan-question .plan-prompt{font-size:17px;line-height:1.85;margin-bottom:20px}.plan-session .plan-question{padding-top:18px}.plan-session .plan-question>h3{margin:12px 0 14px}
@media(max-width:600px){.plan-option{padding:12px;gap:9px}.plan-check-answer{width:100%}.plan-solution[open]{padding:16px}.plan-question .plan-prompt{font-size:16px}}

.plan-option.is-correct{border-color:#52785c;background:#f0f7f0}.plan-option.is-wrong{border-color:#a85154;background:#fff1f1}.plan-option.is-correct .option-number::after{content:' ✓'}.plan-option.is-wrong .option-number::after{content:' ×'}
.plan-question-nav button.is-partial{border-bottom:4px solid #aa7d29}.plan-difficulty{display:block;margin-top:20px;line-height:1.7}.plan-difficulty[hidden]{display:none}.plan-difficulty small{color:var(--muted)}.plan-grades{flex-wrap:wrap}

.material-tutor-heading h2{min-width:0}.material-tutor-heading small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px}.material-tutor-heading [data-tutor-close]{flex-shrink:0}

.plan-required-figures{display:grid;gap:16px;margin:20px 0}.plan-required-figures figure{margin:0;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.plan-required-figures figcaption{font-size:12px;color:var(--muted);margin-bottom:10px}.plan-required-figures img{display:block;width:100%;max-height:65vh;object-fit:contain}.plan-required-figures [role=alert]{margin:10px 0;color:var(--accent)}
.plan-required-figures.is-embedded{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.plan-required-figures.is-embedded img{height:240px;max-height:40vh;object-fit:contain}
.study-selection-toolbar{position:fixed;z-index:55;display:flex;align-items:center;gap:4px;max-width:calc(100vw - 16px);padding:5px;background:var(--paper,#fffaf0);border:1px solid var(--line,#e4d7be);border-radius:10px;box-shadow:0 4px 20px #34231d26}
.study-selection-toolbar[hidden]{display:none}.study-selection-toolbar button{padding:10px 12px;font:inherit;font-size:13px;font-weight:600;white-space:nowrap;border-radius:6px;color:var(--ink,#28241f)}.study-selection-toolbar button:hover{background:#f4e3bb}.study-selection-toolbar>span{width:1px;height:20px;background:var(--line,#e4d7be)}.study-selection-toolbar button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
mark[data-study-highlight]{background:#f5d96a88;color:inherit;padding:0;cursor:pointer;box-decoration-break:clone;-webkit-box-decoration-break:clone}mark[data-study-highlight]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.selection-save-status{font-size:12px;color:var(--muted);padding:8px 0}.selection-save-status:empty{display:none}
.tutor-text-attachment{display:flex;align-items:flex-start;gap:8px;background:var(--bg,#fff5dc);border:1px solid var(--line,#e4d7be);border-radius:8px;padding:9px 11px;margin:0 0 10px;font-size:12px}.tutor-text-attachment details{flex:1;min-width:0}.tutor-text-attachment summary{cursor:pointer;font-size:13px;font-weight:600;overflow-wrap:anywhere}.tutor-text-attachment small{display:block;margin-top:8px;color:var(--muted)}.tutor-text-attachment pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;max-height:110px;overflow:auto;margin:8px 0}.tutor-text-attachment [data-attachment-remove]{padding:0 4px;font-size:21px;line-height:1.2}.material-tutor-panel form{max-height:60%;overflow:auto}

.material-note-use{display:flex;align-items:center;gap:8px;margin:12px 0 6px;font-size:13px;color:var(--muted)}.material-note-use input{width:auto;accent-color:var(--accent)}.material-page-note [data-note-effect]{margin:8px 0 0;font-size:12px;line-height:1.6}.material-page-note [data-note-effect]:empty{display:none}

.material-source-choice{display:flex;gap:24px;margin:4px 0 20px}#material-registration .material-source-choice label{display:flex;align-items:center;gap:8px;margin:0;font-size:14px}#material-registration .material-source-choice input{display:inline-block;width:16px;height:16px;min-height:16px;margin:0;padding:0;accent-color:var(--accent)}[data-link-inputs]{border:0;padding:0;margin:0 0 20px}[data-link-inputs][hidden]{display:none}[data-link-inputs] details{margin:18px 0}[data-link-inputs] textarea{width:100%;resize:vertical}

/* Compact exam controls; keep each course and its date together. */
.exam-date-settings{margin:12px 0 8px;font-size:13px}
.exam-schedule-list{display:grid;gap:8px;margin-top:12px}
.exam-schedule-form{min-width:0;padding:10px 0;border-top:1px solid var(--line);font-size:13px}
.exam-schedule-fields{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin-top:8px}
.exam-schedule-fields label{display:grid;gap:4px;min-width:0;max-width:100%;word-break:keep-all}
.exam-schedule-fields input{box-sizing:border-box;width:126px;max-width:100%;min-width:0;min-height:32px;padding:5px 6px;font:inherit;border:1px solid var(--line);border-radius:5px;background:transparent;color:var(--ink)}
.exam-schedule-form [data-exam-schedule-status]{min-height:1.6em;margin:4px 0 0;font-size:12px;line-height:1.6}

/* Learning history: completed entries and their stored estimated workload. */
.records-dashboard{max-width:1240px;margin:0 auto}.records-dashboard .heading{gap:20px;flex-wrap:wrap;margin-bottom:28px}.record-intro{font-size:14px;line-height:1.7;color:var(--muted);margin-top:10px}.record-view-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.record-metric-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:8px 13px;border:1px solid var(--accent);border-radius:8px;color:var(--accent);background:var(--tint);font:inherit;font-size:13px;white-space:nowrap}.record-metric-toggle>span{font-size:20px;line-height:1}.record-metric-toggle:hover{filter:brightness(.96)}.record-course-filter{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted)}.record-course-filter select{font:inherit;color:var(--ink);background:var(--paper,transparent);border:1px solid var(--line);border-radius:8px;padding:10px 14px;max-width:240px}.record-controls{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:24px 0}.record-periods{display:flex;padding:4px;border:1px solid var(--line);border-radius:10px;gap:4px}.record-periods button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;border-radius:7px;padding:8px 20px;cursor:pointer}.record-periods button[aria-pressed=true]{background:var(--accent);color:#fff}.record-range{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}.record-range button{border:1px solid var(--line);border-radius:7px;background:transparent;color:var(--ink);width:34px;height:34px;cursor:pointer}.record-range button:disabled{opacity:.35;cursor:default}.record-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}.record-metrics>div{padding:12px 16px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.25)}.record-metrics>div>span{font-size:13px;color:var(--muted)}.record-metrics strong{display:block;font-size:22px;line-height:1.2;font-weight:650;margin-top:6px;font-variant-numeric:tabular-nums}.record-metrics small{font-size:13px;font-weight:400;color:var(--muted);margin-left:7px}.record-card{border:1px solid var(--line);border-radius:12px;padding:26px 28px;margin:0 0 24px;background:rgba(255,255,255,.18)}.record-card-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:22px}.record-card-heading h2{font-size:18px;font-weight:650;line-height:1.4;margin:0}.record-card-heading p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:7px}.record-legend{display:flex;gap:16px;font-size:12px;color:var(--muted)}.record-legend span{display:flex;align-items:center;gap:7px}.record-legend i{display:block;width:9px;height:9px;border-radius:2px}.record-bar-first{background:var(--accent)}.record-bar-review{background:#78876a}.record-chart-panel{min-width:0}.record-chart-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}.record-chart-heading h3{font-size:14px;font-weight:600;margin:0}.record-chart-scale{font-size:11px;color:var(--muted);white-space:nowrap}.record-chart-scroll{overflow-x:auto;padding:3px 3px 7px}.record-chart{display:grid;grid-template-columns:repeat(var(--record-columns),minmax(0,1fr));gap:4px;background:repeating-linear-gradient(to top,transparent 0,transparent 49px,var(--line) 49px,var(--line) 50px);background-size:100% 200px;background-repeat:no-repeat}.record-day{display:flex;flex-direction:column;align-items:stretch;min-width:0;max-width:100%;border:0;padding:0 2px;background:transparent;color:var(--muted);cursor:pointer;font:inherit}.record-bar-area{display:flex;align-items:flex-end;justify-content:center;height:200px;border-bottom:1px solid var(--line)}.record-bar-stack{display:flex;flex-direction:column;width:100%;max-width:44px;border-radius:5px 5px 0 0;overflow:hidden;min-height:0}.record-bar-stack>span{display:block;min-height:0}.record-day.is-empty .record-bar-stack{min-height:3px;background:var(--line)}.record-day:hover .record-bar-stack,.record-day[aria-pressed=true] .record-bar-stack{outline:2px solid var(--ink);outline-offset:2px}.record-day[aria-pressed=true] .record-date-label{color:var(--accent);font-weight:700}.record-date-label{height:26px;padding-top:9px;font-size:10px;white-space:nowrap;text-align:center}.record-day:first-child .record-date-label{text-align:left}.record-day:last-child .record-date-label{text-align:right}.record-chart-help{font-size:12px;line-height:1.7;color:var(--muted);margin:15px 0 0}.record-subjects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.record-subject{min-width:0;text-align:left;cursor:pointer;border:1px solid var(--line);border-radius:9px;background:transparent;padding:18px;font:inherit;color:var(--ink)}.record-subject:hover,.record-subject[aria-pressed=true]{border-color:var(--accent);background:rgba(123,45,58,.04)}.record-subject-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;font-size:14px;line-height:1.6}.record-subject-heading strong{font-weight:550;overflow-wrap:anywhere}.record-subject-heading b{font-weight:650;white-space:nowrap}.record-subject-measure{display:block;margin-top:16px}.record-subject-measure-label{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}.record-subject-measure-label b{font-weight:550;color:var(--ink)}.record-subject-track{display:block;height:7px;background:var(--line);border-radius:5px;margin-top:7px;overflow:hidden}.record-subject-stack{display:flex;height:100%;border-radius:inherit;overflow:hidden}.record-subject-track i{display:block;min-width:0;height:100%}.record-subject-meta{display:block;font-size:12px;color:var(--muted);margin-top:16px;line-height:1.7}.record-history{padding-top:12px}.record-date-group{border-bottom:1px solid var(--line)}.record-date-group>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;cursor:pointer;padding:20px 0;font-size:14px;list-style:none}.record-date-group>summary>span:first-child:before{content:'▸';display:inline-block;width:22px;color:var(--muted)}.record-date-group[open]>summary>span:first-child:before{content:'▾'}.record-date-group>summary>span:last-child{font-size:12px;color:var(--muted)}.record-date-group .plan-row{margin-left:22px}.record-footnote{font-size:12px;color:var(--muted);line-height:1.8;margin-top:24px}.records-dashboard button:focus-visible,.record-date-group>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:1000px){.record-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.record-subjects{grid-template-columns:repeat(2,minmax(0,1fr))}.record-metrics>div{padding:12px 14px}}
@media(max-width:600px){.record-view-controls{width:100%;justify-content:space-between;gap:12px}.record-view-controls .record-course-filter{width:auto;flex:1;justify-content:flex-end}.record-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.record-metrics strong{font-size:20px}.record-card{padding:20px 16px}.record-subjects{grid-template-columns:1fr}.record-range{font-size:11px;gap:8px}.record-controls{gap:12px}.record-course-filter{width:100%;justify-content:space-between}.record-course-filter select{max-width:70%}.record-date-group .plan-row{margin-left:0}.record-card-heading h2{font-size:17px}}

/* Concept recall precedes practice without adding another study task. */
.plan-concept-review { margin: 24px 0 32px; padding: 24px; border: 1px solid var(--line, #e4d8ba); border-radius: 12px; }
.plan-concept-review h2 { margin: 0 0 16px; }
.plan-concept-review h3 { margin: 24px 0 12px; }
.plan-concept-review p, .plan-concept-review li { line-height: 1.8; }
.plan-concept-review details { margin: 16px 0; }
.plan-concept-rating { margin-top: 24px; padding: 16px; display: flex; flex-wrap: wrap; gap: 16px 24px; }
.plan-concept-rating label { cursor: pointer; }
.plan-practice[hidden] { display: none; }

.exam-paper-collection{margin:32px 0;padding:24px;border:1px solid var(--line,#e7ddc0);border-radius:12px}
.exam-paper-course{padding:18px 0;border-top:1px solid var(--line,#e7ddc0)}
.exam-paper-course summary{cursor:pointer;font-weight:600;padding:8px 0}
.exam-paper-course h3{font-size:18px;margin:24px 0 12px}.exam-paper-course h3 small{font-weight:400}
.exam-paper-lessons{padding-left:22px}.exam-paper-lessons li{padding:10px 0}
.exam-paper-lessons a{display:flex;gap:20px;justify-content:space-between}.exam-paper-lessons a>span:last-child{white-space:nowrap}
@media(max-width:640px){.exam-paper-collection{padding:16px}.exam-paper-lessons a{flex-direction:column;gap:4px}}
.today-dashboard{max-width:1200px;margin:0 auto}.today-dashboard>.heading{margin-bottom:28px}.today-resume{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:26px 28px;margin:0 0 28px;border:1px solid var(--accent);border-radius:12px;background:rgba(123,45,58,.035)}.today-resume h2{font-size:21px;line-height:1.5;margin:8px 0}.today-resume p{font-size:13px;line-height:1.7;color:var(--muted);margin:0}.today-resume .button{flex-shrink:0}.today-plan{margin:24px 0 30px}.today-plan>.section-title{padding:0 0 18px;gap:18px;flex-wrap:wrap}.today-plan>.section-title h2{font-size:20px}.today-task-list{display:grid;gap:12px}.today-dashboard .today-task-list .plan-row{padding:20px 22px;border:1px solid var(--line);border-radius:10px;gap:20px;background:rgba(255,255,255,.2)}.today-dashboard .plan-row h3{font-size:17px;line-height:1.55;margin:0 0 7px}.today-dashboard .plan-row .small{font-size:12px;line-height:1.7;margin:0}.today-dashboard .plan-kind{font-size:12px;min-width:65px}.today-dashboard .lesson-duration{font-size:13px;line-height:1.7}.today-dashboard .lesson-duration small{display:block;margin-top:4px;color:var(--muted)}.today-ready,.today-later,.today-lessons{border:1px solid var(--line);border-radius:10px;padding:0 22px;margin:20px 0;background:rgba(255,255,255,.12)}.today-ready>summary,.today-later>summary,.today-lessons>summary,.today-completed>summary{cursor:pointer;padding:18px 0;font-size:14px;line-height:1.6}.today-ready>summary>span:last-child{margin-left:12px;color:var(--muted);font-size:12px}.today-ready .day-lesson{padding:18px 0;gap:20px}.today-ready h3{font-size:16px;line-height:1.5}.today-ready .ready-page-range{font-size:12px;color:var(--muted);line-height:1.7;margin-top:6px}.today-completed{margin-top:18px}.today-dashboard .today-lessons .section-title{padding-top:15px}.today-ready .lesson-open{font-size:13px;white-space:nowrap}.today-dashboard :focus-visible{outline:2px solid var(--accent);outline-offset:4px}@media(max-width:700px){.today-resume{align-items:flex-start;flex-direction:column;padding:20px;gap:18px}.today-resume h2{font-size:19px}.today-resume .button{width:100%;justify-content:center}.today-dashboard .today-task-list .plan-row{padding:18px;gap:12px;flex-wrap:wrap}.today-dashboard .plan-row>div{flex:1;min-width:180px}.today-dashboard .lesson-duration{margin-left:77px}.today-ready,.today-later,.today-lessons{padding:0 18px}.today-ready .day-lesson{align-items:flex-start;flex-direction:column;gap:12px}.today-plan>.section-title h2{font-size:18px}}
.today-progress{border:1px solid var(--line);border-radius:12px;padding:24px 28px;margin:24px 0;background:rgba(255,255,255,.18)}
.today-progress-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:20px}
.today-progress-heading h2{font-size:17px;line-height:1.5;margin:0}.today-progress-heading>span{font-size:13px;color:var(--muted)}
.today-progress-stats{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-bottom:22px}.today-progress-stats>div+div{border-left:1px solid var(--line);padding-left:28px}
.today-stat-label{font-size:13px;color:var(--muted)}.today-progress-stats p{font-size:15px;margin:6px 0;line-height:1.5;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}.today-progress-stats strong{font-size:30px;line-height:1.3;font-weight:650;color:var(--accent)}.today-progress-stats p>span{font-size:16px;margin-left:6px}.today-stat-detail{font-size:12px;line-height:1.8;color:var(--muted)}
.today-stat-detail,.today-time-note{word-break:keep-all}.today-time-track{display:flex;height:8px;overflow:hidden;border-radius:8px;background:var(--line)}.today-time-done{background:var(--accent)}.today-time-next{background:#bd9361}.today-time-legend{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:12px;font-size:12px;line-height:1.7}.today-time-legend>span{display:flex;align-items:center;gap:7px}.today-time-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none}.today-time-note{font-size:12px;line-height:1.8;color:var(--muted);margin:10px 0 0}
@media(max-width:600px){.today-progress{padding:20px 18px}.today-progress-heading{gap:8px;flex-wrap:wrap}.today-progress-stats{gap:16px}.today-progress-stats>div+div{padding-left:16px}.today-progress-stats strong{font-size:26px}.today-progress-stats p>span{font-size:14px;margin-left:0}.today-time-legend{gap:8px 14px}}
.today-study-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:start}
.today-study-column{min-width:0}
.today-column-heading{display:flex;align-items:baseline;gap:10px;font-size:18px;line-height:1.6;padding:16px 0 12px;border-top:2px solid var(--line);margin:0}
.today-column-heading>span,.today-course-heading>span{font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}
.today-course-group{padding:18px 0 8px;min-width:0}
.today-dashboard .today-lesson-group{margin:0 0 14px;padding:0;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.14);overflow:hidden}
.today-dashboard .today-lesson-group>summary{display:flex;align-items:center;gap:12px;padding:16px 18px;margin:0;cursor:pointer;list-style:none;line-height:1.5;background:rgba(80,80,80,.035)}
.today-lesson-group>summary::-webkit-details-marker{display:none}
.today-lesson-group>summary::before{content:'';flex:0 0 auto;width:0;height:0;border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:6px solid var(--muted);transition:transform .15s}
.today-lesson-group[open]>summary::before{transform:rotate(90deg)}
.today-lesson-label{display:grid;gap:4px;min-width:0;flex:1}
.today-lesson-label strong{font-size:14px;font-weight:650;overflow-wrap:anywhere;color:var(--ink)}
.today-lesson-label small,.today-lesson-count{font-size:12px;color:var(--muted);font-weight:400}
.today-lesson-count{white-space:nowrap;flex-shrink:0}
.today-dashboard .today-lesson-group .today-task-list{gap:0}
.today-dashboard .today-lesson-group .today-task-list .plan-row{padding:16px 18px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
@media(max-width:700px){.today-dashboard .today-lesson-group>summary{padding:14px;gap:10px}.today-dashboard .today-lesson-group .today-task-list .plan-row{padding:16px 14px}.today-lesson-label strong{font-size:14px}}
.today-dashboard h3.today-course-heading{display:flex;align-items:baseline;gap:10px;font-size:15px;font-weight:650;line-height:1.6;margin:0 0 12px;color:var(--accent)}
.today-column-empty{padding:24px 0;font-size:13px;color:var(--muted);line-height:1.8}
.today-dashboard .today-study-columns .plan-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;padding:18px}
.today-study-columns .plan-row>.plan-kind{grid-column:1 / -1;min-width:0}
.today-study-columns .plan-row>div{grid-column:1 / -1;min-width:0}
.today-study-columns .plan-row .lesson-duration{white-space:normal;margin-left:0}
.today-study-columns .plan-row .lesson-duration small{display:inline;margin-left:10px}
.today-study-columns .plan-row>span:last-child{align-self:end}
.today-dashboard .today-disclosure{border:1px solid var(--line);border-radius:10px;padding:0 22px;margin:20px 0;background:rgba(255,255,255,.12)}
.today-dashboard .past-exam-progress{margin:0;padding:0;border:0}
#today .today-dashboard .today-disclosure>summary{display:flex;align-items:center;gap:12px;min-height:64px;padding:18px 0;margin:0;font-size:14px;line-height:1.6;cursor:pointer;list-style:none}
.today-disclosure>summary::-webkit-details-marker{display:none}
.today-disclosure>summary::before{content:'';flex:0 0 auto;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:7px solid currentColor;transform-origin:3px 5px}
.today-disclosure[open]>summary::before{transform:rotate(90deg)}
.today-disclosure>summary>span:first-of-type{min-width:0}
#today .today-dashboard .today-disclosure>summary>span+span{margin-left:auto;color:var(--muted);font-size:12px;text-align:right}
.today-disclosure[open]{padding-bottom:18px}
.today-dashboard .past-exam-file:last-child,.today-ready .day-lesson:last-child{border-bottom:0}
@media(max-width:800px){.today-study-columns{grid-template-columns:minmax(0,1fr);gap:18px}.today-dashboard .today-disclosure{padding-left:18px;padding-right:18px}.today-dashboard .today-study-columns .plan-row .lesson-duration{margin-left:0}.today-disclosure>summary{flex-wrap:wrap}}


#today .today-dashboard .past-exam-progress>.today-disclosure>summary{padding:18px 0!important}
.today-dashboard .past-exam-progress .today-disclosure>summary>span:first-of-type{margin-left:0;color:var(--ink);font-size:14px}
/* Manual integration of extra sources keeps the chooser readable on mobile. */
.material-supplement form{max-width:760px;margin-top:20px}
.material-supplement fieldset{border:0;padding:0;margin:0;min-width:0}
.material-supplement legend{font-weight:600;margin-bottom:16px;line-height:1.8}
.material-supplement .material-session-choice{display:flex;align-items:flex-start;gap:.55rem;margin:12px 0;line-height:1.8}
.material-supplement .material-session-choice input{flex:0 0 auto;margin-top:.3em}
.material-supplement .material-range{margin:22px 0 18px;align-items:flex-start;gap:16px 20px}
.material-supplement .material-range label{gap:8px;line-height:1.7}
.material-supplement form>.preference-note{margin:20px 0 0;line-height:1.85}
.material-supplement [data-supplement-status]{margin:16px 0 0;line-height:1.85}

/* Shared reading rhythm for study/source toggles, including nested help. */
.material-analysis-options>summary,.material-coverage>summary,.material-question details>summary,.plan-concept-review details>summary{line-height:1.75}
.material-question .past-question-choice{display:flex;align-items:baseline;gap:10px;margin:8px 0;line-height:1.7}.past-question-choice>span:first-child{flex:0 0 1.2em;color:var(--accent)}
.material-analysis-options[open]>summary,.material-coverage[open]>summary,.material-question details[open]>summary,.plan-concept-review details[open]>summary{margin-bottom:14px}
.material-analysis-options>p,.material-coverage>p,.material-question details>p,.material-question details>ul,.material-question details>ol,.plan-concept-review details>p{margin:14px 0;line-height:1.85;overflow-wrap:anywhere}
.material-question details>ul>li,.material-question details>ol>li{margin:8px 0;line-height:1.85}
.material-question details>details{margin:20px 0}
.plan-solution .plan-grades{margin:20px 0 0;padding:0;gap:12px 24px;line-height:1.7}
.plan-solution .plan-grades legend{margin-bottom:12px;line-height:1.7}
.plan-solution .plan-grades label{padding:6px 0;line-height:1.7}

/* Structured SVG keeps labels crisp and connectors independent of AI markup. */
.review-question-comparison{margin:24px 0;padding:18px 0;border-top:1px solid #e3d9c9}
.review-question-comparison>summary{font-weight:700;line-height:1.8}
.review-question-comparison>p{line-height:1.9}
.review-diagram{margin:32px 0;padding:22px;border:1px solid #e3d9c9;border-radius:16px;background:#fffdf7}
.review-diagram-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;font-size:14px;color:#776957}
.review-diagram-toolbar .button{font-size:14px;padding:9px 14px;min-height:40px}
.review-diagram-svg{display:block;width:100%;height:auto}
.review-diagram figcaption{display:flex;flex-direction:column;gap:8px;margin:20px 4px 0;line-height:1.6}
.review-diagram-explanation{margin:16px 4px 0;border-top:1px solid #e8dfd2;padding-top:8px;line-height:1.85}
.review-diagram-explanation p{margin:12px 0}
.review-diagram-status{margin:22px 0;padding:16px 20px;border-radius:10px;background:#f5eedf;font-size:15px;line-height:1.7}
.review-diagram-dialog{width:min(1280px,94vw);max-width:94vw;max-height:92vh;padding:24px;border:1px solid #d8cdbc;border-radius:18px;background:#fffdf7;box-shadow:0 18px 80px #251b1b40}
.review-diagram-dialog::backdrop{background:#241b1970;backdrop-filter:blur(3px)}
.review-diagram-modal-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.review-diagram-modal-heading h2{margin:0;font-size:22px}
.review-diagram-large{overflow:auto;max-height:68vh;border-radius:16px}
.review-diagram-large .review-diagram-svg{min-width:900px}
.review-diagram-modal-note{margin:18px 0 0;line-height:1.6}
@media(max-width:700px){.review-diagram{padding:12px;margin:24px -4px}.review-diagram-toolbar{font-size:12px;gap:8px}.review-diagram-toolbar .button{font-size:12px;padding:8px}.review-diagram-dialog{padding:16px}.review-diagram-modal-heading h2{font-size:18px}.review-diagram-modal-heading .button{padding:8px 12px}}

/* Keep navigation in the sidebar; omit redundant global chrome. */
body>.prototype{display:none}
#profile-status:not([data-error="true"]){display:none}
:is(#today,#review,#memorydrill,#records,#courses,#course,#settings)>.topline{display:none}
body>.shell{min-height:100vh}
@media(min-width:701px){body>.shell>.sidebar{top:0;height:100vh}}

.exam-review-settings,.exam-review-lesson,.exam-extra-practice{border:1px solid var(--line);border-radius:10px;margin:20px 0;padding:0 20px}
.exam-review-settings>summary,.exam-review-lesson>summary,.exam-extra-practice>summary{cursor:pointer;padding:16px 0;line-height:1.7;font-size:14px}
.exam-review-settings label{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 22px 18px 0;font-size:14px}.exam-review-settings select{padding:8px 12px;border:1px solid var(--line);border-radius:6px;background:transparent;color:inherit}
.exam-review-lesson>summary>span+span{display:block;font-size:13px;color:var(--muted);margin-top:4px}.exam-review-lesson>p,.exam-extra-practice>p{font-size:13px;line-height:1.8;margin-bottom:16px}.exam-extra-practice article{padding:18px 0;border-top:1px solid var(--line);line-height:1.8}.exam-extra-practice article h3{font-size:16px;margin:0 0 10px}.exam-extra-practice article p{margin:8px 0}.exam-extra-practice article details{margin-top:14px}.exam-extra-practice article summary{cursor:pointer;padding:8px 0}

/* The same original-exam disclosure is also shown outside the today dashboard. */
.past-exam-progress>.today-disclosure>summary{display:flex;align-items:center;gap:10px;list-style:none;line-height:1.6}
.past-exam-progress>.today-disclosure>summary>span{margin-left:0}

/* Separate eve study booklet; quiet neutral sections, shared mobile layout. */
.eve-packets{margin:24px 0;padding:24px;border:1px solid var(--line,#ddd);border-radius:14px}
.eve-packets h2 small{font-size:1rem;font-weight:400;margin-left:8px}
.eve-course,.eve-section{margin:16px 0}
.eve-course>summary,.eve-section>summary{padding:14px 0;cursor:pointer;line-height:1.6}
.eve-course>summary span,.eve-section>summary span{font-size:.9em;font-weight:400;margin-left:12px}
.eve-entry{padding:20px 0;border-bottom:1px solid var(--line,#ddd);overflow-wrap:anywhere;line-height:1.85}
.eve-entry h4{margin:0 0 12px}.eve-entry details{margin:16px 0}.eve-entry .text-link{display:inline-block;margin-top:12px}
@media(max-width:600px){.eve-packets{padding:16px}.eve-packets .section-title{display:block}.eve-packets .section-title button{margin-top:12px}.eve-course>summary span,.eve-section>summary span{display:block;margin-left:18px}}

/* Exam preparation: course context first, two work areas, compact lesson lists. */
.exam-dashboard{display:grid;gap:24px;margin-top:28px;font-size:15px;line-height:1.6}
.exam-dashboard h2,.exam-dashboard h3,.exam-dashboard h4,.exam-dashboard p{margin:0}
.exam-extraction{border-block:1px solid var(--line);padding:0 4px}
.exam-extraction>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;cursor:pointer;list-style:none;font-size:14px}
.exam-extraction>summary>span:first-child{color:var(--accent,#782f3b);font-weight:600}
.exam-extraction>summary>span:last-child{color:var(--muted)}
.exam-file-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:14px 0}
.exam-file-row>div{min-width:0;overflow-wrap:anywhere}.exam-file-row a{font-weight:500}.exam-file-row small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.exam-file-row p{font-size:13px;margin-top:6px}
.exam-tag,.exam-unattempted{display:inline-block;font-size:11px;line-height:1.5;padding:2px 7px;border:1px solid #bca8aa;color:#73353d;border-radius:5px;vertical-align:middle;font-style:normal;font-weight:500;margin-left:6px}
.exam-course-panel{border:1px solid var(--line);border-radius:14px;overflow:hidden}
.exam-course-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 26px 14px}
.exam-course-heading h2{font-size:22px;letter-spacing:-.5px}.exam-course-heading p{font-size:13px;color:var(--muted);margin-top:4px}
.exam-course-heading .button{font-size:13px;padding:9px 13px;min-height:38px;white-space:nowrap}
.exam-course-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 22px;padding:0 26px 20px;font-size:13px;color:var(--muted);border-bottom:1px solid var(--line)}
.exam-course-meta b{font-size:15px;font-weight:600;color:var(--ink,#292929)}.exam-needs-study,.exam-needs-study b{color:#782f3b}
.exam-course-work{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.exam-reading{min-width:0}.exam-mistakes{padding:22px 26px 26px;border-top:1px solid var(--line);min-width:0}.exam-mistakes .mistake-reading{padding:16px 0;overflow-wrap:anywhere}.exam-mistakes .mistake-reading h3{font-size:15px}.exam-mistakes .mistake-reading ol{list-style:none;padding-left:0}
.exam-core,.exam-practice{padding:22px 26px 26px;min-width:0}.exam-practice{border-left:1px solid var(--line)}
.exam-dashboard h3{font-size:17px;font-weight:600}.exam-dashboard h3>span{color:var(--muted);font-size:12px;margin-right:7px;font-weight:400}
.exam-practice-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}.exam-practice-heading .text-link{font-size:12px}
.workbook-append{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px 16px;margin:20px 0 24px;padding:18px;border:1px solid var(--line);border-radius:10px}
.workbook-append fieldset{flex-basis:100%;min-width:0;margin:0;padding:0;border:0}
.workbook-append legend{margin-bottom:14px;font-size:14px;font-weight:600}
.workbook-lesson-checks{display:flex;flex-wrap:wrap;gap:12px 20px}
.workbook-lesson-checks label{display:flex;align-items:center;gap:7px;min-height:32px;font-size:14px;cursor:pointer}
.workbook-lesson-checks input{width:16px;height:16px;accent-color:var(--accent)}
.workbook-lesson-checks small{font-size:11px;color:var(--muted)}
.workbook-append .button{min-height:44px;white-space:normal;line-height:1.5}
.workbook-append p{flex-basis:100%;margin:0;font-size:12px;line-height:1.7;color:var(--muted)}
.workbook-append [role=status]:empty{display:none}
@media(max-width:540px){.workbook-append{align-items:stretch;padding:16px}.workbook-append .button{width:100%;flex-basis:100%}}
.exam-dashboard .exam-review-lesson{margin:14px 0 0;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0}
.exam-dashboard .exam-review-lesson>summary{padding:12px 0;list-style-position:outside;margin-left:16px;font-size:14px}.exam-dashboard .exam-review-lesson>summary>span+span{font-size:12px;margin-top:3px}
.exam-task-links{list-style:none;padding:0;margin:0}.exam-task-links li{border-bottom:1px solid var(--line)}.exam-task-links li:last-child{border-bottom:0}
.exam-task-links a{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;font-size:14px;line-height:1.6;text-decoration:none}.exam-task-links a>span{min-width:0;overflow-wrap:anywhere}.exam-task-links small{font-size:12px;color:var(--muted);flex-shrink:0}.exam-task-links a:hover>span{text-decoration:underline}
.exam-dashboard .exam-empty{font-size:13px;line-height:1.8;color:var(--muted);margin:14px 0}.exam-dashboard .exam-missed-note{font-size:12px;color:#782f3b;margin-top:12px}
.exam-paper-part{margin-top:20px}.exam-paper-part h4{font-size:14px;font-weight:600}.exam-paper-part h4>span{font-size:12px;color:var(--muted);font-weight:400;margin-left:6px}
.exam-dashboard-settings{border-top:1px solid var(--line);padding-top:2px}.exam-dashboard-settings>summary,.exam-packet-preview>summary{font-size:13px;color:var(--muted);padding:14px 0;cursor:pointer}.exam-dashboard-settings .exam-review-settings{margin:0;border:0;padding:0}
.exam-packet-preview{margin-top:18px}.exam-packet-preview .eve-packets{margin:0;padding:14px}.exam-packet-preview .eve-packets>.section-title,.exam-packet-preview .eve-packets>p{display:none}.exam-packet-preview .eve-course{margin:0}
.exam-dashboard summary:focus-visible,.exam-dashboard a:focus-visible{outline:2px solid #782f3b;outline-offset:4px}
/* Give expanded review sections the same breathing room as the course cards. */
.exam-dashboard .preference-note{line-height:1.85}
.exam-core>h3+.preference-note,.exam-practice>.preference-note{margin-top:14px}
.exam-dashboard .exam-review-lesson[open]{padding-bottom:20px}
.exam-dashboard .exam-review-lesson[open]>summary{margin-bottom:10px}
.exam-dashboard .exam-review-lesson>p+p{margin-top:18px}
.exam-dashboard .exam-review-lesson>details{margin-top:22px;padding:16px 18px;border:1px solid var(--line);border-radius:8px}
.exam-dashboard .exam-review-lesson>details>summary{cursor:pointer;line-height:1.7;font-size:13px}
.exam-dashboard .exam-review-lesson>details[open]>summary{margin-bottom:18px}
.exam-dashboard .exam-review-lesson .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 16px;line-height:1.65;white-space:normal;box-sizing:border-box;max-width:100%}
.exam-dashboard .workbook-options{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 10px;margin:20px 0 4px;padding:14px 16px;background:var(--tint);border-radius:8px}
.exam-dashboard .workbook-options input{align-self:center;flex:0 0 auto;margin:0;accent-color:var(--accent)}
.exam-dashboard .workbook-options small{flex-basis:100%;padding-left:24px;line-height:1.75}
.exam-practice>a.button{display:inline-flex;margin-top:22px;white-space:normal;line-height:1.65}
.exam-dashboard .exam-packet-preview[open]{padding-bottom:18px}
.exam-dashboard .exam-packet-preview[open]>summary{margin-bottom:12px;border-bottom:1px solid var(--line)}
.exam-dashboard .exam-packet-preview>.preference-note{margin-top:16px}
.exam-dashboard .exam-packet-preview>p+p{margin-top:16px}
.exam-dashboard-settings[open]>summary{margin-bottom:18px}
.exam-dashboard .exam-review-settings{line-height:1.85}
@media(max-width:1050px){.exam-course-work{grid-template-columns:1fr}.exam-practice{border-left:0;border-top:1px solid var(--line)}}
@media(max-width:600px){.exam-dashboard{gap:18px;margin-top:20px}.exam-course-heading{padding:18px 18px 12px;align-items:flex-start;flex-wrap:wrap}.exam-course-heading h2{font-size:20px}.exam-course-meta{padding:0 18px 16px;gap:6px 16px}.exam-core,.exam-practice,.exam-mistakes{padding:18px}.exam-extraction>summary{font-size:12px;align-items:flex-start}.exam-task-links a{align-items:flex-start;flex-direction:column;gap:4px}.exam-file-row{gap:10px}.exam-file-row .text-link{flex-shrink:0}.exam-unattempted{margin-left:0}}

/* Keep the slide width stable as background content adds/removes scrollbars. */
html:has(#material:not([hidden])){scrollbar-gutter:stable}
.material-original{scrollbar-gutter:stable}
.slide-ink-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.slide-ink-toolbar .button{min-height:36px;padding:6px 10px;white-space:nowrap}
.slide-ink-toolbar .button[aria-pressed="true"]{color:var(--paper,#fff);background:var(--ink);border-color:var(--ink)}
.slide-ink-history-actions{display:inline-flex;gap:6px}
.slide-ink-toolbar .slide-ink-history{min-width:36px;font-size:18px;line-height:1}
.slide-ink-status{font-size:12px;margin:0 0 8px}
.slide-ink-surface{position:relative}
.slide-ink-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.slide-ink-layer [data-ink-tool="highlight"]{mix-blend-mode:multiply}
:is(.slide-ink-surface,.slide-ink-pointer)[data-ink-mode="pen"]{--ink-cursor-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='m2 22 2-6L16 4a2 2 0 0 1 3 0l1 1a2 2 0 0 1 0 3L8 20Z' fill='%23192b55' stroke='white' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='m14 6 4 4M4 16l4 4' fill='none' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E")}
:is(.slide-ink-surface,.slide-ink-pointer)[data-ink-mode="highlight"]{--ink-cursor-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='m2 22 1-5 4-2 9-12a2 2 0 0 1 3-.3l3 2.4a2 2 0 0 1 .2 2.8L13 19l-4 .8-3 2Z' fill='%23ffe44e' stroke='%23654a08' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='m7 15 6 4M14 6l6 4' fill='none' stroke='%23654a08' stroke-width='1.2'/%3E%3C/svg%3E")}
:is(.slide-ink-surface,.slide-ink-pointer)[data-ink-mode="erase"]{--ink-cursor-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2 22v-4L14 4a2 2 0 0 1 3-.1l4 3.6a2 2 0 0 1 .1 2.9L11 22Z' fill='%23f4b3c0' stroke='%235d2938' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='m7 12 7 6' fill='none' stroke='%235d2938' stroke-width='1.3'/%3E%3C/svg%3E")}
.slide-ink-surface[data-ink-mode]:not([data-ink-mode="read"]){--ink-active-cursor:var(--ink-cursor-image) 2 22,crosshair;cursor:var(--ink-active-cursor);touch-action:none;user-select:none;-webkit-touch-callout:none}
.slide-ink-surface[data-ink-mode][data-ink-pen-cursor]{--ink-active-cursor:none}
.slide-ink-surface.slide-ink-selective-touch[data-ink-mode]:not([data-ink-mode="read"]){touch-action:auto}
.slide-ink-pointer{position:fixed;z-index:10000;width:24px;height:24px;transform:translate(-2px,-22px);background:var(--ink-cursor-image) center/contain no-repeat;pointer-events:none}

.study-rich-text .study-flow-diagram ol{list-style:none;padding:0;margin:20px auto;max-width:640px}.study-rich-text .study-flow-diagram li{margin:0;text-align:center}.study-rich-text .study-flow-diagram li>div{text-align:center}
.lecture-prestudy-document .summary-section{margin-top:72px;padding-bottom:24px}
.lecture-prestudy-document .summary-topic{margin:0 0 12px;break-inside:avoid}
.lecture-prestudy-document .summary-topic-titled{margin-top:42px}
.lecture-prestudy-document{color:#26352e}
.lecture-prestudy-document .summary-topic>p,.lecture-prestudy-document>p{margin:0 0 12px;line-height:1.62}
.lecture-prestudy-document strong{color:#884124;font-weight:700}
.lecture-prestudy-document .summary-note{font-size:.86em;color:#56635b}
.lecture-prestudy-document .study-flow-diagram li>div{font-weight:400;border-radius:0;background:#edf1e9}
.lecture-prestudy-document .study-flow-diagram li>span{color:#884124}
.lecture-prestudy-document .study-flow-diagram ol{list-style:none;padding:0;margin:20px auto;max-width:88%}
.lecture-prestudy-document .study-flow-diagram li{margin:0;text-align:center}
.lecture-prestudy-document .study-table{border:0;border-radius:0}
.lecture-prestudy-document .study-table table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:.9em;line-height:1.68}
.lecture-prestudy-document .study-table th,.lecture-prestudy-document .study-table td{text-align:left;vertical-align:top;padding:9px;border-bottom:1px solid #d5ddd3;overflow-wrap:anywhere}
.lecture-prestudy-document .study-table th{background:#edf1e9;font-weight:700}
.lecture-prestudy-document .study-table tr:last-child td{border-bottom:1px solid #d5ddd3}
.lecture-prestudy-document .summary-pair-table th:first-child{width:32%}
.lecture-prestudy-document .summary-pair-table tbody td:first-child{background:#f5f6f1}
.lecture-prestudy-document .summary-source-pages{font-size:12px!important;color:var(--muted);margin:6px 0 16px!important;line-height:1.6!important}
/* Shared concept-first reading: burgundy lesson, teal teaching, warm application. */
.mistake-booklet{--mistake-teal:#285c59;--mistake-wine:#792d39;--mistake-line:#ddd7ca;line-height:1.85}
.mistake-contents{display:grid;gap:7px;margin:28px 0 40px;padding:20px 24px;border:1px solid var(--mistake-line);border-radius:12px;background:rgba(255,255,255,.42)}
.mistake-contents span{font-size:.9em;color:var(--muted,#766b58)}
.mistake-lesson{margin:45px 0 65px}.mistake-lesson-heading{padding:0 0 18px;border-bottom:3px solid var(--mistake-wine)}
.mistake-lesson-heading>span{color:var(--mistake-wine);font-size:.9em;font-weight:600}.mistake-lesson-heading h2{margin:7px 0 0;font-size:1.65em}
.mistake-topic{margin:38px 0 55px}.mistake-topic>h3{font-size:1.25em;line-height:1.6;margin:0 0 22px}.mistake-topic>h3>span{color:var(--mistake-wine);margin-right:8px}
.mistake-concepts{padding:24px 28px;background:#edf3ee;border:1px solid #c8d8cf;border-left:5px solid var(--mistake-teal);border-radius:5px}
.mistake-concepts>h4{color:var(--mistake-teal);margin:0 0 20px;font-size:1.1em}.mistake-concept+ .mistake-concept{margin-top:25px;padding-top:21px;border-top:1px solid #d3e0d8}
.mistake-concept h5{font-size:1em;margin:0 0 10px;color:#294c45}.mistake-concept p{margin:10px 0}
.mistake-booklet .mistake-source-line{font-size:.78em;color:#766d60;line-height:1.7;margin:14px 0 0}.mistake-source-line a{font-size:inherit;overflow-wrap:anywhere}
.mistake-apply-heading{margin:35px 0 18px;color:var(--mistake-wine);font-size:1.08em}
.mistake-problem{padding:26px 0 32px;margin:0 0 24px;border-bottom:1px solid var(--mistake-line)}
.mistake-problem>header{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:19px}.mistake-problem>header h5{font-size:1.06em;margin:0}.mistake-question-number{font-weight:700;color:var(--mistake-wine)}
.mistake-confusion{background:#fff0d7;border-left:3px solid #ac7838;padding:12px 17px;margin:16px 0}.mistake-confusion p{margin:6px 0}
.mistake-stem{font-weight:500}.mistake-options{list-style:none;padding:0;display:grid;gap:9px;margin:22px 0}.mistake-options li{display:flex;gap:12px;padding:12px 15px;border:1px solid #e2d9c6;border-radius:6px;align-items:baseline}.mistake-options li.is-correct{background:#eff4ed;border-color:#8aa28b}.mistake-options li>span:first-of-type{flex:1}.mistake-correct-label{font-size:.75em;color:#3b6548;white-space:nowrap}
.mistake-reasoning{padding:20px 23px;background:#fff8eb;border:1px solid #e8dcc5;border-radius:6px}.mistake-reasoning>h5{font-size:1em;color:var(--mistake-wine);margin:0 0 14px}.mistake-reasoning p{margin:10px 0}.mistake-reasoning li{margin:10px 0}
.mistake-figures{display:flex;gap:18px;flex-wrap:wrap}.mistake-figures figure{margin:10px 0;max-width:100%}.mistake-figures img{max-width:100%;max-height:400px;object-fit:contain}
@media(max-width:600px){.mistake-concepts,.mistake-reasoning{padding:18px}.mistake-options li{padding:10px}.mistake-lesson-heading h2{font-size:1.35em}}
@media print{.mistake-booklet{font-size:10.5pt}.mistake-lesson{break-before:page}.mistake-concept,.mistake-options li{break-inside:avoid}.mistake-topic>h3,.mistake-apply-heading{break-after:avoid}.mistake-concepts,.mistake-reasoning{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Total review actions and disclosure rhythm, including the standalone reader. */
[data-final-body]>.preference-note{margin:1rem 0 1.35rem;line-height:1.9}
[data-final-body]>.settings-actions{display:flex;flex-wrap:wrap;gap:12px 16px;margin:0 0 2.5rem;align-items:center}
[data-final-body]>.settings-actions>.button{min-height:44px;padding:.8rem 1.2rem;white-space:normal}
[data-final-body] details[open]>summary{margin-bottom:1.25rem}
/* Workbook controls are a separate, spaced group above the generation action. */
.workbook-options,.exam-dashboard .workbook-options{display:flex;align-items:center;flex-wrap:wrap;gap:20px 28px;margin:24px 0 20px;padding:18px 20px;background:var(--tint);border-radius:10px;flex-basis:100%}
.workbook-count{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 16px;width:100%;font-size:14px;font-weight:600}
.workbook-count>span{line-height:1.5;word-break:keep-all}
.workbook-options .workbook-count>small{grid-column:1/-1;padding:0;font-size:12px;font-weight:400;line-height:1.65;color:var(--muted)}
.workbook-count select{min-height:44px;min-width:155px;padding:9px 36px 9px 12px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font:inherit}
.workbook-short{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.6}
.workbook-options .workbook-short input{flex:0 0 auto;margin:4px 0 0;align-self:flex-start;accent-color:var(--accent)}
.workbook-options .workbook-short small{display:block;padding:0;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.65}
.workbook-options .workbook-difficulty{flex-basis:100%;min-width:0;width:100%;padding:0;margin:0;border:0}
.workbook-difficulty legend{padding:0;margin:0 0 12px;font-size:14px;font-weight:600;line-height:1.5}
.workbook-options{position:relative;isolation:isolate}
.workbook-options:has([data-workbook-difficulty-dialog]:not([hidden])){min-height:500px}
.workbook-options [hidden]{display:none!important}
.workbook-difficulty legend{padding-right:44px}
.workbook-lesson-open{position:absolute;top:12px;right:12px;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--accent);padding:8px}
.workbook-lesson-open:hover,.workbook-lesson-open[aria-expanded=true]{background:rgba(120,47,59,.1)}
.workbook-lesson-open:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.workbook-lesson-summary{padding-right:28px;line-height:1.8}
.workbook-lesson-summary p{margin:8px 0;overflow-wrap:anywhere;font-size:14px}
.workbook-lesson-summary strong{color:var(--accent)}
.workbook-lesson-dialog{position:absolute;inset:10px;z-index:3;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:12px;padding:18px;border:1px solid var(--accent);border-radius:10px;background:var(--tint);box-shadow:0 8px 24px rgba(80,35,45,.15);overflow:hidden}
.workbook-lesson-dialog header,.workbook-lesson-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.workbook-lesson-dialog h4{margin:0;font-size:15px;line-height:1.6}
.workbook-lesson-dialog [role=status]{margin:0;font-size:12px;color:var(--muted);line-height:1.5}
.workbook-lesson-rows{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding-right:4px}
.workbook-lesson-row{display:grid;grid-template-columns:minmax(0,1fr) 112px;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}
.workbook-lesson-row strong{font-size:13px;font-weight:600}
.workbook-lesson-row small{display:block!important;padding:0!important;margin-top:3px;font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.workbook-lesson-row>span{min-width:0}
.workbook-lesson-row select{width:100%;min-width:0;max-width:100%;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font:inherit;font-size:13px}
.workbook-lesson-dialog .button{min-height:38px;padding:8px 20px;font-size:13px}
@media(max-width:540px){.workbook-lesson-dialog{inset:8px;padding:14px;gap:10px}.workbook-lesson-row{grid-template-columns:minmax(0,1fr) 96px;gap:10px}.workbook-lesson-dialog footer .text-link{font-size:12px}}
.workbook-difficulty-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:420px}
.workbook-difficulty-buttons label{position:relative;min-width:0;cursor:pointer}
.workbook-options .workbook-difficulty-buttons input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.workbook-difficulty-buttons span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font-size:14px;font-weight:600;line-height:1.5;transition:background .15s,border-color .15s}
.workbook-difficulty-buttons input:checked+span{background:var(--accent);border-color:var(--accent);color:#fff}
.workbook-difficulty-buttons input:focus-visible+span{outline:2px solid var(--accent);outline-offset:3px}
.workbook-difficulty-buttons label:hover span{border-color:var(--accent)}
.workbook-options [data-workbook-difficulty-note]{margin:12px 0 0;color:var(--muted);font-size:12px;line-height:1.75;word-break:keep-all}
.workbook-options .workbook-short{width:100%;padding-top:18px;border-top:1px solid var(--line)}
.workbook-options+.button,[data-workbook-create],[data-mock-prepare],[data-exam-paper-prepare]{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.6;text-align:center}
.mock-answer-sources{display:inline;font-size:12px;font-weight:400;color:var(--muted);margin-left:12px;line-height:1.6}
.lesson-review-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:24px 0}
.lesson-review-actions [role="status"]{font-size:13px;color:var(--muted);line-height:1.7}
.lesson-workbook-settings{padding:20px;margin:24px 0 28px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.lesson-workbook-settings label{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;font-weight:600}
.lesson-workbook-settings select{min-width:180px;max-width:100%;padding:9px 12px;line-height:1.5;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:inherit;font:inherit}
.lesson-workbook-settings p{margin:12px 0 0;line-height:1.75}
.lesson-workbook-settings h4{margin:0 0 18px;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.lesson-workbook-difficulties{margin:24px 0 28px}
.lesson-workbook-difficulties>summary{font-weight:600;line-height:1.7}
.lesson-workbook-settings [role="status"]:not(:empty){display:block;margin-top:12px;font-size:13px;color:var(--muted)}
@media(max-width:540px){.lesson-workbook-settings{padding:16px}.lesson-workbook-settings label{display:grid;gap:10px}.lesson-workbook-settings select{min-width:0;width:100%}.lesson-review-actions{align-items:stretch;gap:12px}.lesson-review-actions .button{max-width:100%;white-space:normal}}
@media(max-width:540px){.workbook-options,.exam-dashboard .workbook-options{align-items:stretch;gap:18px;padding:16px}.workbook-count{width:100%;grid-template-columns:minmax(0,1fr);gap:8px}.workbook-count select{width:100%;min-width:0}.workbook-short{width:100%}}

.sidebar-toggle{display:none}
@media(min-width:701px){
 .shell{--sidebar-expanded-width:220px;--sidebar-rail-width:44px}
 .shell>.sidebar{padding-top:48px;flex-shrink:0}
 .sidebar-toggle{display:grid;place-items:center;position:absolute;top:8px;right:6px;width:32px;height:32px;border-radius:6px;color:var(--muted);cursor:pointer}
 .sidebar-toggle:hover{background:#e9eaed;color:var(--ink)}
 .sidebar-collapsed>.sidebar{width:var(--sidebar-rail-width);min-width:var(--sidebar-rail-width);padding:0;overflow:visible}
 .sidebar-collapsed>.sidebar>:not(.sidebar-toggle){display:none}
 .sidebar-collapsed .sidebar-toggle svg{transform:scaleX(-1)}
}
@media(min-width:701px) and (max-width:1150px){.shell{--sidebar-expanded-width:190px}}
@media(min-width:701px) and (max-width:980px){.shell{--sidebar-expanded-width:170px}}
@media(min-width:1001px){
 /* Keep the notes column at its expanded-menu width, giving the reclaimed
    space to the original document, including on screens wider than 1500px. */
 .sidebar-collapsed .material-reader{max-width:calc(1500px + var(--sidebar-expanded-width) - var(--sidebar-rail-width))}
 .sidebar-collapsed .material-reader-grid{grid-template-columns:minmax(0,1fr) calc((min(1500px,100vw - var(--sidebar-expanded-width)) - 102px)/2.15)}
}

/* Written mock answers keep their label, field, actions and save notice separate. */
#exampractice .mock-answer-field{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:22px 0 28px;font-size:14px;line-height:1.6}
#exampractice .mock-answer-field>span{display:block}
#exampractice .mock-answer-field textarea{display:block;width:100%;max-width:100%;box-sizing:border-box;min-height:140px;margin:0;padding:14px 16px;font:inherit;font-size:16px;line-height:1.7;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:7px;resize:vertical}
#exampractice .mock-save-status{display:block;clear:both;margin:18px 0 0;padding:0;font-size:12px;line-height:1.7;color:var(--muted,#817c75);min-height:1.7em}
#exampractice .mock-navigation{margin:24px 0}
#exampractice .mock-navigation-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}
#exampractice .mock-nav-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:7px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--ink);cursor:pointer}
#exampractice .mock-navigation .plan-question-nav{margin:10px 0;gap:7px}
#exampractice .mock-nav-pages{display:flex;justify-content:flex-end;gap:18px;margin-top:12px}
#exampractice .mock-nav-pages button{padding:7px 0;background:transparent;border:0;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
#exampractice .mock-nav-toggle:focus-visible,#exampractice .mock-nav-pages button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

#exampractice .mock-timer-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px 14px;font-variant-numeric:tabular-nums}
#exampractice .mock-timer-toggle{padding:7px 11px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--ink);font:inherit;font-size:12px;cursor:pointer}
#exampractice .mock-timer-toggle[aria-pressed=true]{color:var(--accent);background:var(--tint)}

.exam-connection-notice{border:1px solid var(--line);border-radius:8px;padding:16px 20px;font-size:13px;line-height:1.7}
.exam-connection-notice summary{cursor:pointer;color:var(--accent);font-weight:600}
.exam-connection-notice>p{margin-top:12px;color:var(--muted)}
.exam-connection-notice ul{list-style:none;padding:0;margin:12px 0 0}
.exam-connection-notice li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--line)}
.exam-connection-notice li>div{min-width:0;overflow-wrap:anywhere}.exam-connection-notice small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.exam-connection-notice button{flex-shrink:0}

.material-tutor-reset{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;padding:6px;margin-left:auto;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:transparent;cursor:pointer}
.material-tutor-reset:hover{color:var(--accent)}.material-tutor-reset:disabled{opacity:.5;cursor:wait}
.material-tutor-reset:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.final-review-library .exam-review-lesson{padding:22px clamp(18px,3vw,28px);overflow-wrap:anywhere}.final-review-library .exam-review-lesson h3{margin:6px 0 10px;line-height:1.6}.final-review-library .lesson-review-actions{margin-top:18px}

.mistake-contents [data-mistake-target]{display:block;min-height:40px;text-align:left;font:inherit;font-size:.9em;line-height:1.7;color:var(--muted,#766b58);background:transparent;border:0;border-radius:6px;padding:6px 10px;margin:0 -10px;cursor:pointer}.mistake-contents [data-mistake-target]:hover{background:#792d390a;color:var(--mistake-wine)}.mistake-lesson{scroll-margin-top:24px}

.mistake-contents [data-mistake-target]{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}
/* Shared exam preparation: one course-independent box and stable action feedback. */
.workbook-options,.exam-dashboard .workbook-options{padding:var(--card-inset);gap:var(--card-gap);margin-block:var(--section-heading-gap)}
.workbook-count.ui-field{margin:0;grid-template-columns:minmax(0,1fr) minmax(120px,180px);gap:var(--space-2) var(--card-gap)}
.workbook-count .ui-field-control{gap:var(--space-2)}
.workbook-count .ui-field-control input{min-width:0}
.workbook-count-tolerance{flex:none;white-space:nowrap;color:var(--muted);font-weight:400}
.workbook-count .ui-field-hint,.workbook-count .ui-field-error{grid-column:1/-1}
.workbook-create-action{display:grid;justify-items:end;gap:var(--space-2);flex-basis:100%;min-width:0}
.workbook-create-action .ui-status{margin:0;font-size:13px;line-height:1.6;text-align:right}
.workbook-create-action .ui-status:empty{display:none}
.exam-archive-lesson{margin-block:var(--card-gap)}
.lesson-review-actions [data-final-review-message]{flex-basis:100%}
@media(max-width:640px){.workbook-count.ui-field{grid-template-columns:minmax(0,1fr)}.workbook-count .ui-field-control{width:100%}.workbook-create-action .button{max-width:100%}}
.workbook-count .ui-field-control input{flex:1 1 0;width:0}
.exam-practice>.button{margin-block:var(--section-heading-gap)}
.claude-summary-controls{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--ui-group-gap)}
.claude-summary .ui-field{margin:0;max-width:100%}
.claude-summary [role=status]:empty{margin:0}

