:root{--wine:#822d43;--wine-dark:#632036;--cream:#f7f5f1;--ink:#262a35;--muted:#73777f;--line:#e6e3df;--green:#327661;--rose:#f6e9ec;--white:#fff;--radius:16px;font-family:Inter,Segoe UI,system-ui,sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:var(--wine);text-decoration:none}a:hover{text-decoration:underline}button{border:0}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b2788b;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(27px,3vw,37px);letter-spacing:-1.2px;font-weight:650;line-height:1.2}h2{font-size:21px;letter-spacing:-.4px}h3{font-size:17px}p{line-height:1.65}small,.muted{color:var(--muted)}small{font-size:12px}svg{vertical-align:middle}.icon{width:19px;height:19px;flex-shrink:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;padding:12px 17px;background:var(--wine);color:#fff;font-weight:600;font-size:13px;min-height:42px;text-decoration:none;transition:background .16s,transform .16s}.btn:hover{background:var(--wine-dark);text-decoration:none}.btn.secondary{background:white;color:var(--ink);border:1px solid var(--line)}.btn.secondary:hover{background:#f5f3f1}.btn.ghost{background:transparent;color:var(--wine);padding:9px}.btn.danger{background:#a33232}.btn.small{padding:8px 12px;min-height:34px;font-size:12px}.icon-btn{background:transparent;color:var(--muted);padding:8px;border-radius:7px}.icon-btn:hover{background:var(--cream);color:var(--wine)}.brand{display:flex;gap:11px;align-items:center;color:var(--ink);font-size:17px;font-weight:750;letter-spacing:-.6px}.brand:hover{text-decoration:none}.brand-mark{display:inline-grid;place-items:center;width:37px;height:41px;background:var(--wine);color:white;font-family:Georgia,serif;font-style:italic;font-size:31px;border-radius:10px;line-height:1}.brand small{display:block;font-weight:400;font-size:10px;letter-spacing:1.3px;margin-top:3px}.initial{text-align:center;padding:20vh 24px}.initial p{margin-top:20px}.layout{min-height:100vh;display:grid;grid-template-columns:240px 1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:#fff;border-right:1px solid var(--line);padding:32px 22px 20px;display:flex;flex-direction:column;z-index:10}.sidebar .brand{margin-bottom:40px}.nav-label{font-size:10px;color:#96979d;font-weight:650;letter-spacing:1.7px;margin:22px 12px 10px}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:9px;color:#71727d;font-size:13px;margin-bottom:5px;font-weight:500;cursor:pointer}.nav-item:hover{text-decoration:none;background:var(--cream)}.nav-item.active{background:var(--rose);color:var(--wine);font-weight:650}.sidebar-help{margin-top:auto;padding:18px 13px;background:#f8f7f4;border:1px solid #eeebe5;border-radius:12px}.sidebar-help p{font-size:11px;color:var(--muted);margin:9px 0 0;line-height:1.6}.sidebar-help strong{font-size:12px}.account{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);margin-top:22px;padding:20px 0 0}.avatar{width:34px;height:34px;display:grid;place-items:center;background:#f0e3d9;color:#805c46;border-radius:50%;font-weight:650;font-size:12px;flex-shrink:0}.account-info{flex:1;min-width:0}.account-info strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-info small{font-size:10px}.main{grid-column:2;min-width:0}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);background:#ffffff80;gap:15px}.crumb{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:9px}.crumb strong{color:var(--ink);font-weight:500}.topbar-right{display:flex;align-items:center;gap:15px;font-size:11px;color:var(--muted)}.private{display:flex;gap:6px;align-items:center}.private .icon{width:14px}.content{max-width:1340px;margin:auto;padding:37px 42px 60px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:650;text-transform:uppercase;color:var(--wine);margin-bottom:12px}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.heading-row h1{margin-bottom:9px}.heading-row p{font-size:13px;color:var(--muted);margin-bottom:0}.hero{position:relative;overflow:hidden;border-radius:18px;background:#ede8e2;padding:32px 35px;display:flex;align-items:center;justify-content:space-between;margin:24px 0 28px;min-height:200px}.hero-copy{max-width:520px;position:relative;z-index:1}.hero h2{font-family:Georgia,serif;font-size:29px;font-weight:400;letter-spacing:-.6px;line-height:1.25;margin-bottom:12px}.hero p{font-size:12px;color:#72675f;max-width:430px;margin-bottom:18px}.hero-art{width:230px;flex-shrink:0;color:var(--wine);opacity:.8;margin-right:10px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:32px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:19px 21px}.stat-head{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px;margin-bottom:10px}.stat-head .icon{width:17px;color:#a0a2a8}.stat-value{font-size:27px;font-weight:600;letter-spacing:-1px}.stat small{font-size:10px;margin-left:5px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:25px 0 18px;gap:15px}.section-head h2{margin:0;font-size:18px}.section-head p{font-size:12px;color:var(--muted);margin:6px 0 0}.search{max-width:220px;padding:9px 12px!important;background:white!important;font-size:12px!important}.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.subject-card{border:1px solid var(--line);background:#fff;border-radius:14px;padding:23px;transition:box-shadow .2s,transform .2s;min-height:240px;display:flex;flex-direction:column}.subject-card:hover{box-shadow:0 8px 25px #28212c08;transform:translateY(-2px)}.subject-card .card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.subject-symbol{height:41px;width:41px;display:grid;place-items:center;border-radius:11px;background:var(--rose);color:var(--wine);font-family:Georgia,serif;font-size:24px}.subject-card h3{margin:0 0 8px;font-weight:650;font-size:17px}.subject-card p{font-size:11px;color:var(--muted);margin-bottom:17px}.subject-card .meta{display:flex;gap:15px;font-size:10px;color:var(--muted);margin-top:auto;margin-bottom:18px}.progress-label{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:7px}.progress{height:5px;background:#efeeeb;border-radius:5px;overflow:hidden}.progress progress{width:100%;height:5px;display:block;appearance:none;border:0}.progress progress::-webkit-progress-bar{background:#efeeeb}.progress progress::-webkit-progress-value{background:var(--wine);border-radius:5px}.progress progress::-moz-progress-bar{background:var(--wine)}.subject-card footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f0eeeb;margin-top:19px;padding-top:15px}.subject-card footer small{font-size:10px}.subject-card footer a{font-size:11px;font-weight:650}.empty{background:white;border:1px dashed #d9d3cc;border-radius:14px;padding:42px 24px;text-align:center}.empty .empty-icon{display:grid;place-items:center;margin:0 auto 16px;background:var(--cream);height:50px;width:50px;border-radius:50%;color:var(--wine)}.empty h3{font-size:18px;margin-bottom:9px}.empty p{font-size:13px;max-width:440px;margin:0 auto 20px;color:var(--muted)}.empty .actions{justify-content:center}.panel{border:1px solid var(--line);border-radius:14px;background:white;padding:25px;margin-bottom:20px}.panel h2{font-size:18px}.panel p{font-size:13px}.notice{padding:14px 17px;border-radius:10px;background:#f1eee8;border:1px solid #e5dfd5;color:#75654f;font-size:12px;line-height:1.6;margin:16px 0}.notice.ai{background:#f6edf0;border-color:#ead7dd;color:#7d4054}.notice.success{background:#eaf4ee;border-color:#d3e7dc;color:#336d52}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:25px;overflow:auto}.tab{white-space:nowrap;display:flex;align-items:center;gap:7px;color:var(--muted);padding:15px 0;font-size:12px;border-bottom:2px solid transparent}.tab:hover{text-decoration:none;color:var(--wine)}.tab.active{color:var(--wine);border-color:var(--wine);font-weight:650}.tab .icon{width:16px}.count{font-size:10px;background:#eae6e0;border-radius:5px;padding:2px 5px;color:#7d7672}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.split{display:grid;grid-template-columns:1.6fr 1fr;gap:22px}.lesson{display:flex;align-items:flex-start;gap:15px;padding:19px 0;border-bottom:1px solid var(--line)}.lesson:first-child{padding-top:0}.lesson:last-child{border-bottom:0;padding-bottom:0}.file-symbol{background:#f5e9ec;color:var(--wine);font-size:10px;letter-spacing:.8px;padding:11px 8px;border-radius:8px;font-weight:700;width:44px;text-align:center}.lesson-info{flex:1;min-width:0}.lesson h3{font-size:14px;margin:0 0 6px}.lesson p{font-size:11px;color:var(--muted);margin-bottom:7px}.lesson .notes{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto;color:var(--ink);font-size:12px}.lesson time{font-size:10px;color:var(--muted)}.topic{border:1px solid var(--line);background:#fff;border-radius:13px;padding:23px;margin-bottom:13px}.topic-title{display:flex;gap:14px;align-items:flex-start}.step-number{width:30px;height:30px;flex-shrink:0;background:#f1eee8;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:650;color:#887b6a}.topic-title h3{margin:1px 0 7px;font-size:15px}.topic-main{flex:1;min-width:0}.topic p{font-size:12px;color:var(--muted);margin-bottom:12px;white-space:pre-wrap;overflow-wrap:anywhere}.topic-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid #f1eeeb;padding-top:15px;margin-top:15px}.checks{display:flex;gap:17px;flex-wrap:wrap}.checks label,.checkbox-label{display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer}.checks input,.checkbox-label input{accent-color:var(--wine);height:16px;width:16px;margin:0;flex-shrink:0}.sources{display:flex;flex-wrap:wrap;gap:7px;font-size:10px}.source{background:var(--cream);padding:5px 8px;border-radius:5px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 7px;font-size:10px;font-weight:550;background:#f2eee8;color:#897550}.badge.green{background:#e9f3ed;color:#34745a}.badge.rose{background:var(--rose);color:var(--wine)}.exercise-card{border:1px solid var(--line);border-radius:12px;padding:23px;background:white;margin-bottom:14px}.exercise-card h3{font-size:16px;margin:12px 0}.exercise-card p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;color:#5a5d67}.exercise-card footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:17px}.exercise-card small{font-size:10px}.prose{white-space:pre-wrap;line-height:1.85;font-size:14px;overflow-wrap:anywhere}.solution-step{display:grid;grid-template-columns:30px 1fr;gap:14px;margin:22px 0}.solution-step h3{font-size:14px;margin:3px 0 9px}.solution-step p{font-size:13px;color:#626670;margin-bottom:10px;white-space:pre-wrap}.formula{white-space:pre-wrap;overflow-wrap:anywhere;font-family:Cambria,Georgia,serif;font-size:19px;background:var(--cream);padding:17px;border-radius:8px;line-height:1.7}.chart{width:100%;background:#faf9f6;border:1px solid var(--line);border-radius:12px;margin-top:20px;padding:20px}.chart svg{display:block;width:100%;height:auto;max-height:420px}.chart h3{font-size:14px}.chart figcaption{font-size:11px;color:var(--muted);line-height:1.7;margin-top:14px}.chart text{font-family:Segoe UI,sans-serif;font-size:11px;fill:#727780}.chart .legend text{font-size:11px}.score{display:flex;gap:17px;align-items:center;margin-bottom:18px}.score-number{font-size:29px;font-weight:650;letter-spacing:-1px;color:var(--green)}.score-number small{font-size:14px}.feedback-list{font-size:13px;line-height:1.9;padding-left:20px}.feedback-section h3{font-size:13px;margin-bottom:9px}.attempt{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.attempt .answer{font-size:12px;background:var(--cream);padding:14px;border-radius:8px;white-space:pre-wrap;max-height:250px;overflow:auto}.timer{font-variant-numeric:tabular-nums;font-size:21px;font-weight:650;color:var(--wine)}.exam-banner{display:flex;justify-content:space-between;align-items:center;gap:15px;background:var(--rose);padding:20px;border-radius:12px;margin-bottom:20px}.exam-banner p{margin:0;font-size:12px}.exam-list{display:grid;gap:15px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{margin-bottom:19px}.field label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.field input,.field textarea,.field select,input.search{width:100%;border:1px solid #dedbd6;border-radius:8px;background:#fff;padding:11px 12px;font-size:13px;color:var(--ink)}.field textarea{resize:vertical;min-height:100px;line-height:1.6}.field small{display:block;margin-top:7px;line-height:1.6;font-size:11px}.field input[type=file]{padding:18px;background:#faf9f6;border-style:dashed}.field input[type=checkbox]{width:16px}.field input[type=color]{height:43px;padding:4px}.field input::placeholder,.field textarea::placeholder{color:#a1a0a5}.form-error{color:#a6353d;font-size:12px;line-height:1.6;margin:14px 0;white-space:pre-wrap}.form-error:empty{display:none}.full{width:100%}.auth{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.auth-story{background:#76273d;color:#fff;padding:45px 65px;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-story .brand{color:#fff}.auth-story .brand-mark{background:#ffffff1a}.auth-story .brand small{color:#d7b5bf}.auth-story h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(38px,4.3vw,64px);line-height:1.13;letter-spacing:-1.6px;max-width:510px;margin:80px 0 24px}.auth-story h1 em{color:#e7c5b3;font-style:italic}.auth-story p{font-size:14px;line-height:1.8;color:#dec8ce;max-width:400px}.auth-features{display:flex;flex-direction:column;gap:16px;margin-top:25px;font-size:12px;color:#f3e3e7}.auth-features span{display:flex;gap:12px;align-items:center}.auth-story .hero-art{width:220px;margin:auto 0 0 auto;color:#e2b6a0;opacity:.4}.auth-footer{font-size:10px;color:#c8a6b0;margin-top:35px}.auth-main{display:flex;align-items:center;justify-content:center;padding:60px 35px;background:#faf9f6}.auth-form{width:100%;max-width:350px}.auth-form h2{font-size:28px;letter-spacing:-.8px;font-weight:650;margin-bottom:12px}.auth-form>p{font-size:13px;color:var(--muted);margin-bottom:30px}.auth-switch{margin-top:23px;text-align:center;font-size:12px;color:var(--muted)}.auth-switch button{color:var(--wine);font-weight:650;background:transparent;padding:4px}.auth-form .private{font-size:10px;color:#92918d;justify-content:center;margin-top:30px}.auth-form .field{margin-bottom:20px}dialog{border:0;border-radius:18px;padding:0;width:min(560px,calc(100% - 30px));box-shadow:0 30px 100px #1d182933;max-height:90vh}dialog::backdrop{background:#25202e66;backdrop-filter:blur(3px)}#modal-body{padding:30px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}.modal-head h2{margin:0;font-size:22px}.modal-head .icon-btn{margin:-10px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.select-list{border:1px solid var(--line);border-radius:9px;max-height:240px;overflow:auto;margin-bottom:16px}.select-list label{padding:13px;display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.5;border-bottom:1px solid var(--line);cursor:pointer}.select-list label:last-child{border:0}.select-list input{accent-color:var(--wine);margin-top:3px}.select-list small{display:block}.settings-grid{max-width:760px}.loader{padding:80px;text-align:center;font-size:13px;color:var(--muted)}.spinner{display:inline-block;width:18px;height:18px;border:2px solid #d7c3c9;border-top-color:var(--wine);border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle;margin-right:8px}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;background:#292a33;color:white;padding:13px 22px;border-radius:9px;font-size:12px;box-shadow:0 8px 30px #0002;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90vw}#toast.visible{opacity:1}.loading-button{min-width:120px}.back-link{display:inline-flex;gap:6px;align-items:center;font-size:12px;margin-bottom:20px}.footer-note{text-align:center;font-size:10px;color:#99958f;margin-top:35px}.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.help-grid h3{font-size:14px}.help-grid p{font-size:12px;color:var(--muted)}.help-number{font-family:Georgia,serif;color:#b8a798;font-size:28px;margin-bottom:12px}.proposal-topic{padding:15px 0;border-bottom:1px solid var(--line)}.proposal-topic p{margin:10px 0 8px;font-size:12px;color:var(--muted)}.proposal-topic:last-child{border:0}.mobile-brand{display:none}.error-page{padding:60px 20px;text-align:center}.option-card{padding:16px;background:var(--cream);border-radius:9px;margin:15px 0}.option-card p{font-size:11px;margin:7px 0 0;color:var(--muted)}
@media(min-width:1550px){.content{padding-top:48px}.subject-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1150px){.layout{grid-template-columns:210px 1fr}.sidebar{width:210px;padding:28px 16px}.content{padding:30px 28px}.topbar{padding:0 28px}.subject-grid{grid-template-columns:repeat(2,1fr)}.hero-art{width:175px}.stats{gap:10px}.stat{padding:16px}.auth-story{padding:40px}.split{grid-template-columns:1fr}}
@media(max-width:760px){.layout{display:block}.sidebar{position:static;width:100%;padding:16px 20px;display:block;border:0;border-bottom:1px solid var(--line)}.sidebar .brand{margin-bottom:14px}.sidebar nav{display:flex;gap:5px;overflow:auto}.sidebar .nav-label,.sidebar-help,.sidebar .account{display:none}.nav-item{font-size:11px;padding:9px 10px;margin:0;white-space:nowrap}.nav-item .icon{width:16px}.main{display:block}.topbar{height:53px;padding:0 20px}.topbar-right .date{display:none}.content{padding:27px 20px 40px}.heading-row{align-items:flex-start;gap:12px}.heading-row .btn{font-size:11px;padding:10px}.heading-row p{font-size:12px}.hero{padding:25px;min-height:180px}.hero-art{position:absolute;right:-55px;width:200px;opacity:.15}.hero-copy{max-width:90%}.hero h2{font-size:26px}.hero p{font-size:11px}.stats{grid-template-columns:repeat(2,1fr);gap:10px}.stat{padding:16px}.subject-grid{grid-template-columns:1fr 1fr;gap:12px}.subject-card{padding:18px}.subject-card h3{font-size:15px}.subject-card .meta{gap:10px}.subject-card footer{align-items:flex-start;gap:8px}.tabs{gap:20px}.tab{font-size:11px}.topic{padding:19px}.topic-footer{align-items:flex-start;flex-direction:column}.auth{grid-template-columns:1fr}.auth-story{padding:27px}.auth-story h1{font-size:35px;max-width:100%;margin:32px 0 15px}.auth-story p{max-width:100%;margin-bottom:0;font-size:12px}.auth-story .hero-art,.auth-features,.auth-footer{display:none}.auth-main{padding:35px 25px}.auth-form{max-width:420px}.panel{padding:20px}.help-grid{grid-template-columns:1fr}.private{font-size:10px}.form-grid{grid-template-columns:1fr;gap:0}.search{max-width:155px}.exam-banner{align-items:flex-start;flex-wrap:wrap}.chart{padding:12px;margin-left:0;margin-right:0}.chart svg{min-height:240px}.section-head{align-items:flex-start}.subject-card footer small{font-size:9px}}
@media(max-width:440px){.subject-grid{grid-template-columns:1fr}.hero-copy{max-width:100%}.heading-row{flex-wrap:wrap}.heading-row>.btn{margin-top:4px}.subject-card{min-height:230px}.topbar-right .private{display:none}.exercise-card footer{flex-wrap:wrap}.checks{gap:12px}.stat-value{font-size:25px}#modal-body{padding:23px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.study-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,1fr);gap:22px;margin-top:20px}.study-grid>aside{min-width:0}.study-grid .checks{margin:18px 0}.study-grid .tutor-history{max-height:600px;overflow:auto;margin-bottom:20px}.tutor-turn{border-top:1px solid var(--line);padding:18px 0}.tutor-turn strong{font-size:11px;color:var(--wine)}.tutor-turn .prose{font-size:12px;margin:7px 0 15px}.quiz-question{padding:15px 0;border-bottom:1px solid var(--line);font-size:13px}.quiz-question summary{cursor:pointer;line-height:1.7;font-weight:600}.quiz-question p{margin:15px 0 0}.study-grid .chart{margin-left:0;margin-right:0}.sources{margin-bottom:10px}.source .icon{width:13px;height:13px}.source{line-height:1.7}.topic-main h3 a{color:var(--ink)}#draft-status{font-size:11px;line-height:1.7;margin-top:10px}.study-grid .panel>p.muted{font-size:12px}.study-grid>aside .panel{position:relative}
@media(max-width:1100px){.study-grid{grid-template-columns:1fr}.study-grid .tutor-history{max-height:450px}}
@media print{body,:root{background:white;color:black}.layout{display:block}.sidebar,.topbar,.tabs,.btn,.icon-btn,.back-link,#toast,dialog,form,.heading-row>.actions{display:none!important}.main{display:block}.content{padding:0;max-width:none}.panel,.topic,.exercise-card,.stat{box-shadow:none;break-inside:avoid;border-color:#ccc}.study-grid,.split{display:block}.stats{grid-template-columns:repeat(4,1fr)}.heading-row{margin:15px 0}.chart{break-inside:avoid}.tutor-history{max-height:none!important;overflow:visible!important}.prose{font-size:11pt}.progress{print-color-adjust:exact}.notice{background:white;border-color:#bbb}.sources a{color:#333}.hero-art{display:none}.subject-grid{grid-template-columns:repeat(2,1fr)}}

.status-legend{display:flex;gap:13px;flex-wrap:wrap;margin:0 0 20px;padding:13px 16px;background:#fff;border:1px solid var(--line);border-radius:10px}.status-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 7px;border-radius:5px;font-size:10px;line-height:1.5;font-weight:600}.status-dot{display:inline-block;flex-shrink:0;width:9px;height:9px;border-radius:50%;background:currentColor}.learned{color:#245a9b}.started{color:#276c48}.not_started{color:#aa353e}.status-pill.learned{background:#e8f0fc}.status-pill.started{background:#eaf5ed}.status-pill.not_started{background:#fceced}.topic-map-counts{display:flex;flex-wrap:wrap;gap:5px;margin:16px 0 12px}.topic-status-map{max-height:220px;overflow-y:auto;border-top:1px solid var(--line);margin-bottom:3px;scrollbar-width:thin}.topic-status-row{display:flex;align-items:center;gap:8px;font-size:11px;padding:10px 0;border-bottom:1px solid #f0eeeb}.topic-status-row:hover{background:#faf9f7;text-decoration:none}.topic-status-title{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.5}.topic-status-label{font-size:9px;white-space:nowrap;flex-shrink:0}.topic-map-empty{margin:15px 0 0;font-size:11px!important}.progress progress::-webkit-progress-value{background:#3272bd}.progress progress::-moz-progress-bar{background:#3272bd}.status-legend .status-pill{font-size:11px}.subject-card .meta{margin-top:0}.subject-card{min-height:280px}.status-dot{print-color-adjust:exact}.topic-status-row.learned .status-dot{background:#3272bd}.topic-status-row.started .status-dot{background:#328450}.topic-status-row.not_started .status-dot{background:#c6464a}
@media print{.topic-status-map{max-height:none;overflow:visible}.status-legend,.status-pill{print-color-adjust:exact}}

/* Menu dello studente, con accesso diretto a tutte le sezioni. */
.sidebar{padding-top:25px}.sidebar .brand{margin-bottom:17px}.sidebar nav{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;padding-right:3px}.sidebar .nav-label{margin-top:17px}.sidebar .nav-item{padding:10px 12px;font-size:12px}.sidebar-help{margin-top:16px;padding:12px}.sidebar-help p{font-size:10px;margin-top:6px}.account{margin-top:15px;padding-top:15px}.menu-toggle,.menu-backdrop{display:none}.workspace-choice{margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:14px}.workspace-choice h2{margin:0;font-size:18px}.workspace-choice p{margin:0;color:var(--muted);font-size:12px}.workspace-choice .btn{margin-top:auto}.nav-item[aria-current=page]{font-weight:650}
@media(max-height:820px) and (min-width:761px){.sidebar-help{display:none}.sidebar .brand{margin-bottom:8px}.sidebar .nav-label{margin-top:12px}.sidebar .nav-item{padding:8px 12px}}
@media(max-width:760px){.layout>.sidebar{position:fixed;inset:0 auto 0 0;width:min(285px,85vw);height:100dvh;z-index:40;display:flex;flex-direction:column;background:white;padding:24px 20px;border-right:1px solid var(--line);transform:translateX(-105%);transition:transform .2s ease}.sidebar .brand{margin-bottom:15px}.sidebar nav{display:block;overflow-y:auto}.sidebar .nav-label{display:block}.sidebar .account{display:flex}.sidebar .nav-item{font-size:13px;padding:12px}.sidebar .sidebar-help{display:none}.menu-toggle{display:inline-flex;align-items:center;gap:6px;color:var(--wine);font-size:12px;flex-shrink:0}.menu-is-open>.sidebar{transform:translateX(0)}.menu-is-open>.menu-backdrop{display:block;position:fixed;inset:0;background:#20212c66;z-index:35;border:0}.topbar .crumb{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.topbar{gap:10px}.menu-is-open>.sidebar .account{display:flex}}
@media print{.menu-toggle,.menu-backdrop{display:none!important}}

.verification-subjects{display:flex;gap:9px;overflow-x:auto;padding:4px 0 15px;margin-bottom:5px}.subject-filter{flex-shrink:0;padding:11px 17px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--muted);font-size:12px;font-weight:600}.subject-filter.selected{background:var(--wine);border-color:var(--wine);color:white}.verification-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.verification-toolbar .search{max-width:330px;flex:1;min-width:200px}#verification-filter,.verification-table select{border:1px solid var(--line);padding:9px 12px;border-radius:7px;background:white;font:inherit;font-size:12px;color:var(--ink)}#verification-summary{margin-left:auto;display:flex;gap:5px;flex-wrap:wrap}.verification-table-scroll{overflow-x:auto;background:white;border:1px solid var(--line);border-radius:13px}.verification-table{width:100%;border-collapse:collapse;min-width:820px;text-align:left;font-size:12px}.verification-table th{background:#f1eee8;color:#746c65;font-size:10px;text-transform:uppercase;letter-spacing:.8px;padding:16px}.verification-table td{padding:18px 16px;border-top:1px solid var(--line);vertical-align:top}.verification-table td:first-child{min-width:220px;width:28%}.verification-table td:nth-child(3){width:27%}.verification-table small{display:block;font-size:10px;line-height:1.6;margin-top:6px}.verification-title{display:flex;gap:8px;align-items:flex-start;font-weight:650;line-height:1.6;color:var(--ink)}.verification-title .icon{margin-top:1px;width:16px;flex-shrink:0}.verification-table .status-pill{margin:0 0 5px;white-space:normal}.verification-table .status-dot{width:8px;height:8px}.verification-note{font-size:11px;color:var(--muted);line-height:1.8;margin:16px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:760px){#verification-summary{margin-left:0;width:100%}.verification-toolbar .search{max-width:none}.verification-table-scroll{border-radius:9px}}@media print{.verification-toolbar,.verification-subjects{display:none}.verification-table{min-width:0;font-size:9px}.verification-table-scroll{overflow:visible}.verification-table td,.verification-table th{padding:8px}.verification-table td:first-child{min-width:0}.verification-table select{display:none}}

/* Identità StudentiSapienza */
.brand{font-size:16px;letter-spacing:-.55px}.brand-mark{width:40px;height:40px;object-fit:contain;flex-shrink:0;display:block;background:transparent;border-radius:11px}.brand small{font-size:9px;letter-spacing:1.1px}.auth-story .brand-mark{background:transparent}.initial .brand-mark{margin:0 auto}.sidebar .brand{gap:10px}

.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;max-width:1000px;margin-top:25px}.profile-grid .panel{margin:0}.profile-grid .panel>p{font-size:12px;color:var(--muted)}a.account-info{color:var(--ink);text-decoration:none}a.account-info:hover strong{color:var(--wine)}@media(max-width:1000px){.profile-grid{grid-template-columns:1fr}}

.password-control{position:relative;display:flex;align-items:center}.password-control input{padding-right:46px}.password-toggle{position:absolute;right:6px;display:grid;place-items:center;width:34px;height:34px;border-radius:7px;background:transparent;color:var(--muted)}.password-toggle:hover{background:var(--cream);color:var(--wine)}.password-toggle[aria-pressed=true]{color:var(--wine)}.password-toggle .icon{width:19px;height:19px}
