:root{--ink:#10282a;--muted:#647676;--paper:#f5f6f0;--card:#fff;--green:#0e6966;--mint:#def1e9;--line:#dfe6df;--amber:#eaa244;--amberbg:#fff0d8;--red:#b94c43;--redbg:#fae3df;--shadow:0 14px 38px rgba(24,57,55,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer}.shell{width:min(1160px,calc(100% - 32px));margin:auto;padding:22px 0 100px}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.brand{display:flex;align-items:center;gap:11px;font-weight:850;letter-spacing:-.02em}.logo{width:42px;height:42px;border-radius:14px;background:var(--ink);color:white;display:grid;place-items:center;font-size:20px;box-shadow:0 8px 22px #10282a2e}.actions{display:flex;align-items:center;gap:10px}.privacy{display:flex;gap:7px;align-items:center;padding:8px 11px;border-radius:99px;background:var(--mint);color:var(--green);font-size:12px;font-weight:800}.avatar{width:38px;height:38px;border-radius:50%;background:#dfe8e1;display:grid;place-items:center;font-size:12px;font-weight:850}
.account{display:flex;flex-direction:column;align-items:flex-end;line-height:1.15}.account b{font-size:11px;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account span{font-size:9px;color:var(--muted);margin-top:3px}.account span.saving{color:#9b671c}.account span.saved{color:var(--green)}.account span.error{color:var(--red)}.signout{font-size:10px;color:var(--muted);font-weight:750;text-decoration:none;padding:7px}.signout:hover{color:var(--ink)}
.hero{position:relative;overflow:hidden;background:linear-gradient(130deg,#0d2a2c,#11504e);color:white;border-radius:29px;padding:27px;box-shadow:0 18px 44px #0b25272c}.hero:after{content:"";position:absolute;right:-60px;top:-100px;width:300px;height:300px;border:65px solid #ffffff0d;border-radius:50%}.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.5fr .82fr;gap:28px;align-items:end}.eyebrow{color:#9fd6cc;font-size:11px;font-weight:850;letter-spacing:.13em;text-transform:uppercase}h1{font-size:clamp(30px,5vw,48px);line-height:1.03;letter-spacing:-.045em;margin:9px 0 12px}.hero-copy{color:#c7dcda;font-size:14px;line-height:1.55;margin:0;max-width:620px}.focus{display:flex;align-items:center;gap:10px;border-top:1px solid #ffffff20;margin-top:15px;padding-top:14px}.focus-num{width:32px;height:32px;background:#ffffff17;border-radius:10px;display:grid;place-items:center;font-weight:850}.focus-copy{font-size:11px;color:#cbe0dd}.focus-copy b{display:block;color:#fff;font-size:13px}
.exam{background:#ffffff15;border:1px solid #ffffff24;border-radius:20px;padding:18px;backdrop-filter:blur(8px)}.exam.empty{border-style:dashed}.exam-label{font-size:11px;font-weight:800;color:#a8cfca}.exam-title{font-size:20px;font-weight:850;margin:5px 0}.exam-meta{font-size:12px;color:#d5e5e3;margin-bottom:15px}.btn{border:0;border-radius:11px;padding:10px 13px;font-weight:780;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:.18s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:#fff;color:var(--ink)}.btn-green{background:var(--green);color:#fff}.btn-soft{background:#edf3ee;color:var(--ink)}.btn-sm{padding:8px 10px;font-size:11px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin:15px 0}.stat,.card{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow)}.stat{border-radius:16px;padding:17px}.stat-label{font-size:11px;font-weight:750;color:var(--muted);margin-bottom:8px}.stat-value{font-size:28px;line-height:1;font-weight:880;letter-spacing:-.04em}.stat-sub{font-size:10px;color:var(--muted);margin-top:7px}
.tabbar{display:flex;width:max-content;gap:4px;background:#e7ece6;padding:5px;border-radius:14px;margin:21px 0 14px}.tab{border:0;background:transparent;padding:9px 15px;border-radius:10px;color:#667776;font-weight:780;font-size:12px}.tab.active{background:white;color:var(--ink);box-shadow:0 3px 11px #19383613}.panel{display:none}.panel.active{display:block}.dashboard{display:grid;grid-template-columns:1.5fr .9fr;gap:15px}.card{border-radius:23px;padding:20px}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px}.card h2{font-size:18px;letter-spacing:-.025em;margin:0}.card-desc{font-size:11px;color:var(--muted);margin:4px 0 0}
.priority-list,.review-list{display:flex;flex-direction:column;gap:8px}.topic-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:12px;border:1px solid var(--line);border-radius:14px;transition:.18s}.topic-row:hover{border-color:#bed0c5;transform:translateY(-1px)}.topic-row.done{opacity:.62;background:#f5f7f4}.check{width:23px;height:23px;border:2px solid #b9c6bd;border-radius:8px;background:#fff;color:#fff;display:grid;place-items:center;padding:0}.check.checked{background:var(--green);border-color:var(--green)}.topic-title{font-size:13px;font-weight:780;margin-bottom:4px}.topic-meta{display:flex;gap:6px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:10px}.dot{width:7px;height:7px;border-radius:50%}.pill,.score{padding:4px 7px;border-radius:99px;font-size:9px;font-weight:850;white-space:nowrap}.pill.red{background:var(--redbg);color:var(--red)}.pill.amber{background:var(--amberbg);color:#905f19}.pill.green,.score{background:var(--mint);color:var(--green)}.review-row{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:11px 0}.review-row:last-child{border-bottom:0}.review-name{font-size:12px;font-weight:780}.review-date{font-size:10px;color:var(--muted);margin-top:3px}.empty{text-align:center;color:var(--muted);font-size:12px;padding:28px 10px}.empty-icon{width:43px;height:43px;border-radius:14px;background:var(--mint);color:var(--green);display:grid;place-items:center;margin:0 auto 9px;font-size:19px}
.week{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.day{min-height:150px;padding:13px;border:1px solid var(--line);border-radius:15px;background:#fbfcf9}.day-name{font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}.day-date{font-size:20px;font-weight:880;margin:3px 0 11px}.chip{border-left:3px solid var(--green);background:#eaf4ef;border-radius:7px;padding:8px;margin-bottom:7px;font-size:10px;line-height:1.35}.chip b{display:block;margin-bottom:2px}.chip.study{border-color:var(--amber);background:var(--amberbg)}
.subjects{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.subject{border:1px solid var(--line);border-radius:18px;padding:16px}.subject-top{display:flex;justify-content:space-between;gap:10px}.subject-name{font-size:14px;font-weight:830}.subject-count{font-size:10px;color:var(--muted);margin-top:3px}.bar{height:8px;background:#e6ece6;border-radius:99px;overflow:hidden}.bar span{display:block;height:100%;border-radius:inherit}.subject>.bar{margin:12px 0}.topics{display:flex;flex-direction:column;gap:7px}.mini{display:flex;align-items:center;gap:8px;font-size:11px;color:#3f5555}.mini .check{width:19px;height:19px;border-radius:6px;font-size:9px}.star{border:0;background:transparent;color:#b8c1ba;font-size:19px;padding:1px}.star.on{color:var(--amber)}
.progress-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:15px}.ring-wrap{min-height:275px;display:grid;place-items:center}.ring{--p:0;width:180px;height:180px;border-radius:50%;background:conic-gradient(var(--green) calc(var(--p)*1%),#e5ebe6 0);display:grid;place-items:center;position:relative}.ring:after{content:"";position:absolute;width:142px;height:142px;background:white;border-radius:50%}.ring-label{position:relative;z-index:1;text-align:center}.ring-value{font-size:36px;font-weight:880;letter-spacing:-.05em}.ring-text{font-size:10px;color:var(--muted)}.bars{display:flex;flex-direction:column;gap:16px}.bar-head{display:flex;justify-content:space-between;font-size:11px;margin-bottom:6px}.bar-head b{font-size:12px}
.modal-bg{position:fixed;inset:0;background:#091f208c;display:none;align-items:center;justify-content:center;padding:17px;z-index:50;backdrop-filter:blur(4px)}.modal-bg.open{display:flex}.modal{width:min(470px,100%);max-height:90vh;overflow:auto;background:white;border-radius:23px;padding:22px;box-shadow:0 28px 80px #0003}.modal h2{font-size:22px;margin:0 0 5px}.modal>p{margin:0 0 17px;color:var(--muted);font-size:12px}.field{margin-bottom:13px}.field label{display:block;font-size:11px;font-weight:780;margin-bottom:6px}.field input,.field select{width:100%;padding:11px;border:1px solid #ccd7cf;background:#fbfcf9;color:var(--ink);border-radius:11px;outline:0}.field input:focus,.field select:focus{border-color:var(--green);box-shadow:0 0 0 3px #0e696619}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:19px}.toast{position:fixed;left:50%;bottom:86px;transform:translate(-50%,18px);opacity:0;pointer-events:none;background:var(--ink);color:white;padding:10px 14px;border-radius:11px;font-size:11px;font-weight:750;box-shadow:0 10px 30px #0003;transition:.22s;z-index:80}.toast.show{opacity:1;transform:translate(-50%,0)}.mobile-nav{display:none}
@media(max-width:800px){.shell{width:min(100% - 22px,680px);padding-top:12px}.topbar{margin-bottom:12px}.brand span{font-size:13px}.privacy span,.account,.signout{display:none}.hero{padding:21px;border-radius:23px}.hero-grid{grid-template-columns:1fr;gap:17px}.hero-copy{font-size:12px}.stats{grid-template-columns:repeat(2,1fr);gap:8px}.stat{padding:14px}.stat-value{font-size:24px}.tabbar{display:none}.dashboard,.progress-layout{grid-template-columns:1fr}.card{border-radius:19px;padding:16px}.week,.subjects{grid-template-columns:1fr}.day{min-height:auto}.mobile-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:30;background:#fffffff0;backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:17px;padding:5px;box-shadow:0 12px 35px #1434322e}.mobile-tab{border:0;background:transparent;color:#728280;border-radius:11px;padding:7px 2px;font-size:9px;font-weight:780}.mobile-tab span{display:block;font-size:16px}.mobile-tab.active{background:var(--mint);color:var(--green)}}
@media(max-width:420px){h1{font-size:30px}.topic-row{grid-template-columns:auto 1fr}.score{grid-column:2;width:max-content}.avatar{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
