/* A quiet study space: warm paper, forest ink, botanical details. */
:root{--bg:#f8f9f5;--paper:#fffefa;--ink:#253e32;--muted:#6c776e;--green:#345e47;--dark:#294d3a;--lime:#e5edcd;--border:#dfe5da;--soft:#edf1e7;--shadow:0 8px 28px #2b46300a}
body{font-family:'DM Sans','Segoe UI',sans-serif;font-size:14px;background:var(--bg)}
h1,h2,h3,h4{font-family:'Manrope','Segoe UI',sans-serif;letter-spacing:-.035em}
a,button,summary{-webkit-tap-highlight-color:transparent}
::selection{background:#dae8be;color:#233d2d}
.ui-icon{width:20px;height:20px;flex:none}
.sidebar{width:224px;padding:32px 18px;background:#f1f3eb;border-color:#dfe4d7}
.brand{gap:10px;font-family:'Manrope','Segoe UI',sans-serif;font-size:25px;font-weight:800;margin:0 10px 37px;letter-spacing:-1px}
.brand img{width:31px;height:31px;border-radius:9px}
.sidebar nav{gap:5px}
.sidebar nav a{gap:11px;font-size:12px;padding:11px 13px;border-radius:9px;color:#667363;transition:background .2s,color .2s}
.sidebar nav a .ui-icon{width:17px;height:17px;opacity:.85}
.sidebar nav a.active{background:#355b43;color:#fff;font-weight:600;box-shadow:0 4px 10px #243b2810}
.sidebar nav a:hover:not(.active){background:#e7ecde;color:#2c4c34}
.module-nav-label{font-size:9px;letter-spacing:1.5px;color:#6d7967;padding:26px 13px 9px}
.sidebar-bottom{padding:25px 13px 0}.sidebar-bottom strong{font-size:11px;color:#52634c}
.side-progress{height:4px;background:#dce4d1;border-radius:6px}.side-progress>span{background:#739756;border-radius:6px}
.shell{margin-left:224px}.topbar{min-height:78px;padding:18px 44px;background:#f8f9f5e6;border-color:#e4e8de}
#breadcrumbs,#breadcrumbs a{font-size:11px;color:#7b8478}#breadcrumbs [aria-current]{color:#3c503d;font-weight:600}
.search-button{background:#fffefa;border:1px solid #dfe5d8;border-radius:9px;padding:8px 11px;font-size:11px;color:#687664}
.search-button>span:first-child{font-size:19px;line-height:1}.search-button kbd{border-color:#e3e7dc;background:#f7f8f2;color:#8b9583;border-radius:4px}
.icon-button{border-radius:9px}.icon-button:hover{background:#eaf0df}
main{max-width:1240px;margin:auto;padding:40px 44px 58px;min-height:calc(100vh - 146px)}
body:not(.in-module) main{max-width:1240px;margin:auto}
.page-enter{animation:study-enter .3s ease-out}
.school-hero{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;align-items:center;padding:4px 0 30px;border-bottom:1px solid var(--border);margin-bottom:31px}
.hero-kicker{display:flex;gap:8px;align-items:center;font-size:9px;letter-spacing:1.7px;font-weight:600;color:#718164;margin-bottom:18px}
.hero-kicker>span{width:6px;height:6px;background:#91a96c;border-radius:50%}
.school-hero h1{font-family:'Manrope','Segoe UI',sans-serif;font-size:clamp(34px,3.7vw,54px);line-height:1.17;font-weight:650;letter-spacing:-2px;color:#293f2d}
.school-hero h1 em{font-family:Georgia,serif;font-weight:400;color:#6b8555;letter-spacing:-1.7px}
.school-hero p{font-size:13px;line-height:1.8;color:#76806f;margin-top:18px}
.school-hero-art{position:relative;max-width:300px;width:100%;justify-self:center;text-align:center;padding-bottom:6px}
.school-hero-art img{display:block;width:100%;height:auto;max-height:235px}
.school-hero-art>span{font-family:Georgia,serif;font-style:italic;font-size:13px;letter-spacing:.2px;color:#7b8c67;display:inline-block;transform:rotate(-5deg);margin-top:2px}
.section-head,.library-section>h2,.diagram-section-head{margin-bottom:16px}
.section-head h2,.library-section>h2,.diagram-section-head h2{font-size:13px;letter-spacing:-.2px;font-weight:650;color:#475943}
.section-head{margin-top:0;align-items:center}.section-index{font-size:9px;letter-spacing:1px;color:#8b9880;font-weight:500}
.school-dashboard{display:grid;grid-template-columns:1.12fr 1fr;gap:24px}
.subject-feature{display:flex;flex-direction:column;border:1px solid #d6dfca;background:#eaf0df;border-radius:17px;padding:22px;min-height:230px;position:relative;overflow:hidden;transition:transform .2s,box-shadow .2s,border-color .2s}
.subject-feature:after{content:'';position:absolute;width:145px;height:145px;border:1px solid #cddbbc88;border-radius:50%;right:-32px;top:59px;box-shadow:0 0 0 23px #dce6ce50;pointer-events:none}
.subject-feature:hover{transform:translateY(-3px);border-color:#aebe9c;box-shadow:0 8px 25px #3d562712}
.subject-feature>*{position:relative;z-index:1}.subject-feature-top{display:flex;align-items:center;gap:11px;margin-bottom:21px}
.subject-icon{width:36px;height:36px;border-radius:11px;background:#d8e4c5;color:#4e6b3b;display:grid;place-items:center}
.subject-icon .ui-icon{width:23px;height:23px}.subject-badge{font-size:9px;color:#69814f;letter-spacing:1.1px;font-weight:600}.feature-arrow{margin-left:auto;color:#718658;font-size:21px}
.subject-feature h3{font-size:26px;font-weight:600}.subject-feature>p{font-size:12px;margin-top:7px;color:#718360}
.subject-feature-bottom{margin-top:auto;padding-top:22px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#6d805b}
.subject-feature-bottom>span:first-child{font-size:10px;border:1px solid #c4d5af;padding:3px 10px;border-radius:20px;color:#56723f;background:#f4f8eb70}.subject-feature-bottom i{font-style:normal;margin:0 4px;color:#91a87b}
.continue-card{border:1px solid var(--border);background:var(--paper);border-radius:17px;padding:24px;min-height:230px;display:flex;flex-direction:column}
.continue-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;font-weight:600;letter-spacing:1.3px;color:#879076;margin-bottom:17px}.continue-meta>span{font-size:10px;letter-spacing:0;font-weight:400}
.continue-card h3{font-size:21px;font-weight:600;line-height:1.4}.continue-card>p{font-size:11px;margin-top:6px}
.continue-progress{height:4px;background:#eef1e7;border-radius:6px;margin:19px 0 17px;overflow:hidden}.continue-progress>span{display:block;height:100%;background:#92ac71;border-radius:6px}
.continue-card .btn{margin-top:auto;align-self:flex-start;min-height:35px;padding:8px 13px;font-size:11px}.continue-card .btn .ui-icon{width:17px;height:17px}
.home-shortcuts{margin-top:31px}.shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.shortcut-card{display:flex;align-items:center;gap:12px;background:#fffefa;border:1px solid var(--border);border-radius:12px;padding:18px 15px;transition:transform .2s,border-color .2s}
.shortcut-card:hover{transform:translateY(-2px);border-color:#b6c3a8}.shortcut-icon{background:#eff0e3;border-radius:9px;width:35px;height:37px;display:grid;place-items:center;color:#7a865a;flex:none}
.shortcut-card:nth-child(2) .shortcut-icon{background:#f1eade;color:#a5855b}.shortcut-card:nth-child(3) .shortcut-icon{background:#e8edf0;color:#70848a}
.shortcut-card h3{font-size:12px;font-weight:650;letter-spacing:-.1px}.shortcut-card p{font-size:10px;margin-top:4px}.shortcut-card .row-arrow{margin-left:auto;font-size:15px;color:#a1aa96}
.catalog-heading{display:flex;align-items:center;gap:22px;padding:23px 0 34px;border-bottom:1px solid var(--border);margin-bottom:30px}
.heading-icon{width:68px;height:75px;display:grid;place-items:center;flex:none;border-radius:23px 23px 23px 5px;background:#e1ebd3;color:#618047}.heading-icon .ui-icon{width:35px;height:35px}
.catalog-heading .page-intro{margin:0}.catalog-heading .eyebrow,.page-intro>.eyebrow{display:block;font-size:9px;font-weight:600;letter-spacing:1.5px;color:#7d8d6c;margin-bottom:11px}
.page-intro h1,.lesson-title h1{font-size:34px;font-weight:650;letter-spacing:-1.2px;line-height:1.25}.page-intro p{line-height:1.7;color:#74806d}
.catalog-list{border:0;display:grid;gap:13px}.catalog-row{border:1px solid var(--border);background:var(--paper);padding:23px;border-radius:14px;transition:transform .2s,border-color .2s}
.catalog-row:hover{background:#fffefb;border-color:#b7c7a7;transform:translateX(3px)}.catalog-icon{width:42px;height:44px;border-radius:12px;background:#edf2e4;color:#759359;display:grid;place-items:center;flex:none}
.catalog-row h3{font-size:17px;font-weight:600}.catalog-row p{font-size:12px;color:#7a8672}.catalog-row .row-arrow{font-size:21px;color:#748b61}
.module-heading{position:relative;border-radius:18px;background:#eaf0df;border:1px solid #dce4d1;padding:31px 33px;margin-bottom:32px;overflow:hidden}
.module-heading:after{content:'';position:absolute;width:180px;height:180px;border-radius:50%;border:1px solid #d1ddbf;right:155px;top:-83px;pointer-events:none}
.module-heading>*{position:relative;z-index:1}.module-heading .page-intro h1{font-size:39px}.module-heading .page-intro p{font-size:12px;color:#728464}.module-heading .page-intro h1:before{content:'BIOLOGIJA · 3. LETNIK';display:block;font-size:9px;font-weight:600;letter-spacing:1.7px;color:#789160;margin-bottom:12px}
.btn{border-radius:9px;padding:11px 17px;font-size:12px;font-weight:600;gap:12px;transition:background .18s,transform .18s,box-shadow .18s;box-shadow:0 3px 7px #28402a09}
.btn:hover{transform:translateY(-1px);background:#284b37;box-shadow:0 5px 11px #28402a13}.btn.secondary{background:var(--paper);border-color:#cdd8c5;box-shadow:none}.btn.secondary:hover,.btn.light:hover{background:#eaf0df}
.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;border:0;margin-bottom:30px}
.topic-card{border:1px solid var(--border);border-radius:12px;min-height:100px;padding:20px;background:var(--paper);gap:16px;transition:transform .2s,border-color .2s,box-shadow .2s}
.topic-card:hover{transform:translateY(-2px);border-color:#b3c49f;background:#fffefa;box-shadow:var(--shadow)}.topic-card.done{background:#edf3e4;border-color:#ccdbc0}
.topic-number{display:grid;place-items:center;min-width:34px;width:34px;height:36px;background:#eff2e7;color:#83916c;font-size:10px;border-radius:9px;flex:none}.topic-card:nth-child(3n+2) .topic-number{background:#f2ebdf;color:#a18e67}.topic-card:nth-child(3n) .topic-number{background:#e7edf0;color:#7d949a}.topic-card.done .topic-number{background:#dbe8c9;color:#4b7036}
.topic-card h3{font-size:14px;font-weight:650}.topic-card p{font-size:11px;line-height:1.5}.topic-card .row-arrow{color:#8e9e7c}
.study-links{gap:12px;border:0}.study-links a{padding:18px 20px;border:1px solid var(--border);border-radius:11px;background:var(--paper);font-size:12px;transition:border-color .2s}.study-links a:hover{border-color:#abbf94;background:#f0f4e9}.study-links span{font-size:10px}
.lesson-tabs{gap:7px;margin-bottom:30px}.chip{border:1px solid #e0e6d7;border-radius:20px;background:#f3f5ed;padding:7px 12px;font-size:11px}.chip.active{background:#365c43;color:#fff;border-color:#365c43}.chip:hover:not(.active){background:#e5edda}
.lesson-head{margin-bottom:27px}.lesson-title .eyebrow{color:#8a9976;font-size:9px;letter-spacing:1.5px}.lesson-title p{font-size:14px;color:#6e7e66}.tiny-pill{border:1px solid #dce4d3;border-radius:20px;background:#edf2e5;color:#789365;padding:5px 11px}
.essential{background:#eaf1de;border:1px solid #dbe5ce;border-radius:13px;padding:25px}.mini-label{font-size:9px;color:#718558;letter-spacing:1px}.essential li{font-size:14px;line-height:1.75}.essential li:before{color:#7c985f}
.detail-stack details,.terms-panel,.exam-item,.quick-pair{background:var(--paper);border-color:var(--border);border-radius:12px}.detail-stack details:hover{border-color:#c0cdb1}.detail-stack summary{font-size:13px;padding:18px 21px}.detail-stack summary:after{color:#7f9864}.detail-content{color:#67755f;font-size:13px}
.terms-panel{padding:23px}.terms-panel h3{font-size:18px}.term p{font-size:12px;line-height:1.8}.takeaway{background:#f0f3e7;border-radius:0 10px 10px 0;border-color:#9eb47e;color:#536b42}
.diagram-card,.diagram-study,.lab,.past-figure{border-radius:13px;box-shadow:0 4px 15px #263b2b03}.diagram-card{transition:transform .2s,border-color .2s}.diagram-card:hover{transform:translateY(-3px);border-color:#b5c8a3}.diagram-card-copy{background:var(--paper)}.diagram-card h3{font-size:14px;font-weight:600}.diagram-thumb{background:#fff}.diagram-controls,.diagram-prompt{background:#f3f6ed}
.quiz-setup,.quiz-card,.result-panel{border-radius:18px;border-color:var(--border);background:var(--paper);box-shadow:var(--shadow);padding:33px}.quiz-setup h2,.quiz-card h2{font-size:25px;line-height:1.45}.option{border-radius:10px;background:#f7f9f2}.option:not(:disabled):hover{background:#edf3e1}.feedback,.model-answer{border-radius:10px}
.flash-face{border-radius:19px;background:#fffef9;border-color:#d6dfc9;box-shadow:0 9px 30px #374b2410}.flash-face.back{background:#e9f0db}.flash-face .topic-tag{color:#879873;font-size:9px}.flash-face h2{font-size:27px;font-weight:600}.flash-face.back p{font-size:19px}.study-progress{height:4px}.card-stage{max-width:710px}
.past-nav a,.past-test-switch a,.past-options label,.past-question textarea{border-radius:8px}.past-test-switch a[aria-current]{background:#e8efdc;border-color:#b2c69c}.past-view-switch{margin-bottom:28px}.past-view-switch a{border-radius:7px 7px 0 0}.past-solution-content{border-radius:10px;background:#edf3e5}.paper-sheet{border-radius:12px;border-color:#dbe3d3;box-shadow:var(--shadow)}.paper-sheet-body,.paper-sheet-heading{color:#30452e}.paper-options{color:#56684b}.paper-answer-bar .btn{border-radius:9px}
.lab-visual{background:#f0f5e8}.lab-content{background:var(--paper)}.flow-node{border-radius:11px}.quick-pair{padding:20px}.quick-pair strong{font-weight:600}
footer{max-width:1240px;font-size:10px;color:#87917e;padding:22px 44px;border-color:var(--border)}footer .text-button{color:#73836a}body:not(.in-module) footer{border-top:1px solid var(--border)}
dialog{border-radius:16px;border-color:#d2ddc6;background:#fafbf5;box-shadow:0 25px 100px #26362325}dialog::backdrop{background:#22302055;backdrop-filter:blur(4px)}.search-result{border-radius:9px;background:var(--paper)}.search-result:hover{border-color:#a8bf8e}.search-result p{color:#76886a}
#toast{left:calc(50% + 112px);border-radius:10px;box-shadow:0 5px 18px #263b2a20}
@keyframes study-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1450px){.school-hero{padding:16px 0 34px}.school-hero-art img{max-height:265px}.school-hero h1{font-size:56px}.school-dashboard{gap:28px}.subject-feature,.continue-card{min-height:245px}}
@media(max-width:1100px){.topbar,main,footer{padding-left:30px;padding-right:30px}.school-hero h1{font-size:40px}.school-hero-art img{max-height:218px}.shortcut-card{gap:9px;padding:17px 12px}.shortcut-card .row-arrow{display:none}.shortcut-icon{width:31px}.subject-feature,.continue-card{padding:21px}.school-dashboard{gap:18px}.topic-card{padding:18px 15px;gap:11px}}
@media(max-width:800px){
 .sidebar{position:static;width:auto;padding:20px 22px 0;border-bottom:1px solid #dfe4d6}.brand{font-size:23px;margin:0 0 19px}.brand img{width:28px;height:28px}.sidebar nav{gap:5px;margin:0 -6px;padding:0 0 14px;overflow:auto}.sidebar nav a{padding:9px 11px;font-size:11px;gap:7px}.sidebar nav a .ui-icon{width:15px;height:15px}.sidebar-bottom{display:none}
 .shell{margin:0}.topbar{padding:13px 22px;min-height:61px;align-items:center}.search-button{padding:6px 9px}.header-actions{gap:7px}.search-button>span:first-child{font-size:20px}#breadcrumbs,#breadcrumbs a{font-size:10px}
 main{padding:30px 22px 42px;min-height:calc(100vh - 251px)}body:not(.in-module) main{margin:auto}.school-hero{gap:10px;padding:4px 0 26px;margin-bottom:25px}.school-hero h1{font-size:41px}.school-hero p{font-size:12px}.school-hero-art img{max-height:215px}
 .school-dashboard{gap:18px}.home-shortcuts{margin-top:27px}.section-head h2{font-size:12px}.topic-card{min-height:102px}.learn-grid{grid-template-columns:1fr}.lesson-title h1,.page-intro h1{font-size:30px}.module-heading{padding:27px}.module-heading .page-intro h1{font-size:35px}
 .flash-face h2{font-size:24px}footer{padding:20px 22px;gap:16px}#toast{left:50%}.save-note,footer .save-note{width:auto}
}
@media(max-width:540px){
 .school-hero{grid-template-columns:1fr 108px;gap:4px;align-items:start;padding:8px 0 27px}.hero-kicker{font-size:8px;letter-spacing:1px;margin-bottom:17px}.school-hero h1{font-size:32px;letter-spacing:-1.3px;line-height:1.2}.school-hero h1 em{letter-spacing:-1.2px}.school-hero p{font-size:11px;margin-top:14px;line-height:1.8}.school-hero-art{margin-top:32px}.school-hero-art img{height:auto}.school-hero-art>span{display:none}
 .school-dashboard{grid-template-columns:1fr;gap:25px}.subject-feature,.continue-card{min-height:215px;padding:22px}.subject-feature h3{font-size:27px}.subject-feature-bottom{font-size:11px}.subject-feature-top{margin-bottom:15px}.subject-feature:after{right:2px;top:40px}
 .shortcut-grid{grid-template-columns:1fr;gap:9px}.shortcut-card{padding:14px 17px;gap:13px}.shortcut-card .row-arrow{display:block}.shortcut-card h3{font-size:13px}.shortcut-card p{font-size:11px}.shortcut-icon{width:36px;height:36px}
 .topic-grid,.study-links{grid-template-columns:1fr;gap:10px}.topic-card{padding:18px;min-height:89px;gap:15px}.topic-card p{max-width:none}.topic-card h3{font-size:14px}.topic-card .row-arrow{margin-left:auto}.module-heading{padding:25px;gap:20px;align-items:flex-start;flex-direction:column}.module-heading:after{right:-48px;top:-85px}.module-heading .page-intro h1{font-size:34px}
 .catalog-heading{padding:12px 0 29px;gap:17px}.heading-icon{width:53px;height:62px;border-radius:18px 18px 18px 4px}.heading-icon .ui-icon{width:29px}.catalog-heading .page-intro h1{font-size:29px}.catalog-heading .page-intro p{font-size:12px}.catalog-heading .eyebrow{font-size:8px}
 .catalog-row{gap:13px;padding:18px}.catalog-icon{width:36px;height:39px}.catalog-row h3{font-size:16px}.catalog-row p{font-size:11px}.row-meta{font-size:10px}.catalog-row .row-arrow{font-size:17px}
 .page-intro h1,.lesson-title h1{font-size:29px}.lesson-title p{font-size:13px}.lesson-tabs{gap:6px}.chip{padding:6px 10px;font-size:10px}.essential{padding:22px}.essential li{font-size:13px}.quiz-setup,.quiz-card,.result-panel{padding:25px 20px}.quiz-card h2,.quiz-setup h2{font-size:22px}.flash-face h2{font-size:23px}.flash-face.back p{font-size:17px}
 .study-links a{padding:18px}.paper-sheet{padding:20px 14px}.paper-choice-grid{display:block}.paper-choice{padding:14px}.paper-diagram-row{grid-template-columns:1fr}.terms-panel{display:block}.lab-content h2{font-size:23px}.lab-content{padding:25px 22px}footer .save-note{font-size:9px}
}
@media(max-width:370px){.school-hero{grid-template-columns:1fr}.school-hero-art{display:none}.school-hero h1{font-size:36px}.catalog-row{gap:10px;padding:15px}.catalog-row .row-meta{display:none}}
@media(prefers-reduced-motion:reduce){.page-enter{animation:none}.subject-feature,.topic-card,.shortcut-card,.diagram-card,.btn,.catalog-row{transition:none}}
