:root{--purple:#7250ca;--purple-dark:#50379b;--ink:#2e2944;--muted:#6d6980;--line:#e8e5f0;--bg:#f7f7fc;--green:#24765c;--red:#b9344d;--radius:18px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:16px;line-height:1.55}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}a{color:var(--purple-dark);text-decoration:none}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}input,select,textarea{width:100%;padding:11px 13px;border:1px solid #d7d3e4;border-radius:10px;background:white;color:var(--ink);min-height:46px}textarea{resize:vertical;min-height:110px;line-height:1.6}input[type=checkbox],input[type=radio]{width:18px;min-height:18px;accent-color:var(--purple)}input[type=file]{padding:9px;font-size:14px}label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:650}label small{font-weight:400;color:var(--muted)}label.inline{flex-direction:row;align-items:center;gap:9px}fieldset{border:1px solid var(--line);border-radius:12px;padding:16px;margin:0}legend{font-weight:700;font-size:14px;padding:0 6px}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.2;letter-spacing:-.8px}h2{font-size:21px;line-height:1.3}h3{font-size:17px}p{color:var(--muted)}small{font-size:13px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #ae90f6;outline-offset:3px}.skip{position:absolute;left:16px;top:-80px;padding:12px;background:white;z-index:1000}.skip:focus{top:10px}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:850;color:var(--ink)}.brand-mark{width:39px;height:42px;border-radius:12px 15px 11px 15px;background:#ffd36b;display:grid;place-items:center;color:#433078;transform:rotate(-7deg);font-size:26px}.brand small{display:block;font-size:10px;color:var(--muted);letter-spacing:2px;font-weight:650}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;padding:28px 18px 20px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:30;overflow-y:auto}.sidebar .brand{padding:0 10px}.sidebar nav{display:grid;gap:5px;margin-top:35px}.nav-caption{font-size:11px;letter-spacing:1.5px;color:#9290a4;font-weight:750;padding:20px 16px 8px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:11px;color:#676178;font-size:14px;font-weight:650}.nav-link:hover{background:#f6f3fc}.nav-link.active{background:#ede6fb;color:var(--purple-dark)}.icon{width:21px;height:21px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sidebar-bottom{margin-top:auto;padding-top:25px;display:grid;gap:15px}.side-note{background:#f7f4fd;border-radius:13px;padding:16px;font-size:13px;color:#6f627e}.side-note b{display:block;color:var(--ink);margin-bottom:5px}.workspace{margin-left:240px;min-height:100vh}.topbar{height:82px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 34px;background:white;gap:16px;position:sticky;top:0;z-index:20}.breadcrumb{color:#878096;font-size:14px}.breadcrumb b{font-weight:600;color:#454052}.user-pill{display:flex;align-items:center;gap:10px}.user-avatar{background:#e7def9;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;color:var(--purple-dark);font-weight:750}.user-pill b{display:block;font-size:14px;line-height:1.3}.user-pill small{font-size:12px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:22px}.top-actions>a{font-size:14px}.icon-button.mobile-menu{display:none}.page{max-width:1480px;margin:auto;padding:32px 34px 60px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.page-heading p{margin-top:9px;max-width:680px;font-size:15px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;background:var(--purple);color:#fff;padding:11px 17px;min-height:44px;font-size:14px;font-weight:700;white-space:nowrap}.btn:hover{background:var(--purple-dark)}.btn.secondary{background:white;border-color:#ddd8e9;color:#50465f}.btn.secondary:hover{background:#f3effb}.btn.ghost{background:transparent;color:var(--purple-dark)}.btn.danger{background:#fff2f4;border-color:#f0c9d2;color:var(--red)}.btn.small{padding:7px 11px;min-height:35px;font-size:13px}.icon-button{border:1px solid var(--line);background:white;color:var(--muted);border-radius:9px;width:36px;height:36px;font-size:21px;display:grid;place-items:center}.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 3px 10px #25204002;margin-bottom:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:15px}.panel-head p{font-size:14px;margin-top:4px}.welcome{background:#ede7fa;border:1px solid #e3d9f5;border-radius:20px;display:flex;align-items:center;justify-content:space-between;padding:28px 32px;overflow:hidden;margin-bottom:25px;min-height:180px;gap:20px}.welcome p{max-width:570px;margin:10px 0 19px}.welcome img{width:150px;height:150px;transform:rotate(5deg)}.eyebrow{font-size:11px;color:var(--purple-dark);font-weight:800;letter-spacing:1.8px;margin-bottom:8px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:26px}.stat{border:1px solid var(--line);border-radius:16px;background:white;padding:20px;display:flex;align-items:center;gap:15px}.stat-icon{width:46px;height:46px;border-radius:13px;background:var(--tint,#ece4fb);color:var(--purple-dark);display:grid;place-items:center}.stat span{font-size:13px;color:var(--muted)}.stat b{font-size:29px;line-height:1.2;display:block;margin-top:5px;letter-spacing:-1px}.two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.muted{color:var(--muted)}.notice{background:#faf7ed;border:1px solid #eee1bd;color:#6c582b;padding:14px 17px;border-radius:12px;font-size:14px;line-height:1.6;margin-bottom:20px}.notice.purple{background:#f3effb;color:#5e4d81;border-color:#e4dcef}.notice.green{background:#eef8f2;color:#2b7155;border-color:#d4eadf}.notice p{color:inherit}.quick-link{display:flex;align-items:center;padding:16px 0;gap:14px;border-bottom:1px solid var(--line);color:var(--ink)}.quick-link:last-child{border:0}.quick-link b{font-size:15px;display:block}.quick-link p{font-size:13px;margin-top:3px}.quick-link>.icon{color:var(--purple)}.filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.filters input{flex:1;min-width:190px}.filters select{width:auto;min-width:150px}.count{font-size:13px;color:var(--muted)}.table-wrap{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}thead{background:#faf9fd;color:#7c748e;font-size:12px}th,td{padding:15px 14px;border-bottom:1px solid var(--line);vertical-align:middle}th{font-weight:650;white-space:nowrap}td b{font-size:14px}.cell-sub{font-size:12px;color:#8a8496;margin-top:4px}.table-action{display:flex;gap:6px;align-items:center;white-space:nowrap}.badge{padding:4px 9px;border-radius:7px;background:#eee9f7;color:#6c568c;font-size:12px;font-weight:650;white-space:nowrap;display:inline-block}.badge.live,.badge.active{background:#e8f6ef;color:#287255}.badge.draft{background:#fff2d6;color:#906720}.badge.archived,.badge.disabled{background:#f1f0f5;color:#777181}.badge.owner{background:#e9e1fc;color:#6245a8}.badge.manager{background:#e2efff;color:#376a9a}.badge.editor{background:#fbe7ef;color:#a45476}.badge.teacher{background:#e5f6ee;color:#37775c}.pagination{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:18px}.empty{text-align:center;padding:55px 20px}.empty img{width:105px;height:105px;margin-bottom:12px}.empty h3{margin-bottom:9px}.empty p{max-width:420px;margin:0 auto 20px}.form{display:grid;gap:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .full{grid-column:1/-1}.form-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:20px;margin-top:8px}.form-error{color:var(--red);font-size:14px;margin-top:10px;min-height:20px}.hint{font-size:13px;color:var(--muted);margin-top:7px}.login{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr;background:white}.login-art{background:#ece5f9;padding:42px 60px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-art>.brand{margin-bottom:30px}.login-art h1{font-size:43px;letter-spacing:-1.5px;max-width:460px}.login-art p{max-width:430px;font-size:16px;margin-top:18px;line-height:1.8}.login-characters{display:flex;justify-content:center;margin:35px 0}.login-characters img{width:48%;max-width:220px}.login-characters img:nth-child(2){margin-left:-15px;transform:rotate(9deg) translateY(35px)}.login-art footer{font-size:12px;color:#8d80a2;margin-top:35px}.login-panel{padding:60px;display:flex;flex-direction:column;justify-content:center;max-width:570px;margin:auto;width:100%}.login-panel h1{font-size:31px}.login-panel>p{margin:12px 0 30px}.login-panel .btn{width:100%;margin-top:5px}.password-input{position:relative}.password-input input{padding-right:66px}.password-input button{position:absolute;right:7px;top:7px;height:32px;padding:0 8px;background:#f4f0fb;color:var(--purple-dark);font-size:12px;border:0;border-radius:6px}.login-meta{border-top:1px solid var(--line);margin-top:30px;padding-top:20px;font-size:13px}.login-back{margin-top:28px;font-size:14px;display:inline-block}.login-security{display:flex;gap:10px;align-items:center;font-size:13px;color:#6d5b89;background:#f7f4fc;padding:14px;border-radius:10px;margin-top:22px}.loading{padding:60px;text-align:center;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:20px;padding:0;width:min(900px,calc(100vw - 32px));max-height:90vh;box-shadow:0 25px 100px #2620403b;color:var(--ink);background:white}dialog::backdrop{background:#23183c77;backdrop-filter:blur(3px)}.dialog-top{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:20px 26px;background:white;border-bottom:1px solid var(--line)}#dialog-body{padding:25px 26px 28px}.editor-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:23px}.editor-tabs button{padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:white;color:#7b7088;font-size:14px;font-weight:650}.editor-tabs button.active{background:#eee8fb;color:var(--purple-dark);border-color:#ddd0f4}.editor-section[hidden]{display:none}.preview-paper{padding:25px;border:1px solid var(--line);border-radius:14px;background:#fcfbff;max-height:55vh;overflow:auto}.preview-paper h2{margin-bottom:20px}.preview-paper h3{margin:20px 0 10px}.preview-paper p{white-space:pre-wrap;color:#625a70}.map-editor{display:grid;grid-template-columns:repeat(6,40px);gap:4px;margin:18px 0}.map-editor button{width:40px;height:40px;border:1px solid #d8cde8;border-radius:7px;background:#faf7ff;color:#524071;font-weight:750}.map-editor button.wall{background:#69617b;color:white}.map-editor button.start{background:#e1f4ea;color:#30735a}.map-editor button.goal{background:#ffe6a8;color:#755219}.map-tools{display:flex;gap:9px;flex-wrap:wrap}.map-tools label{padding:7px 10px;background:#f6f3fb;border:1px solid var(--line);border-radius:8px}.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.resource-card{border:1px solid var(--line);border-radius:15px;padding:20px;background:white}.resource-card h3{margin:15px 0 6px}.resource-card p{font-size:14px;margin-bottom:18px;min-height:44px}.resource-icon{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}.resource-icon .icon{width:38px;height:42px;padding:8px;border-radius:10px;background:#f0e8fc;color:var(--purple)}.class-code{font-family:ui-monospace,monospace;letter-spacing:2px;background:#f2edf9;padding:10px 16px;border-radius:9px;color:var(--purple-dark);font-size:22px;font-weight:750;display:inline-block}.class-card{border:1px solid var(--line);border-radius:16px;padding:22px;background:white}.class-card .cell-sub{margin:10px 0 14px}.class-card h3{font-size:18px}.class-card p{font-size:14px;margin:13px 0 20px}.role-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.role-card{border:1px solid var(--line);border-radius:12px;padding:15px;background:#fcfbff;font-size:13px}.role-card strong{display:block;margin-bottom:6px}.role-card p{font-size:12px}.audit-list{list-style:none;padding:0;margin:0}.audit-item{padding:14px 0;border-bottom:1px solid var(--line);display:flex;gap:13px;align-items:flex-start}.audit-item:last-child{border:0}.audit-item .audit-dot{width:9px;height:9px;border-radius:50%;background:#bba8e6;margin-top:9px;flex-shrink:0}.audit-item b{font-size:14px}.audit-item p{font-size:13px;margin-top:3px}.session-row{border-bottom:1px solid var(--line);padding:16px 0;display:flex;justify-content:space-between;align-items:center;gap:16px}.session-row p{font-size:13px}.session-row .device{word-break:break-word;max-width:620px}.permission-list{padding-left:20px;color:var(--muted);font-size:14px}.page-footer{font-size:12px;color:#a49bad;padding-top:20px}.password-policy{font-size:13px;color:var(--muted);font-weight:400}.security-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.security-grid .panel{height:fit-content}.progress-bar{height:6px;border-radius:4px;background:#ede8f5;max-width:160px;margin-top:5px;overflow:hidden}.progress-bar i{height:100%;display:block;background:#a98be7}.code{font-family:ui-monospace,monospace;background:#f2edf9;padding:2px 6px;border-radius:5px;font-size:13px}.check-list{display:grid;gap:10px}.logo-preview{width:70px;height:70px;object-fit:contain;padding:6px;background:#f4effb;border-radius:10px}#toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,15px);padding:13px 22px;border-radius:12px;background:#302645;color:white;box-shadow:0 8px 35px #2b214b30;opacity:0;pointer-events:none;z-index:1000;max-width:90vw;font-size:14px;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}.hidden{display:none!important}@media(min-width:1500px){.page{padding:36px 45px}.topbar{padding:0 45px}}@media(max-width:1150px){.sidebar{width:215px;padding:24px 12px}.workspace{margin-left:215px}.page{padding:25px}.topbar{padding:0 25px}.stats{grid-template-columns:repeat(2,1fr)}.resource-grid,.three{grid-template-columns:repeat(2,1fr)}.role-grid{grid-template-columns:repeat(3,1fr)}.login-art{padding:35px}.login-panel{padding:40px}}@media(max-width:800px){.sidebar{transform:translateX(-100%);width:240px;box-shadow:10px 0 50px #21123b20;transition:.2s}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0}.icon-button.mobile-menu{display:grid}.topbar{height:70px;padding:0 18px}.topbar .breadcrumb{display:none}.top-actions>a{display:none}.top-actions>a.user-pill{display:flex}.page{padding:24px 18px 40px}.page-heading{align-items:flex-start}.page-heading h1{font-size:26px}.two,.security-grid{grid-template-columns:1fr}.login{grid-template-columns:1fr}.login-art{min-height:260px;padding:25px 30px;display:block}.login-art h1{font-size:31px;max-width:60%}.login-art p,.login-art footer{display:none}.login-characters{position:absolute;bottom:20px;right:15px;width:34%;margin:0}.login-art>.brand{margin-bottom:30px}.login-panel{padding:35px 25px;max-width:540px}.login-panel h1{font-size:27px}.welcome{padding:22px}.welcome img{width:110px;height:110px}.welcome h2{font-size:21px}.stats{gap:12px}.stat{padding:15px;gap:10px}.stat b{font-size:25px}.stat-icon{width:38px;height:38px}.panel{padding:18px}.panel-head{align-items:flex-start}.role-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.dialog-top{padding:17px 18px}#dialog-body{padding:20px 18px}.filters select{flex:1}.resource-grid,.three{grid-template-columns:1fr}.page-heading>.btn{white-space:normal;flex-shrink:0;max-width:150px}.form-actions{justify-content:flex-start}.welcome .actions .btn{font-size:13px}.welcome p{font-size:14px}.map-editor{grid-template-columns:repeat(6,35px)}.map-editor button{width:35px;height:35px}}@media(max-width:420px){.welcome img{display:none}.stat span{font-size:12px}.stat-icon{display:none}.user-pill b{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.role-grid{grid-template-columns:1fr}.login-art h1{max-width:68%;font-size:27px}}@media print{.sidebar,.topbar,.page-heading>.btn,.filters,.actions,button,.page-footer{display:none!important}.workspace{margin:0}.page{padding:0}.panel{box-shadow:none;break-inside:avoid}.table-wrap{overflow:visible}body{background:white}}
