:root{--bg:#f7f8f5;--paper:#fff;--ink:#263c35;--muted:#89918b;--line:#e7ebe5;--green:#254f40;--soft:#edf2e9;--orange:#bb6b42;--radius:16px;font-family:system-ui,-apple-system,"PingFang TC","Microsoft JhengHei",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select{font:inherit}button{cursor:pointer}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid var(--green)}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.45}svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle}button{border:0;background:none}a{color:inherit}.shell{min-height:100vh;display:grid;grid-template-columns:230px 1fr}.sidebar{position:fixed;width:230px;height:100vh;background:var(--paper);border-right:1px solid var(--line);padding:37px 21px 23px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;padding:0 10px}.brand-mark{display:grid;grid-template-columns:11px 11px;grid-template-rows:11px 11px;gap:3px;transform:rotate(-7deg)}.brand-mark i{background:var(--green);border-radius:3px}.brand-mark i:nth-child(2){border-radius:8px 8px 2px 2px;background:var(--muted)}.brand-mark i:nth-child(3){background:var(--muted)}.brand strong{font-size:19px;letter-spacing:1px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:var(--muted);margin-top:3px}.nav-label{color:var(--muted);font-size:10px;letter-spacing:1.5px;margin:48px 17px 12px}.nav{display:flex;flex-direction:column;gap:8px}.nav button{display:flex;align-items:center;gap:13px;text-align:left;padding:13px 16px;border-radius:9px;color:var(--green);font-size:13px}.nav button:hover{background:var(--soft)}.nav button.active{background:var(--soft);color:var(--green);font-weight:600}.nav button.active:after{content:'';height:5px;width:5px;border-radius:50%;background:var(--green);margin-left:auto}.nav-count{margin-left:auto;background:var(--line);padding:1px 7px;font-size:10px;border-radius:4px}.sidebar-bottom{margin-top:auto}.side-tip{background:var(--soft);border:1px solid var(--line);padding:18px 15px;border-radius:12px}.side-tip svg{color:var(--green);width:18px}.side-tip strong{font-size:12px;margin-left:7px}.side-tip p{font-size:11px;line-height:1.9;color:var(--muted);margin:10px 0 0}.profile{margin-top:22px;border-top:1px solid var(--line);padding:22px 8px 0;display:flex;gap:11px;align-items:center}.avatar{height:33px;width:33px;border-radius:50%;display:grid;place-items:center;background:var(--line);font-size:12px;color:var(--green)}.profile strong{font-size:11px}.profile small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.main{grid-column:2;min-width:0}.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 46px;background:var(--soft)}.breadcrumb{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:13px}.breadcrumb b{color:var(--green);font-weight:500}.top-actions{display:flex;gap:18px;align-items:center}.badge{padding:5px 10px;font-size:10px;border:1px solid var(--line);border-radius:5px;color:var(--green);background:var(--soft);white-space:nowrap}.top-actions .icon-button{width:31px;height:31px;border-left:1px solid var(--line);padding-left:15px;box-sizing:content-box}.page{max-width:1440px;margin:0 auto;padding:36px 46px 28px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px;gap:15px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted);text-transform:uppercase}.page-heading h1{font-size:25px;font-weight:600;margin:7px 0 7px;letter-spacing:1px}.subtext{font-size:12px;color:var(--muted);line-height:1.8;margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 17px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:12px;font-weight:500;transition:.18s}.btn:hover{border-color:var(--muted);background:var(--soft)}.btn svg{width:16px;height:16px}.btn.primary{background:var(--green);color:var(--paper);border-color:var(--green)}.btn.primary:hover{background:var(--ink)}.btn.text{border:0;background:none;padding:5px;color:var(--green)}.hero{height:219px;border-radius:var(--radius);background:var(--line);position:relative;overflow:hidden;display:flex;align-items:center;padding:28px 33px;margin-bottom:26px;border:1px solid var(--line)}.hero-copy{position:relative;z-index:1}.hero .mini{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:2px;color:var(--green)}.dot{height:5px;width:5px;border-radius:50%;background:var(--green)}.hero h2{font-family:"Songti TC","STSong",serif;font-size:30px;font-weight:600;line-height:1.65;letter-spacing:2px;margin:11px 0 12px}.hero p{font-size:11px;color:var(--green);letter-spacing:.3px;margin:0}.hero-art{position:absolute;width:400px;height:255px;right:10px;top:-12px}.hero-art svg{width:100%;height:100%}.hero-tag{position:absolute;right:29px;bottom:23px;font-size:9px;color:var(--green);letter-spacing:2px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:31px}.stat{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:18px 20px}.stat-head{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.stat-head svg{width:16px;height:16px;color:var(--muted)}.stat-number{font-size:27px;font-weight:550;letter-spacing:-1px;margin:9px 0 5px;line-height:1.1}.stat-number span{font-size:11px;letter-spacing:0;font-weight:400;margin-left:7px;color:var(--muted)}.stat-note{font-size:9px;color:var(--muted)}.content-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:23px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.section-heading h2{font-size:15px;font-weight:600;margin:0;letter-spacing:.3px}.section-heading small{color:var(--muted);font-size:10px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:23px}.panel-title{font-size:12px;font-weight:600;display:flex;align-items:center;gap:9px;margin:0 0 17px}.panel-title svg{width:16px;height:16px;color:var(--muted)}.field-label{display:flex;justify-content:space-between;font-size:11px;color:var(--green);margin:22px 0 10px}.field-label:first-child{margin-top:0}.field-label small{font-size:9px;color:var(--muted)}.subject-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.subject{border:1px solid var(--line);padding:14px 10px;border-radius:8px;position:relative;text-align:left;transition:.18s}.subject:hover{border-color:var(--muted)}.subject.selected{border-color:var(--green);background:var(--soft)}.subject.selected:after{content:'✓';position:absolute;right:9px;top:6px;font-size:10px;color:var(--green)}.subject svg{color:var(--muted);width:19px;height:19px;margin-bottom:10px}.subject strong{display:block;font-size:11px;font-weight:500}.subject small{display:block;font-size:9px;color:var(--muted);margin-top:6px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mode{border:1px solid var(--line);border-radius:8px;padding:13px 12px;display:flex;align-items:flex-start;text-align:left;gap:9px}.mode.selected{border-color:var(--green);background:var(--soft)}.radio{width:13px;height:13px;border:1px solid var(--muted);border-radius:50%;margin-top:2px;flex-shrink:0}.selected .radio{border:4px solid var(--green)}.mode strong{font-size:11px;font-weight:500;display:block}.mode small{font-size:9px;color:var(--muted);display:block;line-height:1.7;margin-top:5px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:21px}.chips{display:flex;gap:7px}.chip{padding:6px 13px;border:1px solid var(--line);border-radius:6px;font-size:10px;color:var(--muted)}.chip.selected{background:var(--line);color:var(--green);border-color:var(--muted)}.start-row{border-top:1px solid var(--line);padding-top:19px;margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:12px}.start-row p{margin:0;font-size:9px;color:var(--muted);line-height:1.8}.start-row strong{font-weight:500;color:var(--green)}.start-row .btn{padding:11px 22px}.plan{padding-bottom:18px}.plan-head{display:flex;align-items:center;justify-content:space-between}.plan-head h3{font-size:12px;margin:0;font-weight:500}.plan-head .icon-box{background:var(--soft);padding:7px;border-radius:8px;color:var(--green)}.plan-head svg{width:19px;height:19px}.goal-number{font-size:28px;font-weight:500;margin:13px 0 10px}.goal-number span{font-size:12px;color:var(--muted);font-weight:400}.progress-track{height:5px;background:var(--line);border-radius:5px;overflow:hidden}.progress-track i{display:block;height:100%;background:var(--green);border-radius:5px}.goal-caption{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-top:10px}.week-chart{height:94px;display:flex;align-items:flex-end;justify-content:space-between;padding:17px 3px 0;gap:14px}.day{display:flex;flex-direction:column;align-items:center;gap:8px;flex:1;height:100%;justify-content:flex-end}.day i{width:100%;max-width:24px;background:var(--line);border-radius:4px 4px 1px 1px;min-height:5px}.day.today i{background:var(--muted)}.day span{color:var(--muted);font-size:8px}.day.today span{color:var(--green)}.insight{background:var(--soft);border:1px solid var(--line);border-radius:10px;margin-top:18px;padding:14px;font-size:10px;line-height:1.9;color:var(--green);display:flex;gap:10px}.insight svg{width:16px;height:16px;margin-top:2px}.library-link{margin-top:17px;display:flex;gap:12px;align-items:center;width:100%;padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:12px;text-align:left}.library-icon{background:var(--line);color:var(--muted);padding:9px;border-radius:9px}.library-icon svg{width:19px;height:19px}.library-link strong{display:block;font-size:11px;font-weight:500}.library-link small{font-size:9px;color:var(--muted);display:block;margin-top:6px}.library-link>svg{margin-left:auto;color:var(--muted);width:16px}.footer{margin-top:29px;padding-top:18px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:9px;color:var(--muted);gap:15px}.footer span:last-child{letter-spacing:1.5px}.mobile-menu{display:none}.question-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px}.question{padding:30px}.q-meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.q-meta span{font-size:11px;color:var(--muted)}.q-title{font-size:20px;font-weight:500;line-height:1.9;margin:0 0 25px}.options{display:grid;gap:12px}.option{display:flex;text-align:left;align-items:center;gap:16px;padding:17px;border:1px solid var(--line);border-radius:9px;line-height:1.7;font-size:13px;width:100%;transition:.18s}.option:hover{background:var(--soft)}.option .letter{border:1px solid var(--line);color:var(--muted);border-radius:6px;width:29px;height:29px;display:grid;place-items:center;flex-shrink:0;font-size:12px}.option.chosen{border-color:var(--green);background:var(--line)}.option.chosen .letter{background:var(--green);border-color:var(--green);color:var(--paper)}.option.correct{border-color:var(--green);background:var(--soft)}.option.wrong{border-color:var(--muted);background:var(--soft)}.option:disabled{opacity:1;cursor:default}.answer-box{background:var(--soft);border:1px solid var(--line);border-radius:9px;padding:17px 20px;margin-top:20px}.answer-box h3{font-size:12px;margin:0 0 8px}.answer-box p{font-size:11px;line-height:1.9;color:var(--green);margin:0}.q-actions{display:flex;justify-content:space-between;gap:10px;margin-top:26px;padding-top:23px;border-top:1px solid var(--line)}.q-actions>div{display:flex;gap:8px}.answer-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:20px}.answer-grid button{border:1px solid var(--line);border-radius:6px;padding:9px 0;font-size:11px;background:var(--paper)}.answer-grid button.done{background:var(--line);border-color:var(--muted)}.answer-grid button.current{outline:1px solid var(--green);border-color:var(--green)}.answer-grid button.correct{background:var(--line);color:var(--green)}.answer-grid button.wrong{background:var(--line);color:var(--green)}.legend{font-size:9px;color:var(--muted);line-height:2;margin:17px 0}.legend i{width:7px;height:7px;display:inline-block;border-radius:2px;background:var(--line);margin-right:4px}.notice{font-size:11px;line-height:1.9;color:var(--muted);background:var(--soft);border-radius:9px;padding:14px 17px;margin-top:19px}.filterbar{display:flex;gap:12px;margin-bottom:20px}.search{width:100%;border:1px solid var(--line);background:var(--paper);border-radius:8px;padding:12px 15px;font-size:12px;color:var(--ink)}select{border:1px solid var(--line);border-radius:8px;padding:9px;background:var(--paper);color:var(--ink);font-size:12px}.bank-row{border-top:1px solid var(--line);padding:19px 0;display:flex;gap:15px;align-items:flex-start}.bank-row:first-child{border:0;padding-top:0}.bank-row:last-child{padding-bottom:0}.bank-row .q-index{font-size:11px;color:var(--muted);min-width:24px;padding-top:5px}.bank-row h3{font-size:13px;line-height:1.9;margin:0 0 8px;font-weight:500}.bank-row p{font-size:10px;color:var(--muted);margin:0}.bank-row .row-tools{margin-left:auto;display:flex;gap:9px;flex-shrink:0}.starred{color:var(--green)!important}.review{margin-top:15px}.review summary{cursor:pointer;font-size:10px;color:var(--green)}.review p{line-height:2;margin-top:11px}.empty{text-align:center;padding:65px 20px}.empty svg{width:39px;height:39px;color:var(--muted);margin-bottom:13px}.empty h2{font-size:18px;font-weight:500}.empty p{font-size:12px;color:var(--muted);line-height:2}.result-hero{text-align:center;padding:35px;background:var(--line);border-radius:14px;margin-bottom:25px}.result-hero h2{font-family:"Songti TC","STSong",serif;margin:8px 0;font-size:25px}.score{font-size:55px;line-height:1.5;font-weight:500}.score span{font-size:16px;color:var(--muted)}.result-hero p{font-size:12px;color:var(--muted)}.result-tags{display:flex;gap:18px;justify-content:center;margin:16px 0 23px;font-size:11px;color:var(--green)}.record{display:flex;align-items:center;gap:20px;padding:20px 0;border-top:1px solid var(--line)}.record:first-child{border:0}.record h3{font-size:13px;font-weight:500;margin:0 0 8px}.record p{font-size:10px;color:var(--muted);margin:0}.record .record-score{margin-left:auto;font-size:23px;color:var(--green)}.record-score small{font-size:10px;color:var(--muted)}.icon-button{padding:5px;color:var(--muted);border-radius:6px}.icon-button:hover{background:var(--line)}.import-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:24px}.step{padding:22px;border:1px solid var(--line);background:var(--paper);border-radius:12px}.step b{font-size:11px;color:var(--muted);display:block;margin-bottom:15px}.step h3{font-size:13px;font-weight:500;margin:0 0 9px}.step p{font-size:11px;color:var(--muted);line-height:1.9;margin:0}.dropzone{display:block;border:1px dashed var(--muted);border-radius:12px;background:var(--soft);padding:40px 20px;text-align:center;cursor:pointer}.dropzone svg{height:34px;width:34px;color:var(--green);margin-bottom:10px}.dropzone strong{display:block;font-size:13px;font-weight:500}.dropzone small{display:block;font-size:11px;color:var(--muted);margin-top:10px}.dropzone input{display:block;max-width:250px;margin:20px auto 0;font-size:11px;color:var(--green)}.source-file{display:flex;gap:12px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:9px;margin-top:12px}.source-file strong{font-size:12px;font-weight:500;word-break:break-all}.source-file small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.source-file .badge{margin-left:auto}.help-grid{display:grid;gap:15px}.help-grid h3{font-size:14px;margin:0 0 10px}.help-grid p{font-size:12px;color:var(--green);line-height:2;margin:0}dialog{border:1px solid var(--line);border-radius:16px;padding:27px;max-width:470px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 20px 90px #23342026}dialog::backdrop{background:#1d322b66;backdrop-filter:blur(3px)}dialog h2{font-size:19px;margin:0 0 15px}dialog p{font-size:12px;line-height:1.9;color:var(--green)}dialog .dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,15px);padding:12px 20px;border-radius:9px;background:var(--ink);color:var(--paper);font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:50;box-shadow:0 5px 25px #234d3322}#toast.show{opacity:1;transform:translate(-50%,0)}.intro-row{display:flex;align-items:center;gap:9px}.keyboard-hint{font-size:9px;color:var(--muted);margin-top:18px;text-align:center}.resume{background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:13px 17px;display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;font-size:11px}.resume .btn{padding:7px 13px}.all-subject{font-size:10px;color:var(--green);display:flex;align-items:center;gap:6px}.all-subject input{accent-color:var(--green)} .bank-header{display:flex;align-items:center;gap:10px;margin-bottom:20px}.bank-header .badge{margin-left:auto}.bank-header h2{font-size:15px;margin:0}.review-correct{color:var(--green)!important}.review-wrong{color:var(--green)!important}
@media(min-width:1600px){.page{padding-top:45px}.hero{height:250px}.hero-art{right:60px}.hero h2{font-size:34px}.panel{padding:27px}.subject{padding:18px 15px}.mode{padding:17px 13px}}
@media(max-width:1180px){.shell{grid-template-columns:200px 1fr}.sidebar{width:200px;padding-left:14px;padding-right:14px}.brand strong{font-size:17px}.page{padding:30px 28px}.topbar{padding:0 28px}.hero-art{right:-40px;opacity:.8;width:320px}.hero h2{font-size:26px}.content-grid{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:17px}.panel{padding:19px}.subject{padding:12px 8px}.subject small{font-size:8px}.stat{padding:16px}.stats{gap:11px}.question-layout{grid-template-columns:minmax(0,1fr) 220px}}
@media(max-width:980px){.content-grid{grid-template-columns:1fr}.right-column{display:grid;grid-template-columns:1fr 1fr;gap:17px;align-items:start}.right-column>.section-heading{grid-column:1/-1;margin:0}.library-link{margin:0}.hero-art{right:-100px;opacity:.45}.hero-copy{max-width:75%}.question-layout{grid-template-columns:1fr}.question-layout>aside{order:-1}.answer-grid{grid-template-columns:repeat(10,1fr);margin-top:10px}.question-layout>aside .legend,.question-layout>aside .notice{display:none}.question-layout>aside .panel-title{margin-bottom:0}.question-layout>aside .btn{margin-top:15px!important}.stat-number{font-size:24px}.stat-note{font-size:8px}.stats{gap:8px}.stat{padding:14px}.stat-head svg{display:none}.import-steps{gap:10px}.step{padding:17px}}
@media(max-width:700px){.shell{display:block}.sidebar{width:230px;transform:translateX(-100%);transition:.2s;box-shadow:10px 0 80px #23332025}.sidebar.open{transform:none}.main{width:100%}.topbar{height:65px;padding:0 20px}.mobile-menu{display:block;padding:0 12px 0 0;color:var(--green)}.breadcrumb{gap:8px;font-size:11px}.top-actions{gap:8px}.top-actions .icon-button{padding-left:6px}.top-actions .badge{font-size:9px;padding:4px 6px}.page{padding:26px 20px}.page-heading{margin-bottom:21px}.page-heading h1{font-size:22px}.eyebrow{font-size:8px}.page-heading>.btn{font-size:10px;padding:9px 11px}.subtext{font-size:10px}.hero{height:210px;padding:24px;margin-bottom:18px}.hero h2{font-size:24px}.hero p{font-size:9px;line-height:1.8;max-width:200px}.hero-art{right:-140px;top:0;opacity:.36}.hero-tag{display:none}.stats{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:25px}.stat-head svg{display:block}.stat-number{font-size:26px}.stat-note{font-size:9px}.right-column{display:block}.right-column>.section-heading{margin-bottom:17px}.right-column .library-link{margin-top:15px}.subject-grid{gap:7px}.subject{padding:13px 9px}.subject strong{font-size:10px}.mode{padding:12px 9px;gap:7px}.mode strong{font-size:10px}.mode small{font-size:8px}.setting-row{align-items:flex-start}.chips{gap:5px}.chip{padding:6px 10px}.start-row .btn{padding:11px 16px}.footer span:last-child{display:none}.question{padding:21px}.q-title{font-size:17px}.option{padding:13px;gap:12px;font-size:12px}.q-actions{flex-wrap:wrap}.q-actions .btn{padding:10px 12px;font-size:11px}.answer-grid{gap:6px;grid-template-columns:repeat(5,1fr)}.filterbar{gap:7px}.filterbar select{max-width:112px;font-size:11px}.bank-row{gap:10px}.bank-row h3{font-size:12px}.bank-row .row-tools{flex-direction:column;gap:3px}.import-steps{grid-template-columns:1fr}.step{display:grid;grid-template-columns:30px 1fr;gap:0 10px}.step b{grid-row:span 2;margin:0}.step p{grid-column:2}.bank-header{flex-wrap:wrap}.bank-header .badge{margin-left:0}.record{gap:10px}.hero-copy{max-width:none}.source-file{flex-wrap:wrap}.source-file .badge{margin-left:32px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:700px){.breadcrumb>span{display:none}.breadcrumb>b{white-space:nowrap}.breadcrumb>svg{display:none}.page-heading>.btn{flex-shrink:0;white-space:nowrap}.hero h2{font-size:clamp(19px,5.5vw,24px);letter-spacing:1px}.hero p{max-width:190px}.hero{padding:23px}.page-heading h1{white-space:nowrap}.top-actions{margin-left:10px}.breadcrumb{flex-shrink:0}.topbar{padding:0 16px}.page-heading .subtext{max-width:220px}}
/* Offline edition: theme-driven surfaces and five independent Papers. */
:root{--hero:#e6eedf;--on-accent:#fff;--good:#547348;--bad:#ab6650;font-family:system-ui,-apple-system,"PingFang TC","Microsoft JhengHei",sans-serif}
.sidebar{width:255px;padding:34px 20px 22px;background:var(--paper)}.shell{grid-template-columns:255px 1fr}.brand{gap:10px;padding:0 5px}.brand strong{font-size:17px;letter-spacing:.1px;white-space:nowrap}.brand small{font-size:10px;letter-spacing:.6px;color:var(--muted);margin-top:7px}.brand-mark{flex-shrink:0}.brand-mark i{background:var(--green)!important}.brand-mark i:nth-child(2){opacity:.65}.brand-mark i:nth-child(3){opacity:.4}.topbar{background:var(--bg)}.sidebar .nav button{color:var(--muted)}.nav button.active{color:var(--green);background:var(--soft)}.nav button:hover{background:var(--soft)}.side-tip,.avatar{background:var(--soft)}.hero{background:var(--hero);border-color:var(--line);height:205px}.hero h2{font-family:"Songti TC","STSong",serif}.hero .mini,.hero p,.hero-tag{color:var(--green)}.hero-art{opacity:.85}.hero-art svg{filter:grayscale(.5)}[data-theme="navy"] .hero-art,[data-theme="black"] .hero-art{opacity:.65;filter:brightness(.8)}.hero-copy{max-width:72%}.hero-tag{right:24px;bottom:17px;font-size:8px}.offline-badge{display:flex;align-items:center;gap:6px;color:var(--green);background:var(--soft)}.dot{background:var(--green)}.top-actions .icon-button{padding-left:8px}.theme-dot{width:10px;height:10px;border-radius:50%;background:var(--green);margin-left:auto}.btn{background:var(--paper);color:var(--ink)}.btn:hover{background:var(--soft);border-color:var(--green)}.btn.primary{background:var(--green);border-color:var(--green);color:var(--on-accent)}.btn.primary:hover{background:var(--green);filter:brightness(1.08)}.subject-grid{grid-template-columns:1fr 1fr;gap:10px}.subject{padding:14px 13px;min-height:98px;color:var(--ink);background:var(--paper)}.subject.selected{border-color:var(--green);background:var(--soft)}.subject.selected:after{color:var(--green)}.subject:hover{border-color:var(--green)}.subject:last-child{grid-column:1/-1;min-height:86px}.subject-icon{display:flex;align-items:center;gap:9px;margin-bottom:10px}.subject-icon svg{margin:0;width:17px;height:17px;color:var(--green)}.subject-icon b{font-size:10px;font-weight:600;color:var(--green);letter-spacing:.8px}.subject strong{font-size:11px;line-height:1.6}.subject small{font-size:9px;color:var(--muted)}.mode.selected{background:var(--soft);border-color:var(--green)}.selected .radio{border-color:var(--green)}.mode strong{color:var(--ink)}.mode small{color:var(--muted)}.chip{color:var(--muted)}.chip.selected{background:var(--soft);border-color:var(--green);color:var(--green)}.count-explanation{font-size:10px;line-height:1.9;color:var(--muted);margin-top:12px}.start-row strong,.stat-number,.plan-head h3{color:var(--ink)}.stat-head,.stat-note,.subtext,.field-label,.field-label small,.section-heading small,.stat-number span,.goal-caption,.goal-number span,.profile small,.side-tip p,.footer,.keyboard-hint{color:var(--muted)}.stat-head svg{color:var(--green)}.paper-overview{display:flex;gap:10px;align-items:center;margin:-3px 0 15px;font-size:12px;line-height:1.7}.paper-overview small{margin-left:auto;font-size:10px;color:var(--muted)}.badge{background:var(--soft);color:var(--green);border-color:var(--line)}.insight,.notice{background:var(--soft);border-color:var(--line);color:var(--muted)}.insight svg,.notice svg{color:var(--green)}.progress-track{background:var(--line)}.progress-track i,.day.today i{background:var(--green)}.day i{background:var(--line)}.plan-head .icon-box,.library-icon{background:var(--soft);color:var(--green)}.offline-note{font-size:10px;line-height:2;color:var(--muted);padding:18px 5px;display:block}.offline-note svg{width:14px;height:14px;margin-right:7px;color:var(--green)}.panel-title small{font-size:10px;color:var(--muted);margin-left:auto;font-weight:400}.paper-switch{display:flex;align-items:center;gap:12px;margin:0 0 19px;font-size:11px;color:var(--muted)}.paper-switch select{max-width:100%;background:var(--paper);color:var(--ink);padding:11px 13px}.question .q-title{color:var(--ink)}.option{color:var(--ink);background:var(--paper)}.option .letter{color:var(--muted);border-color:var(--line)}.option:hover{background:var(--soft)}.option.chosen{background:var(--soft);border-color:var(--green)}.option.chosen .letter{background:var(--green);color:var(--on-accent);border-color:var(--green)}.option.correct{border-color:var(--good);background:color-mix(in srgb,var(--good) 12%,var(--paper))}.option.wrong{border-color:var(--bad);background:color-mix(in srgb,var(--bad) 12%,var(--paper))}.answer-box{background:var(--soft);border-color:var(--line)}.answer-box p{color:var(--muted)}.review-correct{color:var(--good)!important}.review-wrong{color:var(--bad)!important}.starred{color:#b19057!important}.answer-grid button{background:var(--paper);color:var(--ink)}.answer-grid button.done{background:var(--soft);border-color:var(--line)}.answer-grid button.current{border-color:var(--green);outline-color:var(--green)}.bank-header small{font-size:11px;color:var(--muted);margin-left:6px;font-weight:400}.bank-row p,.review p{color:var(--muted)}.result-hero{background:var(--hero)}.record-score{color:var(--green)!important}.result-hero p,.result-tags{color:var(--muted)}.result-hero h2{font-family:"Songti TC","STSong",serif}.search,select{background:var(--paper);color:var(--ink)}.empty p{color:var(--muted)}.themes-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin:0 0 28px}.theme-card{border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:7px;text-align:left;overflow:hidden}.theme-card.selected{border-color:var(--green);outline:1px solid var(--green)}.theme-card:hover{border-color:var(--green)}.theme-preview{display:flex;height:125px;background:var(--preview-bg);border-radius:7px;overflow:hidden;padding:0}.preview-side{width:24%;background:var(--preview-paper);padding:16px 8px;display:flex;flex-direction:column;gap:9px;border-right:1px solid color-mix(in srgb,var(--preview-ink) 9%,transparent)}.preview-side b{display:block;width:100%;height:4px;background:var(--preview-accent);opacity:.25;border-radius:2px}.preview-side b:first-child{height:8px;opacity:.8;margin-bottom:4px}.preview-main{flex:1;padding:17px 12px;display:flex;flex-direction:column;gap:10px}.preview-line{height:4px;width:45%;background:var(--preview-ink);opacity:.45;border-radius:2px}.preview-hero{display:block;height:30px;background:var(--preview-soft);border-radius:4px}.preview-stats{display:flex;gap:5px;height:15px}.preview-stats i{background:var(--preview-paper);flex:1;border-radius:3px}.preview-button{width:28%;height:9px;margin-left:auto;background:var(--preview-accent);border-radius:2px}.theme-description{display:flex;align-items:center;padding:13px 8px 10px;gap:5px}.theme-description strong{display:block;font-size:12px;font-weight:600;color:var(--ink)}.theme-description small{display:block;margin-top:6px;font-size:9px;color:var(--muted);line-height:1.7}.theme-selected{margin-left:auto;width:18px;height:18px;border:1px solid var(--line);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--on-accent)}.theme-selected svg{width:11px;height:11px}.selected .theme-selected{background:var(--green);border-color:var(--green)}.settings-info{display:grid;grid-template-columns:1.35fr 1fr;gap:20px}.settings-info p{font-size:11px;color:var(--muted);line-height:2}.settings-info strong{font-size:14px;font-weight:500}.settings-info .panel-title{margin-bottom:14px}.settings-info .badge{display:inline-block;font-size:9px}dialog{background:var(--paper);color:var(--ink)}dialog p,.help-grid p{color:var(--muted)}#toast{background:var(--green);color:var(--on-accent)}[data-theme="navy"],[data-theme="black"]{--good:#9bbb91;--bad:#d49c85}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--green);outline-offset:3px}.storage-warning{margin:0 0 20px}.themes-grid .theme-card{transition:border-color .15s}
@media(min-width:1600px){.hero{height:230px}.subject{padding:17px}.themes-grid{gap:22px}.theme-preview{height:150px}}
@media(max-width:1180px){.sidebar{width:225px;padding:32px 15px 20px}.shell{grid-template-columns:225px 1fr}.brand{padding:0}.brand strong{font-size:15px}.brand-mark{grid-template-columns:9px 9px;grid-template-rows:9px 9px;gap:3px}.themes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid{grid-template-columns:minmax(0,1.5fr) minmax(225px,1fr)}.subject strong{font-size:10px}.paper-overview small{display:none}}
@media(max-width:980px){.content-grid{grid-template-columns:1fr}.right-column{grid-template-columns:1fr 1fr}.offline-note{grid-column:2}.right-column .library-link{margin-top:0}.settings-info{grid-template-columns:1fr}.hero h2{font-size:25px}.hero-art{opacity:.35}.q-actions>div{flex-wrap:wrap;justify-content:flex-end}.question-layout{grid-template-columns:1fr}}
@media(max-width:700px){.shell{display:block}.sidebar{width:255px}.brand strong{font-size:17px}.hero{height:205px}.hero-copy{max-width:none}.hero h2{font-size:clamp(19px,5.5vw,24px)}.subject-grid{grid-template-columns:1fr 1fr}.subject{min-height:100px}.subject:last-child{min-height:90px}.subject strong{font-size:11px}.subject small{font-size:9px}.right-column .library-link{margin-top:15px}.offline-note{padding-bottom:0}.paper-overview{flex-wrap:wrap;gap:7px;font-size:11px}.paper-overview>span:last-of-type{max-width:calc(100% - 78px)}.themes-grid{gap:12px}.theme-preview{height:111px}.theme-description{padding:12px 4px 8px}.theme-description small{font-size:8px}.theme-description strong{font-size:11px}.theme-selected{width:16px;height:16px}.preview-main{padding:14px 9px}.preview-side{padding:14px 6px}.paper-switch{display:block}.paper-switch>span{display:block;margin-bottom:9px}.paper-switch select{width:100%;font-size:11px}.footer{flex-wrap:wrap}.footer span:last-child{display:inline;font-size:9px;letter-spacing:.3px}.page-heading{align-items:flex-start}.page-heading h1{white-space:normal}.page-heading>.btn{font-size:10px;padding:9px 10px}.top-actions{gap:4px}.top-actions .icon-button{border:0;padding-left:3px}.top-actions svg{width:17px;height:17px}.page-heading>.btn svg{width:14px;height:14px}.btn.primary{white-space:nowrap}.q-actions{gap:15px}.q-actions>div{width:100%}.theme-card.selected{outline-width:1px}.start-row .btn{padding:11px 17px}}
/* Required papers, per-question provenance and temporary inspection. */
.subject:last-child{grid-column:auto;min-height:98px}.subject{min-height:109px}.subject-icon{padding-right:47px}.subject.required{background:var(--soft);border-color:color-mix(in srgb,var(--green) 45%,var(--line))}.subject.required.selected{outline:1px solid var(--green);border-color:var(--green)}.required-badge{position:absolute;right:28px;top:12px;background:var(--green);color:var(--on-accent);font-size:9px;letter-spacing:.5px;padding:3px 7px;border-radius:4px}.subject.selected:after{top:14px;right:10px}.subject.required strong{font-weight:650;font-size:12px}.subject-icon b{letter-spacing:.15px}.bank-row h3,.q-title,.option>span:not(.letter),.source-question-title{white-space:pre-line;overflow-wrap:anywhere}.bank-row p.source-line{font-size:9px;line-height:1.8;margin-top:8px;color:var(--muted)}.row-tools{align-items:center}.source-button{font-size:10px;padding:6px 9px;white-space:nowrap}.source-button svg{width:13px;height:13px}.q-actions{flex-wrap:wrap;align-items:center}.q-actions>div{margin-left:auto;flex-wrap:wrap}.q-actions .btn{font-size:11px;padding:10px 12px}.pagination{display:flex;align-items:center;justify-content:center;gap:18px;border-top:1px solid var(--line);padding-top:22px;margin-top:22px}.pagination span{font-size:11px;color:var(--muted)}.audit-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.audit-summary>div{background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:18px 20px}.audit-summary strong{font-size:26px;font-weight:550;display:block}.audit-summary span{font-size:10px;display:block;margin-top:7px;color:var(--muted)}.audit-controls{display:flex;align-items:flex-end;gap:12px}.audit-controls label{display:flex;flex-direction:column;gap:10px;font-size:11px;color:var(--muted)}.audit-controls label:first-child{flex:1;min-width:0}.audit-controls label:nth-child(2){width:150px}.audit-controls select{width:100%;padding:12px 10px;min-width:0}.audit-controls>.btn{white-space:nowrap;height:43px}.audit-note{margin-bottom:22px}.audit-file-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:17px 0}.audit-file-row:last-child{padding-bottom:0}.audit-file-row strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.audit-file-row small{display:block;font-size:10px;color:var(--muted);margin-top:7px}.source-modal{max-width:740px;max-height:88vh;overflow:auto}.modal-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:15px}.modal-heading h2{margin:7px 0 0}.source-modal .source-question-title{color:var(--ink);font-size:14px;line-height:1.9}.source-detail{border:1px solid var(--line);border-radius:11px;padding:20px;margin:16px 0}.source-detail h3{font-size:14px;line-height:1.7;overflow-wrap:anywhere}.source-detail dl{display:grid;gap:10px;font-size:11px;margin:16px 0 20px}.source-detail dl>div{display:grid;grid-template-columns:80px 1fr;gap:10px}.source-detail dt{color:var(--muted)}.source-detail dd{margin:0;line-height:1.8}.source-detail a{text-decoration:none}.source-modal .badge{font-size:9px}.audit-question .bank-row{padding-top:0}.audit-question .review p{white-space:pre-line}.option>span:not(.letter){line-height:1.9}.question .q-title{font-size:18px;line-height:1.85}.review p{white-space:pre-line}.bank-header .badge{white-space:normal;line-height:1.8}
@media(max-width:1180px){.audit-controls{flex-wrap:wrap}.audit-controls label:first-child{flex-basis:100%}.audit-controls label:nth-child(2){flex:1}.subject-icon{padding-right:35px}.required-badge{right:24px;padding:3px 5px}.subject.required strong{font-size:11px}}
@media(max-width:700px){.subject:last-child{min-height:109px}.subject{min-height:109px}.subject-icon{flex-wrap:wrap;gap:6px;padding-right:27px}.subject-icon b{font-size:9px}.subject-icon svg{width:14px;height:14px}.required-badge{font-size:8px;right:23px;top:12px;padding:2px 4px}.subject.required strong{font-size:11px}.audit-summary{grid-template-columns:repeat(2,1fr);gap:10px}.audit-summary>div{padding:15px}.audit-summary strong{font-size:23px}.audit-controls{gap:10px;padding:17px}.audit-controls label:nth-child(2){width:100%;flex-basis:100%}.audit-controls>.btn{flex:1;font-size:11px}.audit-file-row{flex-wrap:wrap;gap:10px}.audit-file-row .badge{font-size:9px}.source-detail{padding:17px}.source-detail dl>div{grid-template-columns:65px 1fr}.source-modal{padding:21px}.source-modal .source-question-title{font-size:12px}.q-actions>.btn{font-size:10px}.q-actions>div{width:100%}.bank-row .row-tools{gap:8px}.source-button{font-size:9px;padding:5px 6px}.source-button svg{display:none}.pagination{gap:10px}.pagination .btn{font-size:10px;padding:9px}.pagination span{font-size:9px}}
.icon-button.starred svg,[data-action="bookmark"][aria-pressed="true"] svg{fill:color-mix(in srgb,#b19057 24%,transparent);color:#b19057}[data-action="bookmark"][aria-pressed="true"]{color:#b19057}.source-modal::backdrop{background:#14251d80}
.answer-box p.explanation-credit,.review p.explanation-credit{font-size:9px;color:var(--muted);margin-top:12px;padding-top:10px;border-top:1px solid var(--line);line-height:1.8}
@media(max-width:700px){.subject .subject-icon{padding-right:0;flex-wrap:nowrap;gap:6px}.subject.required .subject-icon{margin-top:19px}.subject .required-badge{top:9px;right:10px}.subject.required.selected:after{top:10px;left:12px;right:auto}.subject .subject-icon b{white-space:nowrap;font-size:9px}}
/* Responsive study workspace, v4. */
body{overflow-x:hidden}.topbar{height:76px;background:var(--bg)}.brand{width:100%;text-align:left;justify-content:flex-start;border-radius:8px}.brand>span:last-child{min-width:0}.brand strong{font-size:17px}.brand:focus-visible{outline-offset:8px}.sidebar{overflow-y:auto;height:100dvh;z-index:30}.sidebar .nav button{min-height:46px}.tools-label{margin-top:28px}.sidebar-credit{font-size:10px;color:var(--muted);margin:19px 0 0;text-align:center;letter-spacing:.6px}.motivation-card{margin-top:30px}.motivation-card p{font-size:12px;line-height:1.9;min-height:66px}.motivation-card strong{font-size:12px}.drawer-close,.drawer-backdrop,.portrait-back{display:none}.top-actions .icon-button{border:0;width:44px;height:44px;box-sizing:border-box;padding:10px;border-radius:9px;display:grid;place-items:center}.top-actions .icon-button:hover{background:var(--soft)}.page-heading h1{font-size:27px}.subtext{font-size:13px}.page-heading>.btn{min-height:44px}.progress-banner{position:relative;isolation:isolate;display:flex;align-items:center;gap:40px;overflow:hidden;min-height:214px;padding:28px 32px;border:1px solid var(--line);border-radius:16px;background:var(--hero);margin-bottom:30px}.progress-art{position:absolute;right:-2px;top:-12px;width:52%;height:110%;z-index:-1;pointer-events:none;stroke:var(--green);stroke-width:1;opacity:.1}.progress-art .art-spark,.progress-art .art-dot{fill:var(--green);stroke:none}.progress-goal{width:32%;max-width:340px;min-width:240px}.progress-heading{display:flex;align-items:center;gap:13px}.progress-heading h2{font-size:21px;letter-spacing:.4px;margin:0}.progress-heading .badge{background:color-mix(in srgb,var(--paper) 45%,transparent)}.progress-subject{font-size:12px;color:var(--muted);margin:9px 0 20px;line-height:1.5}.goal-line{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:11px;color:var(--muted)}.goal-line strong{font-size:22px;line-height:1.1;font-weight:600;color:var(--ink)}.goal-line small{font-size:11px;font-weight:400;color:var(--muted)}.progress-banner .progress-track{height:6px;background:color-mix(in srgb,var(--green) 12%,var(--hero))}.progress-banner .goal-caption{font-size:10px}.progress-metrics{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.progress-metric{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:12px 8px;border-left:1px solid color-mix(in srgb,var(--green) 15%,transparent)}.progress-metric>svg{width:19px;height:19px;color:var(--green)}.progress-metric>strong{font-size:34px;line-height:1.1;font-weight:600;letter-spacing:-1px}.progress-metric>span{font-size:12px;line-height:1.5;color:var(--muted)}.practice-section{width:100%}.practice-section .section-heading h2{font-size:19px}.section-heading small{font-size:11px}.practice-panel{padding:26px}.field-label{font-size:13px;margin:29px 0 14px;gap:10px;align-items:center}.field-label small{font-size:11px}.subject-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.subject,.subject:last-child{padding:16px 13px 37px;min-height:142px;border-radius:11px;background:var(--paper);border:1px solid var(--line);outline:0}.subject.required{background:var(--paper);border-color:var(--line)}.subject-header{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-bottom:13px}.subject-icon,.subject.required .subject-icon{padding:0;margin:0;display:flex;align-items:center;flex-wrap:nowrap;gap:7px}.subject-icon svg{width:17px;height:17px;color:var(--muted);margin:0}.subject .subject-icon b{font-size:11px;color:var(--muted);white-space:nowrap;letter-spacing:0}.subject .required-badge{position:static;background:var(--soft);color:var(--muted);font-size:8px;padding:3px 5px;margin-left:auto;white-space:nowrap;line-height:1.2}.subject strong,.subject.required strong{font-size:13px;line-height:1.7;font-weight:550}.subject .subject-count{position:absolute;bottom:12px;right:13px;font-size:10px;line-height:1.4;margin:0;text-align:right}.subject:hover{border-color:var(--green)}.subject.selected,.subject.required.selected{background:var(--soft);border-color:var(--green);outline:1px solid var(--green)}.subject.selected .subject-icon b,.subject.selected .subject-icon svg{color:var(--green)}.subject.selected .required-badge{background:var(--green);color:var(--on-accent)}.subject.selected:after{display:none}.mode{padding:19px 18px;border-radius:11px;min-height:86px;gap:12px}.mode strong{font-size:14px}.mode small{font-size:12px;line-height:1.7}.radio{width:17px;height:17px}.setting-row{margin-top:28px;gap:20px}.setting-row>.field-label{margin:0}.chips{gap:10px;display:flex}.chip{min-width:112px;min-height:50px;padding:12px 21px;font-size:14px;border-radius:9px}.start-row{padding-top:23px;margin-top:24px}.start-row p{font-size:12px;line-height:1.9}.start-row .btn{min-height:60px;min-width:228px;padding:17px 35px;font-size:17px;border-radius:11px;font-weight:650;box-shadow:0 5px 15px color-mix(in srgb,var(--green) 18%,transparent)}.start-row .btn svg{width:20px;height:20px}.language-panel{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:30px}.language-panel h2{font-size:16px;margin:0 0 9px}.language-panel p{font-size:12px;line-height:1.8;margin:0;color:var(--muted)}.language-panel select{min-width:190px;min-height:46px;font-size:14px}.answer-sheet>summary{list-style:none;cursor:pointer;margin:0;min-height:28px}.answer-sheet>summary::-webkit-details-marker{display:none}.answer-sheet>summary>svg:last-child{width:15px;margin-left:5px;transform:rotate(0)}.answer-sheet[open]>summary>svg:last-child{transform:rotate(90deg)}.question-layout>aside{min-width:0}.q-actions .btn,.row-tools .icon-button{min-height:44px}.bank-row h3{font-size:14px}.bank-row p,.review p{font-size:12px}.review summary{font-size:12px}.source-detail dl{font-size:12px}.search,select{min-height:44px}.portrait-back svg{width:16px}.resume{border:1px solid var(--line);border-radius:10px;padding:14px 17px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--paper);font-size:12px}.footer{line-height:1.7}.footer span:last-child{letter-spacing:.6px}
@media(max-width:1250px){.subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.progress-banner{gap:20px;padding:25px}.progress-goal{min-width:210px}.progress-metrics{gap:10px}.progress-metric{padding:10px 4px}.progress-metric>strong{font-size:29px}.progress-metric>span{font-size:11px}}
@media(max-width:900px),(orientation:portrait){.shell{display:block}.main{width:100%}.sidebar{width:270px;max-width:86vw;transform:translateX(-105%);transition:transform .2s;box-shadow:none;padding:28px 19px 24px}.sidebar.open{transform:none;box-shadow:10px 0 60px #14251d20}.sidebar .brand{padding:0 20px 0 0}.sidebar .brand strong{font-size:16px}.drawer-close{display:grid;place-items:center;position:absolute;top:9px;right:5px;width:34px;height:34px;color:var(--muted)}.drawer-backdrop{position:fixed;inset:0;z-index:20;background:#10241d70;width:100%;height:100%;backdrop-filter:blur(2px)}.menu-open .drawer-backdrop{display:block}.menu-open{overflow:hidden}.mobile-menu{display:grid;place-items:center;width:44px;height:44px;padding:10px;margin-left:-10px;color:var(--green)}.topbar{position:sticky;top:0;height:66px;z-index:10;padding:0 24px;background:color-mix(in srgb,var(--bg) 96%,transparent);backdrop-filter:blur(12px)}.top-actions{margin-left:auto;gap:8px}.top-actions .icon-button{padding:10px}.breadcrumb{gap:9px;min-width:0}.breadcrumb>span,.breadcrumb>svg{display:none}.breadcrumb b{font-size:13px;white-space:nowrap}.page{padding:26px 24px}.question-layout>aside{order:0}.question-layout{grid-template-columns:1fr}.subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.q-actions .btn{font-size:13px}.answer-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.answer-grid button{min-height:44px;font-size:13px}.answer-sheet .legend{display:block!important;font-size:11px}.answer-sheet .notice{display:block}.settings-info{grid-template-columns:1fr}.themes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(orientation:portrait){.portrait-back{display:inline-flex;min-height:42px;padding:9px 12px;font-size:13px;gap:6px;background:var(--paper)}}
@media(max-width:600px){.page{padding:22px 16px calc(22px + env(safe-area-inset-bottom))}.topbar{padding:0 16px}.page-heading{gap:12px;margin-bottom:20px;flex-wrap:wrap}.page-heading h1{font-size:24px;margin-top:5px}.page-heading .subtext{max-width:none;font-size:12px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.page-heading>.btn{font-size:12px;padding:10px 12px}.progress-banner{display:block;min-height:0;padding:21px 19px;margin-bottom:25px;border-radius:13px}.progress-goal{width:100%;min-width:0;max-width:none}.progress-heading h2{font-size:19px}.progress-heading .badge{font-size:10px}.progress-subject{margin:7px 0 17px;font-size:12px}.goal-line{font-size:12px}.goal-line strong{font-size:23px}.goal-line small{font-size:11px}.progress-banner .goal-caption{font-size:10px}.progress-metrics{gap:0;margin-top:21px;padding-top:17px;border-top:1px solid color-mix(in srgb,var(--green) 14%,transparent)}.progress-metric{gap:7px;border-left:0;padding:0 6px}.progress-metric+.progress-metric{border-left:1px solid color-mix(in srgb,var(--green) 14%,transparent)}.progress-metric>svg{width:16px;height:16px}.progress-metric>strong{font-size:28px}.progress-metric>span{font-size:11px}.progress-art{width:100%;height:70%;right:-100px;opacity:.08}.practice-panel{padding:19px 15px;border-radius:12px}.practice-section .section-heading h2{font-size:18px}.section-heading small{font-size:10px}.field-label{font-size:13px;margin-top:27px}.field-label small{font-size:10px}.subject-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.subject,.subject:last-child{min-height:145px;padding:14px 11px 35px}.subject-header{align-items:flex-start;gap:7px;margin-bottom:11px}.subject .subject-icon b{font-size:10px}.subject .subject-icon svg{width:14px;height:14px}.subject .subject-icon{gap:5px}.subject .required-badge{font-size:8px;margin-left:0}.subject strong,.subject.required strong{font-size:13px;font-weight:550}.subject .subject-count{font-size:10px;right:11px;bottom:11px}.mode-grid{grid-template-columns:1fr;gap:10px}.mode{padding:15px 14px;gap:12px;min-height:77px}.mode strong{font-size:14px}.mode small{font-size:12px;margin-top:5px}.setting-row{display:block;margin-top:26px}.setting-row>.field-label{margin:0 0 12px}.chips{width:100%;gap:9px}.chip{flex:1;min-width:0;min-height:50px;padding:12px 8px;font-size:14px}.count-explanation{font-size:12px;line-height:1.85;margin-top:13px}.start-row{display:flex;flex-direction:column;align-items:stretch;gap:17px;margin-top:21px;padding-top:20px}.start-row p{font-size:11px;line-height:1.8}.start-row .btn{width:100%;min-height:59px;font-size:18px;padding:16px}.resume{font-size:12px;align-items:flex-start;flex-wrap:wrap;gap:10px}.resume .btn{min-height:44px}.language-panel{display:block;padding:20px;margin-bottom:25px}.language-panel select{width:100%;margin-top:18px;min-height:48px;font-size:16px}.language-panel p{font-size:12px}.themes-grid{gap:12px}.theme-description strong{font-size:12px}.theme-description small{font-size:10px}.theme-preview{height:110px}.settings-info p{font-size:12px}.question{padding:21px 16px}.q-meta{gap:10px;align-items:flex-start;margin-bottom:20px}.q-meta .badge{font-size:10px;white-space:nowrap}.question .q-title{font-size:18px;line-height:1.85;margin-bottom:23px}.option{font-size:16px;line-height:1.8;padding:15px 13px;gap:12px;min-height:58px}.option .letter{width:30px;height:30px;font-size:13px}.q-actions{gap:10px;margin-top:23px;padding-top:18px}.q-actions>.btn{flex:1;font-size:12px;padding:12px 9px;min-height:46px}.q-actions>div{width:100%;display:flex;gap:8px;margin-left:0}.q-actions>div>.btn{flex:1;font-size:13px;padding:13px 9px;min-height:49px}.keyboard-hint{display:none}.answer-box{padding:17px 15px}.answer-box h3{font-size:14px}.answer-box p{font-size:14px}.question-layout{gap:16px}.answer-sheet{padding:17px}.answer-sheet .panel-title{font-size:13px}.answer-sheet .panel-title small{font-size:11px}.answer-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.bank-row{gap:8px}.bank-row .q-index{min-width:18px;font-size:10px}.bank-row h3{font-size:14px}.bank-row p,.review p{font-size:12px}.row-tools .icon-button{width:42px;min-height:44px}.source-button{min-height:36px;font-size:11px}.search,select{font-size:16px}.paper-switch select{font-size:14px;min-height:48px}.source-modal{max-width:calc(100vw - 24px);padding:20px;max-height:90dvh}.source-modal .source-question-title{font-size:14px}.source-detail dl{font-size:12px}.source-detail a{font-size:12px;min-height:44px}.bank-header{gap:10px}.bank-header h2{font-size:15px}.bank-header .badge{font-size:9px}.audit-controls select,.audit-controls input{font-size:14px}.audit-controls>.btn{min-height:46px}.pagination .btn{min-height:44px;font-size:11px}.record{gap:10px;flex-wrap:wrap}.record>div:nth-child(2){flex:1;min-width:160px}.record .record-score{margin-left:auto}.record h3{font-size:13px}.result-hero{padding:26px 17px}.result-hero h2{font-size:21px}.result-tags{gap:12px;font-size:12px;flex-wrap:wrap}.footer{font-size:9px;margin-top:24px}.footer span:last-child{font-size:9px}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}
@media(max-width:600px){.page-heading>[data-action="audit"]{display:none}.q-actions>.btn{display:inline-flex;flex:1;min-width:0}.q-actions>.btn svg{width:15px}.q-actions>div>.btn svg{width:15px}.q-actions>div>.btn{line-height:1.5}.side-tip{padding:17px 14px}}
@media(max-width:600px){.source-button{min-height:44px}}

/* Compact practice cards and the daily-goal wheel. */
.progress-banner{min-height:184px;padding:23px 26px;gap:28px;margin-bottom:24px}
.progress-art{width:61%;height:120%;right:-35px;top:-12%;opacity:1;stroke:none;fill:var(--green)}
.progress-art .art-block-one{fill-opacity:.085}.progress-art .art-block-two{fill-opacity:.065}.progress-art .art-block-three{fill-opacity:.055}
.progress-heading h2{font-size:20px}.progress-subject{margin:7px 0 14px}
.goal-line{margin-bottom:9px}.progress-metrics{gap:14px}.progress-metric{gap:8px;padding:8px 6px}.progress-metric>strong{font-size:31px}
.practice-panel{padding:22px}.field-label{margin:23px 0 12px}.subject-grid{gap:10px}
.subject,.subject:last-child{min-height:128px;padding:14px 12px 33px}.subject-header{margin-bottom:10px;gap:6px}.subject .subject-count{bottom:10px;right:12px}
.mode{min-height:76px;padding:15px 16px}.setting-row{margin-top:23px}.chip{min-height:48px}
.start-row{padding-top:18px;margin-top:20px}.start-row .btn{min-height:54px;padding:14px 30px}
.resume{padding:12px 15px;margin-bottom:18px}.resume>span{line-height:1.7;min-width:0}.resume .btn{flex-shrink:0}
.language-panel{margin-bottom:20px}.daily-goal-panel{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 26px;margin-bottom:26px}
.daily-goal-copy{flex:1;min-width:0}.daily-goal-copy h2{font-size:16px;margin:0 0 9px}.daily-goal-copy p{font-size:12px;line-height:1.8;margin:0;color:var(--muted)}
.daily-goal-copy>strong{display:block;font-size:19px;font-weight:600;color:var(--green);margin-top:13px}
.goal-wheel-frame{position:relative;isolation:isolate;width:176px;height:144px;flex-shrink:0;background:var(--soft);border-radius:14px;overflow:hidden}
.goal-wheel-frame:before{content:'';position:absolute;left:9px;right:9px;top:48px;height:48px;border-radius:9px;background:color-mix(in srgb,var(--green) 11%,var(--paper));z-index:-1;pointer-events:none}
.goal-wheel{height:144px;padding:48px 0;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;mask-image:linear-gradient(transparent,black 29%,black 71%,transparent);touch-action:pan-y}
.goal-wheel::-webkit-scrollbar{display:none}.goal-wheel:focus-visible{outline:2px solid var(--green);outline-offset:-3px;border-radius:14px}
.goal-option{display:flex;align-items:center;justify-content:center;gap:7px;height:48px;min-height:48px;width:100%;padding:0;color:var(--muted);font-size:21px;font-weight:500;line-height:1;scroll-snap-align:center;scroll-snap-stop:always;transition:color .15s}
.goal-option.selected{color:var(--green);font-size:25px;font-weight:650}.goal-option small{font-size:12px;font-weight:400}
@media(max-width:1250px) and (min-width:601px){.progress-banner{padding:21px;gap:19px}.progress-metric>strong{font-size:29px}}
@media(max-width:600px){
 .page{padding:18px 14px calc(18px + env(safe-area-inset-bottom))}.page-heading{margin-bottom:16px}
 .progress-banner{padding:17px 16px;margin-bottom:20px;min-height:0}.progress-art{width:95%;height:115%;right:-80px;top:-10%;opacity:1}
 .progress-heading{gap:10px}.progress-heading h2{font-size:18px}.progress-subject{margin:5px 0 12px;font-size:11px}.goal-line{margin-bottom:8px}.goal-line strong{font-size:22px}
 .progress-metrics{margin-top:14px;padding-top:12px;gap:0}.progress-metric{gap:6px;padding:0 5px}.progress-metric>strong{font-size:26px}.progress-metric>svg{width:15px;height:15px}.progress-metric>span{font-size:10px}
 .practice-panel{padding:17px 13px}.field-label{margin:21px 0 11px}.subject-grid{gap:8px}
 .subject,.subject:last-child{min-height:121px;padding:12px 10px 30px}.subject-header{margin-bottom:8px;gap:5px}.subject strong,.subject.required strong{font-size:12px;line-height:1.6}.subject .subject-count{font-size:9px;bottom:9px;right:10px}
 .mode{min-height:70px;padding:12px 13px;gap:10px}.mode small{margin-top:4px;font-size:11px}.mode-grid{gap:8px}.setting-row{margin-top:21px}.chips{gap:8px}.chip{min-height:48px}
 .count-explanation{font-size:11px;margin-top:10px}.start-row{padding-top:16px;margin-top:17px;gap:13px}.start-row .btn{min-height:54px;padding:14px}
 .resume{padding:11px 13px;gap:8px;font-size:11px}.resume .btn{font-size:12px;padding:10px 13px}
 .daily-goal-panel{padding:18px 15px;gap:12px;margin-bottom:21px}.daily-goal-copy h2{font-size:15px}.daily-goal-copy p{font-size:11px}.daily-goal-copy>strong{font-size:18px;margin-top:10px}.goal-wheel-frame{width:136px}
 .language-panel{padding:19px;margin-bottom:17px}
}

.centered-tab-preview .section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0}
.centered-tab-preview .section-heading>small{font-size:11px;line-height:1.6;padding-bottom:18px;text-align:right}
.centered-tab-preview .practice-tab-button{position:relative;z-index:1;isolation:isolate;overflow:hidden;display:grid;place-items:center;flex:0 0 auto;width:238px;min-height:68px;margin-bottom:-1px;padding:18px 24px;border:1px solid var(--green);border-bottom:0;border-radius:17px 17px 0 0;background:var(--green);color:var(--on-accent);font-size:21px;line-height:1.4;font-weight:650;letter-spacing:1px;box-shadow:none;transition:background .2s,filter .2s}
.centered-tab-preview .practice-tab-button:hover{background:var(--green);filter:brightness(1.08)}
.centered-tab-preview .practice-tab-button:active{filter:brightness(.96)}
.centered-tab-preview .practice-tab-label{position:relative;z-index:2;pointer-events:none;text-align:center}
.centered-tab-preview .practice-panel{margin:0;border:1px solid var(--green);border-radius:0 17px 17px 17px;background:var(--paper);box-shadow:0 12px 28px color-mix(in srgb,var(--green) 4%,transparent)}
.centered-tab-preview .start-row{padding-top:18px;margin-top:22px}
.start-particles{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;opacity:.8}
@media(max-width:600px){
 .centered-tab-preview .section-heading{gap:8px}
 .centered-tab-preview .section-heading>small{max-width:85px;font-size:10px;padding-bottom:16px}
 .centered-tab-preview .practice-tab-button{width:192px;min-height:62px;padding:16px 20px;font-size:19px;border-radius:14px 14px 0 0}
 .centered-tab-preview .practice-panel{border-radius:0 14px 14px 14px}
}
@media(prefers-reduced-motion:reduce){.start-particles{display:none}.centered-tab-preview .practice-tab-button{transition:none}}

.particle-tab-button{transform-origin:50% 100%;will-change:transform}
.particle-tab-button .start-particles{opacity:1}
.particle-tab-button .practice-tab-label{transition:text-shadow .25s}
.particle-tab-button:hover .practice-tab-label,.particle-tab-button:focus-visible .practice-tab-label{text-shadow:0 0 15px color-mix(in srgb,var(--on-accent) 45%,transparent)}
.particle-tab-button[data-launching]{pointer-events:none}
.start-fireworks{position:fixed;inset:0;width:100vw;height:100dvh;z-index:9999;pointer-events:none}
@media(prefers-reduced-motion:reduce){.particle-tab-button{will-change:auto}.particle-tab-button .practice-tab-label{transition:none}.start-fireworks{display:none}}

/* Selected progress surface: calm gradient, no decorative artwork. */
.progress-banner{background:linear-gradient(112deg,var(--paper) 0%,color-mix(in srgb,var(--paper) 63%,var(--hero)) 47%,var(--hero) 100%)}
.progress-banner .progress-heading .badge{background:color-mix(in srgb,var(--paper) 65%,transparent)}
@media(max-width:600px){.progress-banner{background:linear-gradient(145deg,var(--paper) 0%,color-mix(in srgb,var(--paper) 62%,var(--hero)) 50%,var(--hero) 100%)}}

/* Selected subjects use the fill only; no additional selection ring. */
.subject.selected,.subject.required.selected{background:var(--soft);border-color:var(--line);outline:none}
.subject:focus-visible{outline:2px solid var(--green);outline-offset:3px}

/* Integrated top resume; secondary action keeps the start tab dominant. */

.progress-integrated .integrated-resume{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0}
.progress-integrated .integrated-resume p{margin:0;min-width:0;font-size:12px;line-height:1.7;color:var(--muted)}
.progress-integrated .integrated-resume strong{color:var(--ink);font-weight:600}
.progress-integrated .integrated-resume .btn{flex-shrink:0;min-height:44px;padding:11px 17px;font-size:12px;background:color-mix(in srgb,var(--paper) 65%,var(--soft));color:var(--green);border-color:color-mix(in srgb,var(--green) 18%,var(--line));border-radius:9px}
.progress-integrated .integrated-resume .btn:hover{background:var(--soft);border-color:color-mix(in srgb,var(--green) 35%,var(--line))}
.progress-integrated .progress-goal{min-width:0;width:100%;max-width:none}
.progress-integrated .progress-metrics{min-width:0}
@media(max-width:600px){
 .progress-integrated .integrated-resume{gap:10px}
 .progress-integrated .integrated-resume p{font-size:11px;line-height:1.7}
 .progress-integrated .integrated-resume .btn{font-size:11px;min-height:44px;padding:10px 12px;gap:6px}
 .progress-integrated .integrated-resume .btn svg{width:14px;height:14px}
}

.resume-top-layout{display:grid;grid-template-columns:minmax(200px,1fr) minmax(0,1.7fr);gap:18px 26px}
.resume-top-layout .progress-card-header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:22px;padding-bottom:16px;border-bottom:1px solid color-mix(in srgb,var(--green) 10%,transparent)}
.resume-top-layout .progress-card-header>.progress-heading{flex-shrink:0}
.resume-top-layout .integrated-resume{text-align:right;gap:16px}
.resume-top-layout .integrated-resume p>span{display:block}
.resume-top-layout .progress-subject{margin-top:0}
.resume-top-layout .progress-metrics{margin:0;padding-top:0}
@media(max-width:700px){
 .resume-top-layout{grid-template-columns:1fr;gap:14px}
 .resume-top-layout .progress-card-header{display:block;padding-bottom:14px}
 .resume-top-layout .integrated-resume{margin-top:13px;text-align:left}
 .resume-top-layout .progress-subject{margin-bottom:11px}
 .resume-top-layout .progress-metrics{padding-top:12px;border-top:1px solid color-mix(in srgb,var(--green) 12%,transparent)}
 .resume-top-layout .progress-metric:first-child{border-left:0}
}

.subject.selected,.subject.required.selected{background:var(--soft);border-color:var(--green);outline:none}

/* iOS supplies these in fullscreen/edge-to-edge views; browsers without insets use 0. */
:root{--ui-safe-top:env(safe-area-inset-top,0px);--ui-safe-left:env(safe-area-inset-left,0px);--ui-safe-right:env(safe-area-inset-right,0px)}
/* Portrait has a quiet permanent brand/menu bar; landscape uses its sidebar. */
.topbar{display:none}
.top-brand{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0;max-width:calc(100% - 56px);min-height:44px;padding:4px 0 4px 4px;color:var(--ink);border-radius:8px}
.top-brand strong{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:600;letter-spacing:.1px;white-space:nowrap}
.top-brand .brand-mark{flex-shrink:0;grid-template-columns:7px 7px;grid-template-rows:7px 7px;gap:2px}
@media(orientation:portrait){
 .topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:calc(49px + var(--ui-safe-top));height:auto;padding:calc(2px + var(--ui-safe-top)) calc(12px + var(--ui-safe-right)) 2px calc(12px + var(--ui-safe-left));background:color-mix(in srgb,var(--bg) 96%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
 .topbar .mobile-menu{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:0;padding:11px;border:1px solid var(--line);border-radius:11px;background:color-mix(in srgb,var(--paper) 55%,var(--soft));color:var(--muted)}
 .topbar .mobile-menu:hover{background:var(--soft);color:var(--ink)}
 .topbar .mobile-menu svg{width:18px;height:18px}
 .top-brand{margin-left:auto}
 .sidebar{padding-top:calc(24px + var(--ui-safe-top));padding-left:calc(19px + var(--ui-safe-left))}
 .sidebar .drawer-close{top:calc(9px + var(--ui-safe-top));right:calc(5px + var(--ui-safe-right))}
}
@media(orientation:portrait) and (max-width:360px){.topbar{gap:8px}.top-brand{gap:6px}.top-brand strong{font-size:12px}}
@media(orientation:landscape) and (max-width:900px){
 .shell{display:grid;grid-template-columns:190px minmax(0,1fr)}
 .sidebar,.sidebar.open{width:190px;max-width:none;transform:none;box-shadow:none;padding:20px 12px;height:100dvh}
 .sidebar .brand{padding:0;gap:9px}.sidebar .brand strong{font-size:13px;letter-spacing:0}.sidebar .brand small{font-size:8px;letter-spacing:1px}
 .sidebar .nav button{min-height:40px;padding:10px 12px;gap:10px;font-size:12px}.sidebar .nav-label{margin:22px 12px 9px;font-size:9px}.sidebar .tools-label{margin-top:20px}
 .sidebar .drawer-close{display:none}.drawer-backdrop,.menu-open .drawer-backdrop{display:none}.menu-open{overflow:auto}
 .main{grid-column:2;width:auto}.page{padding:22px 18px}
 .subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .progress-banner.resume-top-layout{grid-template-columns:1fr;gap:14px}
 .resume-top-layout .progress-card-header{display:block;padding-bottom:14px}.resume-top-layout .integrated-resume{margin-top:13px;text-align:left}
 .resume-top-layout .progress-metrics{padding-top:12px;border-top:1px solid color-mix(in srgb,var(--green) 12%,transparent)}.resume-top-layout .progress-metric:first-child{border-left:0}
 .themes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.language-panel{display:block}.language-panel select{margin-top:14px;width:100%;min-width:0}
 .daily-goal-panel{padding:18px 15px;gap:12px}.goal-wheel-frame{width:122px}
}

/* Reduced progress chrome and denser subject cards. */
.progress-banner.resume-top-layout{min-height:0;padding:18px 22px;gap:14px 22px}
.resume-top-layout .progress-card-header{padding-bottom:11px;gap:18px}
.progress-heading h2{font-size:19px}.progress-metric{gap:6px;padding:5px 6px}.progress-metric>strong{font-size:29px}
.subject,.subject:last-child{min-height:112px;padding:12px 11px 29px}.subject-header{margin-bottom:8px}.subject .subject-count{bottom:9px;right:11px}
.practice-panel{padding:20px}.field-label{margin:20px 0 11px}
@media(max-width:700px){
 .progress-banner.resume-top-layout{gap:10px;padding:15px 16px}
 .resume-top-layout .progress-card-header{padding-bottom:10px}
 .resume-top-layout .integrated-resume{margin-top:10px}
 .resume-top-layout .progress-metrics{padding-top:10px;margin-top:0}
 .progress-metric{gap:5px;padding:0 5px}.progress-metric>strong{font-size:25px}
 .goal-line{margin-bottom:7px}.goal-line strong{font-size:21px}
}
@media(max-width:600px){
 .progress-banner.resume-top-layout{padding:14px 15px;margin-bottom:17px}
 .progress-heading h2{font-size:17px}.progress-heading .badge{padding:4px 8px}
 .progress-metric>span{font-size:10px}
 .practice-panel{padding:15px 12px}.field-label{margin:18px 0 10px}
 .subject-grid{gap:8px}.subject,.subject:last-child{min-height:104px;padding:10px 9px 28px}
 .subject-header{margin-bottom:7px}.subject strong,.subject.required strong{font-size:12px;line-height:1.55}
 .subject .subject-count{bottom:8px;right:9px}
 .mode{min-height:66px;padding:10px 12px}.mode small{line-height:1.6}
 .setting-row{margin-top:18px}
}

/* Practice center keeps only its title. */
.home-heading{margin-bottom:16px}.home-heading h1{margin:0}
@media(max-width:600px){.home-heading{margin-bottom:13px}.home-heading h1{margin:0}}

/* Answers show only the correct choice, chapter and available explanation. */
.answer-box .chapter-reference,.review .chapter-reference{font-size:12px;line-height:1.6;color:var(--muted);margin:9px 0 0}
.answer-box .answer-explanation{margin:12px 0 0}
.answer-sheet .panel-title{display:flex;align-items:center;gap:8px;margin:0}
.answer-sheet .panel-title small{margin-left:auto;white-space:nowrap;font-size:11px;color:var(--muted);font-weight:400}
.answer-sheet{container-type:inline-size;padding:20px}
.answer-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:16px}
.answer-grid button,.answer-slot{height:44px;min-height:44px;min-width:0;box-sizing:border-box}
.answer-grid button{padding:8px 0;font-size:12px}
.answer-slot{display:block;border:1px dashed var(--line);border-radius:6px;opacity:.45}
.answer-sheet-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}
.answer-sheet-pages .btn{min-height:44px;padding:8px 10px;font-size:11px}
.answer-sheet-pages>span{font-size:11px;color:var(--muted);white-space:nowrap}
.answer-sheet .legend{display:block!important;margin-top:13px;font-size:11px}
@container(min-width:500px){.answer-grid{grid-template-columns:repeat(10,minmax(0,1fr))}}
@media(min-width:981px) and (orientation:landscape){.question-layout{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:600px){.answer-sheet{padding:17px}.answer-box .chapter-reference{font-size:12px}}
/* Quiet white wheel surface; only the centered choice carries theme color. */
.goal-wheel-frame{background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.goal-wheel-frame:before{background:var(--soft)}
.goal-option{font-size:16px;color:#7b8580}
.goal-option.selected{font-size:18px;color:var(--green)}
.goal-option small{font-size:10px}

/* Shared page-heading rhythm: original caption sizes, closer lower caption. */
.page-heading h1{margin-bottom:3px}
/* Manual: a quiet, indexed reading surface within the existing theme. */
.mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.chapter-picker{border:0;padding:0;margin:18px 0 4px;min-width:0}.chapter-picker legend{font-size:12px;font-weight:600;margin-bottom:10px}.chapter-picker>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.chapter-choice{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;background:var(--paper);border:1px solid var(--line);border-radius:9px;color:var(--ink);text-align:left;min-height:60px}.chapter-choice small{font-size:11px;color:var(--muted);white-space:nowrap}.chapter-choice strong{display:block;font-size:13px;line-height:1.5;margin-top:3px}.chapter-choice.selected{background:var(--soft);border-color:var(--green)}.chapter-choice:focus-visible,.manual-outline button:focus-visible,.manual-paper-tabs button:focus-visible{outline:2px solid var(--green);outline-offset:3px}.chapter-choice:hover{background:var(--soft)}
.manual-paper-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:18px}.manual-paper-tabs button{min-height:42px;padding:10px 14px;font-size:12px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted)}.manual-paper-tabs button:hover,.manual-paper-tabs button.active{color:var(--ink);background:var(--soft)}.manual-paper-tabs button.active{border-color:var(--line);font-weight:600}.manual-searchbar{margin:0 0 18px}.manual-searchbar input{width:100%;max-width:520px;font-size:14px;min-height:44px}.manual-layout{display:grid;grid-template-columns:222px minmax(0,1fr);gap:24px;align-items:start}.manual-outline{position:sticky;top:22px;max-height:calc(100vh - 44px);overflow-y:auto;scrollbar-color:var(--line) transparent;font-size:12px;padding-right:8px}.manual-outline button{width:100%;text-align:left;color:var(--ink);padding:9px 10px;display:flex;gap:7px;line-height:1.6;border-radius:6px;background:transparent;font-size:12px;min-height:39px}.manual-outline button:hover,.manual-outline button.active{background:var(--soft);color:var(--green)}.manual-outline button.active{font-weight:650}.manual-outline summary{cursor:pointer;list-style:none;padding:14px 8px 12px;border-top:1px solid var(--line);display:block}.manual-outline summary:after{content:'+';float:right;color:var(--muted)}.manual-outline details[open]>summary:after{content:'−'}.manual-outline summary span{font-size:10px;color:var(--muted)}.manual-outline summary strong{display:inline;font-size:12px;font-weight:600;margin-left:7px;line-height:1.8}.manual-outline details>button>span:first-child{flex-shrink:0;min-width:40px}.outline-overview{margin-bottom:12px}.manual-reader{min-width:0;padding:28px;overflow:hidden}.manual-reader h2{font-size:24px;line-height:1.5;margin:0}.manual-reader h3{font-size:17px;margin:32px 0 16px}.manual-version{font-size:12px;color:var(--muted);margin-top:7px}.manual-slide{margin:18px 0 24px}.manual-slide img{display:block;width:100%;height:auto;background:white;border-radius:3px}.manual-slide figcaption{font-size:10px;color:var(--muted);text-align:right;margin-top:7px}.manual-reading-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:26px}.manual-code{font-size:12px;color:var(--green);display:block;margin-bottom:6px}.manual-view-switch{display:flex;flex-shrink:0;background:var(--bg);border-radius:7px;padding:3px}.manual-view-switch button{font-size:11px;min-height:36px;padding:7px 12px;background:transparent;color:var(--muted);border-radius:5px;white-space:nowrap}.manual-view-switch button.active{background:var(--paper);color:var(--ink);font-weight:600}.manual-reading-page+ .manual-reading-page{border-top:1px solid var(--line);padding-top:25px;margin-top:30px}.manual-transcript{max-width:72ch;font-size:16px;line-height:1.95;overflow-wrap:anywhere}.manual-transcript p{margin:0 0 9px;white-space:pre-wrap}.manual-transcript .transcript-header{font-size:12px;color:var(--muted);margin-bottom:22px}.manual-text-details summary,.manual-extra-rules summary{font-size:12px;cursor:pointer;color:var(--green);min-height:40px;padding:10px 0}.manual-text-details .manual-transcript{margin-top:15px}.manual-page-nav{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:30px}.manual-empty{text-align:center;padding:55px 22px}.manual-empty h2{font-size:20px}.manual-empty p{color:var(--muted);margin:18px 0 28px;font-size:14px}.manual-search-results>p{font-size:12px;color:var(--muted);margin:10px 0 22px}.manual-search-results>button{display:flex;align-items:center;width:100%;gap:14px;padding:16px 0;border-top:1px solid var(--line);text-align:left;color:var(--ink);font-size:13px;background:transparent}.manual-search-results>button:hover{color:var(--green)}.manual-search-results>button>span{flex:1;min-width:0;line-height:1.8;overflow-wrap:anywhere}.manual-search-results svg{width:17px;height:17px;flex-shrink:0}.manual-search-results b{font-size:12px;font-weight:500;color:var(--green);min-width:38px}.manual-search-results small{font-size:10px;color:var(--muted);white-space:nowrap}.manual-no-results{padding:32px 0}.manual-overview-actions{margin-top:30px}
.manual-answer-link{display:flex;align-items:center;gap:10px;max-width:100%;padding:12px 0 0;margin-top:12px;border-top:1px solid var(--line);color:var(--green);text-decoration:none;font-size:12px;line-height:1.7}.manual-answer-link:hover b{text-decoration:underline;text-underline-offset:3px}.manual-answer-link>svg{width:18px;height:18px;flex-shrink:0}.manual-answer-link>svg:last-child{margin-left:auto}.manual-answer-link b{font-weight:500;display:block}.manual-answer-link>span{min-width:0;overflow-wrap:anywhere}
.exam-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:24px 0 12px}.exam-facts>div{padding:0 18px;border-right:1px solid var(--line)}.exam-facts>div:first-child{padding-left:0}.exam-facts>div:last-child{border:0;padding-right:0}.exam-facts dt{font-size:12px;color:var(--muted);margin-bottom:10px}.exam-facts dd{margin:0;font-size:34px;line-height:1.2;font-variant-numeric:tabular-nums}.exam-facts small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:9px}.exam-institution{font-size:12px;line-height:1.8;color:var(--muted);margin:20px 0}.syllabus-scroll{overflow-x:auto}.syllabus-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}.syllabus-table th,.syllabus-table td{padding:15px 10px;border-bottom:1px solid var(--line);text-align:right}.syllabus-table th:first-child{padding-left:0;text-align:left}.syllabus-table tbody th{font-weight:500;line-height:1.6}.syllabus-table tbody th small{font-weight:400;display:block;color:var(--muted);font-size:10px;margin-bottom:4px}.syllabus-table thead th{font-weight:500;color:var(--muted);font-size:11px}.syllabus-table td{white-space:nowrap;min-width:48px}.syllabus-table tfoot th,.syllabus-table tfoot td{font-weight:600;border-bottom:0}.exam-preparation{max-width:920px;margin:0 auto;padding:30px}.exam-prep-steps{max-width:920px;margin:0 auto 20px;display:flex;align-items:center;gap:14px;font-size:12px;color:var(--muted)}.exam-prep-steps .active{color:var(--green);font-weight:600}.exam-prep-steps i{height:1px;flex:1;background:var(--line)}.exam-prep-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}.exam-prep-actions>div{display:flex;gap:8px}.exam-prep-actions>p{font-size:12px;color:var(--muted)}
@media(max-width:1100px){.manual-layout{grid-template-columns:180px minmax(0,1fr);gap:16px}.manual-reader{padding:22px}.manual-reading-heading{flex-direction:column}.manual-outline summary strong{display:block;margin:4px 0 0}.mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mode{padding:12px 10px}}
@media(max-width:700px){.mode-grid{grid-template-columns:1fr}.mode{padding:11px 12px}.mode span strong{font-size:13px}.mode small{font-size:11px}.chapter-picker>div{grid-template-columns:1fr}.chapter-choice{padding:11px 12px;min-height:56px}.manual-layout{display:flex;flex-direction:column;gap:16px}.manual-outline{position:static;width:100%;max-height:240px;border-bottom:1px solid var(--line);padding-bottom:12px}.manual-outline summary strong{display:inline;margin-left:7px}.manual-reader{width:100%;padding:20px 16px}.manual-reader h2{font-size:21px}.manual-paper-tabs{gap:3px;margin-bottom:14px;padding-bottom:12px}.manual-paper-tabs button{padding:9px 8px;font-size:10px;min-height:44px}.manual-searchbar input{font-size:14px}.manual-reading-heading{gap:14px;margin-bottom:24px}.manual-transcript{font-size:16px;line-height:1.9}.manual-view-switch button{font-size:12px;min-height:40px;padding:8px 16px}.exam-facts>div{padding:0 10px}.exam-facts dd{font-size:28px}.exam-facts dt{font-size:11px}.exam-facts small{font-size:11px;line-height:1.5}.exam-preparation{padding:20px 16px}.exam-prep-actions{flex-direction:column;align-items:stretch;gap:8px}.exam-prep-actions>div{justify-content:flex-end}.exam-prep-actions .btn{min-height:46px}.manual-answer-link{font-size:12px}.syllabus-table{font-size:12px}.syllabus-table th,.syllabus-table td{padding:13px 6px}.syllabus-table td{min-width:42px}.manual-page-nav .btn{min-height:44px}.manual-slide{margin:16px 0 22px}}
.manual-mobile-index{position:sticky;top:22px;min-width:0}.manual-mobile-index>summary{display:none}.manual-outline{position:static}
@media(max-width:700px){.manual-mobile-index{position:static;width:100%;border-bottom:1px solid var(--line)}.manual-mobile-index>summary{display:block;cursor:pointer;font-size:13px;color:var(--green);min-height:46px;padding:14px 0;list-style:none}.manual-mobile-index>summary:after{content:'+';float:right}.manual-mobile-index[open]>summary:after{content:'−'}.manual-mobile-index .manual-outline{border-bottom:0;max-height:300px}}
@media(max-width:700px){.manual-outline button,.manual-view-switch button{min-height:44px}}
/* Portrait page names live in the safe-area-aware app bar; landscape keeps its heading. */
.portrait-page-title{display:none}
@media(orientation:portrait){
 .portrait-page-title{display:block;flex:1;min-width:0;font-size:15px;font-weight:650;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;color:var(--ink)}
 .topbar{gap:8px}.top-brand{margin-left:0;flex:0 1 auto;max-width:125px;gap:5px}.top-brand strong{font-size:10.5px;letter-spacing:0}.top-brand .brand-mark{grid-template-columns:6px 6px;grid-template-rows:6px 6px;gap:2px}
 .page{padding-top:12px}.page-heading:not(.has-page-action){display:none}.page-heading.has-page-action{justify-content:flex-end;margin:0 0 12px;gap:8px}.page-heading.has-page-action>div:first-child{display:none}
}
@media(orientation:portrait) and (min-width:600px){.portrait-page-title{font-size:17px}.top-brand{max-width:165px;gap:7px}.top-brand strong{font-size:12px}}
/* Each manual has its own reading page, entered from the Paper chooser. */
.manual-paper-selection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.manual-paper-button{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:18px;min-height:126px;padding:22px 24px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink)}
.manual-paper-button:hover{background:var(--soft);border-color:var(--green)}.manual-paper-button:focus-visible{outline:2px solid var(--green);outline-offset:3px}.manual-paper-number{display:block;color:var(--green);font-size:12px;font-weight:600;margin-bottom:9px}.manual-paper-button strong{font-size:17px;font-weight:600;line-height:1.6;display:block}.manual-paper-button small{font-size:11px;color:var(--muted);display:block;margin-top:9px}.manual-paper-button>svg{width:20px;height:20px;color:var(--green)}
.manual-index-bar{position:sticky;top:0;z-index:13;background:var(--soft);border:1px solid color-mix(in srgb,var(--green) 24%,var(--line));border-radius:10px;overflow:hidden;isolation:isolate}
.manual-index-controls{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;align-items:center;min-height:54px;padding:3px 7px 3px 13px;gap:2px}
.manual-index-title{min-width:0;text-align:left;font-size:15px;font-weight:650;min-height:46px;line-height:1.5;padding:8px 4px;color:var(--ink)}
.manual-search-toggle,.manual-index-chevron{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:7px;color:var(--green)}.manual-search-toggle:hover,.manual-index-chevron:hover{background:color-mix(in srgb,var(--green) 10%,var(--soft))}.manual-search-toggle svg{width:19px;height:19px}.manual-index-chevron svg{width:20px;height:20px;transition:transform .24s ease}.manual-index-bar.is-open .manual-index-chevron svg{transform:rotate(180deg)}
.manual-index-panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .28s cubic-bezier(.22,.7,.22,1)}.manual-index-panel.is-open{grid-template-rows:1fr}.manual-index-clip{overflow:hidden;min-height:0}.manual-index-scroll{max-height:min(54dvh,520px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:13px 16px 16px;border-top:1px solid color-mix(in srgb,var(--green) 15%,transparent);scrollbar-color:var(--line) transparent}
.manual-index-bar .manual-outline{padding:0;max-height:none;width:100%;overflow:visible;position:static;border:0;font-size:13px}.manual-index-bar .outline-overview{width:auto;font-weight:600;margin:0 0 10px}.manual-index-chapters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}.manual-index-chapter{min-width:0}.manual-index-bar .manual-chapter-heading{display:block;width:100%;font-size:13px;min-height:48px;margin-bottom:5px;padding:7px 10px;border-bottom:1px solid var(--line);border-radius:5px 5px 0 0}.manual-chapter-heading>span{font-size:10px;color:var(--muted);margin-right:8px}.manual-chapter-heading strong{font-weight:650}.manual-index-chapter>div{display:grid;gap:1px}.manual-index-bar .manual-outline button{min-height:42px;padding:8px 10px;line-height:1.65}.manual-index-chapter>div>button>span:first-child{min-width:48px;flex-shrink:0;color:var(--green);font-variant-numeric:tabular-nums}.manual-index-bar .manual-outline button.active{background:color-mix(in srgb,var(--paper) 80%,var(--soft));color:var(--green)}.manual-index-bar .manual-outline button:hover{background:color-mix(in srgb,var(--paper) 65%,var(--soft))}
.manual-search-panel{padding:10px 14px 14px;border-top:1px solid var(--line)}.manual-search-panel input{width:100%;font-size:14px;min-height:44px;background:var(--paper)}.manual-index-empty{font-size:13px;line-height:1.8;margin:6px 0;color:var(--muted)}
.manual-detail-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:9px 0 15px}.manual-detail-actions .btn{font-size:12px;min-height:42px;padding:8px 11px}.manual-reader{width:100%;margin-top:0}.manual-reading-heading{margin-bottom:18px}.manual-reading-page{scroll-margin-top:74px}.manual-slide{margin:14px 0 20px}.manual-slide img{touch-action:pan-x pan-y pinch-zoom}.manual-index-bar.just-collapsed .manual-index-chevron svg{animation:manual-index-nudge .65s ease-in-out 2}
@keyframes manual-index-nudge{0%,100%{transform:translateY(0)}45%{transform:translateY(4px)}}
@media(orientation:portrait){.manual-index-bar{top:calc(49px + var(--ui-safe-top))}.manual-reading-page{scroll-margin-top:calc(123px + var(--ui-safe-top))}}
@media(max-width:700px){.manual-paper-selection{grid-template-columns:1fr;gap:10px}.manual-paper-button{min-height:110px;padding:17px 18px}.manual-paper-button strong{font-size:16px}.manual-paper-number{margin-bottom:6px}.manual-paper-button small{margin-top:6px}.manual-index-controls{padding-left:9px;grid-template-columns:minmax(0,1fr) 44px 44px;gap:0}.manual-index-title{font-size:14px}.manual-index-scroll{padding:10px 9px 14px;max-height:54dvh}.manual-index-chapters{grid-template-columns:1fr;gap:14px}.manual-index-bar .manual-outline button{min-height:44px;font-size:12px}.manual-reader{padding:16px 10px}.manual-reading-heading{margin:0 6px 17px}.manual-reader h2{font-size:20px}.manual-slide figcaption{margin-right:5px}.manual-detail-actions .btn{min-height:44px}}
@media(prefers-reduced-motion:reduce){.manual-index-panel,.manual-index-chevron svg{transition:none}.manual-index-bar.just-collapsed .manual-index-chevron svg{animation:none}}
/* Two levels: chapters first, sections only inside the expanded chapter. */
.manual-index-chapters{grid-template-columns:1fr;gap:4px}
.manual-index-bar .manual-chapter-heading{display:flex;align-items:center;gap:8px;text-align:left;margin:0;border-bottom:0;border-radius:6px;min-height:46px}
.manual-chapter-heading>span:first-child{flex-shrink:0;margin:0;min-width:42px}.manual-chapter-heading strong{flex:1;min-width:0}.manual-chapter-heading>.manual-chapter-arrow{font-size:15px;color:var(--green);margin:0;transition:transform .2s ease}.manual-chapter-heading[aria-expanded="true"]>.manual-chapter-arrow{transform:rotate(180deg)}
.manual-index-chapter>.manual-section-list{margin:3px 0 9px 19px;padding-left:8px;border-left:2px solid color-mix(in srgb,var(--green) 20%,transparent)}
.manual-index-chapter>.manual-section-list[hidden]{display:none}.manual-index-scroll{overflow-anchor:none}.manual-index-bar+.manual-reader,.manual-index-bar+.manual-empty{margin-top:14px}
@media(max-width:700px){.manual-index-chapters{gap:2px}.manual-index-chapter>.manual-section-list{margin-left:10px;padding-left:6px}.manual-index-bar .manual-chapter-heading{padding:8px;gap:6px}.manual-chapter-heading>span:first-child{min-width:36px}.manual-index-bar+.manual-reader,.manual-index-bar+.manual-empty{margin-top:10px}}
@media(prefers-reduced-motion:reduce){.manual-chapter-arrow{transition:none}}
/* Mode and count first; the shared start tab joins the lower-right card edge. */
.bottom-start-layout .practice-panel{border-top-left-radius:15px;border-bottom-right-radius:0}.bottom-start-layout .section-heading{justify-content:flex-end}
.bottom-start-layout .practice-tab-button{margin: -1px 0 0;border:1px solid var(--green);border-top:0;border-radius:0 0 17px 17px;transform-origin:top center}
.bottom-start-layout .mode-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.bottom-start-layout .mode{justify-content:center;text-align:center;min-width:0;min-height:78px;padding:13px 10px}.bottom-start-layout .mode>span{min-width:0}.bottom-start-layout .mode small{font-size:11px;line-height:1.5}
.session-count-select{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0 0;min-height:44px;font-size:12px;color:var(--muted)}.session-count-select select{min-width:150px;max-width:60%;padding:9px 14px;font-size:13px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}
.bottom-start-layout .subject-field-label{margin-top:23px}.exam-mode-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;font-size:12px;line-height:1.7;color:var(--muted)}.exam-mode-summary strong{color:var(--green);font-weight:600}.syllabus-rounding-note{font-size:12px;color:var(--muted);line-height:1.8;margin:10px 0 18px}
@media(orientation:portrait){.bottom-start-layout .mode-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.bottom-start-layout .mode{padding:12px 5px;min-height:66px}.bottom-start-layout .mode strong{font-size:clamp(11px,3.2vw,14px);white-space:nowrap}.bottom-start-layout .mode small{display:none}.bottom-start-layout .subject-field-label{margin-top:18px}.session-count-select{margin-top:10px}.exam-mode-summary{gap:3px 10px;font-size:11px}.bottom-start-layout .practice-tab-button{border-radius:0 0 14px 14px}}
.bank-header [data-action="clear-bookmarks"]{margin-left:auto;flex-shrink:0}

