
:root{font-family:Arial,Helvetica,sans-serif;--ink:#283446;--muted:#657185;--accent:#44638b;--accent-hover:#344f74;--paper:#f5f6f8;--line:#e1e5eb;--soft:#edf2f8;--red:#ae343f;--green:#287150;--radius:10px;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.6 Arial,Helvetica,sans-serif}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}[hidden]{display:none!important}a{color:var(--accent)}h1,h2,h3,p{margin:0}h1{font-size:26px;line-height:1.35;font-weight:650;letter-spacing:-.5px}h2{font-size:19px;line-height:1.45;font-weight:600;letter-spacing:-.2px}h3{font-size:15px;font-weight:600;line-height:1.5}p{margin-top:8px}small{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:1px;font-weight:600;color:var(--muted);margin-bottom:9px}.primary,.secondary{min-height:42px;border-radius:7px;padding:10px 18px;font-weight:600;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary{background:var(--accent);border:1px solid var(--accent);color:#fff}.primary:hover:not(:disabled){background:var(--accent-hover)}.secondary{background:#fff;border:1px solid #d4dbe4;color:var(--ink)}.secondary:hover:not(:disabled){background:#f4f6fa}.full{width:100%}.text-button{background:none;border:0;color:var(--accent);padding:12px 0;font-size:13px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b4c8e3;outline-offset:3px}label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;margin:0}input,select,textarea{width:100%;color:var(--ink);background:#fff;border:1px solid #cfd6df;border-radius:7px;padding:10px 12px;min-height:43px;font-size:14px;line-height:1.5}input:focus,select:focus,textarea:focus{border-color:#6888b3;outline:3px solid #e5edf8}input[aria-invalid=true]{border-color:var(--red)}textarea{resize:vertical;min-height:110px}input::placeholder,textarea::placeholder{color:#8c95a3}select{text-overflow:ellipsis}label small,.field-hint{color:var(--muted);font-size:12px;font-weight:400;line-height:1.5}.field-hint:empty{display:none}.field-hint.invalid,.error{color:var(--red)}.field-hint.valid,.success{color:var(--green)}.error{background:#fff2f2;border:1px solid #f1d5d8;border-radius:7px;padding:10px 12px;font-size:13px;margin:0}.success{font-size:13px}.brand{display:flex;align-items:center;gap:7px;font-size:22px;line-height:1;font-weight:700;letter-spacing:-.5px;white-space:nowrap}.brand>span:last-child{font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted);margin:5px 0 0}.brand-mark{display:grid;place-items:center;border-radius:7px;background:#e9eff8;color:var(--accent);width:30px;height:30px;font-size:23px;font-weight:700;font-style:italic;margin-right:3px}.auth-layout{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:35px 20px;gap:26px}.auth-panel{width:min(100%,420px);background:#fff;border:1px solid var(--line);border-radius:12px;padding:30px 32px;box-shadow:0 3px 18px #24364a05}.auth-panel form{display:grid;gap:18px}.auth-panel h1{font-size:23px;text-align:center}.auth-panel #auth-description{font-size:13px;text-align:center;margin-top:-9px}.auth-footer{font-size:12px;color:var(--muted);margin:0}.auth-divider{display:flex;align-items:center;gap:12px;color:#7c8797;font-size:12px}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--line);flex:1}.google-button{min-height:43px;display:flex;align-items:center;justify-content:center;gap:11px;background:#fff;border:1px solid #d2d8e0;color:#364152;border-radius:7px;text-decoration:none;font-size:13px;font-weight:500}.google-button:hover{background:#f8f9fb}.google-button[aria-disabled=true]{opacity:.6;cursor:default}.auth-panel #google-status{margin-top:-10px;text-align:center}.password-wrap{position:relative}.password-wrap input{padding-right:72px}.show-password{position:absolute;right:5px;top:4px;bottom:4px;padding:0 8px;border:0;background:transparent;color:var(--muted);font-size:11px}.workspace{min-height:100vh;display:flex}aside{position:fixed;inset:0 auto 0 0;width:226px;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:28px 17px;z-index:4}aside .brand{margin:0 10px}.nav-label{font-size:10px;letter-spacing:1.2px;color:#8993a2;margin:38px 12px 13px}nav{display:grid;gap:5px}nav button{display:flex;align-items:center;gap:10px;min-height:43px;padding:10px 12px;text-align:left;background:transparent;border:0;border-radius:7px;color:var(--muted);font-size:13px}nav button.active{background:var(--soft);color:var(--accent);font-weight:600}nav button:hover{background:#f4f6f9}.nav-icon{width:20px;font-size:17px;text-align:center}.aside-note{margin-top:auto;padding:16px 12px 0;font-size:12px;color:var(--muted)}.aside-note strong{font-weight:500;color:#536174}.aside-note p{font-size:12px}.logout{background:none;border:0;border-top:1px solid var(--line);text-align:left;color:var(--muted);margin-top:23px;padding:15px 12px 0;font-size:13px}.main-shell{margin-left:226px;width:calc(100% - 226px);min-width:0}header{height:70px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fff;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.profile{display:flex;align-items:center;gap:9px;color:var(--ink)}.profile b{background:#edf1f6;color:#62728a;width:31px;height:31px;display:grid;place-items:center;border-radius:50%;font-size:12px}main{padding:30px 36px;max-width:1360px;margin:auto;min-height:calc(100vh - 125px)}footer{padding:14px 36px 20px;color:#8b94a2;font-size:11px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading p{font-size:13px;color:var(--muted);max-width:760px}.page-heading .eyebrow{display:none}.hero{border:1px solid #dce4ef;border-radius:var(--radius);padding:22px 24px;display:flex;justify-content:space-between;align-items:center;gap:25px;background:#edf2f8;margin-bottom:22px}.hero .eyebrow{display:none}.hero h2{font-size:18px}.hero p{font-size:13px;color:var(--muted);max-width:600px}.hero .primary{white-space:nowrap}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:22px;min-width:0}.metric{display:flex;flex-direction:column}.metric .label{font-size:11px;letter-spacing:.25px;color:var(--muted);min-height:34px;line-height:1.5}.metric .value{font-size:29px;line-height:1.2;font-weight:600;margin:9px 0}.metric small{font-size:11px;color:var(--muted)}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:22px}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:17px}.section-head h2{font-size:17px}.pill{font-size:11px;font-weight:500;border-radius:5px;padding:3px 8px;background:#edf2f8;color:#506b90;display:inline-block;white-space:nowrap}.pill.warn{background:#faf3e6;color:#866a36}.pill.hard{background:#faeded;color:#a45a5a}.subject-card{padding:17px 0;border-top:1px solid var(--line)}.subject-card:last-child{padding-bottom:0}.subject-card h3{font-size:14px}.subject-card p{font-size:12px;color:var(--muted);margin:6px 0 12px}.subject-card button{min-height:35px;font-size:12px;padding:7px 12px}.empty{padding:30px 12px;text-align:center;color:var(--muted);font-size:13px}.empty strong{display:block;color:var(--ink);font-size:14px;margin-bottom:6px}.notice{font-size:12px;line-height:1.6;color:var(--muted);background:#f5f7fa;border-radius:6px;padding:12px 14px;margin:12px 0 18px}.topic-row{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-top:1px solid var(--line);font-size:13px}.topic-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.filters{display:grid;grid-template-columns:1.3fr 1.3fr 1fr auto;gap:12px;margin-bottom:22px;padding:18px;background:white;border:1px solid var(--line);border-radius:var(--radius);align-items:end}.filters label{min-width:0;font-size:12px}.question-card{max-width:930px;margin:auto;padding:26px 30px}.question-top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:17px}.question-subject{font-size:12px;line-height:1.6;color:var(--muted);margin-bottom:18px}.question-card h2{font-size:16px;line-height:1.8;font-weight:500;letter-spacing:0;white-space:pre-wrap}.question-card .notice{font-size:11px}.answers{display:grid;gap:10px;margin:22px 0}.answer{display:flex;flex-direction:row;align-items:flex-start;gap:12px;border:1px solid var(--line);padding:13px 15px;border-radius:7px;font-weight:400;font-size:14px;cursor:pointer;line-height:1.65}.answer input{width:16px;height:16px;min-height:0;flex:0 0 16px;margin:4px 0 0;accent-color:var(--accent)}.answer:has(input:checked){background:#f1f5fb;border-color:#7f99be}.answer.correct{background:#eff7f1;border-color:#83ad91}.answer.wrong{background:#fff2f2;border-color:#ce8f95}.feedback{background:#eff7f1;border:1px solid #d7e7db;border-radius:8px;padding:18px;margin-bottom:20px;font-size:13px;white-space:pre-wrap}.feedback.bad{background:#fff5ef;border-color:#f1dfd3}.feedback p{margin:8px 0}.feedback a{display:block;overflow-wrap:anywhere;margin-top:12px;font-size:12px}.question-actions{display:flex;justify-content:space-between;gap:12px}.form-card{max-width:960px;width:100%;display:grid;gap:22px}.form-card>h2{margin-bottom:-12px}.form-card>p{margin-top:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.form-card button.primary{justify-self:start}.form-section{border-top:1px solid var(--line);padding-top:22px;display:grid;gap:16px}.form-section h3{font-size:14px}.form-step{display:inline-grid;place-items:center;background:#edf2f8;color:#627da4;border-radius:50%;width:24px;height:24px;font-size:12px;margin-right:7px}.details-list details{border-top:1px solid var(--line);padding-top:15px}.details-list summary{cursor:pointer;font-size:13px;color:var(--muted)}.details-list ol{padding-left:22px;margin-bottom:0}.details-list li{font-size:13px;padding:8px 0;color:var(--muted)}.details-list li .pill{margin-left:8px}.subject-list{display:grid;gap:18px}.subject-list>.card{max-width:100%}.inline-form{display:flex;gap:10px;margin-top:18px}.inline-form input{flex:1;min-width:0}.chart-row{display:grid;grid-template-columns:70px 1fr 45px;gap:12px;align-items:center;font-size:12px;margin:12px 0}.chart-row meter{width:100%;height:18px;accent-color:var(--accent)}.footnote{font-size:12px;color:var(--muted)}#toast{position:fixed;bottom:23px;right:23px;max-width:430px;background:#34465e;color:white;z-index:50;border-radius:8px;padding:13px 19px;font-size:13px;box-shadow:0 4px 25px #1a2d4220}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:22px}.tabs button{border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);padding:12px 18px;font-size:13px}.tabs button.active{border-bottom-color:var(--accent);color:var(--accent);font-weight:600}.generator-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}.help-card{font-size:12px;color:var(--muted);position:sticky;top:20px}.help-card h3{color:var(--ink);margin-bottom:12px}.help-card ol{padding-left:18px}.help-card li{padding:6px 0}.help-card hr{border:0;border-top:1px solid var(--line);margin:18px 0}.status-message{padding:13px 15px;border:1px solid #dbe4f1;background:#f3f6fb;border-radius:8px;color:#516988;font-size:13px}.status-message p{margin:5px 0 0}.status-message.error{border-color:#f0d5d8;color:var(--red);background:#fff4f4}.check-label{display:flex;flex-direction:row;align-items:flex-start;gap:10px;font-weight:400;font-size:13px}.check-label input{width:16px;height:16px;min-height:0;flex:0 0 16px;margin-top:3px;accent-color:var(--accent)}.generated-results{margin-top:24px;display:grid;gap:18px}.draft-card{display:grid;gap:18px}.draft-card .reference{font-size:12px;padding:13px;background:#f5f7fa;border-radius:7px;overflow-wrap:anywhere}.draft-card .reference a{display:inline-block;margin-top:6px}.alternative-editor{display:flex;align-items:flex-start;gap:10px}.alternative-editor span{padding-top:10px;font-size:13px;color:var(--muted)}.alternative-editor textarea{min-height:66px}.draft-actions{display:flex;align-items:center;justify-content:space-between;gap:15px}.ai-processing{display:flex;align-items:center;gap:12px}.spinner{width:18px;height:18px;border:2px solid #cdd9e9;border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}.bank-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between}.bank-toolbar p{margin:0}.year-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.block-gap{display:grid;gap:18px}
@media(min-width:1600px){main{padding:36px 42px}}@media(max-width:1150px){.generator-layout{grid-template-columns:1fr}.help-card{position:static}.help-card ol{display:flex;gap:30px;flex-wrap:wrap}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric .label{min-height:0}.filters{grid-template-columns:1fr 1fr}.grid-two{grid-template-columns:1fr}.hero h2{font-size:17px}}
@media(max-width:850px){aside{width:195px;padding:25px 12px}.main-shell{margin-left:195px;width:calc(100% - 195px)}aside .brand{font-size:20px;gap:5px}aside .brand>span:last-child{font-size:10px}main{padding:25px 22px}header{padding:0 22px}.hero{display:block}.hero .primary{margin-top:16px}.form-grid{grid-template-columns:1fr}.question-card{padding:22px}.section-head{flex-wrap:wrap}}
@media(max-width:620px){.auth-layout{padding:25px 18px;gap:20px}.auth-panel{padding:26px 22px}.auth-panel h1{font-size:22px}.workspace{display:block}aside{position:static;width:100%;border-right:0;border-bottom:1px solid var(--line);padding:17px 15px 12px}aside .brand{margin:0 3px}.nav-label,.aside-note{display:none}nav{display:flex;overflow-x:auto;gap:5px;margin-top:18px}nav button{flex:0 0 auto;min-height:38px;padding:8px 10px;font-size:12px;gap:6px}.nav-icon{font-size:15px;width:16px}.logout{position:absolute;top:7px;right:17px;border:0;padding:12px 0;margin:0;font-size:12px}.main-shell{margin:0;width:100%}header{height:52px;padding:0 18px;font-size:11px}.profile{font-size:11px}.profile b{width:27px;height:27px}main{padding:23px 16px}h1{font-size:23px}.page-heading{margin-bottom:20px}.page-heading p{font-size:12px}.card{padding:18px}.hero{padding:19px}.metrics{gap:10px}.metric .value{font-size:27px}.metric .label{font-size:10px;min-height:30px}.metric small{font-size:11px}.filters{grid-template-columns:1fr;padding:15px;gap:13px}.question-card{padding:19px}.question-card h2{font-size:15px}.question-actions{flex-wrap:wrap}.question-actions button{flex:1}.form-grid{gap:17px}.inline-form{flex-direction:column}.draft-actions{align-items:stretch;flex-direction:column}.section-head h2{font-size:16px}.tabs button{padding:10px 13px}.help-card ol{display:block}.grid-two{gap:17px}footer{padding:15px 18px}.bank-toolbar{align-items:flex-start;flex-direction:column}#toast{left:18px;right:18px;bottom:18px}.auth-brand{font-size:22px}}

.block-gap>label>textarea{min-height:68px}.form-card>section>label>select{max-width:440px}
