:root{--bg:#f7f7f2;--paper:#fff;--ink:#292c29;--muted:#72766e;--line:#e4e6dd;--accent:#68508d;--accent-dark:#513b75;--lilac:#e9e3f4;--mint:#e6eee3;--peach:#f6e7dc;--blue:#e2ebf1;--radius:22px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.55}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}a{color:inherit;text-decoration:none}svg{flex-shrink:0}.icon{width:22px;height:22px;vertical-align:middle}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-weight:650;letter-spacing:-.035em;line-height:1.18}h1{font-size:clamp(29px,3.2vw,40px);margin-bottom:12px}h2{font-size:22px}h3{font-size:19px}p{margin-bottom:16px}strong{font-weight:650}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #9672c8;outline-offset:4px}input,select,textarea{width:100%;border:1px solid #d7d9ce;background:#fff;border-radius:12px;min-height:48px;padding:12px 14px;font-size:16px}textarea{resize:vertical;line-height:1.5}select{padding-right:30px}input[type=date]{min-width:0;-webkit-appearance:none}input[type=search]{-webkit-appearance:none}input::placeholder,textarea::placeholder{color:#95988e}[hidden]{display:none!important}.muted{color:var(--muted)}.small{font-size:12px;color:var(--muted);line-height:1.6}.eyebrow{font-size:11px;letter-spacing:.13em;font-weight:650;text-transform:uppercase;color:var(--muted);margin-bottom:14px}.lilac{background:var(--lilac)}.mint{background:var(--mint)}.peach{background:var(--peach)}.blue{background:var(--blue)}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:11px 19px;border-radius:12px;background:white;border:1px solid var(--line);font-size:14px;font-weight:600;line-height:1.4;transition:background .15s,transform .15s}.button:hover:not(:disabled){background:#eeeee7}.button:active:not(:disabled){transform:translateY(1px)}.primary{background:var(--accent);color:white;border-color:var(--accent)}.primary:hover:not(:disabled){background:var(--accent-dark)}.text-button{border-color:transparent;background:transparent;padding-left:9px;padding-right:9px;color:var(--accent)}.icon-button{width:44px;min-height:44px;padding:9px;border-radius:11px}.text-link{color:var(--accent);font-size:13px;font-weight:600;display:inline-flex;align-items:center;gap:6px}.text-link .icon{width:17px}.stack{display:flex;flex-direction:column;gap:12px}.layout{display:flex;min-height:100vh;min-height:100dvh}.sidebar{width:238px;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);padding:39px 24px 24px;display:flex;flex-direction:column;background:#f1f2ea;z-index:10}.brand{display:flex;align-items:center;font-size:39px;letter-spacing:-.065em;font-weight:700;line-height:1}.brand-icon{width:43px;height:43px;background:var(--accent);color:#fff;border-radius:14px;display:grid;place-items:center;margin-right:10px}.brand-icon .icon{width:28px;height:28px}.brand-dot{color:var(--accent)}.side-label{font-size:9px;font-weight:600;letter-spacing:.16em;color:#8b8e82;margin:26px 0 31px 3px}.sidebar nav{display:flex;flex-direction:column;gap:8px}.nav-item{display:flex;align-items:center;gap:13px;padding:13px;border-radius:12px;color:#70756a;font-size:14px}.nav-item.active{background:#e2ddd0;color:#373c32;font-weight:650}.nav-item:hover{background:#e7e8df}.nav-item .icon{width:20px;height:20px}.side-bottom{margin-top:auto;padding:35px 12px 4px}.side-bottom>.icon{width:31px;height:31px;color:#7a8970;transform:rotate(-15deg);margin-bottom:18px}.side-bottom p{font-size:14px;color:#6c7365;line-height:1.7}.local-note{display:flex;align-items:center;gap:6px;font-size:10px;color:#888e7e;margin-top:28px}.local-note .icon{width:14px;height:14px}.workspace{margin-left:238px;flex:1;min-width:0}.topbar{height:85px;padding:0 52px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;color:#8a8e83;font-size:10px;font-weight:600;letter-spacing:.12em}.privacy-badge{display:flex;align-items:center;gap:7px;letter-spacing:0;font-size:11px;font-weight:400;color:#7c8273}.privacy-badge .icon{width:16px;height:16px}.mobile-brand{display:none}main:not(.study-screen):not(.recovery){max-width:1210px;margin:auto;padding:43px 52px 50px;outline:none}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:29px}.page-heading p.muted{margin:0;font-size:14px}.heading-actions{display:flex;gap:9px;align-items:center;flex-shrink:0}.hero{border-radius:var(--radius);background:#e9e4f2;display:flex;overflow:hidden;position:relative;min-height:300px;margin-bottom:25px;align-items:center;padding:31px 39px}.hero-copy{max-width:430px;position:relative;z-index:1}.hero-tag{display:flex;align-items:center;gap:6px;font-size:9px;letter-spacing:.13em;font-weight:650;color:#6f5d83;margin-bottom:20px}.hero-tag .icon{width:15px;height:15px}.hero h2{font-family:Georgia,"Times New Roman",serif;font-size:43px;font-weight:400;line-height:1.06;letter-spacing:-.045em;margin-bottom:17px}.hero p{color:#70667b;font-size:13px;max-width:305px;margin-bottom:21px}.hero .button{padding:12px 20px}.book-art{width:245px;position:absolute;right:24px;bottom:30px;transform:rotate(-7deg)}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:40px;border:1px solid var(--line);border-radius:16px;background:#fcfcf8;padding:20px 5px}.stats-row>div{display:flex;gap:16px;padding:0 25px;align-items:center;justify-content:flex-start}.stats-row>div+div{border-left:1px solid var(--line)}.stats-row>.icon{color:#8e9585}.stats-row .icon{color:#8f9587;width:23px;height:23px}.stats-row strong{display:block;font-size:25px;line-height:1.1;letter-spacing:-.05em}.stats-row span{display:block;font-size:11px;color:var(--muted);margin-top:5px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.section-heading h2{margin:0;font-size:20px;display:flex;gap:10px;align-items:center}.section-heading h2>span{font-size:11px;letter-spacing:0;background:#e8eae1;border-radius:8px;padding:3px 7px;color:#7a8171}.section-heading .text-button{font-size:12px;min-height:35px}.section-heading .text-button .icon{width:17px;height:17px}.subjects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:34px}.subject-card{padding:22px;border:1px solid #00000004;border-radius:18px;display:block;transition:transform .2s;min-width:0}.subject-card:hover{transform:translateY(-3px)}.folder-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.tile-icon{display:inline-flex;align-items:center;justify-content:center;border-radius:12px;width:46px;height:46px;flex-shrink:0;color:#645474}.subject-card .tile-icon{background:#ffffff70}.subject-card.peach .tile-icon{color:#99724d}.subject-card.mint .tile-icon{color:#5e7757}.subject-card.blue .tile-icon{color:#55768b}.subject-card h3{font-size:21px;overflow-wrap:anywhere;margin-bottom:8px}.subject-card p{font-size:11px;color:#787481;margin-bottom:24px}.subject-card p>span{padding:0 5px}.card-bottom{display:flex;align-items:center;gap:16px}.card-bottom>.icon{margin-left:auto;width:17px;height:17px}.mini-progress{display:block;height:4px;background:#0000000c;border-radius:8px;overflow:hidden;flex:1}.mini-progress>span{display:block;height:100%;background:#89739f;border-radius:8px}.new-subject{min-height:199px;border:1px dashed #cfd2c6;border-radius:18px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#798071}.new-subject>.icon{width:33px;height:33px;margin-bottom:4px}.new-subject strong{font-size:14px}.new-subject span{font-size:11px;color:#989e91}.new-subject:hover{background:#f0f2e8}.home-lower{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(215px,1fr);gap:23px}.set-list{display:flex;flex-direction:column;gap:12px}.set-card{display:flex;gap:16px;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:20px;min-width:0}.set-card:hover{border-color:#b4a5c5}.set-card>.icon{width:18px;margin-left:auto;color:#9b9e91}.set-info{min-width:0;flex:1}.set-info h3{font-size:16px;margin:4px 0 7px;overflow-wrap:anywhere}.set-info p{font-size:11px;color:var(--muted);margin:0}.set-info>.small{font-size:10px}.due-pill{color:#706482;background:#efebf5;white-space:nowrap;font-size:10px;padding:5px 9px;border-radius:7px}.due-pill.quiet{background:#edf1e6;color:#768367}.home-lower .set-card{padding:18px 15px;gap:12px}.home-lower .due-pill{display:none}.tip-card{border:1px solid var(--line);padding:25px;border-radius:18px;background:#f0f2e9}.tip-card>.icon{width:26px;height:26px;color:#7c8a6b;margin-bottom:22px;transform:rotate(-15deg)}.tip-card .eyebrow{font-size:9px;letter-spacing:.1em;margin-bottom:9px}.tip-card h3{font-family:Georgia,serif;font-size:24px;font-weight:400;line-height:1.1}.tip-card p:not(.eyebrow){font-size:12px;color:#7b8271}.tip-card>div{display:flex;justify-content:space-between;border-top:1px solid #dce1d3;padding-top:15px;color:#6f7b61;font-size:10px}.footer{max-width:1210px;margin:auto;padding:0 52px 25px;color:#969b8d;font-size:10px;display:flex;justify-content:space-between;gap:15px}.bottom-nav{display:none}.back-link{display:inline-flex;align-items:center;gap:8px;color:#807389;font-size:12px;margin-bottom:26px}.back-link .icon{width:18px;height:18px}.study-setup{display:grid;grid-template-columns:1fr 270px;gap:36px;background:#eee9f5;border-radius:22px;padding:30px;margin-bottom:23px}.study-setup h2{font-size:26px;margin:22px 0 10px}.study-setup p{color:#7d7289;font-size:13px;max-width:360px;margin:0}.study-setup>.study-options{display:flex;flex-direction:column;gap:10px}.study-options label{font-size:12px;font-weight:600;margin-bottom:2px}.study-options select{border-color:#d4cbe0;background:#ffffffba;font-size:14px}.source-note{color:var(--muted);font-size:12px;margin:-12px 0 35px}.source-note summary{cursor:pointer;padding:10px 0;color:var(--accent)}.source-note p{max-width:700px}.search{display:block;margin:0 0 17px}.search>span{display:block;font-size:12px;margin-bottom:8px}.search input{max-width:400px;background:#fcfcf8;font-size:14px}.card-table{border:1px solid var(--line);background:#fff;border-radius:16px;overflow:hidden}.card-row{display:grid;grid-template-columns:25px 1fr 1fr 58px;gap:20px;padding:23px 20px;align-items:start}.card-row+.card-row{border-top:1px solid var(--line)}.card-number{font-size:11px;color:#aaaea0;margin-top:3px}.card-row p{margin:6px 0 0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.card-row .small{font-size:9px;letter-spacing:.08em;color:#a0a591}.row-end{display:flex;align-items:center;gap:9px}.row-end .icon-button{background:transparent;border:0;width:36px;min-height:40px;padding:8px;color:#969b8e}.row-end .icon{width:18px;height:18px}.status-dot{width:7px;height:7px;flex-shrink:0;border-radius:100%;background:#d9dccf}.status-dot.learning{background:#c3a670}.status-dot.known{background:#7b9e74}.panel{border:1px solid var(--line);border-radius:20px;background:#fff;padding:30px}.panel h2{font-size:22px}.panel p,.panel li{font-size:14px;line-height:1.7}.panel .tile-icon{margin-bottom:24px}.panel ol{padding-left:23px}.panel li{margin-bottom:12px}.settings-grid,.progress-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.settings-grid .small,.progress-grid .small{font-size:12px;color:var(--muted)}.progress-grid{margin-bottom:35px}.big-number{font-family:Georgia,serif;font-size:78px;line-height:1.1;color:var(--accent);margin-bottom:17px;letter-spacing:-.065em}.big-number span{font-size:35px;margin-left:7px}.week-chart{display:grid;grid-template-columns:repeat(7,1fr);gap:12px;align-items:end;margin:22px 0}.week-chart>div{text-align:center;font-size:10px;color:#929887}.bar-track{height:130px;margin:8px auto;background:#f4f4ee;border-radius:6px;display:flex;align-items:end;overflow:hidden;max-width:28px}.bar-track>span{display:block;width:100%;background:#b8a6d5;border-radius:6px}.bar-count{color:#756783}.subject-progress{display:flex;align-items:center;gap:17px;padding:20px;border:1px solid var(--line);border-radius:15px;background:#fff;margin-bottom:12px}.subject-progress>div{flex:1}.subject-progress .mini-progress{margin-top:12px;max-width:600px}.subject-progress>span:last-child{font-size:12px;color:var(--muted)}.notice{background:#f3f2e9;border-radius:12px;padding:16px;font-size:12px;color:#77764f;margin:18px 0;line-height:1.6}.notice.danger{background:#fceae5;color:#954e3b}.status-line{font-size:12px!important;color:#71865d;border-top:1px solid var(--line);padding-top:15px}.empty{border:1px dashed #d9ddcd;border-radius:20px;text-align:center;padding:55px 25px;margin:20px 0;color:var(--muted)}.empty>.icon{width:40px;height:40px;color:#a3ae92;margin-bottom:16px}.empty h2{color:var(--ink)}.empty p{font-size:14px}.empty .button{margin-top:10px}.skip-link{position:fixed;left:20px;top:-100px;z-index:1000;padding:15px;background:white}.skip-link:focus{top:15px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:#33382e;color:#fff;padding:15px 23px;border-radius:14px;z-index:1000;font-size:13px;max-width:calc(100% - 32px);width:max-content;box-shadow:0 6px 25px #0002;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--line);border-radius:22px;padding:27px;max-width:min(540px,calc(100vw - 28px));width:100%;color:var(--ink);background:var(--bg);box-shadow:0 20px 80px #2223;max-height:88vh;max-height:88dvh;overflow:auto}dialog::backdrop{background:#242a2266;backdrop-filter:blur(3px)}dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}dialog h2{font-size:24px;margin:0}dialog p{font-size:14px}.field{display:flex;flex-direction:column;gap:8px;font-size:13px;margin-bottom:20px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.destructive{color:#a26654;font-size:12px}.danger-button{background:#a65d48;color:white;border-color:#a65d48}.danger-button:hover:not(:disabled){background:#8f4936}.form-error{color:#a65d48}.recovery{max-width:650px;margin:60px auto;padding:30px}.recovery .brand{margin-bottom:45px}.recovery h1{font-size:32px}.study-screen{max-width:850px;margin:0 auto;padding:24px 35px 45px;outline:none}.study-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.study-header>.button{font-size:12px;gap:6px;color:#7b7f70;padding-left:0}.study-header>.button>.icon{width:18px}.study-header>div{display:flex;flex-direction:column;text-align:center;min-width:0;max-width:65%}.study-header>div span{font-size:10px;letter-spacing:.09em;color:#939984}.study-header>div strong{font-size:14px;overflow-wrap:anywhere}.study-count{font-size:12px;color:#848c79;white-space:nowrap}.session-progress{height:4px;background:#e8eade;border-radius:5px;overflow:hidden;margin-bottom:28px}.session-progress>span{height:100%;display:block;background:#9f87bb;transition:width .3s}.study-body{max-width:600px;margin:auto}.study-meta{display:flex;justify-content:space-between;color:#8a8e80;font-size:11px;margin-bottom:15px}.flashcard-wrap{perspective:900px;position:relative}.flashcard{width:100%;min-height:360px;border:1px solid #ddd5e9;background:#ebe5f5;border-radius:26px;box-shadow:0 9px 0 -5px #e0d9e9,0 14px 0 -7px #e9e5ee;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:30px 38px;color:#4d4160;touch-action:pan-y;position:relative;transition:background .18s;user-select:none;-webkit-user-select:none}.flashcard.flipped{background:#fffdfa;border-color:#e2dfd2;color:#42483b}.flashcard-label{font-size:10px;letter-spacing:.12em;color:#998aa9;line-height:1.5}.flashcard.flipped .flashcard-label{color:#a5a58e}.flashcard-text{font-family:Georgia,"Times New Roman",serif;font-size:clamp(24px,3.5vw,34px);line-height:1.3;letter-spacing:-.025em;padding:30px 0;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.flashcard.flipped .flashcard-text{font-family:inherit;font-size:22px;line-height:1.55;font-weight:400;letter-spacing:-.02em}.flashcard-bottom{display:flex;align-items:center;gap:8px;font-size:11px;color:#9b8bac}.flashcard-bottom>.icon{width:15px;height:15px}.flashcard.flipped .flashcard-bottom{color:#a0a18d}.study-hint{text-align:center;font-size:12px;color:#949985;margin:26px 0 22px}.answer-actions{display:grid;grid-template-columns:1fr 1fr;gap:18px}.answer-button{border-radius:16px;border:1px solid;min-height:79px;display:flex;align-items:center;gap:13px;justify-content:center;font-size:16px;font-weight:600;padding:13px}.answer-button span{display:flex;flex-direction:column;text-align:left}.answer-button small{font-size:10px;font-weight:400;margin-top:5px;opacity:.75}.answer-button.right{background:#e5eddf;border-color:#cddac2;color:#607551}.answer-button.wrong{background:#f4e7df;border-color:#e6d6ca;color:#98705b}.answer-button:not(:disabled):hover{filter:brightness(.97)}.study-tools{display:flex;justify-content:center;gap:25px;margin-top:21px}.study-tools .button{font-size:12px;color:#8e858e}.study-tools .icon{width:17px;height:17px}.keyboard-hint{font-size:10px;color:#a5aa99;text-align:center;margin-top:23px}.session-result{text-align:center;margin:55px auto;max-width:460px}.result-icon{display:grid;place-items:center;width:100px;height:100px;border-radius:50%;background:#e9e4f3;color:#89709e;margin:0 auto 35px}.result-icon>.icon{width:43px;height:43px}.session-result h1{font-family:Georgia,serif;font-weight:400;font-size:45px}.session-result p{color:#8a8f7f}.session-result .button{margin:7px}.result-stats{display:flex;gap:55px;justify-content:center;margin:30px 0}.result-stats span{color:#8b9180;font-size:13px}.result-stats strong{display:block;font-size:32px;color:#7b698f}.countdown{font-size:30px;font-family:Georgia,serif;font-weight:400;color:#8e789f}#swipe-label{position:absolute;top:65px;opacity:0;pointer-events:none;border:2px solid;border-radius:8px;transform:rotate(-8deg);padding:8px 15px;font-size:20px;font-weight:700}#swipe-label.right{color:#648a53}#swipe-label.wrong{color:#a26f53}
@media(min-width:1400px){.book-art{right:60px;width:280px}.hero{min-height:325px}.hero-copy{max-width:490px}.hero h2{font-size:49px}.hero p{max-width:340px}}
@media(max-width:1150px){.sidebar{width:205px;padding:35px 17px}.workspace{margin-left:205px}main:not(.study-screen):not(.recovery){padding:35px 30px}.topbar{padding:0 30px}.footer{padding:0 30px 25px}.book-art{width:200px;right:2px;bottom:40px}.hero{padding:30px}.hero-copy{max-width:60%}.hero h2{font-size:40px}.home-lower{grid-template-columns:minmax(0,1.35fr) minmax(200px,1fr)}.subjects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-row>div{padding:0 19px;gap:12px}.settings-grid{gap:16px}.panel{padding:24px}}
@media(max-width:850px){.sidebar{width:175px;padding:30px 13px}.workspace{margin-left:175px}.side-label{font-size:8px}.brand{font-size:33px}.brand-icon{width:36px;height:36px}.brand-icon .icon{width:24px;height:24px}.nav-item{padding:13px 10px;gap:10px;font-size:12px}main:not(.study-screen):not(.recovery){padding:30px 24px}.topbar{height:70px;padding:0 24px}.hero{padding:25px}.hero h2{font-size:36px}.hero p{font-size:12px}.book-art{width:175px;right:-10px}.hero-copy{max-width:65%}.stats-row>div{padding:0 12px;gap:8px}.stats-row .icon{width:19px}.stats-row strong{font-size:23px}.stats-row span{font-size:10px}.home-lower{grid-template-columns:1fr}.tip-card{display:none}.study-setup{grid-template-columns:1fr;gap:24px}.study-setup>.study-options{max-width:none}.settings-grid,.progress-grid{grid-template-columns:1fr}.card-row{grid-template-columns:18px 1fr 1fr 40px;padding:18px 13px;gap:12px}.row-end{gap:0}.footer{font-size:9px;flex-direction:column;gap:4px}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.page-heading{align-items:flex-start}.page-heading .heading-actions .button{font-size:12px;padding:11px}.wrap{flex-wrap:wrap}}
@media(max-width:650px){.sidebar{display:none}.workspace{margin-left:0;padding-bottom:75px}.topbar{padding:0 23px;padding-top:env(safe-area-inset-top);height:calc(70px + env(safe-area-inset-top));background:var(--bg)}.desktop-only{display:none}.mobile-brand{display:block;letter-spacing:-.065em;font-size:32px;color:var(--ink);font-weight:700;line-height:1}.mobile-brand span{color:var(--accent)}.privacy-badge{font-size:10px}.privacy-badge .icon{width:14px}main:not(.study-screen):not(.recovery){padding:29px 23px 35px}.page-heading{margin-bottom:25px;gap:14px}.page-heading .eyebrow{font-size:9px;margin-bottom:10px}h1{font-size:29px}.page-heading p.muted{font-size:12px;max-width:300px}.heading-actions{gap:7px}.heading-actions .icon-button{width:41px;min-height:43px}.hero{min-height:284px;padding:25px;border-radius:20px;margin-bottom:18px}.hero h2{font-size:38px;line-height:1.05}.hero-tag{font-size:8px;margin-bottom:17px}.hero p{font-size:11px;max-width:195px;line-height:1.65;margin-bottom:18px}.hero .button{font-size:12px;min-height:43px;padding:11px 14px}.hero .button .icon{width:17px}.hero-copy{max-width:73%}.book-art{width:165px;right:-28px;bottom:51px;opacity:.86}.stats-row{padding:18px 0;border-radius:14px;margin-bottom:30px}.stats-row>div{padding:0 12px;gap:8px}.stats-row .icon{width:19px;height:19px}.stats-row strong{font-size:23px}.stats-row span{font-size:9px;margin-top:5px;white-space:nowrap}.section-heading{margin-bottom:15px;gap:7px}.section-heading h2{font-size:18px}.section-heading h2>span{font-size:10px}.section-heading .text-button{font-size:11px;gap:5px;padding:8px 0}.subjects-grid{gap:12px;margin-bottom:29px}.subject-card{padding:18px 16px;border-radius:16px}.folder-top{margin-bottom:23px}.tile-icon{width:39px;height:39px;border-radius:11px}.tile-icon .icon{width:21px}.folder-top>.small{font-size:10px}.subject-card h3{font-size:20px}.subject-card p{font-size:10px;margin-bottom:18px}.subject-card p>span{padding:0 3px}.new-subject{min-height:205px;border-radius:16px;gap:7px}.new-subject strong{font-size:12px}.new-subject span{font-size:9px}.new-subject>.icon{width:27px}.set-card{padding:17px 14px;gap:12px}.set-card h3{font-size:16px}.set-card>.icon{width:16px}.due-pill{font-size:9px;padding:4px 6px}.set-card .due-pill{display:none}.bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;height:calc(66px + env(safe-area-inset-bottom));padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#fbfcf7f5;border-top:1px solid #e1e4d7;backdrop-filter:blur(15px);z-index:20}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#929984;font-size:9px}.bottom-nav .icon{width:21px;height:21px}.bottom-nav a.active{color:var(--accent)}.bottom-nav a.active .icon{background:#e9e3f2;border-radius:7px;box-shadow:0 0 0 5px #e9e3f2}.footer{padding:0 23px 25px;line-height:1.6;font-size:9px}.back-link{margin-bottom:20px;font-size:11px}.study-setup{padding:25px;border-radius:19px}.study-setup h2{font-size:25px;margin-top:17px}.study-options label{font-size:11px}.study-setup p{font-size:12px}.study-setup .tile-icon{background:#e3daf0}.study-options{margin-top:0}.source-note{font-size:11px;margin-bottom:25px}.wrap{align-items:center;gap:12px}.wrap .heading-actions{width:100%;justify-content:space-between}.card-row{grid-template-columns:19px minmax(0,1fr) 34px;gap:10px;padding:19px 14px}.card-row>div:nth-child(3){grid-column:2;grid-row:2;border-top:1px solid #f0f1e9;padding-top:9px}.card-row .row-end{grid-column:3;grid-row:1 / 3;flex-direction:column;gap:8px}.card-row p{font-size:13px}.row-end .icon-button{min-height:44px;width:38px}.card-row .small{font-size:8px}.panel{padding:24px;border-radius:18px}.panel h2{font-size:21px}.panel p,.panel li{font-size:13px}.settings-grid{gap:17px}.subject-progress{padding:16px}.subject-progress strong{font-size:14px}#toast{bottom:calc(85px + env(safe-area-inset-bottom));font-size:12px;padding:13px 18px}.study-screen{padding:calc(14px + env(safe-area-inset-top)) 21px calc(25px + env(safe-area-inset-bottom));overflow-x:clip}.study-header{margin-bottom:18px;gap:12px}.study-header>.button{font-size:10px;gap:3px}.study-header>.button .icon{width:16px}.study-header>div strong{font-size:13px}.study-header>div span{font-size:9px}.study-count{font-size:11px}.session-progress{margin-bottom:24px}.study-meta{font-size:10px}.flashcard{min-height:355px;border-radius:22px;padding:26px 23px}.flashcard-text{font-size:29px;padding:30px 0}.flashcard.flipped .flashcard-text{font-size:20px}.flashcard-label{font-size:9px}.flashcard-bottom{font-size:10px}.study-hint{font-size:11px;margin:27px 0 18px}.answer-actions{gap:12px}.answer-button{font-size:14px;min-height:75px;gap:9px;padding:10px}.answer-button small{font-size:9px}.answer-button>.icon{width:20px}.study-tools{margin-top:15px;gap:18px}.keyboard-hint{display:none}.session-result{margin:45px auto}.session-result h1{font-size:39px}.session-result p{font-size:13px}.session-result .eyebrow{font-size:8px}.result-stats{gap:40px}.recovery{margin:30px auto;padding:25px}dialog{padding:24px 21px}dialog h2{font-size:23px}.dialog-actions{flex-wrap:wrap}dialog .dialog-actions .button{font-size:13px}}
@media(max-width:360px){main:not(.study-screen):not(.recovery){padding-left:17px;padding-right:17px}.topbar{padding-left:17px;padding-right:17px}.hero{padding:22px}.hero h2{font-size:35px}.book-art{width:112px;right:-25px;bottom:65px;opacity:.7}.hero p{max-width:150px}.stats-row>div{padding:0 8px;gap:6px}.stats-row .icon{display:none}.subject-card{padding:16px 13px}.new-subject span{font-size:8px}.study-screen{padding-left:16px;padding-right:16px}.flashcard-text{font-size:26px}.flashcard.flipped .flashcard-text{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