/* Shared type scale: page titles, section labels, controls, then supporting copy. */
:root{--ui-label:14px;--ui-control:16px;--ui-body:15px;--ui-caption:12px;--ui-section:18px}
body{font-size:var(--ui-body)}
.btn{font-size:14px;line-height:1.4}
.panel-title,.section-heading h2,.settings-info h3,.language-panel h2,.daily-goal-copy h2{font-size:var(--ui-section);line-height:1.4}
.bank-header h2,.bank-row h3,.record h3{font-size:16px;line-height:1.5}
.bank-row p,.record p,.settings-info p,.language-panel p,.daily-goal-copy p{font-size:13px;line-height:1.65}
.chapter-choice strong{font-size:15px;line-height:1.4}
.manual-index-title{font-size:16px}.manual-chapter-heading strong{font-size:14px}.manual-section-list button{font-size:14px;line-height:1.5}
.practice-panel .field-label{justify-content:flex-start;gap:10px;font-size:var(--ui-label);font-weight:600;line-height:1.45;color:var(--ink);margin:18px 0 10px}
.practice-panel>.field-label:first-child{margin-top:0}
.field-step{display:inline-block;flex:0 0 18px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.bottom-start-layout .mode{align-items:center;justify-content:center;min-height:78px;padding:12px 10px;text-align:center}
.bottom-start-layout .mode .mode-copy{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0}
.mode-title{display:flex;align-items:center;justify-content:center;gap:7px}
.bottom-start-layout .mode .mode-title strong{font-size:var(--ui-control);line-height:1.35;font-weight:600;white-space:nowrap}
.mode-title svg{width:16px;height:16px;color:var(--muted);flex:0 0 16px}
.mode.selected .mode-title svg{color:var(--green)}
.bottom-start-layout .mode small{display:block;font-size:var(--ui-caption);line-height:1.4;margin:0;white-space:nowrap}
.session-count-buttons{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 0}
.session-count-buttons .field-label{margin:0;flex-shrink:0}
.count-options{display:flex;gap:7px;align-items:center}
.count-option{min-height:40px;min-width:72px;padding:8px 18px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:9px;font-size:15px;line-height:1.4;font-weight:500}
.count-option:hover{border-color:var(--green)}.count-option.selected{background:var(--soft);border-color:var(--green);color:var(--green)}
.bottom-start-layout .subject,.bottom-start-layout .subject:last-child{display:flex;flex-direction:column;gap:6px;min-height:112px;padding:12px;text-align:left}
.bottom-start-layout .subject-header{margin:0;gap:5px;min-height:18px}
.bottom-start-layout .subject-icon{gap:5px}
.bottom-start-layout .subject .subject-icon b{font-size:13px;line-height:1.35;font-weight:500}
.bottom-start-layout .subject>strong,.bottom-start-layout .subject.required>strong{font-size:var(--ui-control);line-height:1.4;font-weight:600}
.bottom-start-layout .subject .subject-count{position:static;align-self:flex-end;margin-top:auto;font-size:11px;line-height:1.35}
.bottom-start-layout .subject .required-badge{font-size:9px;padding:2px 4px}
.resume-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.progress-integrated .integrated-resume .clear-session-button{width:44px;height:44px;min-width:44px;padding:0;aspect-ratio:1;font-size:12px;line-height:1;flex:0 0 44px}
.manual-calculations-index{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}
.manual-calculations-index>.manual-chapter-heading{background:var(--soft);border-radius:8px}
.calc-reference{font-size:13px;line-height:1.5;color:var(--muted);margin:8px 0 0}
.calculation-sheet{font-family:inherit;font-size:16px;line-height:1.85;color:var(--ink);background:var(--paper);max-width:820px;margin:0 auto;padding:0 0 24px;overflow-wrap:anywhere}
.calc-intro{margin:0 0 20px}.calc-formula{padding:20px 22px;margin:20px 0 26px;background:var(--soft);border-left:3px solid var(--green);border-radius:0 10px 10px 0;font-size:17px;font-weight:550;line-height:1.85;white-space:pre-line;font-variant-numeric:tabular-nums}
.calc-example{margin:24px 0;padding-top:22px;border-top:1px solid var(--line)}
.calc-example h3{font-size:16px;font-weight:650;margin:0 0 8px;color:var(--green)}.calc-example p{margin:8px 0}.calc-example ol{padding-left:24px;margin:12px 0}.calc-example li{padding-left:4px;margin:6px 0}
.calc-answer{font-variant-numeric:tabular-nums;color:var(--green)}.calc-answer b{font-weight:600;margin-right:8px}
.calculation-sheet .calc-note{font-size:13px;line-height:1.75;color:var(--muted);margin-top:12px}
@media(orientation:portrait){
 :root{--ui-control:15px;--ui-body:14px;--ui-caption:11px;--ui-section:17px}
 .bottom-start-layout .mode-grid{gap:6px}
 .bottom-start-layout .mode{min-height:64px;padding:9px 4px}
 .bottom-start-layout .mode .mode-copy{gap:4px}
 .bottom-start-layout .mode .mode-title{gap:5px}
 .bottom-start-layout .mode .mode-title strong{font-size:clamp(13px,3.7vw,15px)}
 .mode-title svg{width:14px;height:14px;flex-basis:14px}
 .bottom-start-layout .mode small{display:block;font-size:clamp(10px,2.8vw,11px)}
 .bottom-start-layout .subject,.bottom-start-layout .subject:last-child{min-height:88px;padding:9px 10px;gap:4px}
 .bottom-start-layout .subject>strong,.bottom-start-layout .subject.required>strong{font-size:15px;line-height:1.35}
 .bottom-start-layout .subject .subject-icon b{font-size:12px}.bottom-start-layout .subject .subject-count{font-size:10px}
 .bottom-start-layout .subject-icon svg{width:14px;height:14px}
 .bottom-start-layout .subject .required-badge{margin-left:auto;font-size:8px}
 .practice-panel .field-label{margin:15px 0 9px}.session-count-buttons .field-label{margin:0}
 .session-count-buttons{gap:8px;margin-top:12px}
 .count-options{gap:5px}.count-option{min-width:52px;min-height:44px;padding:7px 12px;font-size:14px}
 .progress-integrated .integrated-resume{flex-wrap:wrap;gap:8px}.resume-actions{margin-left:auto}
 .calculation-sheet{font-size:15px;line-height:1.8}.calc-formula{font-size:15px;padding:15px 14px;margin:16px 0 20px}.calc-example{margin:20px 0;padding-top:18px}
}
@media(orientation:portrait) and (max-width:360px){
 .practice-panel{padding:14px 10px}.bottom-start-layout .subject-grid{gap:7px}.bottom-start-layout .subject,.bottom-start-layout .subject:last-child{padding:8px;gap:4px}.bottom-start-layout .subject>strong,.bottom-start-layout .subject.required>strong{font-size:14px}
 .bottom-start-layout .subject .subject-icon b{font-size:11px}.bottom-start-layout .subject-icon{gap:4px}.bottom-start-layout .subject .required-badge{font-size:8px;padding:2px 3px}
 .count-option{min-width:46px;padding:7px 9px}.field-step{flex-basis:15px}.practice-panel .field-label{gap:8px}.mode-title svg{width:12px;height:12px;flex-basis:12px}
}

/* One continuous sidebar navigation group. */
.sidebar>.nav{margin-top:38px}

/* Approved homepage layout B: centered labels and compact subject cards. */
.bottom-start-layout .practice-panel{padding:18px;box-shadow:none}
.bottom-start-layout .mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.bottom-start-layout .mode{display:flex;justify-content:center;align-items:center;height:66px;min-height:0;padding:10px 6px;border-radius:9px;box-shadow:none;text-align:center}
.bottom-start-layout .mode .mode-copy{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;gap:5px}
.bottom-start-layout .mode .mode-title{position:relative;display:block;width:max-content;margin:0 auto;padding:0;text-align:center}
.bottom-start-layout .mode .mode-title strong{display:block;font-size:16px;line-height:1.4;font-weight:600;white-space:nowrap;text-align:center}
.bottom-start-layout .mode .mode-title svg{position:absolute;right:calc(100% + 7px);top:50%;transform:translateY(-50%);width:15px;height:15px;margin:0;color:var(--muted)}
.bottom-start-layout .mode.selected .mode-title svg{color:var(--green)}
.bottom-start-layout .mode small{display:block;font-size:12px;line-height:1.4;margin:0;text-align:center;font-weight:400;letter-spacing:0;opacity:.85}
.bottom-start-layout .subject-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.bottom-start-layout .subject,.bottom-start-layout .subject:last-child{position:relative;display:grid;grid-template-rows:23px minmax(0,1fr) 16px;align-items:stretch;justify-items:stretch;gap:3px;height:104px;min-height:0;padding:12px 9px 9px;border:1px solid var(--line);border-radius:9px;background:var(--paper);box-shadow:none;outline:none;text-align:center}
.bottom-start-layout .subject.selected{border-color:var(--green);background:var(--soft)}
.bottom-start-layout .subject:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.bottom-start-layout .subject .subject-header{display:flex;justify-content:center;align-items:center;min-height:0;gap:0;margin:0;width:100%}
.bottom-start-layout .subject .subject-icon{display:block;gap:0;color:var(--ink)}
.bottom-start-layout .subject .subject-icon b{font-size:15px;line-height:1.4;font-weight:700;white-space:nowrap;color:var(--ink)}
.bottom-start-layout .subject>strong,.bottom-start-layout .subject.required>strong{display:flex;align-items:center;justify-content:center;align-self:stretch;justify-self:stretch;min-height:0;margin:0;padding:0 3px;width:100%;font-size:15px;line-height:1.5;font-weight:400;text-align:center;letter-spacing:0;word-break:normal;overflow-wrap:normal;color:var(--ink)}
.bottom-start-layout .subject .required-badge{position:absolute;left:8px;bottom:9px;right:auto;top:auto;margin:0;font-size:8px;padding:1px 4px;line-height:1.4;border:0;background:var(--soft);color:var(--muted);font-weight:500}
.bottom-start-layout .subject.selected .required-badge{background:transparent;color:var(--green)}
.bottom-start-layout .subject .subject-count{position:static;display:block;align-self:end;justify-self:end;margin:0;font-size:9px;line-height:1.4;font-weight:400;color:var(--muted);text-align:right}
@media(max-width:900px),(orientation:portrait){
 #content:has(.bottom-start-layout){padding-left:12px;padding-right:12px}
 .bottom-start-layout .subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bottom-start-layout .practice-panel{padding:16px 12px}
 .bottom-start-layout .mode{height:60px;padding:7px 3px}
 .bottom-start-layout .mode .mode-title strong{font-size:13px}
 .bottom-start-layout .mode .mode-title svg{width:12px;height:12px;right:calc(100% + 4px)}
 .bottom-start-layout .mode small{font-size:10px}
 .bottom-start-layout .subject,.bottom-start-layout .subject:last-child{height:96px;padding:10px 8px 7px;grid-template-rows:21px minmax(0,1fr) 14px;gap:2px}
 .bottom-start-layout .subject .subject-icon b{font-size:14px}
 .bottom-start-layout .subject>strong,.bottom-start-layout .subject.required>strong{font-size:14px;line-height:1.5;padding:0 2px}
 .bottom-start-layout .subject .required-badge{bottom:7px;left:7px;font-size:8px}
 .bottom-start-layout .subject-field-label{margin-top:18px}
}
@media(orientation:portrait){.bottom-start-layout .practice-panel{padding:14px 10px}}
@media(max-width:360px){
 .bottom-start-layout .mode-grid{gap:5px}
 .bottom-start-layout .mode .mode-title strong{font-size:12px}
 .bottom-start-layout .mode .mode-title svg{width:10px;height:10px;right:calc(100% + 3px)}
 .bottom-start-layout .mode small{font-size:9px}
 .bottom-start-layout .subject .subject-icon b{font-size:13px}
 .bottom-start-layout .subject-grid{gap:7px}
}

/* Calculation lessons retain original graphics; dense formula pages can be enlarged. */
.calculation-visual-sheet{margin:18px 0 26px;padding:0;background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.calculation-visual-sheet .manual-image-button{position:relative;display:block;width:100%;padding:0;line-height:0;text-align:left;background:white;cursor:zoom-in}
.calculation-visual-sheet img{display:block;width:100%;height:auto;margin:0;border-radius:0}
.manual-image-zoom-icon{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:32px;height:32px;border:1px solid #d8e1d8;border-radius:8px;background:#ffffffed;color:#416849;box-shadow:0 2px 8px #263e3510}
.manual-image-zoom-icon svg{width:17px;height:17px}
.calculation-visual-sheet figcaption{margin:0;padding:8px 12px;background:var(--paper);font-size:11px;color:var(--muted);line-height:1.5}
dialog.manual-image-modal{width:min(1440px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink)}
.manual-image-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:14px}
.manual-image-heading .btn{min-height:40px;font-size:12px}
.manual-image-viewport{max-height:calc(100dvh - 110px);overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;background:white;border:1px solid var(--line);border-radius:6px}
.manual-image-viewport img{display:block;width:100%;min-width:1000px;max-width:none;height:auto}
@media(orientation:portrait){.calculation-visual-sheet{margin:12px 0 20px;border-radius:8px}.manual-image-zoom-icon{right:8px;bottom:8px;width:30px;height:30px}.calculation-visual-sheet figcaption{padding:7px 9px;font-size:10px}}

/* Reading and tapping remain available; question text cannot be drag-selected. */
html,body,body *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,[contenteditable="true"]{-webkit-user-select:text;user-select:text}
img,svg{-webkit-user-drag:none;user-drag:none}

/* Keep the complete product name visible in the portrait header. */
.topbar .top-brand{flex:0 0 auto;max-width:none;min-width:max-content}
.topbar .top-brand strong{flex:0 0 auto;max-width:none;overflow:visible;text-overflow:clip;white-space:nowrap}
