
:root{font-family:"Inter","Segoe UI",system-ui,sans-serif;color:#152345;background:#f5f7fc;line-height:1.5;font-size:16px;--navy:#152345;--muted:#556581;--line:#e1e7f1;--blue:#214dc6;--paper:#fff}
*,*::before,*::after{box-sizing:border-box}
body{margin:0}
button,input,select{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6585f5;outline-offset:3px}
[hidden]{display:none!important}
.layout{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}
.rail{position:sticky;top:0;height:100vh;background:var(--paper);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:34px 22px 22px;overflow:auto}
.brand{display:flex;align-items:center;font-size:1.55rem;font-weight:790;letter-spacing:-.065em;margin:0 8px 48px;white-space:nowrap}
.brand-accent{color:var(--blue)}
.logo{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#234ecd;margin-right:10px;flex:none}
.logo span{width:15px;height:18px;border:1.5px solid white;border-radius:2px;position:relative}
.logo span::after{content:"";position:absolute;top:5px;left:3px;width:7px;height:1.5px;background:white;box-shadow:0 4px 0 white}
.rail-label{font-size:.875rem;font-weight:650;color:var(--muted);margin:24px 12px 8px}
.rail nav a{display:flex;align-items:center;gap:10px;min-height:43px;padding:8px 11px;border-radius:9px;font-size:.91rem;font-weight:590;color:#3b4b69}
.rail nav a:hover,.rail nav a[aria-current]{background:#edf2ff;color:#2149ba}
.overview::before{content:"▦";font-size:1.23rem;line-height:1}
.dot{width:8px;height:8px;border-radius:50%;background:var(--accent);flex:none}
.editor-button{margin-top:auto;align-self:flex-start;background:none;border:0;color:var(--muted);padding:12px 11px;font-size:.875rem;text-align:left}
.editor-button:hover{color:var(--blue)}
.main{width:min(100%,1238px);margin-inline:auto;padding:26px clamp(28px,5vw,72px) 56px}
.topline{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;margin-bottom:29px;color:var(--muted);font-size:.9rem;font-weight:650}
.topline a:hover{text-decoration:underline}
.breadcrumb-divider{margin:0 9px;color:#7787a2}
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:236px;display:grid;align-content:center;padding:36px clamp(26px,5vw,56px);border-radius:22px;background:linear-gradient(123deg,#112963 0%,#1a3c91 65%,#2351c4 100%);color:white}
.hero::before,.hero::after{content:"";position:absolute;z-index:-1;pointer-events:none;border:1px solid #aac2ff54;border-radius:50%;width:380px;height:380px;right:-107px;top:-115px;box-shadow:0 0 0 23px #a6baff15,0 0 0 47px #b0c3ff12,0 0 0 71px #c2d0ff0c}
.hero::after{width:235px;height:235px;top:-25px;right:-43px;box-shadow:none;border-color:#c0d0ff40}
.hero h1{font-size:clamp(2.2rem,5vw,3.45rem);letter-spacing:-.054em;line-height:1.06;margin:0 0 13px;font-weight:770;max-width:15ch}
.hero p{margin:0;color:#e0eaff;max-width:37ch;font-size:1rem}
.section-title{font-size:1.45rem;letter-spacing:-.033em;margin:34px 0 14px}
.subjects{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:15px}
.blue{--accent:#2851c5;--tint:#eaf0ff}.mint{--accent:#17745e;--tint:#e2f6ed}.violet{--accent:#7040b5;--tint:#f0e8ff}.amber{--accent:#986017;--tint:#fff2d7}
.subject{min-height:160px;background:var(--paper);border:1px solid var(--line);border-radius:17px;padding:19px 20px;display:flex;flex-direction:column;align-items:flex-start;transition:border-color .15s,box-shadow .15s,transform .15s}
.subject:hover{border-color:#aebffa;box-shadow:0 8px 20px #273f7e0d;transform:translateY(-2px)}
.icon{display:grid;place-items:center;width:42px;height:42px;font-weight:650;border-radius:11px;color:var(--accent);background:var(--tint);font-size:1.35rem}
.subject h3{font-size:1.025rem;line-height:1.23;margin:13px 0 5px;overflow-wrap:anywhere}
.subject p{font-size:.875rem;color:var(--muted);margin:0}
.subject-header{display:flex;align-items:center;gap:18px;padding:27px 30px;border-radius:18px;background:var(--tint);border:1px solid var(--line);min-height:114px}
.subject-header .icon{background:#ffffffbc;width:55px;height:55px;flex:none}
.subject-header h1{font-size:clamp(1.5rem,4vw,2.2rem);letter-spacing:-.044em;line-height:1.12;margin:0;overflow-wrap:anywhere}
.lectures{display:grid;gap:13px}
.lecture{background:white;border:1px solid var(--line);border-radius:15px;padding:19px 21px}
.lecture-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.lecture h3{font-size:1.08rem;margin:0;overflow-wrap:anywhere}
.files{display:grid;gap:6px;margin-top:13px}
.file{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:9px;padding:9px 12px;font-size:.9rem;background:#fafbff}
.file-link{display:flex;gap:9px;align-items:center;min-width:0;color:#1e48b7;font-weight:630;overflow-wrap:anywhere;margin-right:auto}
.file-link:hover{text-decoration:underline}
.file-link::before{content:"▤";font-size:1.07rem;flex:none}
.file-size{color:var(--muted);white-space:nowrap}
.file .text-action{font-size:.83rem}
.empty,.status{margin:0;padding:22px;color:var(--muted);background:white;border:1px solid var(--line);border-radius:14px}
.lecture .empty{border:0;background:none;padding:11px 0 0;font-size:.9rem}
.primary,.secondary{border:1px solid transparent;border-radius:9px;padding:9px 14px;font-weight:650;font-size:.875rem;line-height:1.4}
.primary{background:#234ecb;color:white}
.primary:hover{background:#193fae}
.secondary{background:white;border-color:var(--line);color:var(--navy)}
.secondary:hover{background:#f0f4ff}
.text-action{background:none;border:0;padding:3px 0;color:#2149ba;font-size:.875rem;font-weight:620;white-space:nowrap}
.text-action:hover{text-decoration:underline}
button:disabled{opacity:.62;cursor:wait}
dialog{max-width:min(470px,calc(100vw - 32px));width:100%;border:1px solid var(--line);border-radius:17px;color:var(--navy);padding:24px;box-shadow:0 20px 90px #14265439}
dialog::backdrop{background:#111f46a0}
.dialog-head,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dialog-head h2{font-size:1.23rem;margin:0}
.dialog-actions{justify-content:flex-end;margin-top:20px}
.close{border:0;background:none;font-size:1.4rem;color:var(--muted);line-height:1;padding:5px}
.field{display:grid;gap:6px;margin-top:15px;font-weight:620;font-size:.9rem}
.field input,.field select{width:100%;border:1px solid #cdd6e8;border-radius:8px;padding:8px 10px;color:var(--navy);background:white}
.hint,.error{font-size:.875rem;margin:10px 0 0;color:var(--muted)}
.error{color:#9e2947}
@media(max-width:750px){.layout{grid-template-columns:minmax(0,1fr)}.rail{position:static;height:auto;flex-direction:row;align-items:center;justify-content:space-between;padding:12px 18px;border:0;border-bottom:1px solid var(--line);gap:10px}.brand{margin:0}.rail nav{display:none}.editor-button{margin:0;align-self:center;padding:8px 0;text-align:right}.main{padding:13px 18px 38px}.topline{margin-bottom:11px}.hero{min-height:193px}.hero::before{right:-249px}.hero::after{right:-153px}}
@media(max-width:480px){.file{flex-wrap:wrap;gap:4px 9px}.file-link{flex-basis:100%}.lecture{padding:14px}.subject-header{padding:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
