:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#20382f;background:#f5f7f6;font-synthesis:none;--green:#145c50;--green-dark:#103e37;--mint:#e5f2eb;--line:#dce5df;--muted:#687b71;--red:#b33c39;--white:#fff}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.55}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:4px}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button{border:0;border-radius:10px;background:var(--green);color:white;padding:.72rem 1.1rem;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;line-height:1.35}button:hover{filter:brightness(.95)}button.secondary,.button.secondary{background:#fff;color:var(--green);border:1px solid var(--line)}button.ghost{background:transparent;color:var(--muted)}button.danger{background:#fff0ef;color:var(--red)}button.small{padding:.48rem .7rem;font-size:.875rem}.button{display:inline-flex;padding:.65rem 1rem;border-radius:10px;font-weight:600;align-items:center;gap:.5rem}.button:hover{text-decoration:none}svg.icon{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;letter-spacing:-1px;line-height:1.2;font-weight:650;margin-bottom:.6rem}h2{font-size:1.25rem;letter-spacing:-.4px;font-weight:650;margin-bottom:1rem}h3{font-size:1rem;margin-bottom:.4rem}p{margin-bottom:1rem}small,.muted{color:var(--muted)}small{font-size:.875rem}.eyebrow{text-transform:uppercase;font-size:.75rem;letter-spacing:1.7px;font-weight:700;color:var(--green);margin-bottom:.8rem}.shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:30px 18px 20px;position:fixed;inset:0 auto 0 0;width:244px;display:flex;flex-direction:column;z-index:10}.brand{font-size:1.25rem;letter-spacing:-.6px;display:flex;align-items:center;gap:9px;font-weight:750;color:var(--green-dark);padding:0 10px;margin-bottom:36px}.brand-mark{display:grid;place-items:center;width:34px;height:36px;border-radius:10px;background:var(--green);color:white;font-weight:800;font-size:23px}.nav-label{font-size:.75rem;letter-spacing:1.4px;color:var(--muted);padding:0 13px;margin:15px 0 9px}.nav-item{display:flex;width:100%;background:transparent;color:var(--muted);justify-content:flex-start;gap:12px;border-radius:9px;padding:12px 14px;margin-bottom:5px;font-weight:500}.nav-item.active{background:var(--mint);color:var(--green);font-weight:650}.nav-item .count{margin-left:auto;background:#fff;border-radius:6px;font-size:.8rem;padding:0 6px}.side-bottom{margin-top:auto}.side-note{background:#f5f8f6;padding:16px;border:1px solid #e5ece7;border-radius:12px;margin:30px 5px 16px;font-size:.875rem}.side-note p{margin:7px 0 0;color:var(--muted)}.user-chip{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding:18px 7px 0}.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#efe9db;color:#7b6536;font-size:.9rem;font-weight:700}.user-chip strong{font-size:.875rem;display:block}.user-chip small{font-size:.75rem}.user-chip button{margin-left:auto;padding:7px}.main{grid-column:2;min-width:0}.topbar{height:78px;padding:0 40px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.7)}.breadcrumb{color:var(--muted);font-size:.875rem}.topbar .today{margin-left:auto;font-size:.875rem;color:var(--muted)}.mobile-menu{display:none}.content{max-width:1400px;margin:auto;padding:36px 40px 60px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.page-heading p{margin:0;color:var(--muted)}.hero{display:grid;grid-template-columns:1fr 220px;background:var(--green-dark);border-radius:18px;padding:31px 34px;color:#fff;overflow:hidden;min-height:224px;margin-bottom:24px;position:relative}.hero h2{font-size:1.7rem;max-width:490px;margin-bottom:9px;line-height:1.25;color:#fff}.hero p{color:#bfd6cc;max-width:500px;margin-bottom:20px;font-size:.94rem}.hero .eyebrow{color:#b1d9c5}.hero button{background:#e0efb3;color:#244630}.hero-art{position:relative;display:flex;align-items:center;justify-content:center}.sheet{position:absolute;transform:rotate(10deg);background:#f5f8ec;width:135px;height:164px;border-radius:10px;box-shadow:0 6px 0 #ffffff20;padding:20px}.sheet::before{content:"";display:block;width:34px;height:34px;border-radius:10px;background:#dbeac9;margin-bottom:16px}.sheet i{display:block;background:#c3d6c6;border-radius:5px;height:5px;margin-bottom:9px}.sheet i:nth-child(2){width:70%}.sheet-back{transform:rotate(-13deg) translate(-25px,4px);background:#85b39a}.floating-plus{position:absolute;right:5px;bottom:25px;border-radius:50%;background:#dfedb3;color:#31563e;width:44px;height:44px;display:grid;place-items:center;font-size:30px;box-shadow:0 0 0 6px #ffffff12}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:0 0 32px}.stat{background:white;border:1px solid var(--line);border-radius:13px;padding:20px;display:flex;gap:15px;align-items:center}.stat .symbol{border-radius:12px;background:#edf3ee;color:var(--green);width:46px;height:46px;display:grid;place-items:center}.stat:nth-child(2) .symbol{background:#f3edf8;color:#8763a1}.stat:nth-child(3) .symbol{background:#fbf0df;color:#a47d38}.stat strong{font-size:1.65rem;line-height:1.2;font-weight:650;display:block}.stat small{font-size:.85rem}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:27px 0 14px;gap:16px}.section-heading h2{margin:0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card{background:white;border:1px solid var(--line);border-radius:13px;padding:22px;min-width:0}.material-card{cursor:pointer;transition:transform .15s,border-color .15s;position:relative;display:flex;flex-direction:column;min-height:205px;text-align:left;color:inherit;font-weight:400;align-items:stretch;justify-content:flex-start}.material-card:hover{transform:translateY(-3px);border-color:#9bbaab;filter:none}.material-card h3{font-size:1.05rem;margin:18px 0 5px;overflow-wrap:anywhere}.material-card .card-foot{border-top:1px solid #edf1ed;padding-top:12px;margin-top:auto;display:flex;align-items:center;justify-content:space-between;font-size:.8rem;color:var(--muted)}.tag{display:inline-flex;align-self:flex-start;padding:4px 9px;border-radius:6px;background:#edf3f9;color:#54708b;font-size:.75rem;font-weight:600}.tag.green{color:#39745a;background:#eaf4ec}.tag.purple{background:#f3edf8;color:#816496}.file-icon{position:absolute;right:20px;top:22px;color:#a1b2a8}.file-icon svg{width:27px;height:27px}.two-columns{display:grid;grid-template-columns:1.6fr 1fr;gap:24px;margin-top:6px}.empty{border:1px dashed #c6d7cc;border-radius:14px;padding:35px 24px;text-align:center;color:var(--muted);background:#ffffff80}.empty .empty-icon{margin:0 auto 16px;background:var(--mint);color:var(--green);border-radius:14px;width:54px;height:54px;display:grid;place-items:center}.empty h2{color:#2b4336}.empty p{max-width:470px;margin:0 auto 20px}.empty.compact{padding:24px}.empty.compact p{margin-bottom:0}.activity{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid #edf0ec}.activity:last-child{border-bottom:0}.activity p{margin:0;font-size:.875rem}.activity small{font-size:.75rem}.score{margin-left:auto;border-radius:7px;padding:5px 9px;background:var(--mint);color:var(--green);font-weight:650;white-space:nowrap}.usage-bar{height:7px;background:#e9efeb;border-radius:6px;overflow:hidden;margin:13px 0 8px}.usage-fill{height:100%;background:#679f82}.usage-fill[data-width]{width:var(--usage)}.notice{background:#edf4f0;border:1px solid #dce8df;border-radius:10px;padding:13px 16px;margin:15px 0;font-size:.875rem;color:#436452}.notice.warning{background:#fff7e9;border-color:#f3deb2;color:#80602a}.search-row{display:flex;gap:12px;margin-bottom:23px}.search-row input{max-width:380px}.search-row select{width:auto;min-width:160px}.search-row .spacer{flex:1}input,textarea,select{border:1px solid #cfdcd2;border-radius:9px;background:white;color:#20382f;padding:.75rem .85rem;width:100%}input:focus,textarea:focus,select:focus{border-color:#448c6e;outline:2px solid #bfd8c8}textarea{resize:vertical;line-height:1.6}label{display:block;font-size:.875rem;font-weight:600;margin-bottom:7px}.field{margin-bottom:18px}.field small{display:block;margin-top:5px;font-weight:400}.row{display:flex;align-items:center;gap:12px}.row.wrap{flex-wrap:wrap}.row.between{justify-content:space-between}.row.end{justify-content:flex-end}.error{color:var(--red);font-size:.9rem;background:#fff1ef;border-radius:8px;padding:10px 12px;margin:12px 0}.hidden{display:none!important}.tabs{display:flex;gap:3px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow-x:auto;padding-bottom:0}.tab{border-radius:8px 8px 0 0;background:transparent;color:var(--muted);white-space:nowrap;border-bottom:3px solid transparent;padding:12px 14px;font-size:.9rem}.tab.active{border-bottom-color:var(--green);color:var(--green);background:#eaf1ec}.back{margin:0 0 18px;padding:0!important}.detail-heading{margin-bottom:20px}.detail-heading h1{font-size:1.8rem}.detail-heading .row{margin-bottom:9px}.detail-title{flex:1}.source-text{min-height:340px}.detail-body{max-width:1020px}.generation-empty{padding:56px 25px}.generation-empty h2{font-size:1.5rem}.generation-empty p{max-width:520px}.toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:22px;flex-wrap:wrap}.toolbar small{max-width:500px}.notes-paper{max-width:850px;margin:auto;border:1px solid var(--line);border-radius:14px;background:#fff;padding:40px 48px;box-shadow:0 7px 20px #254d3210}.notes-paper h1{font-size:1.9rem;color:var(--green)}.notes-paper .summary{padding:18px;background:#edf4ee;border-left:3px solid #5e9d7b;border-radius:0 9px 9px 0}.notes-paper h2{color:var(--green);margin-top:28px}.notes-paper li{margin-bottom:8px}.terms{display:flex;gap:7px;flex-wrap:wrap}.terms span{background:#eef3ed;padding:5px 10px;border-radius:6px;font-size:.875rem}.map-board{border:1px solid var(--line);border-radius:12px;overflow:auto;background-color:#fff;background-image:radial-gradient(#d6e3da 1px,transparent 1px);background-size:18px 18px;touch-action:none;max-height:650px}.map-board svg{display:block;width:1600px;height:1050px;user-select:none}.map-node{cursor:grab}.map-node rect{fill:#fff;stroke:#a5c3af;stroke-width:1.5}.map-node.root rect{fill:var(--green);stroke:var(--green)}.map-node text{fill:#254c38;font-size:16px;pointer-events:none}.map-node.root text{fill:white}.map-node.selected rect{stroke:#ca9a46;stroke-width:3}.map-edge{stroke:#b2cbb9;stroke-width:2;fill:none}.map-editor{margin-top:15px;display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}.map-editor .field{flex:1;min-width:180px;margin:0}.quiz-card{max-width:850px;background:#fff;border:1px solid var(--line);padding:26px;border-radius:13px;margin:0 auto 18px}.quiz-card h3{font-size:1.08rem;line-height:1.5;margin-bottom:18px}.option{display:flex;align-items:center;justify-content:flex-start;gap:12px;background:#fff;color:#304d3b;border:1px solid #dce6de;border-radius:9px;margin-bottom:9px;padding:13px 15px;width:100%;text-align:left;font-weight:400}.option .letter{background:#edf3ef;border-radius:5px;width:28px;height:28px;display:grid;place-items:center;font-size:.85rem;flex-shrink:0}.option.selected{border-color:var(--green);background:#eef6f0}.option.correct{background:#e8f5e9;border-color:#72a77c}.option.incorrect{background:#fff1ef;border-color:#d18d87}.option input{width:18px;height:18px;flex-shrink:0;accent-color:var(--green)}.explanation{padding:14px;background:#f1f6f1;border-radius:8px;font-size:.94rem;margin-top:14px}.progress-track{background:#e1e9e3;border-radius:8px;height:6px;overflow:hidden;margin:14px 0 28px}.progress-track progress{width:100%;height:6px;display:block;accent-color:var(--green)}progress{appearance:auto}.live-meta{max-width:850px;margin:auto}.chat{background:#fff;border:1px solid var(--line);border-radius:13px;max-width:950px;overflow:hidden}.chat-messages{padding:24px;min-height:340px;max-height:580px;overflow:auto;display:flex;flex-direction:column;gap:20px}.message{white-space:pre-wrap;max-width:88%;font-size:.96rem;overflow-wrap:anywhere}.message.user{align-self:flex-end;background:#e9f2ec;border-radius:12px 12px 0 12px;padding:13px 17px}.message.assistant{background:#f6f8f6;border-radius:12px 12px 12px 0;padding:15px 18px}.message-label{display:block;white-space:normal;font-size:.75rem;font-weight:700;color:var(--green);margin-bottom:6px}.chat-form{padding:16px;border-top:1px solid var(--line);display:flex;align-items:flex-end;gap:10px}.chat-form textarea{min-height:52px;max-height:150px}.chat-starters{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.chat-starters button{font-size:.85rem}.chat-disclaimer{padding:0 18px 12px;font-size:.75rem;color:var(--muted)}.flashcard{width:100%;min-height:310px;background:#fff;border:1px solid #cfded3;box-shadow:0 8px 28px #19492d0b;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--green-dark);padding:35px;text-align:center;gap:24px}.flashcard .word{font-size:2rem;font-weight:600;overflow-wrap:anywhere;max-width:100%}.flashcard small{font-weight:400}.study{max-width:850px;margin:auto}.study-nav{display:flex;gap:12px;align-items:center;justify-content:center;margin-top:24px}.study-settings{display:flex;justify-content:space-between;gap:15px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.check{display:flex;gap:8px;align-items:center;margin:0;font-weight:400}.check input{width:18px;height:18px;accent-color:var(--green)}.table-wrap{overflow:auto}.table{border-collapse:collapse;width:100%;font-size:.94rem}.table th,.table td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}.table th{font-size:.8rem;color:var(--muted);font-weight:600}.table td:last-child{text-align:right}.write-card{max-width:750px;margin:auto}.write-card .prompt{font-size:1.65rem;margin:20px 0 28px;font-weight:550}.test-result{background:var(--green-dark);padding:32px;color:white;border-radius:15px;text-align:center;margin-bottom:24px}.test-result strong{font-size:2.8rem;display:block}.test-result p{margin:5px 0 0;color:#d2e3d9}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-grid .card{align-self:start}.settings-grid h2{margin-bottom:20px}dialog{border:1px solid var(--line);border-radius:17px;max-width:680px;width:calc(100% - 32px);padding:28px;max-height:90vh;color:#20382f;box-shadow:0 20px 100px #0e312344}dialog::backdrop{background:#122d2666;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:15px}.modal-head h2{margin:0;font-size:1.4rem}.modal-head button{padding:7px}.upload-zone{padding:28px 18px;text-align:center;border:1.5px dashed #a8c4b1;border-radius:13px;background:#f5faf6;margin:16px 0;cursor:pointer;display:block}.upload-zone svg{width:34px;height:34px;margin-bottom:8px}.upload-zone strong{display:block;margin-bottom:5px}.upload-zone small{display:block;font-weight:400}.upload-zone.dragover{background:#e1f1e6;border-color:var(--green)}.upload-zone input{font-size:.875rem;margin-top:17px;border:0;background:transparent;padding:0}.or{display:flex;align-items:center;gap:15px;color:var(--muted);font-size:.8rem;margin:20px 0}.or::before,.or::after{content:"";height:1px;background:var(--line);flex:1}.auth-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.auth-story{background:var(--green-dark);color:#fff;padding:50px 12%;display:flex;flex-direction:column;justify-content:center;position:relative}.auth-story .brand{color:#fff;position:absolute;top:40px;left:10%;padding:0}.auth-story h1{font-size:2.8rem;line-height:1.15;max-width:420px;font-weight:550;margin-top:70px}.auth-story p{color:#bfd4c8;max-width:420px;font-size:1.05rem}.auth-story .hero-art{height:250px;max-width:350px}.auth-story .sheet{width:160px;height:190px}.auth-story .floating-plus{right:40px;bottom:40px}.auth-form-wrap{display:grid;place-items:center;padding:40px 30px}.auth-form{width:100%;max-width:370px}.auth-form h2{font-size:1.9rem;margin-bottom:8px}.auth-form>p{color:var(--muted);margin-bottom:30px}.auth-form button[type=submit]{width:100%;margin-top:8px}.auth-footer{font-size:.8rem;color:var(--muted);margin-top:28px}.boot{display:grid;place-items:center;min-height:100vh;color:var(--green)}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(120px);background:var(--green-dark);color:white;padding:12px 22px;border-radius:11px;box-shadow:0 5px 30px #12362522;z-index:100;transition:transform .2s;max-width:min(650px,90vw);font-size:.94rem}#toast.visible{transform:translateX(-50%) translateY(0)}#toast.failure{background:#843b35}.spinner{display:inline-block;border:2px solid #a5c8b2;border-top-color:var(--green);width:18px;height:18px;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.busy-panel{padding:48px;text-align:center}.busy-panel .spinner{width:32px;height:32px;margin-bottom:12px}.busy-panel p{color:var(--muted);margin:0}.footer-hint{font-size:.8rem;color:var(--muted);margin-top:25px}.learn-callout{background:#ebf1e9;border-radius:12px;padding:20px}.learn-callout p{font-size:.875rem;color:var(--muted);margin-bottom:14px}.offline-badge{display:inline-flex;gap:6px;align-items:center;font-size:.75rem;color:var(--green)}.mobile-shade{display:none}
@media(min-width:1600px){.content{padding-top:44px}.hero{min-height:245px}.grid{gap:22px}}
@media(max-width:1150px){.shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{width:210px;padding-left:12px;padding-right:12px}.brand{font-size:1.08rem;padding:0 4px}.content{padding:28px 25px}.topbar{padding:0 25px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:1fr 150px;padding:25px}.stats{gap:12px}.stat{padding:16px;gap:10px}.stat .symbol{width:38px;height:38px}.two-columns{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.hero h2{font-size:1.5rem}}
@media(max-width:760px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s;width:244px}.shell.menu-open .sidebar{transform:translateX(0)}.shell.menu-open .mobile-shade{display:block;position:fixed;inset:0;background:#12382b66;z-index:9}.mobile-menu{display:inline-flex;padding:7px!important}.topbar{height:64px;padding:0 18px}.topbar .today{font-size:.75rem}.content{padding:25px 18px 45px}h1{font-size:1.7rem}.page-heading{gap:15px;align-items:flex-start}.page-heading button{font-size:.85rem;padding:.65rem .8rem}.page-heading p{font-size:.875rem}.hero{grid-template-columns:1fr;min-height:0;padding:25px}.hero-art{display:none}.hero h2{font-size:1.5rem}.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stat{padding:14px 10px;display:block}.stat .symbol{display:none}.stat strong{font-size:1.45rem}.stat small{font-size:.75rem;line-height:1.3;display:block;margin-top:5px}.grid{grid-template-columns:1fr}.two-columns{gap:14px}.section-heading{margin-top:24px}.notes-paper{padding:25px 20px}.notes-paper h1{font-size:1.6rem}.tabs{margin-left:-4px;margin-right:-4px}.tab{padding:11px 10px;font-size:.85rem}.search-row{flex-wrap:wrap}.search-row input{max-width:none;flex:1;min-width:180px}.search-row select{min-width:120px}.detail-heading h1{font-size:1.5rem}.detail-heading>.row{align-items:flex-start}.detail-heading .row.wrap{gap:8px}.quiz-card{padding:20px 16px}.toolbar{gap:12px}.flashcard{min-height:270px}.flashcard .word{font-size:1.65rem}.study-nav{gap:8px;flex-wrap:wrap}.chat-messages{padding:16px;max-height:55vh}.message{max-width:95%}.chat-form{padding:10px}.chat-form button{padding:13px}.chat-form button span{display:none}.auth-layout{grid-template-columns:1fr}.auth-story{display:none}.auth-form-wrap{min-height:100vh}.auth-form::before{content:'D · DeepLearner';display:block;color:var(--green);font-weight:750;font-size:1.4rem;margin-bottom:45px}.table td,.table th{padding:12px 7px}.row.wrap-mobile{flex-wrap:wrap}.map-board{max-height:450px}.settings-grid{gap:18px}dialog{padding:21px}.table td{max-width:300px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
