:root{--ink:#163431;--muted:#697773;--green:#173d37;--deep:#102e2b;--lime:#d3eb8b;--bg:#f6f7f2;--line:#dfe5dc;--white:#fff;--red:#ad423a;--amber:#9b691c;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.9rem,3vw,2.6rem);font-weight:600;letter-spacing:-1.4px;line-height:1.15;margin-bottom:12px}h2{font-size:1.3rem;letter-spacing:-.5px;font-weight:600}h3{font-size:1.05rem}p{line-height:1.65}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;font-size:.69rem;letter-spacing:1.8px;font-weight:700}.app-shell{display:grid;grid-template-columns:242px 1fr;min-height:100vh}.sidebar{background:var(--deep);color:#d7e2dc;padding:36px 24px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;font-size:1.3rem;font-weight:650;letter-spacing:-.6px}.brand small{display:block;color:#a5bcb2;font-size:.64rem;font-weight:400;letter-spacing:2px;margin-top:5px}.logo{height:38px;width:38px;display:grid;place-items:center;border:1px solid #7b9885;border-radius:12px;color:var(--lime);font-size:1.5rem}.sidebar nav{margin-top:50px;display:grid;gap:7px}.nav{border:0;background:transparent;color:inherit;border-radius:9px;text-align:left;padding:13px 14px;display:flex;gap:12px;align-items:center;font-size:.88rem}.nav:hover{background:#23443e}.nav.active{background:var(--lime);color:var(--deep);font-weight:600}.nav .ico{width:20px;font-size:1.1rem}.sidebar-foot{margin-top:auto;border-top:1px solid #34504a;padding-top:20px;font-size:.8rem}.avatar{background:#e0e9dd;color:var(--deep);height:36px;width:36px;border-radius:50%;display:grid;place-items:center;font-weight:700}.userline{display:flex;align-items:center;gap:10px}.userline small{display:block;margin-top:4px;color:#a5bcb2}.side-goal{margin-top:28px;padding:17px;border:1px solid #38524a;border-radius:12px;font-size:.8rem;line-height:1.7}.side-goal strong{display:block;color:var(--lime);font-size:1.1rem}.main-area{min-width:0}.topbar{height:82px;border-bottom:1px solid var(--line);padding:0 44px;display:flex;align-items:center;justify-content:space-between;background:#fdfdf9;font-size:.83rem;color:var(--muted)}.tag{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:99px;padding:7px 12px;font-size:.73rem;font-weight:500;background:#fff;color:var(--ink)}.dot{height:7px;width:7px;background:#6b9463;border-radius:50%}.content{max-width:1350px;margin:auto;padding:38px 44px 60px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px}.page-heading p{margin-bottom:0;font-size:.92rem}.btn{border:0;border-radius:9px;background:var(--green);color:white;padding:13px 19px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;font-size:.87rem;min-height:44px}.btn:hover{background:#28564b}.btn.lime{background:var(--lime);color:var(--deep)}.btn.light{background:#fff;color:var(--ink);border:1px solid var(--line)}.btn.small{padding:8px 12px;font-size:.78rem;min-height:36px}.btn.danger{background:#fae9e5;color:var(--red)}.hero{background:var(--green);border-radius:17px;padding:32px 36px;color:#fff;display:grid;grid-template-columns:1fr 180px;gap:24px;position:relative;overflow:hidden;margin-bottom:24px}.hero .eyebrow{color:var(--lime);margin-bottom:16px}.hero h2{font-size:1.9rem;max-width:520px;line-height:1.22;margin-bottom:13px}.hero p{color:#bfd2c8;max-width:520px;font-size:.9rem}.hero-art{display:flex;align-items:center;justify-content:center}.orbit{border:1px solid #527165;border-radius:50%;height:150px;width:150px;position:relative;display:flex;align-items:center;justify-content:center}.orbit:before{content:'';height:110px;width:110px;position:absolute;border:1px dashed #729071;border-radius:50%;transform:rotate(-25deg)}.orbit:after{content:'';width:16px;height:16px;border-radius:50%;background:var(--lime);position:absolute;right:0;top:33px}.orbit span{font-size:3rem;font-weight:500;line-height:1;text-align:center;letter-spacing:-2px}.orbit small{font-size:.7rem;display:block;font-weight:400;letter-spacing:1px;margin-top:10px;color:#bfd2c8}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}.card,.panel{background:white;border:1px solid var(--line);border-radius:13px;padding:23px}.card .label{color:var(--muted);font-size:.8rem}.card .value{font-size:2rem;font-weight:600;letter-spacing:-1px;margin:16px 0 6px}.card .meta{font-size:.73rem;color:var(--muted)}.grid2{display:grid;grid-template-columns:1.5fr 1fr;gap:22px;margin-bottom:24px}.panel-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:22px}.panel-head h2{margin:0}.link-btn{border:0;background:transparent;color:var(--green);font-size:.8rem;text-decoration:underline;cursor:pointer;padding:4px}.subject-row{display:grid;grid-template-columns:42px 1fr auto;gap:14px;align-items:center;padding:17px 0;border-top:1px solid #eef1ea}.subject-row:first-of-type{border-top:0}.subject-icon{width:40px;height:40px;border-radius:11px;background:#eef2e8;color:#3f6350;display:grid;place-items:center;font-weight:600;font-size:1.1rem}.subject-icon.physics{background:#f1eee7;color:#927441}.subject-icon.english{background:#edf0f9;color:#5c6c96}.subject-row h3{margin:0 0 8px;font-size:.88rem}.progress{height:5px;background:#edf1e9;border-radius:5px;overflow:hidden;flex:1}.progress i{display:block;height:100%;background:#7b9d65;border-radius:5px}.progressline{display:flex;gap:10px;align-items:center}.progressline span{font-size:.7rem;color:var(--muted);white-space:nowrap}.steps{list-style:none;padding:0;margin:0}.steps li{display:grid;grid-template-columns:28px 1fr auto;gap:10px;padding:15px 0;border-top:1px solid #eef1ea;align-items:center}.steps li:first-child{border:0;padding-top:0}.step-num{border:1px solid #d9e3d1;background:#f4f7ef;border-radius:50%;height:25px;width:25px;display:grid;place-items:center;font-size:.72rem}.steps strong{display:block;font-size:.83rem;line-height:1.4}.steps small{color:var(--muted);font-size:.75rem;display:block;margin-top:4px}.notice{padding:16px 20px;border-radius:10px;background:#edf1e7;font-size:.83rem;line-height:1.6;margin-bottom:22px}.notice.warning{background:#fbf2de;color:#785b22}.notice.error{background:#fbe8e5;color:var(--red)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.84rem}th{text-align:left;font-weight:500;color:var(--muted);font-size:.73rem;padding:12px 10px;border-bottom:1px solid var(--line)}td{padding:15px 10px;border-bottom:1px solid #edf0e8}tr:last-child td{border-bottom:0}.empty{padding:25px 5px;color:var(--muted);font-size:.9rem;line-height:1.8}.chapter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.chapter-card{display:flex;flex-direction:column;gap:12px}.chapter-card h3{margin:0;line-height:1.5}.chapter-card p{font-size:.8rem;margin:0;color:var(--muted)}.chapter-card .btn{margin-top:auto}.filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:22px}select,input,textarea{border:1px solid #cdd8cb;border-radius:8px;padding:12px 13px;background:white;color:var(--ink);width:100%;min-height:44px}textarea{min-height:100px;line-height:1.5}select{width:auto;max-width:100%}label{font-size:.83rem;font-weight:500;display:block;margin-bottom:7px}.field{margin-bottom:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full{grid-column:1/-1}.auth-page{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-story{background:var(--deep);color:#fff;padding:48px 9%;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-story h1{font-size:clamp(2.8rem,4.8vw,4.6rem);font-weight:500;line-height:1.12;letter-spacing:-3px;max-width:600px}.auth-story h1 em{font-style:normal;color:var(--lime)}.auth-story p{color:#aac5b6;max-width:380px}.auth-art{display:flex;align-items:flex-end;gap:15px;margin:45px 0;height:100px}.auth-art i{width:20%;background:#35594c;border:1px solid #5f7e5d;border-radius:10px 10px 0 0}.auth-art i:nth-child(1){height:30%}.auth-art i:nth-child(2){height:50%}.auth-art i:nth-child(3){height:70%}.auth-art i:nth-child(4){height:100%;background:var(--lime)}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:50px 35px}.auth-form{width:100%;max-width:405px}.auth-form h2{font-size:1.8rem;margin-bottom:10px;letter-spacing:-1px}.auth-form .btn{width:100%}.auth-links{display:flex;gap:16px;justify-content:center;margin-top:22px;flex-wrap:wrap}.auth-note{font-size:.73rem;line-height:1.6;color:var(--muted);margin-top:30px}.divider{border:0;border-top:1px solid var(--line);margin:25px 0}.error-box:empty{display:none}.error-box{background:#fae8e3;color:#9b3c32;padding:12px;border-radius:8px;margin-bottom:16px;font-size:.83rem}.quiz-layout{display:grid;grid-template-columns:1fr 235px;gap:22px}.timer{font-variant-numeric:tabular-nums;font-size:1.5rem;font-weight:600;letter-spacing:1px}.timer.urgent{color:var(--red)}.question-panel{min-height:430px}.question-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:.76rem;margin-bottom:22px}.question-prompt{font-size:1.25rem;line-height:1.7;white-space:pre-wrap;margin-bottom:26px;font-weight:550;overflow-wrap:anywhere}.options{display:grid;gap:11px}.option{border:1px solid #dbe2d5;border-radius:10px;padding:16px;display:flex;align-items:center;gap:12px;cursor:pointer;font-size:.94rem;min-height:56px;transition:background .1s}.option input{width:17px;height:17px;min-height:0;flex-shrink:0;accent-color:var(--green);margin:0}.option:has(input:checked){background:#eef5e4;border-color:#8da478}.option-letter{font-size:.74rem;color:var(--muted)}.quiz-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:28px}.question-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:17px 0}.qnum{padding:8px 0;border:1px solid #dfe4d8;border-radius:6px;background:#fff;font-size:.72rem;min-height:35px}.qnum.current{outline:2px solid var(--green)}.qnum.done{background:#dcebbf;border-color:#b6cda4}.qnum.excluded{background:#f1f1ed;color:#969d96}.quiz-sidebar p{font-size:.76rem;color:var(--muted)}.select-question{display:flex;gap:9px;align-items:center;font-size:.82rem;margin:20px 0}.select-question input{width:17px;min-height:0;height:17px;accent-color:var(--green)}.hint{margin-top:15px;background:#f4f5ed;padding:13px;border-radius:8px;font-size:.87rem;line-height:1.7}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.badge{display:inline-block;background:#eef3e6;color:#526745;padding:5px 8px;border-radius:5px;font-size:.7rem}.badge.bad{background:#f9e7e1;color:#a44537}.correction{border-bottom:1px solid var(--line);padding:23px 0}.correction:first-child{padding-top:0}.correction .question-prompt{font-size:1rem;margin:12px 0}.correction p{font-size:.88rem;margin-bottom:8px}.explanation{border-left:3px solid #a8bf82;padding:11px 15px;background:#f4f7ef;line-height:1.7;font-size:.88rem;white-space:pre-wrap}.tiny{font-size:.74rem}.chart{display:flex;gap:8px;align-items:flex-end;height:150px;padding-top:12px;border-bottom:1px solid var(--line);margin-bottom:25px}.chart div{flex:1;max-width:50px;min-width:12px;background:#a8bd86;border-radius:5px 5px 0 0;position:relative;min-height:3px}.chart span{position:absolute;top:-20px;left:0;font-size:.66rem;width:100%;text-align:center}.calendar{display:grid;gap:12px}.day{display:grid;grid-template-columns:85px 1fr auto;gap:16px;align-items:center;border:1px solid var(--line);background:#fff;padding:20px;border-radius:12px}.day .date{font-size:.8rem;color:var(--muted)}.day h3{margin:0 0 5px}.day p{font-size:.82rem;margin:0;color:var(--muted)}.code{font-family:ui-monospace,monospace;background:#edf3e4;padding:18px;word-break:break-all;border-radius:8px;font-size:1rem;user-select:all}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.exercise-list{max-height:600px;overflow:auto}.exercise-item{padding:14px 0;border-bottom:1px solid var(--line);display:flex;gap:10px;align-items:center;justify-content:space-between}.exercise-item p{margin:0;font-size:.8rem;line-height:1.4}.footer{font-size:.71rem;line-height:1.8;color:var(--muted);margin-top:32px;border-top:1px solid var(--line);padding-top:16px}.loading{display:grid;place-items:center;min-height:60vh}.skip{position:absolute;top:-60px;left:10px;background:#fff;padding:15px;z-index:99}.skip:focus{top:10px}#toast{position:fixed;right:22px;bottom:22px;max-width:450px;background:var(--deep);color:#fff;padding:15px 22px;border-radius:10px;box-shadow:0 8px 30px #0002;display:none;z-index:100;font-size:.87rem}.mobile-brand{display:none}.save-status{font-size:.74rem;color:var(--muted)}.result-top{display:flex;justify-content:space-between;gap:20px;align-items:center}.score-big{font-size:3rem;font-weight:600;letter-spacing:-2px}.modal-backdrop{position:fixed;inset:0;background:#112d2bb0;display:grid;place-items:center;z-index:50;padding:20px}.modal{background:white;border-radius:16px;padding:30px;max-width:460px;width:100%}.modal p{color:var(--muted);font-size:.9rem}.checkline{display:flex;gap:10px;align-items:center}.checkline input{width:18px;min-height:0;height:18px}.rules-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}.rules-grid .card .value{font-size:1.6rem}.resource{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line);text-decoration:none}.resource p{margin:0;color:var(--muted);font-size:.8rem}.resource strong{display:block;font-size:.9rem;margin-bottom:5px}.status-dot{color:#7ca469}.toast-error{background:var(--red)!important}@media(min-width:1600px){.content{padding-top:50px}}@media(max-width:1100px){.sidebar{padding:28px 16px}.app-shell{grid-template-columns:205px 1fr}.content{padding:28px 25px}.topbar{padding:0 25px}.cards{grid-template-columns:repeat(2,1fr)}.chapter-grid{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}.hero{grid-template-columns:1fr 130px}.orbit{width:120px;height:120px}.orbit:before{width:90px;height:90px}.quiz-layout{grid-template-columns:1fr}.question-grid{grid-template-columns:repeat(10,1fr)}.admin-grid{grid-template-columns:1fr}}@media(max-width:700px){.app-shell{display:block}.sidebar{height:auto;position:static;padding:18px}.sidebar .brand,.sidebar-foot,.side-goal{display:none}.sidebar nav{margin:0;display:flex;overflow:auto;gap:5px}.nav{white-space:nowrap;padding:10px 12px;font-size:.76rem}.nav .ico{display:none}.topbar{height:62px;padding:0 20px}.mobile-brand{display:block;font-weight:650;color:var(--green)}.topbar .breadcrumb{display:none}.content{padding:26px 18px 45px}.page-heading{display:block}.page-heading .btn{margin-top:15px}.hero{padding:26px;grid-template-columns:1fr}.hero h2{font-size:1.5rem}.hero-art{display:none}.card,.panel{padding:19px}.cards{gap:10px}.card .value{font-size:1.7rem}.chapter-grid,.rules-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.auth-page{display:block}.auth-story{padding:25px}.auth-story>div:nth-child(2),.auth-story>p{display:none}.auth-form-wrap{padding:42px 23px}.question-prompt{font-size:1.1rem}.quiz-bottom{flex-wrap:wrap}.question-grid{grid-template-columns:repeat(8,1fr)}.day{grid-template-columns:60px 1fr;padding:16px;gap:10px}.day .btn{grid-column:2;justify-self:start}.actions{gap:8px}.tag{font-size:.66rem}.auth-note{font-size:.72rem}h1{letter-spacing:-1px}.result-top{align-items:flex-start}.filters select{width:100%}.subject-row{gap:10px}.score-big{font-size:2.3rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:700px){.sidebar-foot{display:block;margin-top:4px;padding-top:0;border:0;text-align:right}.sidebar-foot .userline{display:none}.sidebar-foot #logout{margin:0!important;font-size:.7rem}}
