:root{--ink:#16263b;--muted:#6c788b;--line:#e3e9f0;--blue:#2058d5;--navy:#102b55;--bg:#f5f7fb;--white:#fff;--cyan:#88d8ff;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;color:var(--ink);background:var(--bg);line-height:1.65}*{box-sizing:border-box}body{margin:0}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,textarea,select{font:inherit}button,a,input,textarea,summary{outline-offset:4px}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;line-height:1.3;letter-spacing:-.03em;margin-bottom:12px}h2{font-size:1.2rem;line-height:1.4;letter-spacing:-.02em}small,.small{font-size:.875rem}.muted{color:var(--muted)}.eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.14em;color:var(--blue);margin-bottom:12px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-size:1.1rem;font-weight:800;letter-spacing:.05em;white-space:nowrap}.brand:hover{text-decoration:none}.brand b{font-weight:450}.brand-icon{width:34px;height:36px;border-radius:10px;background:var(--blue);color:white;display:grid;place-items:center;font-family:Georgia,serif;font-size:2rem;line-height:1}.sidebar{position:fixed;inset:0 auto 0 0;width:235px;background:white;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column;z-index:4}.nav-heading{color:#8b95a3;font-size:.75rem;letter-spacing:.08em;margin:42px 12px 12px}.sidebar nav a{display:flex;gap:14px;align-items:center;padding:12px;border-radius:9px;color:#59677b;font-size:.9375rem;margin-bottom:5px}.sidebar nav a.active{color:var(--blue);background:#edf3ff;font-weight:650}.nav-symbol{font-size:1.3rem;width:21px;text-align:center;line-height:1}.sidebar-bottom{margin-top:auto;display:grid;grid-template-columns:36px 1fr;gap:10px;padding:24px 6px 0;border-top:1px solid var(--line)}.sidebar-bottom strong{font-size:.875rem;display:block;overflow-wrap:anywhere}.sidebar-bottom span{font-size:.75rem;color:var(--muted);display:block}.avatar{width:34px;height:34px;border-radius:50%;background:#eaf0f8;display:grid;place-items:center;font-size:.875rem}.sidebar-bottom .account-link{grid-column:1/-1;font-size:.875rem;color:var(--muted)}.sidebar-bottom form{grid-column:1/-1}.text-button{padding:0;background:none;border:0;color:var(--muted);font-size:.875rem}.workspace{margin-left:235px}.topbar{height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 46px;background:rgba(255,255,255,.7);font-size:.875rem;color:var(--muted)}.topbar strong{font-weight:500;color:var(--ink);margin-left:9px}.topbar-note{font-size:.75rem;letter-spacing:.15em}.main-content{max-width:1400px;margin:auto;padding:38px 46px 64px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading p{margin-bottom:0}.outline-label{border:1px solid #d5deeb;padding:5px 11px;border-radius:5px;letter-spacing:.06em;font-size:.75rem;color:#66738a;white-space:nowrap}.topic-banner{background:var(--navy);color:white;border-radius:15px;padding:30px 34px;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:24px}.topic-number{font-size:.75rem;color:#92b8ee;letter-spacing:.08em}.topic-banner h2{font-family:Georgia,"Times New Roman",serif;font-size:2.25rem;font-weight:400;margin:9px 0 7px;line-height:1.25}.topic-banner p{color:#aec1dc;font-size:.9375rem}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:10px 20px;min-height:44px;border-radius:7px;border:1px solid #dbe3ef;background:white;color:var(--ink);font-weight:600;font-size:.9375rem;line-height:1.5}.button:hover{text-decoration:none;filter:brightness(.97)}.button.primary{background:var(--blue);border-color:var(--blue);color:white}.button.light{background:#f4f8ff;color:#183e79;border:0}.button.danger{color:#a22d32;border-color:#eccfd1;background:#fff8f8}.button.small{padding:6px 12px;font-size:.875rem;min-height:36px}.button.wide{width:100%;margin-top:16px}.topic-equation{padding:8px 18px}.topic-equation>.katex-display{font-size:1.15rem;margin:0 0 30px}.progress-caption{display:flex;justify-content:space-between;font-size:.75rem;color:#b9cce7}.progress-caption strong{font-weight:400;color:white}progress{display:block;appearance:none;width:100%;height:5px;margin-top:10px;border:0;background:#355074;border-radius:10px;overflow:hidden}progress::-webkit-progress-bar{background:#355074}progress::-webkit-progress-value{background:var(--cyan)}progress::-moz-progress-bar{background:var(--cyan)}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin:24px 0;background:white;border:1px solid var(--line);border-radius:12px;padding:22px 0}.stats>div{padding:0 28px;border-right:1px solid var(--line)}.stats>div:last-child{border-right:0}.stats span{display:block;font-size:.875rem;color:var(--muted)}.stats strong{font-weight:550;font-size:1.8rem;line-height:1.4}.stats small{font-size:.75rem;color:var(--muted);margin-left:8px;font-weight:400}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:26px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 24px 18px}.section-heading h2{margin:0}.question-list{padding:22px 0 0;overflow:hidden}.tabs{display:flex;gap:6px;flex-wrap:wrap}.tabs a{font-size:.875rem;color:var(--muted);padding:6px 12px;border-radius:6px}.tabs a.selected{color:var(--blue);background:#edf3ff;font-weight:600}.question-row{display:flex;align-items:center;gap:20px;padding:17px 24px;border-top:1px solid #edf0f5;color:var(--ink)}.question-row:hover{background:#f9fbff;text-decoration:none}.question-index{background:#f2f5fa;border:1px solid #e7ecf3;border-radius:8px;width:40px;height:40px;display:grid;place-items:center;flex-shrink:0;font-size:.875rem;color:#566b89;font-variant-numeric:tabular-nums}.question-name{flex:1;min-width:0}.question-name strong{font-weight:550;font-size:1rem}.question-name span{display:block;color:var(--muted);font-size:.75rem;margin-top:3px}.row-status{font-size:.875rem}.row-action{font-size:.875rem;color:var(--blue);margin-left:16px}.badge{display:inline-block;border-radius:5px;padding:3px 9px;font-size:.75rem;font-weight:500;background:#f0f3f7;color:#66758b;white-space:nowrap}.badge.blue{background:#edf3ff;color:#2058d5}.badge.green{background:#e9f6ef;color:#28704b}.badge.amber{background:#fff4df;color:#976318}.compact{margin:17px 0 24px}.compact h1{font-size:1.7rem}.back-link{font-size:.875rem;color:var(--muted)}.practice-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}.problem-card{padding:30px}.problem-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.problem-body{font-family:Georgia,"Times New Roman",serif;font-size:1.2rem;line-height:1.85;overflow-wrap:break-word}.problem-body p{margin-bottom:20px}.problem-body table{border-collapse:collapse;margin:20px auto;font-family:inherit}.problem-body th,.problem-body td{border:1px solid #a6b3c7;padding:7px 22px;text-align:center}.latex-center{text-align:center}.answer-form{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}label{display:block;font-size:.9375rem;font-weight:550;margin:17px 0 7px}input:not([type=radio]):not([type=checkbox]):not([type=hidden]),textarea,select{width:100%;padding:11px 13px;border:1px solid #ccd6e3;border-radius:7px;background:white;color:var(--ink);min-width:0}input:focus,textarea:focus{border-color:var(--blue);outline:2px solid #c3d6ff;outline-offset:1px}input[type=radio],input[type=checkbox]{accent-color:var(--blue);width:18px;height:18px;flex-shrink:0}textarea{line-height:1.7}#id_answer{max-width:330px}fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}legend{font-size:.875rem;color:var(--muted);margin-bottom:10px}.choice{display:flex;align-items:center;gap:14px;border:1px solid #dfe6ef;border-radius:8px;padding:14px;margin:10px 0;font-weight:400;cursor:pointer}.choice:has(input:checked){border-color:var(--blue);background:#f0f5ff}.choice-letter{font-size:.875rem;font-weight:700;color:#687a94}.choice .math{min-width:0;flex:1;overflow:visible;padding-block:4px}.answer-form .button{margin-top:12px}.answer-form .small{margin-top:8px}.result{margin-top:26px;padding:22px;border-radius:9px;background:#f0f4fa;border:1px solid #dce5f3}.result h2{font-size:1rem}.result p{margin-bottom:8px}.result.correct{background:#f0f8f3;border-color:#d3eadc}.result.incorrect{background:#fffbf2;border-color:#efe1c3}.explanation{border-top:1px solid rgba(0,0,0,.08);padding-top:14px;margin-top:17px}.explanation summary{cursor:pointer;font-weight:600;font-size:.9375rem}.explanation .math{line-height:1.9;margin-top:17px}.problem-navigation{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:30px;padding-top:20px;font-size:.875rem}.practice-aside .panel{padding:22px}.practice-aside h2{font-size:1rem;margin-bottom:7px}.attempt-item{border-top:1px solid var(--line);padding:13px 0;display:grid;grid-template-columns:1fr auto;font-size:.875rem}.attempt-item time{grid-column:1/-1;font-size:.75rem;color:var(--muted)}.study-note{padding:28px 17px;color:var(--muted);font-size:.875rem}.study-note .math{line-height:2.3}.text-green{color:#25724c}.text-amber{color:#936217}.empty-state{text-align:center;padding:55px 25px}.empty-state h1{font-size:1.65rem;margin-top:18px}.empty-state p{color:var(--muted)}.empty-icon{font-size:2.8rem;color:var(--blue);margin-bottom:16px}.notice{padding:14px 18px;margin-bottom:22px;border-radius:8px;background:#eef6ef;border:1px solid #d6e7dc;color:#2c6546}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:#102b55;color:white;padding:42px 9%;display:flex;flex-direction:column;min-height:100vh}.auth-story .brand{color:white}.auth-story .brand-icon{background:#305ca0}.story-body{margin:auto 0;padding:55px 0}.story-body .eyebrow{color:#86bdf9}.story-body h1{font-size:2.45rem;line-height:1.45;margin-top:18px;margin-bottom:20px;font-weight:600}.story-body p{font-size:1rem;color:#b8c8e0;line-height:1.9}.auth-footer{font-size:.75rem;color:#819cbe;letter-spacing:.18em}.math-illustration{border-top:1px solid #335074;padding-top:26px;margin-top:42px;max-width:400px}.graph-label{font-size:.6875rem;letter-spacing:.14em;color:#839fc1}.math-illustration svg{display:block;width:100%;margin-top:12px}.grid-line{stroke:#244467;stroke-width:1;fill:none}.axis-line{stroke:#567293;stroke-width:1;fill:none}.curve-line{stroke:#8cd9ff;stroke-width:2.5;fill:none}.math-illustration text{font-family:Georgia,serif;fill:#bedbf4;font-size:20px;font-style:italic}.auth-form{display:flex;justify-content:center;align-items:center;padding:50px 45px;background:white}.form-inner{max-width:390px;width:100%}.auth-form h2{font-size:1.85rem;margin-bottom:12px}.auth-form form{margin-top:32px}.auth-form input{min-height:49px}.auth-switch{font-size:.875rem;text-align:center;margin-top:25px}.subtle-box{border-top:1px solid var(--line);color:#7c889c;font-size:.8125rem;text-align:center;padding-top:25px;margin-top:32px}.standalone{max-width:540px;margin:35px auto;padding:0 20px}.standalone .brand{justify-content:center;margin-bottom:30px}.registration{padding:32px}.registration h1{font-size:1.8rem}.helptext,.helptext li{font-size:.8125rem;color:var(--muted)}.helptext ul{padding-left:20px}.errorlist{padding:10px 14px 10px 30px;color:#a02b3b;background:#fff0f2;border-radius:6px;font-size:.875rem}.narrow{max-width:650px;margin:auto}.table-wrap{overflow:auto}table.records{width:100%;border-collapse:collapse;font-size:.875rem}table.records th{text-align:left;font-size:.75rem;font-weight:500;color:var(--muted);padding:12px;border-bottom:1px solid var(--line)}table.records td{padding:17px 12px;border-bottom:1px solid var(--line)}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:25px;font-size:.875rem}.teacher-tabs{margin:24px 0}.student-row{display:flex;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}.student-info{flex:1}.student-info span{display:block;font-size:.8125rem;color:var(--muted)}.student-actions{display:flex;gap:8px}.review-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.review-grid .problem-body{font-size:1.05rem}.review-note{background:#fff8e8;color:#795c27;padding:16px;border-radius:8px;font-size:.875rem;margin:18px 0}.review-form label[for=id_approved]{display:inline}.review-form .helptext{display:block}.draft-note{padding:14px 18px;background:#edf3ff;border:1px solid #d9e5ff;border-radius:8px;color:#456086;font-size:.875rem;margin-bottom:24px}.katex-display{overflow-x:auto;overflow-y:hidden;padding:5px 0}.math{overflow-wrap:break-word}.skip-link{position:fixed;top:-90px;left:10px;background:white;padding:10px;z-index:100}.skip-link:focus{top:10px}
@media(min-width:1600px){.main-content{padding-top:50px}}
@media(max-width:1150px){.sidebar{width:200px;padding:28px 16px}.workspace{margin-left:200px}.topbar{padding:0 28px}.main-content{padding:30px 28px 50px}.practice-grid{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.topic-banner h2{font-size:1.9rem}.stats>div{padding:0 20px}.review-grid{grid-template-columns:1fr}.story-body h1{font-size:2rem}}
@media(max-width:850px){.sidebar{position:relative;width:auto;padding:16px 20px;border-right:0;border-bottom:1px solid var(--line)}.sidebar>.brand{margin-bottom:14px}.nav-heading,.sidebar-bottom,.sidebar .nav-symbol{display:none}.sidebar nav{display:flex;flex-wrap:wrap;gap:5px}.sidebar nav a{font-size:.875rem;padding:8px 12px;margin:0}.workspace{margin-left:0}.sidebar-bottom{display:flex;align-items:center;flex-wrap:wrap;margin-top:15px;padding:12px 0 0;gap:15px}.sidebar-bottom .avatar{display:none}.sidebar-bottom>div:not(.avatar){margin-right:auto}.sidebar-bottom span{display:none}.sidebar-bottom .account-link,.sidebar-bottom .text-button{font-size:.75rem}.topbar{height:48px;padding:0 22px}.main-content{padding:26px 22px 40px}.practice-grid{grid-template-columns:1fr}.practice-aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.practice-aside .study-note{padding:18px}.auth-story{padding:35px 8%}.auth-shell{grid-template-columns:.9fr 1fr}.auth-form{padding:40px 30px}.topic-equation{padding:0}.topic-equation>.katex-display{font-size:.95rem}.topic-banner{padding:26px}}
@media(max-width:600px){h1{font-size:1.75rem}.main-content{padding:22px 16px 36px}.topbar{padding:0 16px}.topbar-note{display:none}.page-heading{gap:12px;align-items:start}.page-heading .outline-label{display:none}.topic-banner{grid-template-columns:1fr;padding:25px;gap:5px}.topic-banner h2{font-size:1.9rem}.topic-equation{margin-top:13px}.topic-equation>.katex-display{display:none}.stats{grid-template-columns:repeat(2,1fr);padding:8px 0;gap:0;margin:18px 0}.stats>div{padding:12px 20px}.stats>div:nth-child(2){border-right:0}.stats>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.stats strong{font-size:1.6rem}.section-heading{display:block;padding:0 16px 14px}.section-heading h2{margin-bottom:12px}.tabs{gap:2px}.tabs a{padding:5px 9px}.question-row{padding:16px;gap:12px}.question-index{width:34px;height:36px}.question-name strong{font-size:.9375rem}.row-action{display:none}.row-status{font-size:.75rem}.problem-card{padding:22px 18px}.problem-body{font-size:1.1rem;line-height:1.85}.practice-aside{grid-template-columns:1fr}.study-note{display:none}.choice{gap:10px;padding:12px 10px}.choice .katex{font-size:1em}.auth-shell{grid-template-columns:1fr}.auth-story{min-height:0;padding:25px}.story-body{padding:25px 0 0}.story-body h1{font-size:1.65rem;margin:12px 0}.story-body p,.math-illustration,.auth-footer,.story-body .eyebrow{display:none}.auth-form{padding:36px 25px}.auth-form h2{font-size:1.55rem}.auth-form .eyebrow{font-size:.6875rem}.registration{padding:24px}.panel{padding:21px}.panel.question-list{padding:21px 0 0}.empty-state{padding:35px 22px}.student-row{flex-wrap:wrap;gap:12px}.student-info{min-width:60%}.student-actions{width:100%}.review-grid{gap:18px}.review-grid .panel{padding:19px}.outline-label{font-size:.6875rem}}

.question-grid{display:grid;grid-template-columns:repeat(auto-fill,64px);gap:12px;padding:24px;border-top:1px solid var(--line)}
.question-tile{display:grid;place-items:center;width:64px;aspect-ratio:1;border:1px solid #dce5f1;border-radius:10px;background:#f2f5fa;color:#506b90;font-size:1.125rem;font-weight:600;line-height:1;text-decoration:none}
.question-tile:hover{background:#edf3ff;border-color:var(--blue);color:var(--blue);text-decoration:none}
.question-tile:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.question-grid>.empty-state{grid-column:1/-1}
@media(max-width:600px){.question-grid{grid-template-columns:repeat(auto-fill,56px);gap:10px;padding:18px}.question-tile{width:56px}}

/* Topic browsing and faithful lecture figures. */
.topic-selector{margin:0 0 24px}.topic-selector label{display:block;font-weight:600;margin-bottom:8px}.topic-selector>div{display:flex;gap:12px}.topic-selector select{min-width:0;flex:1;padding:12px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);font:inherit}.topic-banner h2{max-width:700px}.question-figure{display:block;width:auto;max-width:100%;height:auto;margin:20px auto}.question-figure:is(svg){width:100%;max-width:540px}.source-center{text-align:center;margin:18px 0}.table-scroll{overflow-x:auto;margin:16px 0}.source-table{border-collapse:collapse;margin:auto;max-width:100%;font-size:16px}.source-table td{border:1px solid #b5c2d3;padding:7px 12px;text-align:center}.source-table .table-scroll{margin:0;overflow:visible}.source-table .source-table td{border:0;padding:0 3px}.problem-body ol{padding-left:2.2em}.problem-body li{margin:10px 0}@media(max-width:600px){.topic-selector>div{flex-direction:column}.source-table td{padding:6px;font-size:14px}.topic-banner{gap:20px}.topic-equation:empty{display:none}}
.problem-body .source-table .source-table{margin:0}.problem-body .source-table .source-table td{padding:0 3px;border:0}

/* Chapter landing page and scoped topic navigation. */
.chapter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.chapter-card{display:flex;flex-direction:column;align-items:flex-start;min-height:230px;padding:30px;border:1px solid var(--line);border-radius:14px;background:white;color:var(--ink);transition:border-color .15s,background .15s}.chapter-card:hover{background:#f8faff;border-color:var(--blue);text-decoration:none}.chapter-card:focus-visible{outline:3px solid var(--blue);outline-offset:4px}.chapter-number{font-size:.75rem;letter-spacing:.12em;font-weight:600;color:var(--blue)}.chapter-card h2{font-size:1.5rem;line-height:1.3;margin:20px 0 12px;max-width:420px}.chapter-card p{color:var(--muted);font-size:.9rem}.chapter-open{margin-top:auto;padding-top:20px;font-size:.875rem;font-weight:600;color:var(--blue);width:100%;display:flex;justify-content:space-between}.chapter-heading{margin-top:20px}.chapter-heading h1{font-size:1.85rem}.topic-selector select:focus-visible{outline:3px solid #b9cff8;outline-offset:2px}.topic-selector .small{margin-top:8px}@media(max-width:600px){.chapter-grid{grid-template-columns:1fr;gap:14px}.chapter-card{min-height:180px;padding:24px}.chapter-card h2{font-size:1.3rem;margin-top:14px}.chapter-heading h1{font-size:1.6rem}}

/* Results belong to the signed-in student's latest attempt. */
.question-tile{position:relative}.question-tile.is-correct{background:#eef8f1;border-color:#a9d4b6;color:#25633c}.question-tile.is-incorrect{background:#fff2f2;border-color:#e3b4b4;color:#963a3a}.question-result{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:2px solid white;color:white;font-family:Arial,sans-serif;font-size:13px;font-weight:700;line-height:1;background:#2f7b47;box-shadow:0 1px 3px #172b4d1a}.is-incorrect .question-result{background:#b44444}.question-tile.is-correct:hover{border-color:#2f7b47}.question-tile.is-incorrect:hover{border-color:#b44444}

/* Personal review bookmarks, independent of answer results. */
.review-form{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0 24px}
.review-toggle{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid #cbd2dc;border-radius:6px;background:#f3f4f6;color:#182230;font:inherit;cursor:pointer;min-height:44px}
.review-toggle svg{width:21px;height:27px;fill:none;stroke:#687487;stroke-width:2}
.review-toggle[aria-pressed="true"]{font-weight:700;background:#eef3fb;border-color:#326dcc}
.review-toggle[aria-pressed="true"] svg{fill:#af2940;stroke:#253348}
.review-toggle:focus-visible{outline:3px solid #326dcc;outline-offset:3px}
.review-toggle:disabled{opacity:.65;cursor:wait}
.review-feedback{color:#576579}
.tile-review-icon{position:absolute;left:5px;top:3px;width:12px;height:16px;fill:#af2940;stroke:#253348;stroke-width:2}
.question-list .section-heading{flex-wrap:wrap;gap:12px}
.question-list .tabs{flex-wrap:wrap}

/* Keep the question title and review control together above the problem. */
.question-heading{margin:12px 0 18px}
.question-heading .eyebrow{margin-bottom:6px}
.question-title-row{display:flex;align-items:center;gap:20px;min-width:0}
.question-title-row h1{font-size:1.7rem;margin:0;white-space:nowrap}
.question-title-row .review-form{position:relative;margin:0;flex-shrink:0}
.question-title-row .review-feedback{position:absolute;top:100%;left:0;white-space:nowrap;font-size:.75rem}
.question-reference{margin-left:auto;white-space:nowrap}
.compact-problem .answer-form{margin-top:20px;padding-top:16px}
.compact-problem .answer-form .choice:first-of-type{margin-top:0}
@media(max-width:600px){.question-title-row{gap:10px}.question-title-row h1{font-size:1.25rem}.question-title-row .review-toggle{font-size:.875rem;padding:6px 8px;gap:7px}.question-title-row .review-toggle svg{width:17px;height:22px}.question-reference{display:none}}

/* A topic-scoped question selector beside previous and next navigation. */
.problem-navigation{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}
.problem-navigation>a:last-child{justify-self:end;text-align:right}
.question-picker-open{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid #183e79;border-radius:8px;background:#102b55;color:white;padding:9px 15px;min-height:44px;font:inherit;font-weight:650;white-space:nowrap}
.question-picker-open[hidden]{display:none}
.question-picker{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:24px;border:1px solid #d4dfec;border-radius:14px;color:var(--ink);background:white;box-shadow:0 18px 70px #132b5540;overflow:auto}
.question-picker::backdrop{background:#102b5566}
.picker-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:16px}
.picker-heading h2{margin:0;font-size:1.2rem}
.picker-close{width:44px;height:44px;flex-shrink:0;border:0;background:transparent;color:var(--ink);font-size:28px;line-height:1;border-radius:6px}
.picker-close:hover{background:#edf3ff}
.picker-legend{display:flex;flex-wrap:wrap;gap:14px 24px;border-block:1px solid var(--line);padding:14px 0;font-size:.875rem}
.picker-legend>span{display:inline-flex;align-items:center;gap:8px}
.current-pin{color:#102b55;font-size:18px}
.unanswered-key{width:18px;height:20px;border:2px dashed #8b95a3}
.picker-legend svg{width:16px;height:22px;fill:#af2940;stroke:#253348;stroke-width:2}
.picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:24px 14px;padding:32px 2px 24px}
.picker-question{position:relative;display:grid;place-items:center;aspect-ratio:1;min-height:44px;border:1px solid #9aadc6;border-radius:4px;background:#f1f5fb;color:#2058d5;font-weight:700;font-size:1.15rem}
.picker-question.is-unanswered{border:1px dashed #8b95a3;background:white}
.picker-question[aria-current="page"]{outline:2px solid #2058d5;outline-offset:3px}
.picker-question:hover{background:#e8f0ff;text-decoration:none}
.picker-current{position:absolute;top:-23px;left:50%;transform:translateX(-50%);color:#102b55;font-size:14px}
.picker-bookmark{display:none;position:absolute;right:-6px;top:-12px;width:15px;height:21px;fill:#af2940;stroke:#253348;stroke-width:2}
.picker-question.is-marked .picker-bookmark{display:block}
.picker-footer{text-align:center;padding-top:4px}
.picker-footer .button{border-radius:24px;color:#2058d5;border-color:#2058d5}
@media(max-width:600px){.problem-navigation{gap:8px;font-size:.8rem}.question-picker-open{padding:8px;font-size:.8rem;gap:5px}.question-picker{padding:18px}.picker-heading h2{font-size:1rem}.picker-legend{gap:10px 14px}.picker-grid{gap:24px 12px}}

/* Let tall option formulas take their natural height without scroll containers. */
.choice .katex-display{overflow:visible;margin:.4em 0;padding:0}
.choice .katex-display>.katex{white-space:normal}
.choice-letter{flex-shrink:0}

/* Each chapter segment represents one question; review marks overlay its result. */
.chapter-progress{width:100%;margin:4px 0 0}
.chapter-progress-caption{display:flex;justify-content:space-between;gap:12px;font-size:.875rem;margin-bottom:8px;color:#64738a}
.chapter-progress-caption strong{color:var(--ink);font-weight:600}
.chapter-progress-bar{display:flex;width:100%;height:18px;border-radius:5px;overflow:hidden;background:#dfe5ee}
.chapter-segment{position:relative;flex:1;min-width:0;background:#dfe5ee}
.chapter-segment.correct,.chapter-progress-legend i.correct{background:#2f8a54}
.chapter-segment.incorrect,.chapter-progress-legend i.incorrect{background:#cc4450}
.chapter-segment.pending,.chapter-progress-legend i.pending{background:#7995be}
.chapter-segment.for-review:after{content:"";position:absolute;bottom:0;left:0;right:0;height:5px;background:#d89a18;border-top:1px solid white}
.chapter-progress-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin-top:12px;font-size:.875rem;color:#536078}
.chapter-progress-legend>span{display:flex;align-items:center;gap:7px}
.chapter-progress-legend i{display:inline-block;flex-shrink:0;width:11px;height:11px;border-radius:2px;background:#dfe5ee}
.chapter-progress-legend i.for-review{background:#d89a18;height:5px;border-radius:0}
.chapter-progress-legend b{font-weight:650;color:var(--ink)}
.chapter-progress-note{font-size:.875rem;color:var(--muted);margin:-10px 0 20px}
@media(max-width:380px){.chapter-progress-legend{gap:8px;font-size:.8125rem}.chapter-progress-legend>span{gap:5px}}

/* Published question collections */
.update-month{margin-top:32px}.update-month-title{font-size:20px;margin:0 0 16px}.update-card{padding:26px;margin-bottom:16px}.update-card-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.update-card h3{font-size:21px;margin:10px 0 0}.update-card h3 a{color:var(--ink,#1c2b3e);text-decoration:none}.update-card h3 a:hover{text-decoration:underline}.update-counts{display:flex;flex-wrap:wrap;gap:12px}.update-counts span{background:#f1f5fb;color:#506681;border:1px solid #e3eaf3;border-radius:6px;padding:5px 10px;font-size:13px}.update-archive{padding:24px;margin-top:24px}.update-archive h2{font-size:18px;margin-top:0}.update-archive ul{padding-left:20px;color:#66768c}.update-archive li{margin-top:8px}
@media(max-width:640px){.update-card{padding:20px}.update-card-heading{align-items:flex-start;flex-direction:column;gap:16px}.update-card-heading .button{width:100%;justify-content:center}}

/* Display equations already provide separation from the question text. */
.problem-body .katex-display{margin:.65em 0}

/* Only approved question IDs receive these compact presentation classes. */
.problem-body .compact-table-spacing,.problem-body .compact-table-spacing>.table-scroll{margin-bottom:0}
.problem-body .compact-figure-spacing>.question-figure{margin-bottom:8px}

/* Keep the graph and value table together in Other Function Questions 05. */
.problem-body .figure-table-row{display:flex;align-items:center;justify-content:center;gap:clamp(16px,4vw,40px);margin-bottom:16px}
.problem-body .figure-table-row>.question-figure{flex:0 1 311px;min-width:0;max-width:60%;margin:0}
.problem-body .figure-table-row>.table-scroll{flex:0 0 auto;min-width:0;margin:0}

/* Keep Polynomials 11's expression together as its sentence wraps. */
.problem-body .polynomial-expression{display:inline-block;white-space:nowrap}

/* Statistics 02: keep each data-set caption with its table in two columns. */
.problem-body .data-table-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(8px,3vw,32px);max-width:420px;margin:18px auto 16px}
.problem-body .data-table-set{margin:0;min-width:0}
.problem-body .data-table-set figcaption{font-size:1rem;line-height:1.4}
.problem-body .data-table-set>.table-scroll{margin:0}
.problem-body .data-table-set .source-table{width:100%;margin:10px auto 0}
@media(max-width:600px){.problem-body .data-table-set figcaption{font-size:.875rem}.problem-body .data-table-set td{padding:5px 3px;font-size:12px}}

/* Statistics 07: retain both histograms in one row and scale proportionally. */
.problem-body .histogram-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;justify-items:center;gap:clamp(8px,2vw,24px);max-width:1004px;margin:18px auto}
.problem-body .histogram-pair>.question-figure{width:100%;max-width:490px;min-width:0;height:auto;margin:0}

/* Right Triangles and Trigonometry 16: display the diagram at half size. */
.problem-body svg.question-figure[aria-label="Diagram for satq-0331"]{width:50%;max-width:270px}

/* Congruence and Similarity 04: display the diagram at 70% size. */
.problem-body img.question-figure[alt="Diagram for satq-0278"]{width:70%;max-width:423.5px}

/* Teacher-managed assistant assignments */
.assistant-add {max-width: 36rem}
.assistant-add label {display: block; margin-bottom: .5rem; font-weight: 600}
.assistant-add select {width: 100%}
.assistant-students {border: 0; padding: 0; margin: 1rem 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: .6rem}
.assistant-student {display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1px solid var(--line,#e0e6ef); border-radius: .6rem; cursor: pointer}
.assistant-student input {width: 1.1rem; height: 1.1rem; flex: 0 0 auto; margin: 0}
.assistant-student:has(input:checked) {background: #edf4fc; border-color: #2855d4}

.assistant-panel + .assistant-panel {margin-top: 1.5rem}
.topic-report .records{min-width:42rem;font-variant-numeric:tabular-nums}
.topic-report .records tbody th{text-align:left;text-transform:none;letter-spacing:normal;font-size:inherit;color:var(--ink)}
.topic-report .chapter-total>*{background:#edf3fb;font-weight:650}
.topic-report .records .topic-name{padding-left:1.5rem;font-weight:400;background:transparent}
.topic-report progress{display:block;width:5rem;height:.4rem;margin-top:.35rem;accent-color:var(--blue)}
.topic-report small{color:var(--muted);white-space:nowrap}

.topic-report .chapter-toggle {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  min-height: 2.75rem;
  padding: .35rem 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.topic-report .chapter-chevron {font-size: .7em; color: var(--blue);}
.topic-report .chapter-toggle[aria-expanded="true"] .chapter-chevron {transform: rotate(90deg);}
.topic-report .chapter-toggle:focus-visible {outline: 2px solid var(--blue); outline-offset: 3px;}
.topic-report tbody[hidden] {display: none !important;}
.teacher-question {max-width: 58rem;}
.teacher-answer {margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem;}
.teacher-answer summary {width: fit-content; cursor: pointer; font-weight: 650; color: var(--blue); padding: .4rem 0;}
.teacher-answer .hide-label, .teacher-answer[open] .show-label {display: none;}
.teacher-answer[open] .hide-label {display: inline;}

.chapter-grid { align-items: start; }
.chapter-main { display: block; width: 100%; color: inherit; }
.chapter-main:hover { text-decoration: none; }
.topic-status { width: 100%; margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.topic-status summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.topic-status ul { padding: 0; margin: .6rem 0 0; list-style: none; }
.topic-status li + li { border-top: 1px solid var(--line); }
.topic-status li a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; font-size: .875rem; }
.topic-fraction { white-space: nowrap; color: var(--muted); }
.topic-done { color: #267746; font-weight: 700; }
