:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#293952;background:#f5f7fb;font-size:15px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;line-height:1.55}a{text-decoration:none;color:inherit}button,input,textarea,select{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.6rem,3vw,2.25rem);line-height:1.24;letter-spacing:-.04em}h2{font-size:1.13rem}small,.muted{color:#758497}.tiny{font-size:.8rem}input,textarea,select{color:#283955;border:1px solid #d7e0ea;background:#fff;border-radius:9px;padding:12px 13px;width:100%;min-height:44px}textarea{resize:vertical}input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #c68a39;outline-offset:3px}.field{display:flex;flex-direction:column;gap:6px;font-size:.86rem;color:#435672;font-weight:680;margin-bottom:14px}.btn{border:1px solid transparent;border-radius:10px;background:#fff;color:#194a7b;padding:11px 17px;min-height:43px;display:inline-flex;justify-content:center;align-items:center;font-size:.87rem;font-weight:720;gap:8px}.btn:hover{filter:brightness(.95)}.btn-primary{background:#1b527e;color:#fff}.btn-outline{border-color:#c9d9e8}.btn-quiet{background:transparent;color:#59718b;padding:8px}.btn-light{background:#fff;color:#165384}.btn.small{font-size:.78rem;min-height:34px;padding:6px 10px}.btn.full{width:100%}.app-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.sidebar{background:#fff;border-right:1px solid #e4eaf2;display:flex;flex-direction:column;gap:30px;padding:25px 15px;min-height:100vh}.brand{color:#163b61;display:flex;align-items:center;gap:12px;font-size:1.03rem;font-weight:760;padding:8px;white-space:nowrap}.brand b{font-weight:880}.brand small{display:block;font-size:.57rem;letter-spacing:.2em;color:#8999a8}.brand-mark{background:#163d60;color:#fff;border-radius:12px;padding:8px 13px;font-size:1.3rem;transform:rotate(-5deg)}.section-label{font-size:.67rem;font-weight:830;letter-spacing:.17em;color:#9daab9;padding:0 13px}.sidebar nav{display:grid;gap:6px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:9px;font-weight:650;color:#637489;font-size:.9rem}.sidebar nav a.active,.sidebar nav a:hover{color:#215784;background:#eaf1fa}.nav-ico{font-size:1.25rem;display:inline-grid;width:22px;place-items:center}.side-footer{margin-top:auto;border-top:1px solid #e8edf3;padding:15px 12px;font-size:.75rem;color:#8292a2}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#28a488;margin-right:8px}.page-content{min-width:0;display:flex;flex-direction:column}.topbar{background:#fff;border-bottom:1px solid #e5ebf2;padding:16px clamp(18px,3vw,44px);min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar>div:first-of-type{display:grid;gap:2px}.topbar>div:first-of-type small{font-size:.62rem;letter-spacing:.15em;font-weight:850}.topbar strong{color:#263c56}.top-user{display:flex;align-items:center;gap:10px}.user-desc{display:grid;font-size:.83rem;line-height:1.45}.user-desc small{font-size:.75rem}.avatar{display:grid;place-items:center;background:#e0ecf4;color:#1c6a84;border-radius:12px;width:39px;height:39px;font-weight:850}.menu-toggle{display:none;font-size:1.3rem;border:0;background:none;color:#1c4a71}.main-area{width:100%;max-width:1450px;margin:0 auto;padding:clamp(18px,2.7vw,40px) clamp(18px,3vw,45px) 52px;flex:1}.footer{text-align:center;font-size:.72rem;color:#9ca9b5;padding:15px}.hero{border-radius:18px;background:linear-gradient(120deg,#12365b,#1a6578);padding:35px 40px;min-height:222px;display:flex;align-items:center;justify-content:space-between;color:#fff;position:relative;overflow:hidden}.hero .eyebrow{color:#a3d6dc}.hero h1{font-size:clamp(1.6rem,2.8vw,2.35rem);margin:10px 0}.hero p{color:#d5e5ed;max-width:590px}.hero-visual{font-size:11rem;opacity:.1;position:absolute;right:10%;top:-50px}.eyebrow{font-size:.7rem;letter-spacing:.13em;font-weight:830;color:#4287a5}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:24px 0}.stat{background:#fff;border:1px solid #e7ecf2;border-radius:13px;padding:22px;display:grid;gap:4px}.stat small{font-size:.8rem}.stat strong{font-size:2rem;color:#1b415f;line-height:1.2}.stat span{font-size:.74rem;color:#96a3b3}.panel{background:#fff;border:1px solid #e6ecf3;border-radius:14px;padding:24px;margin-bottom:22px;box-shadow:0 7px 25px rgba(29,49,78,.025)}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}.panel-title h2{margin:0}.panel-title a{color:#28688a;font-size:.85rem;font-weight:700}.page-heading{margin:0 0 23px}.page-heading p{color:#718398;margin:9px 0 0}.course-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:18px}.course-card{background:#fff;border:1px solid #e6ecf3;border-radius:13px;overflow:hidden;min-width:0}.course-card:hover{box-shadow:0 10px 35px #1e395519}.course-visual{background:linear-gradient(130deg,#d5eef1,#b9d7e7);height:116px;position:relative;display:flex;justify-content:space-between;align-items:center;padding:17px;color:#2f6c86}.course-visual span{font-size:5rem;opacity:.35}.course-visual small{font-size:.78rem;font-weight:780;background:#fff9;border-radius:8px;padding:6px}.course-info{padding:19px}.course-info h2{margin:7px 0;font-size:1.08rem}.course-info p{color:#718397;font-size:.83rem;min-height:42px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.course-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #e9eef4;padding-top:14px;font-size:.75rem;color:#74859a}.course-footer strong{color:#356f8f}.course-banner{position:relative;border-radius:15px;background:linear-gradient(120deg,#153e63,#246783);color:#fff;padding:31px;margin:18px 0 24px;overflow:hidden;min-height:180px}.course-banner h1{margin:9px 0}.course-banner p{max-width:700px;color:#d8e7ef}.course-banner .eyebrow{color:#9dcde0}.banner-art{position:absolute;right:6%;top:-50px;font-size:12rem;opacity:.09}.content-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.85fr);gap:21px}.crumb{font-size:.82rem;color:#718398;margin-bottom:12px}.crumb a{color:#276d97}.list-item{display:flex;align-items:center;gap:13px;border-bottom:1px solid #edf0f5;padding:15px 0}.list-item:hover{color:#235b85}.list-item>span:nth-child(2){display:grid;gap:2px;flex:1}.list-item strong{font-size:.88rem}.list-item small{font-size:.74rem}.list-icon{border-radius:10px;background:#e9f4f4;color:#3d7989;width:39px;height:39px;display:grid;place-items:center;font-size:1.1rem}.arrow{color:#8da2b1}.pill{background:#eaf0f6;color:#5f7589;padding:5px 10px;border-radius:50px;font-size:.7rem;font-weight:800}.inline-details{margin-top:18px;border-top:1px solid #e8edf4;padding-top:14px}.inline-details summary,.create-box summary{color:#22658c;cursor:pointer;font-weight:750}.inline-details form,.create-box form{padding-top:19px}.create-box{margin-bottom:25px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.person{display:grid;border-bottom:1px solid #eef1f4;padding:10px 0}.person strong{font-size:.85rem}.person small,.live-row small{font-size:.77rem}.live-row{display:grid;gap:6px;padding:13px 0;border-bottom:1px solid #edf0f4}.live-row .btn{justify-self:start}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:.83rem}th,td{padding:13px 16px;border-bottom:1px solid #e9edf3;vertical-align:middle}th{background:#f7f9fc;color:#75889c;white-space:nowrap;font-size:.73rem}td small{display:block}.reader{max-width:940px;margin:auto}.reader h1{margin:18px 0}.lesson-body{white-space:pre-wrap;line-height:1.85;overflow-wrap:anywhere;min-height:120px}.lesson-body.compact{min-height:0;padding:5px 0 10px}.info-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:23px 0}.info-grid>div{border-radius:10px;background:#f5f8fc;padding:13px;display:grid;gap:4px}.info-grid small{font-size:.76rem}.info-grid strong{font-size:.87rem}.question-preview{border-bottom:1px solid #edf1f5;padding:14px 0;display:grid;gap:4px}.question-preview strong{font-size:.87rem}.question-preview small{font-size:.74rem}.exam-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px}.exam-toolbar h1{margin:0}.timer{background:#e8f0f8;border:1px solid #d0dfed;border-radius:10px;color:#24547a;display:grid;text-align:center;min-width:138px;padding:8px 20px}.timer strong{font-variant-numeric:tabular-nums;font-size:1.65rem}.timer span{font-size:.72rem}.timer.urgent{background:#feece4;color:#ad4636}.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:18px}.question{scroll-margin-top:20px}.question-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px}.question h2{font-size:1.06rem;font-weight:700;letter-spacing:0;white-space:pre-wrap}.choices{display:grid;gap:10px;margin-top:22px}.choice{display:flex;align-items:center;gap:12px;border:1px solid #e1e7ef;border-radius:9px;padding:11px 13px;cursor:pointer}.choice:has(input:checked){background:#ecf7fa;border-color:#5094af}.choice input{flex:none;width:18px;height:18px;accent-color:#27668d}.letter{background:#e8edf3;padding:6px 10px;border-radius:7px;font-weight:750}.saved-badge{color:#8798a8}.saved-badge[data-state=saved]{color:#23866d}.saved-badge[data-state=error]{color:#b75136}.sticky{position:sticky;top:20px}.question-nav{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:15px 0}.qnav{display:grid;place-items:center;aspect-ratio:1;border-radius:7px;background:#edf2f8;color:#5e7993;font-weight:800}.qnav.done{background:#dcefe8;color:#237861}.alert{padding:13px 16px;border-radius:10px;background:#fff1e7;color:#96512f;margin:0 0 22px;font-size:.85rem}.alert.success{background:#e8f6ef;color:#207954}.alert.note{background:#e8f0f9;color:#245879}.result{text-align:center;max-width:600px;margin:25px auto;padding:40px 28px}.result-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:100%;background:#dff4ea;color:#278766;font-size:2rem;font-weight:800;margin:0 auto 20px}.score{background:#eef5fc;color:#1f5b83;padding:22px;border-radius:14px;display:grid;margin:20px auto}.score strong{font-size:3.8rem;line-height:1}.score span{font-size:.82rem}.events td{padding:10px 18px;background:#fafcff}.event-list{padding:14px}.event-list p{font-size:.75rem;color:#60748b;margin:7px}.auth-wrap{min-height:100vh;background:#fff}.login-view{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-hero{background:linear-gradient(125deg,#143251,#16627d);color:#fff;padding:9%;display:flex;align-items:center;position:relative;overflow:hidden}.hero-shape{position:absolute;width:700px;height:700px;border:1px solid #ffffff20;border-radius:50%;bottom:-400px;right:-300px;box-shadow:0 0 0 80px #ffffff06,0 0 0 180px #ffffff05}.login-copy{position:relative;z-index:1}.login-logo{font-size:1.3rem;font-weight:830;margin-bottom:85px}.login-logo span{font-size:1.05rem;margin-left:9px}.login-copy .eyebrow{color:#b5dce5}.login-copy h1{font-size:clamp(2.7rem,5vw,4.8rem);line-height:1.12;margin:20px 0}.login-copy h1 em{font-style:normal;color:#e6ca8c}.login-copy p{font-size:1.05rem;color:#d3e6ed;max-width:450px}.hero-tags{display:flex;gap:9px;flex-wrap:wrap;margin-top:28px}.hero-tags span{border:1px solid #ffffff5c;padding:6px 12px;border-radius:40px;font-size:.73rem}.login-pane{display:flex;align-items:center;justify-content:center;padding:40px 25px}.login-card{width:min(100%,430px)}.login-card h2{font-size:2rem;margin:8px 0}.login-card>.muted{margin-bottom:26px}.login-card form{display:grid;gap:5px}.login-card form .btn{width:100%;margin-top:10px}.logo-mobile{display:none}.login-card .tiny{margin-top:25px}.error{color:#b83333}summary{cursor:pointer}@media(max-width:1100px){.app-shell{grid-template-columns:218px minmax(0,1fr)}.content-grid{grid-template-columns:1fr}.stats{gap:9px}}@media(max-width:820px){.app-shell{display:block}.sidebar{position:fixed;inset:0 auto 0 0;width:270px;z-index:20;transform:translateX(-102%);transition:transform .2s;box-shadow:10px 0 40px #13375820}.sidebar.open{transform:translateX(0)}.menu-toggle{display:block}.topbar{min-height:68px}.exam-layout{grid-template-columns:1fr}.exam-side{grid-row:1}.sticky{position:static}.question-nav{grid-template-columns:repeat(10,1fr)}.login-view{grid-template-columns:1fr}.login-hero{display:none}.login-pane{min-height:100vh}.logo-mobile{display:block;color:#28628a;font-weight:800;margin-bottom:28px;font-size:1.25rem}}@media(max-width:530px){.main-area{padding:18px 14px 32px}.topbar{padding:13px}.user-desc{display:none}.hero{padding:26px 23px}.hero-visual{display:none}.stats{grid-template-columns:repeat(2,1fr)}.stats .stat:last-child{grid-column:span 2}.stat{padding:15px}.stat strong{font-size:1.5rem}.panel{padding:17px}.course-grid{grid-template-columns:1fr}.two-col,.info-grid{grid-template-columns:1fr}.question-nav{grid-template-columns:repeat(5,1fr)}.exam-toolbar{align-items:stretch;flex-direction:column}.timer{display:flex;justify-content:space-between;align-items:center}.login-pane{padding:24px}.login-card h2{font-size:1.65rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* v0.3.0 management controls */
.management-card{margin:16px 0 20px}.management-card details{margin-top:12px}.management-card .two-col{margin-bottom:10px}.management-card form{margin:12px 0 4px}.management-card .help{color:#6b7890;font-size:.89rem}.file-line{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #e5e9f0;padding:12px 0;flex-wrap:wrap}.file-line small{display:block;color:#78859b}.audit-badge{font-size:12px;color:#53627e}.warning-panel{border:1px solid #edd8a6;background:#fff9e9;color:#5d491d;padding:12px;border-radius:12px}.inline-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.plain-select{padding:12px 14px;border-radius:10px;border:1px solid #d3ddeb;background:white}.table-scroll table td{vertical-align:top} .manage-form{display:grid;gap:12px}.pill.soft{background:#eef4fb;color:#20466a}.code-hint{background:#f4f6fa;border:1px solid #dae3ec;border-radius:10px;padding:13px;overflow-x:auto;white-space:pre-wrap;font-size:.88rem}.btn.danger{background:#8c2c35;color:white} @media(max-width:600px){.file-line{align-items:flex-start}.inline-actions{flex-direction:column;align-items:stretch}.management-card{padding:16px}}

/* V0.4.0 widgets */
.v04-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:16px 0 20px;}
.v04-stats .stat{min-width:0;}
[hidden]{display:none!important;}
@media(max-width:1050px){.v04-stats{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:580px){.v04-stats{grid-template-columns:1fr 1fr;gap:10px}.v04-stats .stat{padding:13px;}}

/* Virtual Classroom v0.6.0 — responsive, light and readable */
.classroom-top{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.classroom-top p{margin:0 auto 0 0}
.classroom-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:20px;align-items:start}
.slide-stage{background:#edf6fb;border:1px solid #d5e8f2;border-radius:18px;padding:28px;min-height:270px;margin:12px 0 16px;display:flex;flex-direction:column;gap:14px}
.slide-stage h2{font-size:clamp(1.25rem,3vw,2rem);line-height:1.3;color:#14374e;margin:0}
.slide-body{font-size:1.05rem;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:#24435b}
.slide-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.slide-controls select{max-width:100%;flex:1;min-width:120px;padding:10px;border:1px solid #bfd0db;border-radius:9px}
.room-chat{height:300px;overflow-y:auto;border:1px solid #dce5ed;background:#fafcff;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px}
.room-chat-item{padding:10px;border-radius:10px;background:#fff;border:1px solid #edf0f4;overflow-wrap:anywhere}
.room-chat-item strong{font-size:.8rem;color:#315774}
.room-chat-item p{margin:6px 0 0;line-height:1.5;white-space:pre-wrap}
.room-chat-form{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.room-chat-form label{font-weight:600;font-size:.9rem}
.room-chat-form textarea{width:100%;border:1px solid #b9cbd8;border-radius:10px;padding:10px;font:inherit}
.room-chat-form button{align-self:flex-start}
.room-hands{font-size:.92rem;line-height:1.7;overflow-wrap:anywhere}
@media(max-width:900px){.classroom-grid{grid-template-columns:1fr}.slide-stage{min-height:220px;padding:18px}.room-chat{height:250px}}
/* v0.7.0 ScreenShare Lite */
.screen-lite{margin-top:22px}
.screen-lite-viewer{margin:14px 0;min-height:240px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:16px;background:#101f36;color:#e1eaf5;text-align:center}
.screen-lite-viewer img{max-width:100%;width:100%;height:auto;max-height:74vh;object-fit:contain}
.screen-lite-viewer #screen-lite-placeholder{padding:28px;font-size:.95rem}
.screen-lite-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.screen-lite-controls .inline-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.screen-lite-quality{display:flex;align-items:center;gap:6px;font-size:.88rem}
.screen-lite-quality select,.screen-lite-select select{border:1px solid #c8d4e7;border-radius:8px;padding:9px;background:#fff;max-width:100%}
.screen-lite-select{margin-top:16px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.screen-lite-select label{font-weight:600}
.screen-lite-select select{flex:1 1 170px}
@media(max-width:650px){.screen-lite-viewer{min-height:160px}.screen-lite-controls{align-items:stretch;flex-direction:column}.screen-lite-select{flex-direction:column;align-items:stretch}}
.screen-lite [hidden]{display:none !important}
