:root{--navy:#0c1929;--navy2:#14273a;--blue:#2563eb;--blue-soft:#e8f0ff;--ink:#18243a;--muted:#6b7589;--border:#e4e9f1;--surface:#fff;--bg:#f5f7fb;--green:#15875f;--radius:14px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,"Segoe UI",Tahoma,Arial,sans-serif}body{color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}h1,h2,h3,p{margin-top:0}.hidden{display:none!important}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:41px;border-radius:10px;padding:9px 15px;border:1px solid transparent;text-decoration:none;font-weight:700;font-size:.88rem;white-space:nowrap}.button.primary{background:var(--blue);color:white}.button.primary:hover{background:#1d4ed8}.button.outline{border-color:#dae2ee;background:white;color:#294262}.button.outline:hover{background:#f0f5ff}.button.small{min-height:36px;font-size:.78rem}.button.fill{width:100%}.icon-btn{border:0;background:transparent;padding:8px;color:inherit;font-size:1.2rem}.pill-small{display:inline-block;padding:7px 11px;border-radius:99px;background:#eaf0ff;color:#2e5eaf;font-size:.68rem;font-weight:800;letter-spacing:.12em}
.auth-page{background:#e9eef5}.auth-grid{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-illustration{background:radial-gradient(circle at 80% 5%,#274763 0%,transparent 50%),linear-gradient(135deg,#091629,#152e48);color:white;padding:70px min(8vw,100px);display:flex;flex-direction:column;justify-content:center;overflow:hidden;position:relative}.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.1em;color:#f3f6fb}.brand-logo{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#f97316;color:white;font-size:1rem;letter-spacing:-.04em}.auth-illustration .brand{position:absolute;top:36px;left:min(8vw,100px)}.tagline{font-size:.74rem;font-weight:800;letter-spacing:.22em;color:#99bcdd;margin-bottom:18px}.auth-illustration h1{font-size:clamp(2.7rem,4.5vw,5.3rem);line-height:1.08;letter-spacing:-.05em}.auth-illustration h1 em{font-style:normal;color:#f7b66f}.auth-sub{color:#b4c9db;font-size:1.08rem;line-height:1.8;max-width:530px}.auth-art{margin-top:45px;position:relative;max-width:430px}.art-screen{height:210px;border-radius:21px;background:linear-gradient(145deg,#1e4471,#071b32);box-shadow:0 26px 70px #0005;border:1px solid #5a81a16b;display:grid;place-items:center}.art-play{display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:#f8b26a;color:#0c1929;font-size:1.8rem}.art-bars{position:absolute;bottom:25px;left:25px;right:25px;display:flex;gap:7px}.art-bars span{height:6px;border-radius:10px;background:#6e91b1;flex:1}.art-bars span:first-child{background:#fbbf24;flex:2}.art-chip{position:absolute;right:-15px;bottom:-18px;background:#fff;color:#1a314b;padding:12px 18px;border-radius:13px;box-shadow:0 15px 30px #0003;font-weight:800;font-size:.8rem}.auth-form-wrapper{display:flex;align-items:center;justify-content:center;padding:40px}.auth-card{max-width:460px;width:100%;background:white;border-radius:24px;padding:42px;box-shadow:0 25px 80px #1b335018}.auth-card h2{font-size:1.8rem;letter-spacing:-.04em;margin:18px 0 8px}.auth-card>p{color:var(--muted);line-height:1.7}.stack-form{display:flex;flex-direction:column;gap:13px;margin-top:24px}.stack-form label{display:flex;flex-direction:column;gap:7px;font-size:.81rem;font-weight:800;color:#40516b}.stack-form input,.stack-form select,.stack-form textarea,.content-card textarea{width:100%;padding:12px 13px;border-radius:10px;background:#fff;border:1px solid #dbe2ec;outline:none;color:#1b2a40}.stack-form input:focus,.stack-form select:focus,.content-card textarea:focus{border-color:#7aa8ec;box-shadow:0 0 0 3px #e7efff}.error-banner{padding:12px 14px;margin:18px 0;background:#fff0ef;border:1px solid #ffd6d1;color:#a33428;border-radius:10px;font-size:.86rem}.footnote{margin:22px 0 0;font-size:.78rem}
.app-layout{display:grid;grid-template-columns:310px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:#eef4fc;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;overflow:hidden}.sidebar-head{padding:26px 25px;border-bottom:1px solid #29394b}.sidebar-progress{padding:21px 20px 18px;background:#13263b;margin:18px 15px;border:1px solid #29425a;border-radius:13px}.label-mini,.sidebar-label{font-size:.65rem;color:#8ca4ba;font-weight:800;letter-spacing:.12em}.flex-between{display:flex;justify-content:space-between;align-items:center;margin:12px 0 9px}.flex-between strong{font-size:1.42rem}.flex-between small{color:#91a9bd}.progress-track{height:7px;border-radius:10px;background:#395065;overflow:hidden}.progress-fill{height:100%;width:0;background:#54d1a1;transition:.3s}.sidebar-label{padding:12px 22px 13px;display:flex;justify-content:space-between}.module-list{padding:0 10px 20px;flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#46627b transparent}.module-group{margin-bottom:4px}.module-heading{display:flex;align-items:flex-start;gap:10px;width:100%;padding:12px 12px;border:0;border-radius:10px;background:transparent;color:#d8e6f4;text-align:left;font-size:.83rem}.module-heading:hover,.module-heading.open{background:#1b3550}.module-heading .arrow{color:#90acc5;font-size:.75rem;margin-top:2px}.module-heading .module-title{flex:1;line-height:1.5}.module-heading .module-total{background:#2b445d;border-radius:8px;padding:2px 7px;font-size:.67rem;color:#c1d2e1}.lesson-list{padding:0 5px 9px 19px}.lesson-item{width:100%;border:0;background:transparent;color:#b9cada;text-align:left;display:flex;gap:9px;align-items:flex-start;padding:9px 10px;border-radius:9px;font-size:.75rem;line-height:1.5}.lesson-item:hover{background:#203b57}.lesson-item.selected{background:#3157a2;color:white}.lesson-item .lesson-indicator{font-size:.74rem;min-width:15px}.lesson-item.completed .lesson-indicator{color:#6ae9b1}.skeleton{font-size:.8rem;padding:20px;color:#9db1c6}.sidebar-foot{padding:20px;border-top:1px solid #263747;color:#8aa5b9;font-size:.72rem}.dot-online{display:inline-block;width:8px;height:8px;background:#5bd3a0;border-radius:50%;margin-right:5px}.sidebar-backdrop{display:none}
.work-area{min-width:0}.topbar{height:78px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 30px;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:5}.header-left,.header-right{display:flex;align-items:center;gap:15px;min-width:0}.breadcrumb{display:flex;flex-direction:column;gap:5px}.breadcrumb span{font-size:.63rem;letter-spacing:.12em;color:#8895a5;font-weight:800}.breadcrumb strong{font-size:.92rem}.search-wrap{position:relative}.search-wrap input{width:min(24vw,310px);min-width:190px;padding:11px 13px 11px 35px;background:#f5f7fb;border:1px solid #edf0f5;border-radius:10px;outline:none;font-size:.82rem}.search-icon{position:absolute;left:12px;top:9px;font-size:1.35rem;color:#8b9aad}.small-nav{padding:10px 13px;border-radius:9px;border:0;background:transparent;font-weight:700;color:#738094;white-space:nowrap}.small-nav.selected{background:#e8f0ff;color:#2359ab}.user-chip{padding:8px 11px;background:#f1f5fa;border-radius:9px;font-size:.73rem;font-weight:700;color:#2c425c;white-space:nowrap}.main-content{max-width:1480px;padding:32px 34px 50px;margin:auto}.welcome-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:24px}.overline{font-size:.69rem;letter-spacing:.16em;color:#3976bf;font-weight:900;margin-bottom:8px}.welcome-row h1{font-size:clamp(1.6rem,2.4vw,2.2rem);letter-spacing:-.04em;margin-bottom:8px}.subheading{color:#7c8797;font-size:.88rem;margin-bottom:0}.course-stats{border-radius:14px;background:white;border:1px solid var(--border);padding:11px 17px;display:flex;flex-direction:column;gap:4px;white-space:nowrap}.course-stats span{font-size:.69rem;color:#8b96a6}.course-stats strong{font-size:.8rem}.player-card,.content-card{background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 10px 30px #19365708;overflow:hidden}.player-container{aspect-ratio:16/9;background:#0b1728;position:relative;display:grid;place-items:center}.player-container iframe{width:100%;height:100%;border:0;display:block}.player-placeholder{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;color:white;padding:25px}.player-placeholder h2{font-size:1.25rem;margin:10px 0 0}.player-placeholder p{color:#a4b5c9;max-width:470px;font-size:.86rem;line-height:1.8}.round-play{display:grid;place-items:center;background:#265ac0;color:white;border-radius:50%;width:70px;height:70px;font-size:1.7rem}.player-info{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;padding:24px 26px}.player-info h2{margin:0 0 8px;font-size:1.32rem;line-height:1.4}.lesson-meta{font-size:.8rem;color:#8390a1}.player-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.lower-grid,.admin-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;margin-top:20px}.content-card{padding:23px}.card-heading{display:flex;gap:8px;justify-content:space-between;align-items:center}.card-heading h3{margin:0;font-size:1.06rem}.card-heading span{font-size:.73rem;color:#8a97a7}.content-card>p{line-height:1.7;color:#667588;font-size:.85rem;margin:10px 0 17px}.content-card textarea{min-height:135px;resize:vertical;line-height:1.6}.note-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:12px}.note-footer span,.status-line{color:#778497;font-size:.77rem}.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.mini-stats>div{background:#f2f6fc;border-radius:12px;padding:14px}.mini-stats strong{display:block;font-size:1.4rem;color:#225bac}.mini-stats span{display:block;color:#7d8aa0;font-size:.7rem;margin-top:5px}.tip-box{padding:14px 16px;background:#eef7f2;border:1px solid #daede2;border-radius:12px}.tip-box b{color:#267451}.tip-box p{font-size:.81rem;color:#5d7166;line-height:1.6;margin:6px 0 0}.admin-grid{grid-template-columns:1fr 1fr;margin-top:0}.admin-grid .stack-form{margin-top:12px}.status-line{margin-top:12px;min-height:18px;line-height:1.6}.users-list{margin-top:15px;display:flex;flex-direction:column;gap:8px}.user-row{padding:12px;border-radius:10px;border:1px solid #e2e8f1;display:flex;align-items:center;gap:10px;justify-content:space-between;font-size:.83rem}.user-row .role{font-size:.66rem;background:#eaf0ff;color:#3f6db1;padding:4px 7px;border-radius:99px}.user-row small{display:block;color:#94a0af;margin-top:5px}.user-row-actions{display:flex;gap:5px}.user-row-actions button{padding:7px 9px;font-size:.72rem;border-radius:7px;border:1px solid #e0e6ec;background:#fff}.user-row-actions button:hover{background:#eaf0ff}.file-upload{display:flex;flex-direction:column;gap:10px;margin-top:13px}.file-upload input{width:100%;font-size:.8rem}.toast{position:fixed;bottom:24px;right:24px;background:#173956;color:white;padding:13px 19px;border-radius:13px;box-shadow:0 18px 40px #071c2d33;z-index:50;font-size:.83rem;max-width:350px;opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s}.toast.visible{opacity:1;transform:translateY(0)}
@media(max-width:1200px){.app-layout{grid-template-columns:260px minmax(0,1fr)}.topbar{padding:0 20px}.main-content{padding:25px 20px}.user-chip{display:none}.player-info{flex-direction:column;align-items:stretch}.player-actions{justify-content:flex-start}.search-wrap input{width:200px}}@media(max-width:1000px){.app-layout{grid-template-columns:1fr}.sidebar{position:fixed;left:0;top:0;bottom:0;width:min(330px,85vw);z-index:30;transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0)}.sidebar-backdrop.open{display:block;position:fixed;inset:0;background:#08162977;z-index:20}.hide-desktop{display:inline-grid}.topbar{position:sticky}.header-left{gap:6px}}@media(min-width:1001px){.hide-desktop{display:none}}@media(max-width:760px){.auth-grid{grid-template-columns:1fr}.auth-illustration{display:none}.auth-form-wrapper{min-height:100vh;padding:22px}.auth-card{padding:28px}.topbar{height:auto;min-height:70px;padding:12px;flex-wrap:wrap}.header-right{flex-wrap:wrap;gap:6px}.search-wrap{order:3;flex:1 0 100%}.search-wrap input{width:100%}.user-chip{display:none}.main-content{padding:20px 12px}.welcome-row{align-items:stretch;flex-direction:column}.course-stats{display:none}.lower-grid,.admin-grid{grid-template-columns:1fr}.player-info{padding:17px}.player-actions .button{flex:1}.content-card{padding:17px}.breadcrumb strong{font-size:.8rem}.small-nav{font-size:.76rem;padding:8px}.module-list{padding-bottom:40px}}
