:root{color-scheme:dark;--base:#101927;--rail:#0b131f;--panel:#162234;--line:#2c3b50;--muted:#aebdd1;--white:#f4f7fa;--red:#ed4448;--soft:#ff8584;font:16px/1.5 system-ui,-apple-system,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--base);color:var(--white);min-height:100vh}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}:focus-visible{outline:3px solid #ff9f9c;outline-offset:4px}p{margin:0;color:var(--muted)}h1,h2,h3{margin:0;line-height:1.12}h1{font-size:clamp(2rem,5vw,3.8rem);letter-spacing:-.05em}h2{font-size:1.55rem;letter-spacing:-.025em}h3{font-size:1.14rem}small{font-size:.85rem;color:var(--muted)}
.rail{position:fixed;inset:0 auto 0 0;width:224px;background:var(--rail);border-right:1px solid var(--line);padding:24px 16px;display:flex;flex-direction:column;z-index:2}.brand{display:flex;flex-direction:column;align-items:center;margin:0 0 31px;letter-spacing:.35em;font-size:.72rem;font-weight:800;color:#d8e2ef}.brand img{width:154px;height:97px;object-fit:cover;border-radius:9px;margin-bottom:8px}nav{display:grid;gap:8px}nav a{display:flex;align-items:center;gap:13px;border-radius:9px;padding:11px 13px;font-weight:650;color:var(--muted);border:1px solid transparent}nav a span{width:19px;text-align:center;font-size:1.2rem}nav a:hover,nav a[aria-current=page]{color:white;background:#1b283a}nav a[aria-current=page]{border-color:#39485c}nav a[aria-current=page] span{color:var(--soft)}.rail-footer{margin-top:auto;padding:12px;color:var(--muted);font-size:.88rem}.dot{display:inline-block;width:7px;height:7px;background:var(--soft);border-radius:50%;margin-right:6px}
.workspace{margin-left:224px;min-height:100vh;display:flex;flex-direction:column}header{min-height:70px;border-bottom:1px solid var(--line);padding:12px clamp(16px,4vw,52px);display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-weight:650}.profile{display:flex;gap:10px;align-items:center}.avatar{display:grid;place-items:center;background:#2c3748;color:#fff;width:34px;height:34px;border-radius:50%;flex:none}#profile-name{max-width:16ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}main{width:100%;max-width:1320px;margin:0 auto;padding:34px clamp(16px,4vw,52px);flex:1}footer{max-width:1320px;width:100%;margin:auto;padding:20px clamp(16px,4vw,52px) 28px;display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:.82rem}.signature{color:#e8eef7;font-style:italic}
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:284px;display:flex;justify-content:center;flex-direction:column;padding:clamp(22px,5vw,52px);border:1px solid #384659;border-radius:18px;background:linear-gradient(100deg,#1b2a3e,#142031 62%,#211d2a)}.hero:after{position:absolute;content:"";inset:-70% -12% -74% 60%;transform:skewX(-31deg);border:1px solid #df474b59;box-shadow:-32px 0 #e8444812,-64px 0 #e844480a;z-index:-1}.hero p{margin:14px 0 22px;max-width:48ch}.hero h1{max-width:16ch}.eyebrow{color:var(--soft);letter-spacing:.14em;font-weight:800;font-size:.83rem;margin-bottom:12px}.progress-row,.section-head,.card-end,.actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.progress-row{max-width:400px;color:#e9eff7;font-size:.9rem}.progress-row progress{width:100%;height:8px;border:0;appearance:none;background:#354359;border-radius:10px;overflow:hidden}progress::-webkit-progress-bar{background:#354359}progress::-webkit-progress-value{background:var(--red)}progress::-moz-progress-bar{background:var(--red)}.section-head{margin:32px 0 16px}.section-head p{font-size:.94rem}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.card,.panel,.resource{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:19px}.card{display:flex;flex-direction:column;gap:12px;min-height:180px}.card p{flex:1;font-size:.95rem}.tag{display:inline-block;background:#2c3547;color:#dae5f4;border-radius:6px;padding:3px 8px;font-size:.82rem;font-weight:750;width:fit-content}.done{color:#b4f1d3;background:#1e3b37}.pending{color:#fbd1a1;background:#413344}.card-end{margin-top:4px}.button,button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;border-radius:8px;border:1px solid #43536a;background:#243348;color:white;font-weight:700}.button:hover,button:hover{background:#32445e}.primary{background:#c93239;border-color:#ef5559}.primary:hover{background:#ad2832}.resource{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.resource p,.panel p{margin-top:6px}.stack{display:grid;gap:16px}.intro h1{font-size:clamp(1.9rem,5vw,3.1rem);margin:7px 0 9px}.panel h2{margin-bottom:10px}.actions{justify-content:flex-start}.pdf-frame{display:block;width:100%;height:min(72vh,800px);height:min(72dvh,800px);border:1px solid var(--line);border-radius:10px;margin-top:14px;background:#232e40}.back{display:inline-block;color:var(--muted);margin-bottom:9px;text-decoration:underline}.video{border-left:3px solid var(--red)}label.field{display:grid;gap:6px;margin-bottom:13px;font-weight:650}input:not([type=radio]),select{width:100%;color:white;border:1px solid #4b5b73;background:#101a29;border-radius:7px;padding:10px;min-height:44px}input[type=radio]{accent-color:#fa686d;width:17px;height:17px;flex:none}.option{display:flex;align-items:center;gap:10px;border:1px solid var(--line);padding:9px 12px;border-radius:7px;margin:7px 0;cursor:pointer}fieldset{min-width:0;margin:0;border:0;padding:0}legend{font-weight:750;margin-bottom:8px}.result{color:#b4f1d3;font-weight:750}.notice{padding:12px 14px;background:#233047;border-radius:8px;color:#e1e9f4}.admin-list{display:grid;gap:8px;padding:0;list-style:none}.admin-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:8px 0}.admin-list li>span{overflow-wrap:anywhere}ol{padding-left:24px}.history li{padding:5px}
@media(max-width:1100px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.rail{position:static;width:auto;border-right:0;border-bottom:1px solid var(--line);padding:9px 12px 11px}.brand{align-self:flex-start;flex-direction:row;margin:0 0 9px;gap:9px}.brand img{width:83px;height:43px;margin:0}.rail-footer{display:none}nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}nav a{gap:5px;padding:7px 4px;justify-content:center;font-size:.85rem;min-height:42px}nav a span{width:auto;font-size:.95rem}.workspace{margin-left:0;min-height:calc(100vh - 114px)}header{min-height:53px}main{padding-top:20px}.hero{min-height:234px}}
@media(max-width:490px){.grid{grid-template-columns:1fr}.card{min-height:0}.card,.panel,.resource{padding:15px}footer{flex-direction:column}.pdf-frame{height:65vh;height:65dvh}}
.reader{display:grid;gap:10px;margin-top:14px}.reader canvas{display:block;max-width:100%;height:auto;border-radius:6px}.reader canvas[hidden]{display:none}.flash{margin-bottom:16px}#lesson-form p{margin:0 0 14px}.video .button{margin-top:13px}
[hidden]{display:none!important}
body.signed-out .rail,body.signed-out .workspace>header{display:none}
body.signed-out .workspace{margin-left:0;min-height:100vh}
.signed-out main{max-width:740px;padding-top:clamp(24px,7vh,80px)}
.login-shell{display:grid;gap:20px;justify-items:center}
.login-brand{display:flex;flex-direction:column;align-items:center;letter-spacing:.3em;font-size:.82rem}
.login-brand img{width:153px;height:85px;object-fit:cover;border-radius:10px;margin-bottom:8px}
.login-panel{width:100%;padding:clamp(20px,5vw,38px);border-top:3px solid var(--red)}
.login-steps{display:flex;gap:8px;flex-wrap:wrap;padding:0;margin:0;list-style:none}
.login-steps li{border:1px solid var(--line);padding:5px 12px;border-radius:6px;color:var(--muted);font-size:.9rem}
.login-steps li[aria-current=step]{background:#412731;color:#fff;border-color:var(--red)}
.code{letter-spacing:.32em;font-variant-numeric:tabular-nums}
.countdown{margin:0 0 14px!important}
.material-links{margin-top:14px}
.cabinet-hero{gap:15px}
.cabinet-hero p{margin:8px 0 0}
.cabinet-hero h1{overflow-wrap:anywhere}
.lesson-test .tag{margin-right:8px}
.lesson-test a{margin:4px 0}
video{display:block;width:100%;max-height:72vh;background:#050912;border-radius:9px}
.header-actions{display:flex;gap:14px;align-items:center}
#theme-toggle{min-width:42px;padding:0;font-size:1.25rem}
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px}
.metric{display:grid;gap:5px;border-top:3px solid var(--red)}
.metric strong{font-size:1.85rem;line-height:1.2}
.metric span{color:var(--muted)}
.employee-list{display:grid;gap:8px}
.employee-row{display:grid;grid-template-columns:2.5rem minmax(0,2fr) minmax(7rem,1fr) 4rem auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:9px}
.employee-row.own-row{border-color:var(--red)}
.employee-row small,.employee-progress progress{display:block}
.person{min-width:0;overflow-wrap:anywhere}
.employee-score{text-align:right}
.employee-progress progress{width:100%;height:8px}
.place{color:var(--soft)}
.locked-card{background:color-mix(in srgb,var(--panel) 65%,var(--base))}
@media(max-width:760px){nav{grid-template-columns:repeat(auto-fit,minmax(63px,1fr))}nav a{gap:3px}.employee-row{grid-template-columns:1.5rem minmax(0,1fr) 4rem}.employee-row .employee-progress{grid-column:2;grid-row:2}.employee-row>button{grid-column:3;grid-row:2;font-size:.75rem;padding:4px;min-height:35px}}
@media(max-width:375px){nav a span{display:none}.metrics{grid-template-columns:1fr 1fr}.metric{padding:10px}.metric strong{font-size:1.5rem}}
:root[data-theme=light]{color-scheme:light;--base:#f3f6fa;--rail:#e8eef5;--panel:#fff;--line:#ccd7e3;--muted:#47566a;--white:#142135;--red:#c42935;--soft:#9c2530}
[data-theme=light] .brand,[data-theme=light] .signature{color:var(--white)}
[data-theme=light] .hero{background:linear-gradient(110deg,#fdfefe,#e6eef8 66%,#f6e7eb);border-color:var(--line)}
[data-theme=light] .progress-row{color:var(--white)}
[data-theme=light] nav a:hover,[data-theme=light] nav a[aria-current=page]{color:#142135;background:#fff;border-color:var(--line)}
[data-theme=light] .avatar,[data-theme=light] .button,[data-theme=light] button{background:#e7edf5;color:#17273e;border-color:#aebed0}
[data-theme=light] .button:hover,[data-theme=light] button:hover{background:#d6e2ee}
[data-theme=light] .primary{background:#ab2633;color:#fff;border-color:#ab2633}
[data-theme=light] .primary:hover{background:#8f1e2b}
[data-theme=light] .tag{color:#263b54;background:#e6edf6}
[data-theme=light] .done,[data-theme=light] .result{color:#146044}
[data-theme=light] .done{background:#e0f3e9}
[data-theme=light] .pending{color:#795019;background:#faedd9}
[data-theme=light] .notice{color:#273d54;background:#e4edf7}
[data-theme=light] .login-steps li[aria-current=step]{background:#ffe8ea;color:#982635}
[data-theme=light] input:not([type=radio]),[data-theme=light] select{color:var(--white);background:#fff;border-color:#9bacc0}
[data-theme=light] :focus-visible{outline-color:#a52232}
.achievement{padding:12px;display:grid;gap:8px;border:1px solid var(--line);border-radius:9px}
