/* The student workspace puts choices and mathematics ahead of help text. */
.home-overview{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(285px,.8fr);gap:20px;align-items:stretch;margin-bottom:24px}.home-overview #home-hero,.home-overview #home-exam{margin:0;min-width:0;height:auto}.home-overview #home-hero{padding:24px;gap:16px;grid-template-columns:minmax(0,1fr) minmax(150px,.85fr);align-items:center}.home-overview .hero-wordmark{font-size:clamp(42px,4.5vw,62px)}.home-overview .hero-slogan{font-size:20px;margin:9px 0}.home-overview .hero>div>p,.home-overview .hero-tags,.home-overview .hero>div>.eyebrow,.home-overview .hero-formula>.eyebrow,.home-overview .hero-formula-tip{display:none}.home-overview .hero-brand{font-size:9px;letter-spacing:.05em;margin-bottom:8px}.home-overview .hero-art{padding:0;min-height:0;overflow:visible}.home-overview .hero-art h3{font-size:13px;line-height:1.6;margin:0 0 8px}.home-overview .hero-equation{font-size:12px;margin:6px 0}.home-overview .hero-formula .quadratic-formula-image{width:100%;height:auto;min-height:68px;object-fit:contain;overflow:visible}.home-overview .formula-open{font-size:12px;padding:9px 11px;min-height:42px}.home-overview #home-exam{padding:21px 23px}.home-overview .home-exam-head{gap:8px;flex-wrap:wrap}.home-overview .home-exam-head .eyebrow{font-size:11px;letter-spacing:.03em}.home-overview #home-exam-content{gap:12px;grid-template-columns:minmax(0,1fr)}.home-overview #home-exam-content h3{font-size:17px}.home-overview .exam-number strong{font-size:62px}.home-overview #home-exam-content p{font-size:13px;line-height:1.7}.home-overview #home-exam-refresh{font-size:11px;min-height:32px;margin-top:5px}.planning .home-overview{display:none}
.practice-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 20px;padding:13px 16px;border:1px solid #e4d7ee;border-radius:12px;background:#f8f3fc;margin:16px 0 22px}.practice-toolbar:has(#practice-modebar[hidden]){display:none}.practice-toolbar #practice-profile-strip{display:flex;align-items:center;gap:18px;border:0;padding:0;margin:0;flex:1;min-width:0;background:none}.practice-toolbar #practice-profile-strip[hidden]{display:none}.practice-toolbar #practice-modebar{margin:0;gap:12px;flex:0 1 auto}.practice-toolbar .practice-profile-strip>div:first-child{gap:8px}.practice-toolbar .practice-profile-strip b{font-size:16px}.practice-toolbar .practice-profile-strip small{font-size:11px}.practice-toolbar .practice-profile-strip .button{font-size:13px;padding:9px 12px}.practice-toolbar .practice-modebar>div{padding:3px;border:0;background:#ebe1f3}.practice-toolbar [data-practice-mode]{font-size:13px;padding:9px 12px}.practice-toolbar .practice-help{width:36px;font-size:0}.practice-toolbar .practice-help:before{content:'?';display:grid;place-items:center;border:1px solid #cbb3dc;border-radius:50%;width:30px;height:30px;font-size:17px;color:#88649e}
body.student-interface{font-size:16px}.student-interface .side-intro h2{font-size:20px}.student-interface .semester-toggle{font-size:17px;min-height:49px}.student-interface .unit-button{font-size:16px;line-height:1.65}.student-interface .unit-subsections button{font-size:15px;line-height:1.7;min-height:44px}.student-interface .unit-button small,.student-interface .side-bottom p{font-size:11px}.student-interface .mistakes-button{font-size:16px}.student-interface #chapter-meta{font-size:17px;line-height:1.9;letter-spacing:.02em;font-weight:650;color:#79608d}.student-interface #chapter-title{font-size:30px;line-height:1.5}.student-interface #chapter-desc{font-size:12px;line-height:1.7}.student-interface .workspace-head{margin-bottom:16px}.student-interface .paper-setup-heading{padding:4px 0 20px}.student-interface .paper-setup-heading>.eyebrow{display:none}.student-interface .paper-setup-heading h2{font-size:26px;margin:0}.student-interface .paper-setup-heading p{font-size:12px}.student-interface .paper-scope-head h3,.student-interface .paper-options-card h3{font-size:20px}.student-interface .paper-semester>summary{font-size:18px;line-height:1.7}.student-interface .paper-unit>summary{font-size:17px;line-height:1.7}.student-interface .paper-unit label{font-size:16px;line-height:1.75;min-height:46px}.student-interface .paper-semester summary span,.student-interface .paper-scope-head>span{font-size:12px}.student-interface .paper-level-label,.student-interface .paper-options-card legend{font-size:16px}.student-interface .paper-options-card select{font-size:17px}.student-interface .paper-options-card fieldset>label{font-size:16px}.student-interface .paper-options-card fieldset small{font-size:11px}.student-interface .paper-count-box{padding:15px;margin:16px 0}.student-interface .paper-count-box>span{font-size:13px}.student-interface .paper-small,.student-interface .paper-rules{font-size:12px;line-height:1.8}.paper-rules{margin:12px 0;color:#8e729f}.paper-rules summary{cursor:pointer;min-height:40px;padding:9px 0}.paper-rules p{font-size:12px;line-height:1.9}.paper-options-card #paper-start,.paper-options-card #paper-pdf{display:block;width:100%;font-size:17px;min-height:50px;margin:10px 0}.paper-options-card #paper-pdf{font-size:15px;background:#f1e8f8;color:#815d97;border:1px solid #d8c4e5}.student-interface .paper-top h2{font-size:25px}.student-interface .paper-question-head span{font-size:14px}.student-interface .question-instruction{font-size:15px;line-height:1.8}.student-interface .paper-question-prompt{font-size:22px;line-height:1.95}.student-interface .paper-choice-list label{font-size:18px;line-height:1.8;min-height:52px}.student-interface .paper-answer-fields>label,.student-interface .paper-work-label{font-size:15px}.student-interface .paper-answer-fields input,.student-interface .paper-question textarea{font-size:19px}.student-interface .paper-keypad button{font-size:16px;min-height:44px}.student-interface .paper-keypad small,.student-interface .paper-hint{font-size:12px}.student-interface .paper-question .data-table{font-size:17px}.student-interface .paper-question svg text{font-size:17px}.student-interface .paper-review-item>summary{font-size:16px;line-height:1.8}.student-interface .paper-review-item p,.student-interface .paper-review-item li{font-size:16px;line-height:1.9}.student-interface .paper-review-question{font-size:20px}.student-interface .paper-result-story p{font-size:16px;line-height:1.8}.student-interface .paper-result-next p{font-size:16px}.student-interface .paper-result-next small{font-size:11px}.student-interface .top-view-switch button{font-size:14px}.student-interface .account-toggle{font-size:14px}.student-interface .readonly-record p,.student-interface #student-progress-content dl,.student-interface .portal-practice-card p{font-size:16px}.student-interface .portal-practice-card h4{font-size:17px}.student-interface .formula-entry b{font-size:17px}.student-interface .notes-main p,.student-interface #notes-panel p{font-size:16px;line-height:1.9}
#practice-pdf-preview{display:block;width:100%;height:65dvh;min-height:300px;border:1px solid #dfd1e8;border-radius:10px;background:#eee9f2}#practice-pdf-preview[hidden]{display:none}#practice-pdf-download[hidden]{display:none}
.completion-dialog.studio-dialog{max-width:660px;padding:34px;background:#fffdff}.completion-art{font-size:33px;color:#cab4dc;letter-spacing:.25em;margin-bottom:20px}.completion-art span{display:inline-grid;place-items:center;background:#eee3f7;border:1px solid #d4bfe4;border-radius:50%;width:66px;height:66px;color:#8f68ac}.completion-dialog h2{font-size:28px}.completion-dialog p{font-size:17px;line-height:1.9;color:#7b638b}.completion-location{padding:15px 18px;border-radius:12px;background:#f3ecf8}.completion-location b{white-space:nowrap}.completion-dialog .completion-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:25px}.completion-choices button{font-family:inherit;font-size:19px;font-weight:600;min-height:80px;padding:17px;border:1px solid #cfb9df;border-radius:14px;background:#faf5fd;color:#805c98;cursor:pointer}.completion-choices #completion-go{background:#845aa2;color:white;border-color:#845aa2}.completion-choices button:focus-visible{outline:3px solid #c6a754;outline-offset:3px}
@media(max-width:1120px){.home-overview{grid-template-columns:minmax(0,1.1fr) minmax(260px,.8fr)}.home-overview #home-hero{grid-template-columns:minmax(0,1fr);gap:12px}.home-overview .hero-art{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center}.home-overview .hero-art h3,.home-overview .hero-equation{grid-column:1}.home-overview .hero-art .quadratic-formula-image{grid-column:1;min-height:64px;max-height:90px;object-fit:contain}.home-overview .hero-art .formula-open{grid-column:2;grid-row:1/4}.home-overview .hero-title-line .heading-watermark{height:36px;width:45px}.practice-toolbar .practice-profile-strip small{display:none}}
@media(max-width:760px){.home-overview{gap:12px;grid-template-columns:minmax(0,1fr)}.home-overview #home-hero{grid-template-columns:minmax(0,1fr) minmax(135px,.8fr);padding:20px;gap:12px}.home-overview .hero-art{display:block}.home-overview .hero-brand{font-size:8px}.home-overview .hero-wordmark{font-size:45px}.home-overview .hero-slogan{font-size:16px}.home-overview .hero-art h3{font-size:12px}.home-overview .hero-equation{font-size:11px}.home-overview .formula-open{font-size:11px;line-height:1.5;padding:9px;min-height:42px}.home-overview #home-exam{padding:18px 20px}.home-overview #home-exam-content{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.home-overview .exam-number strong{font-size:56px}.home-overview #home-exam-content p{font-size:13px}.practice-toolbar{padding:11px 12px;gap:10px}.practice-toolbar #practice-profile-strip{flex-basis:100%}.practice-toolbar #practice-modebar{width:100%;justify-content:space-between}.practice-toolbar .practice-profile-strip>div:last-child{margin-left:auto}.practice-toolbar .practice-profile-strip .button{font-size:13px}.student-interface #chapter-meta{font-size:16px}.student-interface #chapter-title{font-size:27px}.student-interface .paper-question-prompt{font-size:21px}.student-interface .paper-unit label{font-size:16px}.student-interface .paper-question{padding:22px 18px}.completion-dialog.studio-dialog{padding:25px}.completion-dialog h2{font-size:24px}.completion-dialog .completion-choices{grid-template-columns:minmax(0,1fr);gap:12px}.completion-choices button{min-height:65px}.completion-dialog p{font-size:16px}}
@media(orientation:landscape) and (max-height:600px){.home-overview{grid-template-columns:minmax(0,1.25fr) minmax(245px,.8fr)}.home-overview #home-hero{grid-template-columns:minmax(0,1fr);padding:18px}.completion-dialog.studio-dialog{width:min(730px,calc(100vw - 24px));padding:22px}.completion-art{display:none}.completion-dialog .completion-choices{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px}.completion-choices button{min-height:60px}.completion-dialog h2{font-size:23px}}
@media(max-width:380px){.home-overview #home-hero{grid-template-columns:minmax(0,1fr);gap:10px}.home-overview .hero-art{display:grid;grid-template-columns:minmax(0,1fr) auto}.home-overview .hero-art .formula-open{grid-column:2;grid-row:1/4}.home-overview .hero-art .quadratic-formula-image{max-height:80px}.home-overview #home-exam-content{grid-template-columns:minmax(0,1fr)}}

/* Student scope permissions and compact teacher controls. */
.paper-access-note{font-size:14px;line-height:1.65;color:#6b5785;margin:0 0 14px;padding:10px 12px;background:#f5f0fc;border-radius:10px}
.roster-grade-access{border:1px solid #e3d9ef;border-radius:12px;padding:10px 12px;margin-top:12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.roster-grade-access legend{font-weight:700;font-size:14px;padding:0 5px;color:#624581}
.roster-grade-access label{display:inline-flex;align-items:center;gap:6px;font-size:14px;min-height:36px}
.roster-grade-access input{width:18px;height:18px;accent-color:#8a67b3}
.roster-grade-access small{flex-basis:100%;font-size:12px;color:#776d80;line-height:1.6}
.cover-grade-picker button:disabled{opacity:.45;cursor:not-allowed}

/* A quieter signature and generous margins around the formula card. */
@font-face{font-family:"Wang Studio Serif";src:url("fonts/cormorant-garamond-medium-italic-latin.woff") format("woff");font-style:italic;font-weight:500;font-display:swap}
.home-overview .hero-brand{font-family:"Wang Studio Serif",Georgia,serif;font-style:italic;font-weight:500;font-size:19px;line-height:1.4;letter-spacing:.035em;gap:12px;margin:8px 0 12px;color:#80648f}
.home-overview .hero-brand-rule{width:25px;flex:none}
.cover-studio-sign>span{font-family:"Wang Studio Serif",Georgia,serif;font-style:italic;font-weight:500;font-size:25px;letter-spacing:.025em}
.home-overview #home-hero .hero-slogan{font-size:15px;line-height:1.8;letter-spacing:.1em;margin:8px 0}
.home-overview #home-hero .hero-art.hero-formula{display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:center;gap:0;width:100%;max-width:100%;min-width:0;min-height:0;padding:30px 24px 26px}
.home-overview #home-hero .hero-art.hero-formula h3{font-size:13px;line-height:1.8;margin:6px 0 18px}
.home-overview #home-hero .hero-art .quadratic-formula-image{width:100%;height:auto;max-width:360px;min-height:0;max-height:none;flex:none;margin:0 auto 18px}
.home-overview #home-hero .hero-art .formula-open{display:inline-flex;align-items:center;justify-content:center;align-self:center;grid-column:auto;grid-row:auto;gap:12px;width:auto;min-width:0;max-width:100%;min-height:44px;margin:4px 0 0;padding:10px 16px;border-radius:10px;font-size:12px;line-height:1.6;white-space:normal}
.home-overview #home-hero .formula-open span{margin:0}
/* The full left panel becomes a formula workspace; its original content is retained. */
.home-overview #home-hero.inline-formulas-open{display:block;padding:clamp(20px,2.5vw,30px)}
#home-hero.inline-formulas-open>.hero-branding,#home-hero.inline-formulas-open>.hero-art{display:none!important}
.home-formula-panel{min-width:0;width:100%;max-width:100%;color:#755687}
.home-formula-panel[hidden]{display:none!important}
.inline-formula-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.inline-formula-head .eyebrow{display:block;font-size:10px;letter-spacing:.14em;color:#aa91b8}
.inline-formula-head h2{font-size:23px;line-height:1.5;margin:5px 0 0;color:#674578}
.inline-formula-head .button{flex:none;min-height:44px;padding:9px 12px;font-size:12px}
.inline-formula-tools{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:12px}
.inline-formula-tools label{min-width:0;font-size:12px;color:#8b709c}
.inline-formula-tools input,.inline-formula-tools select{display:block;width:100%;min-height:46px;margin-top:6px;padding:10px 12px;font-size:16px;border:1px solid #ddcce9;border-radius:9px;background:#fff;color:#674a79}
.inline-formula-categories{display:flex;gap:7px;overflow-x:auto;max-width:100%;padding:12px 0 8px;scrollbar-width:thin}
.inline-formula-categories button{flex:none;min-height:40px;padding:8px 12px;border:1px solid #dfd0eb;border-radius:20px;background:#fff;color:#8b6b9d;font-size:12px}
.inline-formula-categories button.active{background:#e9dcf4;border-color:#c8addc;color:#67447d}
.home-overview #home-hero .inline-formula-count{display:block;font-size:12px;margin:10px 0;color:#9a83a8}
.inline-formula-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:320px;overflow-y:auto;overscroll-behavior:contain;padding:2px 5px 6px 2px;scrollbar-width:thin}
.inline-formula-results .formula-entry{min-width:0;min-height:77px;padding:12px;gap:8px}
.inline-formula-results .formula-entry b{font-size:16px;line-height:1.6}
.inline-formula-results .formula-entry small{font-size:10px}
.inline-formula-detail{min-width:0;max-width:100%;padding:4px 0 8px}
.inline-formula-detail h3{font-size:clamp(21px,2vw,27px);line-height:1.5;margin:7px 0 20px;color:#654275}
.home-overview #home-hero .inline-formula-detail p{display:block}
.inline-formula-detail .formula-detail-meta{font-size:12px}
.inline-formula-math{display:flex;align-items:center;justify-content:safe center;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding:22px 16px;margin:12px 0;background:#fdfaff;border:1px solid #e4d7ee;border-radius:12px;color:#74508a;font-family:"Cambria Math","STIX Two Math",Georgia,"Noto Sans TC",serif;font-size:clamp(21px,2.6vw,30px);line-height:2;white-space:nowrap;scrollbar-width:thin}
.inline-formula-math math{flex:none;font-family:"Cambria Math","STIX Two Math",math;font-size:inherit;line-height:1.7;margin:0}
.inline-formula-math .formula-plain{flex:none;font-variant-numeric:lining-nums tabular-nums}
.inline-formula-detail .formula-detail-equation{margin:18px 0 10px!important}
.inline-formula-detail .quadratic-formula-image{width:min(100%,510px);max-width:100%;height:auto;margin:18px auto 24px}
.inline-formula-detail .formula-conditions{padding:16px 18px;margin-top:18px;border:1px solid #e4d8ed;border-radius:12px;background:#fffafc}
.inline-formula-detail .formula-conditions h4{font-size:14px;margin:0 0 7px;color:#735186}
.inline-formula-detail .formula-conditions p{font-size:15px;line-height:1.9;margin:0;color:#8a7099}
.inline-formula-detail .study-visual-gallery{grid-template-columns:minmax(0,1fr);margin-top:16px}
.inline-formula-detail .study-visual svg{max-height:240px;width:100%}
.inline-formula-detail .formula-scroll-hint{font-size:11px;line-height:1.8;color:#a38aaf;margin:8px 0}
.inline-formula-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #e1d4e9;padding-top:12px;margin-top:18px}
.inline-formula-footer button,#inline-formula-back{font-size:13px;min-height:44px}
@media(max-width:760px){.home-overview .hero-brand{font-size:17px;gap:8px}.home-overview .hero-brand-rule{width:17px}.home-overview #home-hero .hero-slogan{font-size:13px;letter-spacing:.06em}.home-overview #home-hero .hero-art.hero-formula{padding:24px 16px 20px}.home-overview #home-hero .hero-art.hero-formula h3{font-size:12px;margin:5px 0 14px}.home-overview #home-hero .hero-art .formula-open{font-size:11px;gap:8px;padding:9px 12px}.inline-formula-head{gap:10px}.inline-formula-head h2{font-size:21px}.inline-formula-results{grid-template-columns:minmax(0,1fr);max-height:340px}.inline-formula-math{font-size:24px;padding:20px 14px}.cover-studio-sign>span{font-size:23px}}
@media(max-width:480px){.inline-formula-tools{grid-template-columns:minmax(0,1fr) 92px;gap:8px}.inline-formula-head .button{padding:8px 10px;font-size:11px}.inline-formula-tools input,.inline-formula-tools select{padding:10px;font-size:16px}.home-overview #home-hero .hero-art.hero-formula{padding:23px 12px 19px}}

.completion-dialog .completion-score{margin:20px 0;padding:20px;border:1px solid #dfcde9;border-radius:14px;background:#f5eefb;text-align:center}
.completion-score>div{display:flex;align-items:baseline;justify-content:center;gap:5px}
.completion-score strong{font-size:64px;line-height:1.2;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:#79508f;font-weight:650}
.completion-score>div>span{font-size:14px;color:#a38ab1}
.completion-dialog .completion-score p{font-size:14px;line-height:1.8;margin:10px 0 0;color:#846a95}
.completion-dialog #completion-feedback{font-size:16px;color:#755885;line-height:1.8}
@media(max-width:480px){.completion-dialog .completion-score{padding:17px 10px}.completion-score strong{font-size:54px}.completion-dialog .completion-score p{font-size:13px}}
