@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;650;700;800&display=swap');
:root{--bg:#f4f2eb;--paper:#fffefa;--ink:#1e302f;--muted:#6d7873;--line:#dedfd5;--accent:#bf5737;--dark:#192c2b;--green:#356653;--soft:#e9ece2}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px;line-height:1.5}button,input,textarea,select{font:inherit}button,a,textarea,select,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.35;cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #c16846;outline-offset:4px}button{border:0}button:active{transform:translateY(1px)}[hidden]{display:none!important}.skip{position:absolute;left:20px;top:-100px;z-index:10;padding:10px;background:white}.skip:focus{top:10px}.topbar{height:88px;background:var(--dark);color:#f9f7ee;display:flex;align-items:center;justify-content:space-between;padding:0 48px}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;font-size:20px;letter-spacing:4px;font-weight:600;line-height:1.3}.brand svg{width:35px;stroke:#e8aa80;fill:none;stroke-width:1.5}.brand-sub{display:block;font-size:8px;letter-spacing:2.3px;font-weight:400;color:#b7c4bd;margin-top:3px}.topbar nav{display:flex;gap:30px;align-self:stretch}.nav{background:none;color:#a9b9b1;font-size:13px;border-bottom:2px solid transparent;padding:0 6px}.nav.active{color:#fff9ec;border-color:#e9ad83}.top-note{color:#b9c6bd;font-size:11px;display:flex;align-items:center;gap:8px}.top-note i{width:6px;height:6px;border-radius:50%;background:#d6b78c}.app-shell{display:flex;max-width:1600px;margin:auto}.sidebar{width:270px;flex-shrink:0;padding:39px 25px 30px 36px;border-right:1px solid var(--line);min-height:calc(100vh - 88px)}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:650;color:var(--muted)}.subject-name{font-family:'Libre Caslon Display',Georgia,serif;font-size:34px;line-height:1.04;margin:12px 0 30px}.subject-name span{display:block;font-family:'DM Sans',sans-serif;font-size:8px;letter-spacing:1.2px;margin-top:15px;color:var(--muted);line-height:1.5}.topic-title{display:flex;justify-content:space-between;font-size:11px;font-weight:600;margin-bottom:13px}.topic-title span{color:var(--muted);font-weight:400}.topics{display:flex;flex-direction:column;gap:3px}.topic-button{display:flex;text-align:left;align-items:center;background:transparent;border-radius:6px;color:var(--muted);padding:10px 10px 10px 8px;font-size:11px;line-height:1.4;gap:10px;width:100%}.topic-button:hover{background:#eaece2}.topic-button.active{background:var(--ink);color:#fcfbf3}.topic-button .topic-number{color:#9b9f91;font-size:9px;width:15px;flex-shrink:0}.topic-button.active .topic-number{color:#daa983}.topic-button .topic-count{margin-left:auto;font-size:9px;opacity:.7}.sidebar-foot{border-top:1px solid var(--line);margin:30px 8px 0;padding-top:18px;display:flex;gap:12px;color:var(--muted);font-size:10px}.sidebar-foot p{margin:0}.small-plane{font-size:26px;color:var(--accent)}main{flex:1;min-width:0;padding:42px 60px 0;max-width:1160px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}h1{font-family:'Libre Caslon Display',Georgia,serif;font-size:65px;letter-spacing:-1.6px;line-height:.99;font-weight:400;margin:14px 0 18px}h1 em{font-weight:400;color:var(--accent);font-style:normal}.page-heading p,.intro{color:var(--muted);font-size:13px;margin:0;max-width:580px}.progress-ring{width:120px;height:120px;position:relative;margin:0 4px 0 20px;flex-shrink:0}.progress-ring svg{width:100%;height:100%;transform:rotate(-90deg)}.progress-ring circle{fill:none;stroke:#e0e2d6;stroke-width:3}.progress-ring circle#ring{stroke:var(--green);stroke-dasharray:270.177;stroke-dashoffset:270.177;stroke-linecap:round;transition:stroke-dashoffset .4s}.progress-ring>div{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center}.progress-ring strong{font-family:'Libre Caslon Display',Georgia,serif;font-size:43px;font-weight:400;line-height:1}.progress-ring span{font-size:8px;color:var(--muted);margin-top:7px}.notice{display:flex;gap:12px;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0}.notice-dot{width:6px;height:6px;background:#bf7f47;border-radius:50%;flex-shrink:0}.notice p{margin:0;font-size:10px;line-height:1.65;color:var(--muted)}.notice strong{display:block;color:#695c43;font-weight:500}.notice p span{display:block}.text-link{padding:0;background:none;color:var(--muted);font-size:10px;text-decoration:underline;text-underline-offset:3px}.notice .text-link{margin-left:auto;white-space:nowrap}.session-bar{display:flex;justify-content:space-between;align-items:center;margin:27px 0 16px}.session-bar p{margin:3px 0 0;font-size:11px;color:var(--muted)}.quiet{background:transparent;color:var(--ink);font-size:11px;border:1px solid #cdd2c6;padding:10px 14px;border-radius:5px}.quiet:hover{background:#e8ebe1}.study-card{background:var(--paper);border:1px solid #dfe2d7;border-radius:12px;padding:29px 34px;box-shadow:0 4px 10px #24392d03}.card-top{display:flex;align-items:center;gap:10px;margin-bottom:22px}.code{font-size:11px;font-weight:600;letter-spacing:.7px}.badge{border:1px solid #e6dec7;color:#87754f;background:#faf7ee;border-radius:4px;font-size:8px;padding:3px 7px;letter-spacing:.25px}.badge.partial{border-color:#eed9cb;color:#ab633e;background:#fff4ec}.position{margin-left:auto;font-size:10px;color:var(--muted)}.card-topic{color:var(--muted);font-size:10px;margin-bottom:7px}h2{font-size:23px;font-weight:500;line-height:1.35;letter-spacing:-.5px;margin:0 0 25px;max-width:700px}.answer-label{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.1px;font-weight:600;margin-bottom:10px}.answer-label span{font-weight:400;letter-spacing:0;color:#92998c;font-size:10px}textarea{resize:vertical;display:block;width:100%;min-height:150px;padding:17px 18px;border:1px solid #dee2d6;border-radius:6px;background:#f9faf4;color:var(--ink);font-size:13px;line-height:1.7}textarea::placeholder{color:#969f90}.answer-tools{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:17px}.answer-tools>span{font-size:9px;color:#92998c}.primary{background:var(--accent);color:white;border-radius:5px;font-size:11px;padding:12px 18px;display:inline-flex;align-items:center;gap:30px;font-weight:500}.primary:hover{background:#a84a2f}.primary.green{background:var(--green);gap:10px}.answer-divider{height:1px;background:var(--line);margin:28px 0 24px}.model-answer{font-size:14px;line-height:1.8;margin:12px 0 24px}.mark-heading{display:flex;flex-direction:column;gap:3px;margin-bottom:12px}.mark-heading strong{font-size:12px;font-weight:600}.mark-heading span{font-size:10px;color:var(--muted)}.check-point{display:flex;gap:11px;align-items:flex-start;padding:10px 0;font-size:12px;cursor:pointer}.check-point input{margin:2px 0 0;accent-color:var(--green);width:15px;height:15px;flex-shrink:0}.grading-note{color:var(--muted);font-size:10px;margin:10px 0 18px}.source-detail{font-size:10px;border-top:1px solid var(--line);padding-top:15px;color:var(--muted)}.source-detail summary{cursor:pointer}.source-detail a{display:block;margin:10px 0;color:var(--green)}.source-detail p{margin:8px 0}.rating{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}.rating>div:first-child{display:flex;flex-direction:column}.rating strong{font-size:12px;font-weight:500}.rating span{font-size:9px;color:var(--muted);margin-top:3px}.rating>div:last-child{display:flex;gap:8px}.deck-nav{display:flex;justify-content:space-between;align-items:center;margin-top:17px}.deck-nav .quiet{border:0;padding:10px 0}.deck-nav>span{font-size:10px;color:var(--muted)}.study-bottom{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:28px;padding:22px 0;letter-spacing:1.5px;color:#8e9788;font-size:8px}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:25px 0;color:#929989;font-size:8px;letter-spacing:1px;margin-top:20px}footer span:last-child{letter-spacing:0}.mobile-topic{display:none}.empty{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:38px}.empty h2{font-family:'Libre Caslon Display',Georgia,serif;font-size:40px;line-height:1.1;margin:15px 0}.empty p{color:var(--muted);max-width:450px;margin-bottom:24px}.intro{margin:0 0 32px}.syllabus-controls{display:flex;gap:12px;margin-top:28px}.search-box{display:flex;align-items:center;gap:10px;background:var(--paper);border:1px solid var(--line);border-radius:5px;padding:10px 15px;flex:1}.search-box input{border:0;background:none;color:var(--ink);font-size:12px;width:100%;outline:none}.syllabus-controls select,.mobile-topic select{background:var(--paper);border:1px solid var(--line);border-radius:5px;padding:12px;font-size:11px;color:var(--ink);max-width:100%}.muted{color:var(--muted);font-size:11px}#objective-count{margin:16px 0}.objective-item{border-top:1px solid var(--line);padding:19px 0}.objective-item summary{cursor:pointer;display:flex;gap:18px;align-items:flex-start;list-style:none}.objective-item summary::-webkit-details-marker{display:none}.objective-item summary>.code{min-width:70px;font-size:10px;padding-top:3px}.objective-item .objective-text{flex:1;font-size:13px;white-space:pre-line}.objective-item .badge{white-space:nowrap;margin-top:2px}.objective-item .objective-body{padding:20px 0 0 88px}.objective-body p{white-space:pre-line;color:var(--muted);font-size:12px}.objective-body .quiet{margin:4px 8px 4px 0}.source-panels{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:34px}.source-panels article{border:1px solid var(--line);border-radius:10px;padding:25px;background:var(--paper)}.source-number{font-size:9px;color:var(--muted);letter-spacing:1px}.source-panels h2{font-size:21px;margin:16px 0}.source-panels p{font-size:12px;line-height:1.8;color:var(--muted)}.source-panels a{color:var(--green);font-size:11px;text-underline-offset:3px}.source-panels .text-link{display:block;margin-top:16px}.danger{color:#a04f3c}.reference-note{margin-top:28px;padding:22px 0;border-top:1px solid var(--line);font-size:12px}.reference-note strong{font-weight:500}.reference-note p{font-size:11px;line-height:1.8;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);padding:12px 20px;border-radius:6px;color:white;background:var(--dark);font-size:12px;opacity:0;pointer-events:none;transition:all .2s;z-index:10}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1450px){main{padding-left:80px;padding-right:80px}.sidebar{width:290px}}@media(max-width:1100px){main{padding:34px 32px 0}.sidebar{width:235px;padding-left:22px;padding-right:18px}h1{font-size:58px}.topbar{padding:0 28px}.top-note{display:none}.notice .text-link{display:none}}@media(max-width:760px){.topbar{height:74px;padding:0 20px}.brand{font-size:16px;gap:8px}.brand svg{width:29px}.brand-sub{font-size:6px;letter-spacing:1.6px}.topbar nav{gap:12px}.nav{font-size:10px;padding:0 2px}.sidebar{display:none}main{padding:23px 20px 0}.mobile-topic{display:flex;align-items:center;gap:12px;margin-bottom:27px}.mobile-topic label{font-size:10px;color:var(--muted)}.mobile-topic select{flex:1;width:0;padding:10px}h1{font-size:47px;letter-spacing:-1px}.page-heading{margin-bottom:22px}.page-heading p{font-size:11px;max-width:230px;line-height:1.6}.progress-ring{height:90px;width:90px;margin:12px 0 0 12px}.progress-ring strong{font-size:33px}.progress-ring span{font-size:6px}.notice{padding:12px 0;gap:9px}.notice p{font-size:9px}.notice strong{font-size:10px}.session-bar{margin:23px 0 13px}.study-card{padding:23px 20px;border-radius:10px}.card-top{gap:7px;margin-bottom:20px}.code{font-size:10px}.position{font-size:9px}.badge{font-size:7px;padding:3px 5px}h2{font-size:20px;margin-bottom:24px}.card-topic{font-size:9px}.answer-label{font-size:8px}.answer-label span{font-size:9px}textarea{font-size:13px;min-height:160px;padding:13px}.answer-tools>span{font-size:8px}.primary{padding:12px 14px;gap:18px;font-size:10px}.quiet{font-size:10px;padding:10px}.model-answer{font-size:13px}.rating{align-items:stretch;flex-direction:column}.rating>div:last-child{justify-content:flex-end}.deck-nav>span{font-size:8px}.deck-nav .quiet{font-size:10px}.study-bottom{letter-spacing:1px;font-size:7px}.syllabus-controls{flex-direction:column}.source-panels{grid-template-columns:1fr}.objective-item summary{flex-wrap:wrap;gap:8px}.objective-item summary>.code{min-width:60px}.objective-item .objective-text{font-size:12px;min-width:180px}.objective-item .badge{margin-left:68px}.objective-item .objective-body{padding-left:0}footer{gap:15px;line-height:1.8;font-size:7px}.empty{padding:28px 22px}.empty h2{font-size:34px}.empty p{font-size:12px}.eyebrow{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

:root{color-scheme:dark;--bg:#0b0f19;--paper:#111b2a;--ink:#f1f5f9;--muted:#a3b3c8;--line:#29374a;--accent:#2dd4bf;--dark:#0b101b;--green:#34d399;--soft:#1e293b}
body{font-family:Inter,system-ui,-apple-system,sans-serif;background-image:radial-gradient(ellipse at 90% 0%,#0d948817,transparent 55%)}
.topbar{border-bottom:1px solid var(--line);padding-left:48px}.brand{font-family:ui-monospace,monospace;letter-spacing:-.7px;font-size:19px;gap:11px}.brand-sub{font-family:ui-monospace,monospace;color:var(--muted);letter-spacing:1.4px}.brand-nz{color:var(--accent)}.ag-mark{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:35px;height:35px;border-radius:9px;background:linear-gradient(135deg,#10b981,#0891b2);font:bold 15px ui-monospace,monospace;color:#fff;letter-spacing:0}
.nav{color:var(--muted)}.nav.active{border-color:var(--accent);color:var(--ink)}.top-note,.top-note i{color:var(--accent)}.top-note i{background:var(--accent)}
.sidebar{padding-top:70px}.subject-name{font-family:Inter,sans-serif;font-size:27px;line-height:1.18}.subject-name strong{font-weight:700}.subject-name span{font-family:ui-monospace,monospace}.topic-button{font-size:12px}.topic-button:hover,.quiet:hover{background:#1e293b}.topic-button.active{background:#133b3c;color:#b7fff0}.topic-button.active .topic-number{color:var(--accent)}.topic-button .topic-number{color:var(--muted)}
h1{font-family:Inter,sans-serif;font-weight:800;font-size:52px;letter-spacing:-2px;line-height:1.08}h1 em{font-weight:800;color:var(--accent)}.progress-ring strong{font-family:Inter,sans-serif;font-weight:600}.progress-ring circle{stroke:var(--line)}.progress-ring span{max-width:90px;text-align:center;line-height:1.4}.notice strong{color:#fcd89c}.notice-dot{background:#fbbf24}.notice p{font-size:11px}.quiet,.study-card{border-color:var(--line)}.primary,.primary.green{background:#0f766e;color:#f0fdfa}.primary:hover,.primary.green:hover{background:#115e59}.badge{background:#23352e;border-color:#35584b;color:#9be8c7}.badge.partial{background:#3a2d20;border-color:#6d5030;color:#fcd89c}textarea{background:#0b1420;border-color:#304258;color:var(--ink)}textarea::placeholder{color:#8397ae}.answer-label span,.answer-tools>span,.study-bottom,footer{color:var(--muted)}.source-detail a,.source-panels a{color:var(--accent)}.danger{color:#fda4af}.skip{background:var(--paper)}.empty h2{font-family:Inter,sans-serif}.prompt-gap{padding:12px 15px;border-left:3px solid #eab868;background:#eab8680b;font-size:12px;line-height:1.7;color:#e8cba4;margin:-8px 0 22px}#question{white-space:pre-line;font-size:22px;line-height:1.6}.source-panels h2{line-height:1.4}.objective-item summary:hover .objective-text{color:#5eead4}
.subject-tab{position:fixed;left:0;top:105px;z-index:21;background:#0f766e;color:white;border:1px solid #38bdb0;border-left:0;border-radius:0 8px 8px 0;padding:11px 13px;font-size:12px;box-shadow:0 3px 15px #0005}.subject-tab:hover{background:#115e59}.drawer-backdrop{position:fixed;inset:0;background:#020617b3;backdrop-filter:blur(3px);z-index:30}.subject-drawer{position:fixed;inset:0 auto 0 0;width:min(360px,90vw);padding:30px 26px;background:#101a29;border-right:1px solid #334155;z-index:31;overflow-y:auto;box-shadow:15px 0 60px #0006;animation:slide-in .2s ease-out}.drawer-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:36px}.subject-drawer h2{font-size:30px;font-weight:750;margin:12px 0}.subject-drawer>p{color:var(--muted);font-size:12px}.subject-choice{display:flex;flex-direction:column;gap:9px;align-items:flex-start;text-align:left;width:100%;padding:17px 18px;border:1px solid var(--line);background:#142132;color:var(--ink);border-radius:9px;margin-top:12px;line-height:1.5}.subject-choice:hover{border-color:var(--accent)}.subject-choice.active{border-color:var(--accent);background:#123837}.subject-choice.active .eyebrow{color:#5eead4}.subject-choice strong{font-size:15px}.subject-choice>span:last-child{font-size:10px;color:var(--muted)}.drawer-foot{border-top:1px solid var(--line);margin-top:28px;padding-top:20px;line-height:1.8}.drawer-open{overflow:hidden}.drawer-open .subject-tab{visibility:hidden}
@keyframes slide-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@media(max-width:1100px){h1{font-size:44px}}
@media(max-width:760px){.topbar{padding:0 15px;height:78px}.brand{font-size:15px;gap:7px}.ag-mark{width:30px;height:30px;font-size:12px}.brand-sub{font-size:6px}.topbar nav{gap:10px}.nav{font-size:10px}.subject-tab{top:88px;padding:9px 12px;font-size:11px}main{padding-top:64px}.mobile-topic{margin-bottom:26px}h1{font-size:36px;letter-spacing:-1.3px}.page-heading p{max-width:210px}.progress-ring{width:80px;height:80px;margin-left:8px}.progress-ring span{max-width:66px;font-size:6px}.progress-ring strong{font-size:26px}#question{font-size:18px;line-height:1.65}.card-top{flex-wrap:wrap}.notice p{font-size:10px}.prompt-gap{font-size:11px}.answer-tools{align-items:flex-start;flex-direction:column}.answer-tools .primary{align-self:flex-end}.objective-item .badge{white-space:normal}footer{flex-wrap:wrap}.subject-drawer{padding:25px 22px}}
@media(prefers-reduced-motion:reduce){.subject-drawer{animation:none}}
