:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#183c36;background:#f5f7f8;font-synthesis:none;line-height:1.5;--green:#176957;--muted:#647773;--border:#dce5e2}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #ce8c37;outline-offset:3px}a{color:var(--green)}.shell{display:grid;grid-template-columns:248px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--border);padding:32px 22px;display:flex;flex-direction:column;gap:32px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px}.logo{display:grid;place-items:center;background:var(--green);color:white;border-radius:13px;width:43px;height:43px;font-size:24px;font-weight:700}.brand strong{font-size:21px;letter-spacing:-.6px}.brand small{display:block;color:var(--muted);font-size:12px;letter-spacing:1.8px}.nav{display:grid;gap:7px}.nav button{border:0;background:none;color:#536e66;text-align:left;padding:12px 14px;border-radius:9px;display:flex;gap:12px;align-items:center}.nav button.active{background:#e7f2ed;color:var(--green);font-weight:650}.sidebar-footer{margin-top:auto;font-size:14px;color:var(--muted);border-top:1px solid var(--border);padding-top:20px}.avatar{width:35px;height:35px;border-radius:50%;background:#e4e9f8;display:grid;place-items:center;color:#505f98;font-weight:700}.profile{display:flex;gap:10px;align-items:center}.main{padding:0 48px 48px;max-width:1500px;width:100%;margin:auto}.topbar{height:88px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;margin-bottom:36px;color:var(--muted);font-size:14px}.pill{background:#e8f1eb;border:1px solid #d0e3d6;color:#36654b;padding:5px 11px;border-radius:20px;font-size:13px;white-space:nowrap}h1{font-size:32px;letter-spacing:-1.2px;margin:0 0 8px;line-height:1.2}h2{font-size:20px;letter-spacing:-.4px;margin:0 0 12px}h3{font-size:17px;margin:0 0 8px}p{margin:0 0 16px}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:1.6px;font-size:12px;font-weight:700;margin-bottom:14px}.hero{background:#176957;color:#fff;padding:32px 36px;border-radius:18px;display:flex;justify-content:space-between;align-items:center;margin:28px 0;gap:24px;overflow:hidden}.hero p{color:#d2e8e0;max-width:540px}.hero h2{font-size:29px}.hero-art{flex:0 0 130px;width:130px;height:130px;border:1px solid #7baf9e;border-radius:50%;display:grid;place-items:center;font-size:64px;background:#247765;color:#d6ebe3}.button,button.primary{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--green);border-radius:9px;padding:10px 17px;background:var(--green);color:#fff;font-weight:600;text-decoration:none;gap:8px}.button.secondary{background:#fff;color:var(--green);border-color:var(--border)}.hero .button{background:#fff;color:#155d4e;border-color:white}.button.danger{color:#a53a3a;background:white;border-color:#eacaca}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px 0 32px}.card{background:#fff;border:1px solid var(--border);padding:24px;border-radius:13px}.metric{font-size:30px;line-height:1.3;font-weight:650;letter-spacing:-1px;margin:10px 0 4px}.metric small{font-size:16px;font-weight:400}.grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.row{display:flex;align-items:center;justify-content:space-between;gap:16px}.stack{display:grid;gap:16px}.unit-icon{font-size:27px;background:#e9f3ee;border-radius:10px;width:56px;height:56px;display:grid;place-items:center;flex-shrink:0}.notice{padding:16px 18px;border:1px solid #eadcbe;background:#fffaee;color:#755d2b;border-radius:10px;margin:18px 0;font-size:14px}.empty{padding:36px 20px;text-align:center;color:var(--muted);background:#f8faf9;border:1px dashed var(--border);border-radius:9px}.empty strong{display:block;color:#36574e;margin-bottom:8px}.section-heading{margin:28px 0 16px}.actions{display:flex;gap:10px;flex-wrap:wrap}.tabs{display:flex;gap:8px;margin:24px 0;flex-wrap:wrap}.tabs .active{background:#e3f0e9}.list-item{padding:18px 0;border-bottom:1px solid var(--border)}.list-item:last-child{border:0}.tag{display:inline-block;font-size:12px;padding:3px 8px;border-radius:5px;background:#eef2f1;color:#5c7069;margin:5px 4px 5px 0}.reviewed{background:#e1f1e5;color:#326846}label{display:grid;gap:7px;font-size:14px;font-weight:600;margin-bottom:16px}input,textarea,select{width:100%;border:1px solid #c7d7d0;background:white;border-radius:8px;padding:11px 12px;color:#193b32}textarea{min-height:100px;resize:vertical}label.check{display:flex;align-items:center}input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--green)}details{margin-top:14px}summary{cursor:pointer;color:var(--green)}.note-text{white-space:pre-wrap;overflow-wrap:anywhere}.progress{height:6px;background:#e4eae7;border-radius:10px;overflow:hidden;margin:18px 0 28px}.progress span{display:block;height:100%;background:var(--green)}.option{display:flex;gap:12px;align-items:center;padding:15px;border:1px solid var(--border);border-radius:9px;font-size:16px;font-weight:400;cursor:pointer}.option:has(input:checked){background:#e7f3ec;border-color:var(--green)}.question{font-size:24px;line-height:1.4;margin:20px 0 28px}.correct{border-left:4px solid #31835d}.incorrect{border-left:4px solid #c06b53}.score{font-size:58px;letter-spacing:-2px;font-weight:700}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:13px 8px;border-bottom:1px solid var(--border);font-size:14px}th{color:var(--muted);font-weight:500}.table-wrap{overflow:auto}dialog{border:1px solid var(--border);border-radius:16px;max-width:700px;width:calc(100% - 32px);max-height:90vh;padding:28px;color:#183c36}dialog::backdrop{background:#12342d88}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.close{border:0;background:#f0f4f2;border-radius:50%;width:34px;height:34px;font-size:22px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#183c36;color:white;padding:14px 24px;border-radius:10px;z-index:10;max-width:90vw}.small{font-size:14px}.source{font-size:14px;background:#f4f7f5;padding:12px;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}.form-error{color:#a13636;margin-bottom:16px}.spaced{margin-top:24px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1400px){.main{padding-left:64px;padding-right:64px}}@media(max-width:1000px){.shell{grid-template-columns:210px 1fr}.main{padding:0 24px 32px}.grid{grid-template-columns:1fr}.hero-art{display:none}.cards{gap:10px}.card{padding:18px}}@media(max-width:700px){.shell{display:block}.sidebar{position:static;height:auto;padding:18px;gap:18px;border-right:0;border-bottom:1px solid var(--border)}.nav{display:flex;overflow:auto;gap:4px}.nav button{padding:9px 12px;white-space:nowrap;font-size:14px}.sidebar-footer{display:none}.main{padding:0 18px 30px}.topbar{height:62px;margin-bottom:24px}h1{font-size:28px}.hero{padding:24px;margin:24px 0}.hero h2{font-size:25px}.cards{grid-template-columns:1fr;margin:18px 0}.cards .card{display:flex;align-items:center;justify-content:space-between;gap:15px}.metric{margin:0}.row{flex-wrap:wrap}.question{font-size:21px}.topbar .profile{display:none}}
.question-figure{margin:20px 0 28px}.question-figure img{display:block;width:100%;max-height:520px;object-fit:contain;background:#f2f5ff;border:1px solid var(--border);border-radius:10px}.question-figure figcaption,figcaption{font-size:14px;color:var(--muted);margin:8px 0}.question-figure a{font-size:14px}.slides-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px;margin-top:24px}.slides-grid figure{margin:0}.slides-grid img{width:100%;height:auto;display:block;border:1px solid var(--border);border-radius:8px}.flashcard{border-top:1px solid var(--border);padding:15px 0}.flashcard p{padding:14px 0 0}.actions details{width:100%}.note-text.source{max-height:500px;overflow:auto}
.course-switch{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:-10px 0 30px}.course-switch label{flex:1;max-width:650px;margin:0}.course-switch select{background:#fff}.material-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:18px;margin:24px 0}.material-card{min-width:0}.material-card h3,.material-card p{overflow-wrap:anywhere}.material-thumb{width:100%;height:190px;object-fit:contain;border-radius:8px;background:#f4f7fb;margin-bottom:16px}.pdf-icon{display:grid;place-items:center;width:58px;height:72px;border:1px solid #d8e3df;border-radius:7px;background:#edf5f0;color:#176957;font-weight:700;margin-bottom:16px}.rehearsal-option{width:100%;text-align:left;margin-bottom:14px;background:white;color:#193b32}.rehearsal-option:disabled{opacity:1}.answer-correct{border-color:#31835d;background:#e7f5eb}.answer-wrong{border-color:#c06b53;background:#fff1ec}.auth-shell{max-width:560px;margin:8vh auto;padding:24px}.auth-shell .brand{margin-bottom:34px}.auth-shell .card{padding:32px}.auth-shell h1{margin:10px 0 20px}.auth-shell .button{width:100%;margin-top:12px}@media(max-width:700px){.course-switch{display:block;margin:0 0 24px}.course-switch label{margin-bottom:8px}.course-switch .button{margin:8px 6px 0 0}.material-grid{grid-template-columns:1fr}.auth-shell{margin:3vh auto;padding:18px}.auth-shell .card{padding:24px}}
