@font-face{font-family:Filora;src:local("Segoe UI")}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f7f5fb;color:#302b50;font:15px/1.55 Filora,"Segoe UI",system-ui,sans-serif}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #9673ce}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.2}h1{font-weight:650;letter-spacing:-1.7px}h2{font-size:22px;font-weight:620;letter-spacing:-.5px}h3{font-size:17px;font-weight:620}p{color:#77718d}svg.icon{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}button .icon{width:18px;height:18px}.brand{display:inline-flex;align-items:center;gap:10px;font-size:26px;font-weight:650;letter-spacing:-1px;color:#302b50}.brand img{width:38px;height:38px}.brand small{font-size:10px;letter-spacing:1px;background:#e9e2f7;color:#62469b;padding:4px 7px;border-radius:5px;margin-left:3px}.btn{border:1px solid transparent;border-radius:10px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:550;font-size:14px;min-height:44px;background:#7752ab;color:#fff;transition:background .15s,transform .15s}.btn:hover{background:#654395}.btn.secondary{color:#574b6d;background:white;border-color:#e4dff0}.btn.secondary:hover{background:#f3eff9}.btn.ghost{background:transparent;color:#746388;border-color:transparent}.btn.ghost:hover{background:#eee8f6}.btn.danger{color:#a33c53;background:#fff3f5;border-color:#f0d4da}.btn.small{min-height:34px;padding:6px 12px;font-size:12px}.icon-button{display:inline-grid;place-items:center;width:36px;height:36px;border:0;border-radius:9px;background:transparent;color:#77718d}.icon-button:hover{background:#eee8f6}.eyebrow{font-size:11px;font-weight:650;letter-spacing:2px;text-transform:uppercase;color:#927caa}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:7px;font-size:11px;line-height:1.3;padding:6px 9px;background:#f0ebf8;color:#7752ab;font-weight:550}.muted{color:#77718d}.small{font-size:12px}.row{display:flex;align-items:center;gap:12px}.between{display:flex;justify-content:space-between;align-items:center;gap:16px}.stack{display:grid;gap:18px}.divider{height:1px;background:#eee9f4;margin:22px 0}.loading{display:grid;place-items:center;min-height:70vh;color:#77718d}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:550;color:#574b6d}.field input,.field select,.field textarea,.search input{border:1px solid #e4dff0;background:#fff;border-radius:9px;color:#302b50;padding:11px 12px;width:100%;min-height:44px;outline-color:#9673ce}.field textarea{resize:vertical;min-height:110px;line-height:1.6}.field input::placeholder,.field textarea::placeholder{color:#aaa3b9}.field small{font-weight:400;color:#8b839d}.form-error{color:#a33c53;font-size:13px;margin:0}.notice{padding:13px 16px;border:1px solid #e4dff0;background:#f9f7fd;border-radius:10px;font-size:12px;color:#786b8b}.notice.warning{background:#fff8ec;border-color:#f1dfbc;color:#8b652e}.notice.error{color:#a33c53;border-color:#f0d4da;background:#fff6f7}.hidden{display:none!important}.site-nav{max-width:1180px;margin:auto;padding:26px 32px;display:flex;justify-content:space-between;align-items:center}.site-links{display:flex;align-items:center;gap:30px;font-size:13px;color:#77718d}.landing{max-width:1180px;margin:55px auto 0;padding:20px 32px 70px}.hero{display:grid;grid-template-columns:1.12fr 1fr;gap:70px;align-items:center;min-height:460px}.hero h1{font-size:clamp(46px,5.5vw,70px);line-height:1.07;margin:20px 0 24px}.hero h1 em{font-family:Georgia,serif;font-weight:400;color:#9673ce}.hero p{font-size:17px;line-height:1.8;max-width:450px}.hero .row{margin:28px 0 15px}.hero-paper{position:relative;background:#fff;border:1px solid #e4dff0;border-radius:18px;padding:30px;box-shadow:0 18px 65px #60408d0c;transform:rotate(-2deg)}.paper-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.paper-top .pill{background:#eee8f7}.hero-paper h3{font-family:Georgia,serif;font-size:29px;font-weight:400;margin-bottom:20px}.paper-line{height:7px;background:#eeeaf3;border-radius:3px;margin:11px 0;width:100%}.paper-line.short{width:68%}.paper-line.medium{width:86%}.paper-highlight{margin:22px 0;padding:16px;border-left:3px solid #bca3de;background:#f7f3fc;font-size:13px;color:#69577f}.paper-bottom{margin-top:23px;display:flex;align-items:center;gap:8px;font-size:12px;color:#8b7c9b}.floating-label{position:absolute;right:-18px;bottom:45px;background:#e9e2f7;padding:12px 16px;border:5px solid #f7f5fb;border-radius:12px;font-size:12px;transform:rotate(2deg);color:#62469b}.public-section{margin-top:80px;padding-top:36px;border-top:1px solid #e4dff0}.public-section h2{font-size:30px;max-width:450px}.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:42px;margin-top:35px}.step-number{font-family:Georgia,serif;color:#b3a0ce;font-size:34px}.steps-grid p{font-size:14px;line-height:1.8}.site-footer{max-width:1180px;margin:0 auto;padding:24px 32px;border-top:1px solid #e4dff0;display:flex;justify-content:space-between;color:#8b839d;font-size:12px}.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{padding:48px 12%;background:#eee8f7;display:flex;flex-direction:column;justify-content:space-between}.auth-story h1{font:400 54px/1.14 Georgia,serif;letter-spacing:-1.5px;max-width:420px;margin:80px 0 25px}.auth-story p{max-width:360px;color:#8b779f;line-height:1.8}.thread-art{height:110px;color:#b39bce;width:260px;fill:none;stroke:currentColor;stroke-width:2}.auth-form-side{display:flex;align-items:center;justify-content:center;padding:44px 30px;background:#fff}.auth-card{width:100%;max-width:375px}.auth-card h2{font-size:29px;margin-bottom:9px}.auth-card .intro{font-size:14px;margin-bottom:28px}.auth-card form{display:grid;gap:17px}.auth-card .btn{width:100%}.auth-switch{margin:23px 0;text-align:center;font-size:13px;color:#77718d}.text-button{border:0;background:none;color:#7752ab;font-weight:600;padding:0;cursor:pointer}.or{display:flex;align-items:center;gap:12px;color:#a49bb1;font-size:11px;margin:25px 0 18px}.or:before,.or:after{content:"";height:1px;background:#eee9f4;flex:1}.providers{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.provider{display:flex;flex-direction:column;align-items:center;gap:5px;border:1px solid #e4dff0;background:#fff;border-radius:9px;padding:12px 5px;color:#77718d;font-size:12px}.provider b{font-size:18px;color:#574b6d}.provider small{font-size:9px}.auth-foot{font-size:11px;color:#aaa3b9;line-height:1.7;margin-top:25px}.onboarding{max-width:850px;margin:0 auto;padding:50px 26px}.onboard-head{text-align:center;margin:75px 0 35px}.onboard-head h1{font-size:42px;margin:13px 0 18px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.mode-card{background:#fff;border:1px solid #e4dff0;border-radius:16px;padding:30px;text-align:left;position:relative;color:#302b50}.mode-card[aria-pressed=true]{border-color:#9673ce;box-shadow:0 0 0 2px #9673ce25}.mode-card .mode-icon{display:grid;place-items:center;width:50px;height:50px;background:#f0ebf8;color:#7752ab;border-radius:14px;margin-bottom:26px}.mode-card .mode-icon svg{width:25px;height:25px}.mode-card h2{margin-bottom:12px}.mode-card p{font-size:13px;line-height:1.8;margin-bottom:0}.selection-dot{position:absolute;top:24px;right:24px;width:18px;height:18px;border:1px solid #d8cde7;border-radius:50%}.mode-card[aria-pressed=true] .selection-dot{background:#7752ab;border:4px solid #e9e2f7}.onboard-bottom{text-align:center;margin-top:30px}.onboard-bottom p{font-size:12px;margin:18px 0}.onboard-bottom .btn{min-width:230px}.workspace{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{background:#f0ecf7;border-right:1px solid #e4dff0;padding:30px 20px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .brand{padding:0 12px;margin-bottom:34px;font-size:25px}.sidebar .brand img{width:34px;height:34px}.mode-select{display:flex;gap:5px;background:#e7e0f1;padding:4px;border-radius:10px;margin-bottom:25px}.mode-select button{flex:1;border:0;background:transparent;color:#8d7f9e;padding:8px;font-size:12px;border-radius:7px}.mode-select button.active{background:#fff;color:#7752ab;box-shadow:0 2px 5px #52367708;font-weight:600}.nav-item{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:#80738f;padding:12px 15px;text-align:left;border-radius:9px;font-size:13px;margin-bottom:5px}.nav-item.active{background:#e4daf1;color:#62469b;font-weight:600}.nav-item:hover{background:#e9e2f2}.nav-label{padding:25px 15px 12px;font-size:10px;letter-spacing:1.4px;color:#a094af;text-transform:uppercase}.subject-nav{display:flex;align-items:center;gap:10px;padding:8px 15px;color:#82758e;font-size:12px;border:0;background:none;text-align:left;width:100%;border-radius:8px}.subject-nav:hover{background:#e9e2f2}.color-dot{width:8px;height:8px;background:#b39bce;border-radius:3px;display:inline-block;flex-shrink:0}.dot-peach{background:#e3b7a0}.dot-sage{background:#a3b8a5}.dot-blue{background:#a1b5d8}.dot-rose{background:#d5a2b5}.sidebar-spacer{flex:1;min-height:20px}.local-note{font-size:11px;padding:13px;color:#9a8da8;border-top:1px solid #e4dff0}.user-card{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;text-align:left;padding:12px;color:#625570}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#dfd2ee;color:#7752ab;font-size:12px;font-weight:650;flex-shrink:0}.user-card strong{font-size:12px;font-weight:550;display:block}.user-card small{font-size:10px;color:#9a8da8}.workspace-body{min-width:0}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 42px;border-bottom:1px solid #eae5f1;background:#fcfaff}.breadcrumbs{display:flex;align-items:center;gap:10px;color:#a092ae;font-size:12px;min-width:0}.breadcrumbs strong{color:#736581;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .search{width:260px}.search{display:flex;align-items:center;gap:8px}.search .icon{color:#a499b1;width:17px}.search input{background:transparent;border:0;min-height:36px;padding:6px;font-size:12px}.page-content{max-width:1200px;margin:0 auto;padding:40px 42px 70px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.page-heading h1{font-size:34px;letter-spacing:-1px;margin:4px 0 10px}.page-heading p{font-size:13px;margin:0}.welcome-banner{padding:28px 30px;background:#eee7f7;border-radius:16px;display:flex;justify-content:space-between;gap:25px;margin-bottom:32px;position:relative;overflow:hidden}.welcome-banner h2{font:400 31px/1.2 Georgia,serif;color:#684c8c;margin:10px 0 14px}.welcome-banner p{font-size:13px;max-width:420px;margin-bottom:0;color:#927da7}.welcome-banner .icon{align-self:center;width:100px;height:100px;stroke-width:.7;color:#c8b6df;transform:rotate(-8deg);margin-right:16px}.stats{display:flex;gap:40px;margin:0 0 38px;padding:0 4px}.stat strong{display:block;font-size:24px;font-weight:550;color:#736082}.stat span{font-size:11px;color:#a095ad}.section-header{display:flex;justify-content:space-between;align-items:center;margin:32px 0 18px}.section-header h2{font-size:18px;margin:0}.section-header button{font-size:12px;color:#927da7;border:0;background:none}.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.subject-card{border:1px solid #e6e0ed;border-radius:13px;padding:23px;background:#fff;text-align:left;cursor:pointer;color:#302b50;transition:transform .15s,border-color .15s;min-width:0}.subject-card:hover{transform:translateY(-2px);border-color:#bfa8d9}.subject-card .folder-icon{width:38px;height:38px;display:grid;place-items:center;background:#f0eaf8;color:#9c7fbd;border-radius:10px;margin-bottom:23px}.subject-card h3{font-size:15px;overflow-wrap:anywhere;margin-bottom:7px}.subject-card p{font-size:11px;margin:0}.subject-card .folder-icon.peach{background:#faf0e8;color:#c2967f}.subject-card .folder-icon.sage{background:#edf3eb;color:#8fa287}.subject-card .folder-icon.blue{background:#edf1fa;color:#8d9fbe}.subject-card .folder-icon.rose{background:#f9edf2;color:#c18fa4}.add-subject{border:1px dashed #d8cce5;background:transparent;display:grid;place-items:center;min-height:160px;text-align:center;color:#a590b7;font-size:13px}.add-subject .icon{margin:auto auto 10px;width:24px;height:24px}.lesson-list{background:#fff;border:1px solid #e6e0ed;border-radius:13px;overflow:hidden}.lesson-row{display:flex;gap:15px;align-items:center;width:100%;padding:19px 23px;border:0;border-bottom:1px solid #f0ecf6;background:#fff;text-align:left;color:#574b6d}.lesson-row:last-child{border-bottom:0}.lesson-row:hover{background:#fcfaff}.file-icon{display:grid;place-items:center;min-width:38px;height:43px;border-radius:8px;background:#f7f3fc;color:#b49acb}.lesson-info{flex:1;min-width:0}.lesson-info strong{display:block;font-size:13px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lesson-info small{font-size:11px;color:#a297ac}.lesson-row .date{font-size:10px;color:#a69bb1}.lesson-row .pill{font-size:10px}.empty-state{padding:44px 28px;text-align:center;border:1px dashed #ded4e9;border-radius:14px;background:#fcfaff}.empty-state .empty-icon{background:#eee7f7;border-radius:16px;display:grid;place-items:center;width:56px;height:56px;margin:0 auto 20px;color:#a185bf}.empty-state h2{font-size:20px;margin:0 0 12px}.empty-state p{font-size:13px;max-width:390px;margin:0 auto 22px}.filters{display:flex;gap:8px;margin-bottom:22px;align-items:center;flex-wrap:wrap}.filter{border:1px solid #e4dff0;background:#fff;border-radius:7px;font-size:11px;padding:7px 12px;color:#94859f}.filter.active{background:#e9e2f7;border-color:#e1d5ef;color:#7752ab}.profile-panel{max-width:650px;background:white;border:1px solid #e4dff0;border-radius:14px;padding:30px}.profile-panel form{display:grid;gap:20px}.profile-panel .mode-grid{gap:12px}.profile-panel .mode-card{padding:20px}.profile-panel .mode-card h2{font-size:17px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:25px;align-items:start}.editor-layout.sources-wide{grid-template-columns:minmax(0,1fr)}.editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.editor-head .row{gap:7px}.save-status{font-size:11px;color:#9b8ba9;display:flex;align-items:center;gap:6px}.save-status.saved{color:#79977a}.save-status.error{color:#a33c53}.editor-paper{background:#fff;border:1px solid #e4dff0;border-radius:12px;min-height:550px;overflow:hidden}.editor-tools{border-bottom:1px solid #eee9f4;padding:9px 16px;display:flex;align-items:center;gap:5px}.tool{border:0;background:none;border-radius:5px;padding:5px 10px;color:#9685a3;font-size:12px;min-height:30px}.tool:hover{background:#f1ebf8}.editor-tools .small{margin-left:auto;color:#b0a3bb;font-size:10px}.note-title{display:block;width:100%;font:500 30px/1.3 Georgia,serif;color:#463357;border:0;background:none;padding:30px 36px 14px;outline:none}.note-editor{display:block;width:100%;min-height:420px;resize:vertical;border:0;background:none;outline:none!important;padding:6px 36px 36px;font:15px/1.95 Filora,"Segoe UI",sans-serif;color:#756680}.note-editor::placeholder{color:#c2b7cb}.editor-footer{padding:12px 24px;border-top:1px solid #f1edf6;color:#ab9db6;font-size:10px;display:flex;justify-content:space-between}.side-panel{border:1px solid #e4dff0;border-radius:12px;background:#fcfaff;padding:20px}.side-panel h3{font-size:13px;font-weight:550;margin:0 0 20px}.side-panel .field{font-size:11px;margin-bottom:16px}.side-panel select,.side-panel input{font-size:12px;padding:8px;min-height:36px}.side-panel .source-mini{font-size:12px;display:flex;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #eee9f4;color:#927da7;width:100%;text-align:left;background:none;border:0}.source-mini span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-mini small{font-size:10px;color:#b0a2bd}.future-feature{padding:16px;background:#f1edf7;border-radius:9px;margin-top:25px}.future-feature .pill{font-size:9px;background:#e5dbf1}.future-feature h3{font-size:13px;margin:10px 0}.future-feature p{font-size:11px;line-height:1.7;margin:0;color:#a08daf}.tabs{display:flex;gap:22px;border-bottom:1px solid #e4dff0;margin-bottom:26px}.tab{padding:12px 1px;border:0;border-bottom:2px solid transparent;background:none;font-size:12px;color:#a08daf}.tab.active{color:#7752ab;border-bottom-color:#9673ce;font-weight:600}.sources-layout{display:grid;grid-template-columns:250px 1fr;gap:24px}.source-pick{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #e4dff0;padding:15px;border-radius:10px;margin-bottom:10px;width:100%;text-align:left;color:#8d789f}.source-pick.active{border-color:#9673ce;background:#f3edf9}.source-pick strong{font-size:12px;font-weight:550;display:block;overflow-wrap:anywhere}.source-pick small{font-size:10px;color:#a69ab0}.source-content{background:white;border:1px solid #e4dff0;border-radius:12px;padding:25px;min-width:0}.source-text{white-space:pre-wrap;overflow-wrap:anywhere;color:#756680;font-size:13px;line-height:1.85;max-height:650px;overflow:auto}.source-content h3{overflow-wrap:anywhere}.pdf-page{border-top:1px solid #eee9f4;padding:18px 0}.pdf-page h4{font-size:11px;color:#b0a2bd}.pdf-page p{white-space:pre-wrap;margin:0}.version{padding:17px 0;border-bottom:1px solid #eee9f4}.version p{font-size:12px;white-space:pre-wrap;margin:10px 0;color:#a08daf}.version small{font-size:10px;color:#a08daf}dialog{border:1px solid #e4dff0;border-radius:17px;padding:28px;width:min(540px,calc(100vw - 32px));max-height:88vh;color:#302b50;box-shadow:0 25px 80px #302b5020;background:#fcfaff}dialog::backdrop{background:#30213c55;backdrop-filter:blur(3px)}dialog h2{font-size:24px;margin:0}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}dialog form{display:grid;gap:17px}dialog .dialog-actions{margin-top:10px}.upload-box{position:relative;border:1px dashed #cdbbdf;border-radius:11px;padding:23px;text-align:center;background:#f4effa;color:#9b83af}.upload-box .icon{width:24px;height:24px;margin-bottom:8px}.upload-box label{display:block;cursor:pointer}.upload-box strong{display:block;font-size:13px;font-weight:550;color:#8c6ba8}.upload-box small{font-size:11px}.upload-box input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.upload-box:focus-within{outline:2px solid #9673ce;outline-offset:3px}.file-chosen{font-size:12px;color:#7752ab;margin-top:8px;overflow-wrap:anywhere}.colors{display:flex;gap:11px}.color-choice{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:3px solid transparent;background:#e9e2f7}.color-choice[aria-pressed=true]{border-color:#9673ce}.color-choice.peach{background:#f3dfd2}.color-choice.sage{background:#dfe9db}.color-choice.blue{background:#dfe5f4}.color-choice.rose{background:#f0dbe5}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(15px);opacity:0;pointer-events:none;background:#463357;color:#fff;padding:12px 22px;font-size:13px;border-radius:11px;z-index:30;transition:opacity .2s,transform .2s;max-width:calc(100vw - 36px);box-shadow:0 10px 30px #302b5020}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}.mobile-menu{display:none}.danger-link{color:#ae8394;font-size:11px;background:none;border:0;padding:10px 0;display:flex;gap:7px;align-items:center}.revision-notice{margin-bottom:15px}.subject-actions{display:flex;gap:8px;flex-wrap:wrap}@media(min-width:1450px){.page-content{padding-top:50px}.hero{gap:100px}.workspace{grid-template-columns:260px 1fr}.sidebar{padding:32px 24px}.editor-layout{grid-template-columns:minmax(0,1fr) 310px}}@media(max-width:1080px){.workspace{grid-template-columns:205px 1fr}.sidebar{padding-left:12px;padding-right:12px}.topbar{padding:0 26px}.page-content{padding:30px 26px}.subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-layout{grid-template-columns:minmax(0,1fr)}.editor-aside{display:grid;grid-template-columns:1fr 1fr;gap:18px}.editor-aside .future-feature{margin-top:0}.hero{gap:35px}.sources-layout{grid-template-columns:200px 1fr}}@media(max-width:760px){.site-nav{padding:22px}.site-links>a:not(.btn){display:none}.landing{margin-top:25px;padding:10px 24px 50px}.hero{grid-template-columns:1fr;gap:40px}.hero h1{font-size:49px}.hero p{font-size:15px}.hero-paper{margin:10px 8px 0;padding:24px;max-width:470px}.floating-label{right:-10px}.steps-grid{grid-template-columns:1fr;gap:16px}.public-section{margin-top:60px}.site-footer{padding:22px;gap:15px}.auth-page{grid-template-columns:1fr}.auth-story{padding:25px;background:transparent}.auth-story>div:last-child,.auth-story h1,.auth-story p,.auth-story .thread-art{display:none}.auth-form-side{padding:25px 25px 50px;background:transparent;align-items:start}.auth-card{max-width:400px}.onboard-head{margin-top:45px}.onboard-head h1{font-size:34px}.mode-card{padding:22px}.mode-card .mode-icon{margin-bottom:20px}.workspace{display:block}.sidebar{position:fixed;z-index:20;left:0;top:0;width:240px;transform:translateX(-100%);transition:transform .2s;box-shadow:15px 0 60px #302b5010}.sidebar.open{transform:translateX(0)}.mobile-menu{display:grid}.topbar{height:65px;padding:0 20px;gap:10px}.topbar .search{width:160px}.page-content{padding:27px 20px 50px}.page-heading h1{font-size:29px}.page-heading .btn{font-size:12px;padding:9px 11px}.page-heading{gap:10px;align-items:start}.welcome-banner{padding:22px}.welcome-banner h2{font-size:28px}.welcome-banner .icon{width:65px;height:65px;margin:0}.welcome-banner p{font-size:12px}.stats{gap:30px}.stat strong{font-size:21px}.lesson-row{padding:16px;gap:11px}.lesson-row .date{display:none}.lesson-row .pill{max-width:83px}.editor-head{flex-wrap:wrap}.note-title{font-size:27px;padding:25px 23px 13px}.note-editor{padding:6px 23px 30px;font-size:14px}.editor-aside{grid-template-columns:1fr}.sources-layout{grid-template-columns:1fr}.sources-list{display:flex;gap:8px;overflow-x:auto}.source-pick{min-width:200px}.topbar .pill{display:none}.breadcrumbs{max-width:140px}.editor-tools{padding:9px}.editor-tools .small{display:none}.source-content .between{align-items:start;flex-direction:column}.profile-panel{padding:23px}.site-footer span:last-child{font-size:10px}.search input{width:100%}}@media(max-width:430px){.mode-grid{gap:10px}.mode-card{padding:19px 15px}.mode-card h2{font-size:21px}.mode-card p{font-size:12px}.subject-grid{gap:12px}.subject-card{padding:18px}.subject-card h3{font-size:13px}.subject-card p{font-size:10px}.hero h1{font-size:44px}.brand{font-size:24px}.brand img{width:32px;height:32px}.page-heading{flex-wrap:wrap}.page-heading>div{width:100%}.source-content{padding:19px}.profile-panel .mode-grid{grid-template-columns:1fr}.editor-head .btn{font-size:11px}.stats{gap:24px}.welcome-banner .icon{display:none}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;transform:none!important}}.sidebar-close{display:none}@media(max-width:760px){.sidebar{visibility:hidden}.sidebar.open{visibility:visible}.sidebar-close{display:grid;position:absolute;top:15px;right:9px}}.editor-layout>*{min-width:0}.side-panel{min-width:0}.side-panel .field{min-width:0}.side-panel input,.side-panel select{min-width:0;max-width:100%;width:100%}.side-panel .source-mini{overflow-wrap:anywhere}.side-panel .source-mini span{min-width:0}.workspace .workspace-body>.page-content{width:100%;max-width:1840px;min-width:0;margin-inline:auto}.page-content :is(.f4-home,.settings-layout,.p-settings-page){width:100%;max-width:none;min-width:0}.workspace .page-heading>div{min-width:0}.workspace .page-heading p{max-width:78ch}.page-content .settings-layout{max-width:1480px;margin-inline:auto}.page-content .assistant-hub{max-width:1480px;margin-inline:auto}.page-content .assistant-workspace{max-width:1100px;margin-inline:auto;min-width:0}.assistant-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}.assistant-controls{min-width:0}.assistant-layout>.assistant-workspace{width:100%;max-width:none;margin:0}.assistant-controls .assistant-subject-panel{grid-template-columns:minmax(0,1fr);gap:16px}.assistant-controls .assistant-paths .row{grid-template-columns:minmax(0,1fr)}.assistant-controls .assistant-paths{margin-bottom:0}.assistant-controls .assistant-path-heading{flex-direction:column;align-items:start;gap:6px}.assistant-controls .assistant-library{margin-top:16px}.assistant-thread :is(.study-prose,.work-pre){max-width:85ch}.work-home-library{min-width:0;display:grid;gap:24px}.work-home-library>section{min-width:0}.work-home-library .section-header{margin:0 0 14px;gap:12px}.work-home-library .section-header h2{font-size:18px;margin:0}.workspace .note-workspace,.workspace .work-editor-layout{max-width:1420px;margin-inline:auto}.workspace :is(.note-workspace,.work-editor-layout) :is(.note-editor,.note-title){max-width:780px;margin-inline:auto}.workspace .reader-compare-notes .note-editor{max-width:none}.workspace .reader-workspace .generated-sheet{max-width:1160px;margin-inline:auto}.workspace .reader-workspace .source-text{max-width:90ch}.workspace .workspace-body>.page-content:has(.structure-reader){max-width:none}.workspace .workspace-body>.page-content:has(.reader-compare-notes){max-width:2000px}@media(min-width:1081px){.workspace .workspace-body>.page-content{padding-inline:clamp(28px,2vw,48px)}.workspace .subject-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.workspace .work-project-grid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}.sm-library .sm-item-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:12px}.workspace .sm-library .sm-item-row{border:1px solid var(--material-border);border-radius:12px;overflow:visible}.workspace .sm-library .sm-item-row .sm-item{height:100%;min-height:118px;align-items:start;padding:18px 54px 18px 16px;border-radius:12px}.sm-library .sm-status{display:none}.sm-library .study-item-mobile-status{display:block;margin-top:3px}.sm-library .sm-item>.icon{display:none}.sm-library .sm-extra-controls{grid-template-columns:repeat(auto-fit,minmax(160px,240px));justify-content:start}.sm-library .sm-extra-controls:not(:has(#subject-topic)){grid-template-columns:repeat(2,minmax(160px,240px))}.work-page .work-item-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:12px}.work-page .work-item-list .work-item-row{height:100%;border:1px solid var(--line);border-radius:12px;padding:17px;align-items:start}.work-page .work-item-list .work-item-row>span.small{display:none}.work-home-library .work-item-list{grid-template-columns:minmax(0,1fr)}.workspace .work-columns{grid-template-columns:minmax(0,1fr) minmax(300px,380px)}.workspace .work-editor-layout{grid-template-columns:minmax(0,1fr) 300px}.work-home-library .work-project-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr))}.work-home-library .work-project-card{padding:20px}.work-home-library .work-project-card{display:grid;grid-template-columns:34px minmax(0,1fr);gap:4px 12px;padding:16px}.work-home-library .work-project-card>.work-icon{grid-column:1;grid-row:1/5;padding:8px;width:34px;height:34px;align-self:start}.work-home-library .work-project-card>:not(.work-icon){grid-column:2}.work-home-library .work-project-card h3{font-size:15px;margin:0;line-height:1.5}.work-home-library .work-project-card p{font-size:12px;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.work-home-library .work-project-card small{font-size:11px}.work-home-library .work-project-card .work-tags{margin:3px 0}.work-home-library .work-project-card .work-tags:empty{display:none}}@media(max-width:1279px){.workspace .note-workspace{grid-template-columns:minmax(0,1fr)}.workspace .note-workspace>.editor-aside{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}}@media(min-width:1280px){.workspace .note-workspace>.editor-aside{grid-template-columns:minmax(0,1fr)}.workspace .sm-layout{grid-template-columns:minmax(0,1fr) 300px}}@media(min-width:1450px){.assistant-layout{grid-template-columns:300px minmax(0,1fr);gap:28px}.assistant-layout .assistant-thread{max-height:55dvh}.assistant-controls .assistant-subject-panel{padding:19px}.workspace .f4-home{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px 28px;align-items:start}.f4-home>.page-heading{grid-column:1/-1;margin-bottom:0}.f4-home>#f4-today{min-width:0}.workspace .f4-home-library{grid-template-columns:minmax(0,1fr);margin-top:0;gap:24px}.f4-home .f4-home-recent .empty-state{padding:24px 18px}.workspace .f4-home-recent .lesson-row{align-items:start;padding:16px 54px 16px 16px}.workspace .f4-home-recent .lesson-row>:is(.date,.pill,.icon){display:none}.workspace .f4-home-recent .lesson-info strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;line-height:1.5}.workspace .f4-home-recent .study-item-mobile-status{display:block;margin-top:4px}.work-home-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}.work-home-layout>.work-today{min-width:0;margin-bottom:0}.workspace .work-home .work-columns{grid-template-columns:minmax(0,1fr) minmax(240px,.7fr);gap:22px}.work-home-library .work-item-row .work-icon{display:none}.work-home-library .work-project-grid{grid-template-columns:minmax(0,1fr)}.workspace .note-workspace{grid-template-columns:minmax(0,1000px) 280px;justify-content:center}.workspace .work-editor-layout{grid-template-columns:minmax(0,1000px) 300px;justify-content:center}}@media(min-width:1450px)and (min-height:850px){.assistant-controls{position:sticky;top:100px}}@container (min-width:950px){.workspace .settings-card #profile-form{max-width:1000px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.workspace .settings-card #profile-form>:is(.form-error,.btn){grid-column:1/-1}}.mobile-app .workspace .workspace-body>.page-content{max-width:850px}.mobile-app .workspace :is(.f4-home,.work-home-layout,.assistant-layout){display:block}.mobile-app .workspace .f4-home-library{margin-top:28px}.mobile-app .assistant-controls{position:static}#subject-form .subject-colors{max-height:none;overflow:visible;border:0;padding:0;margin:0;min-width:0;display:grid;gap:12px;font-size:12px;color:inherit}.subject-colors legend{font-weight:600;margin-bottom:10px}.subject-color-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.subject-colors .colors{flex-wrap:wrap;gap:9px}.subject-colors .color-choice{width:36px;height:36px;box-shadow:inset 0 0 0 1px #88888840;outline-offset:3px}.subject-colors .color-choice[aria-pressed=true]{outline:2px solid #9673ce;outline-offset:2px}.subject-color-preview{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;box-shadow:inset 0 0 0 1px #88888860}.subject-color-custom{border:1px solid #cdbbdf;border-radius:12px}.subject-color-custom summary{padding:12px 14px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;min-height:44px;font-weight:600;list-style:none}.subject-color-custom summary::-webkit-details-marker{display:none}.subject-color-custom[open] summary span{rotate:45deg}.subject-color-tools{padding:4px 14px 15px;display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:20px}.subject-wheel-wrap{display:grid;justify-items:center;gap:12px;text-align:center}.subject-wheel-wrap small{line-height:1.5}.subject-hue-wheel{width:176px;height:176px;position:relative;border-radius:50%;background:conic-gradient(#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);touch-action:none;cursor:crosshair;flex:none;outline-offset:5px}.subject-hue-marker{position:absolute;inset:0;pointer-events:none}.subject-hue-marker:after{content:"";position:absolute;left:calc(50% - 8px);top:5px;width:16px;height:16px;border:3px solid white;box-shadow:0 0 0 1px #302b50;border-radius:50%}.subject-wheel-center{position:absolute;inset:30px;border:7px solid #fcfaff;border-radius:50%;display:grid;place-items:center;pointer-events:none;box-shadow:inset 0 0 0 1px #88888860}.subject-wheel-center .icon{width:34px;height:34px}.subject-color-sliders{display:grid;gap:9px;min-width:0}.subject-color-sliders .field{margin:0;gap:4px;font-size:12px}.subject-color-sliders input[type=range]{width:100%;min-width:0;min-height:32px;padding:0;accent-color:#9673ce;cursor:pointer}.subject-color-hex{width:100%;font-family:monospace;text-transform:uppercase}.subject-colors>small{color:inherit;opacity:.8;font-size:11px}.color-dot[data-subject-color]{flex:none}[data-theme=dark] .subject-color-custom{border-color:#66517e}[data-theme=dark] .subject-wheel-center{border-color:#211c30}[data-theme=dark] .subject-colors .color-choice[aria-pressed=true]{outline-color:#c9a9f3}@media(max-width:500px){.subject-color-tools{grid-template-columns:1fr;gap:15px}.subject-hue-wheel{width:160px;height:160px}.subject-color-sliders{grid-template-columns:1fr 1fr;gap:10px 16px}.subject-color-sliders .field:first-child{grid-column:1/-1}.subject-color-sliders .field:last-child{grid-column:1/-1}.subject-color-sliders input{max-width:100%}.subject-color-custom summary{padding:11px 12px}}
