:root{--bg:#0d0d0d;--surface:#1a1a1a;--surface-2:#222;--surface-3:#2a2a2a;--text:#e5e5e5;--text-strong:#fff;--subtle:#9ca3af;--divider:#262626;--accent:#bfff00;--accent-dim:#3a4d00;--error:#f87171;--success:#4ade80;--warning:#fbbf24;--purple:#8b5cf6;--glass:#ffffff0d;--glass-border:#ffffff14;--glass-border-bright:#ffffff1f;--radius:14px;--radius-sm:10px;color:var(--text);background:var(--bg);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;-webkit-font-smoothing:antialiased;font-family:Plus Jakarta Sans,system-ui,-apple-system,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:radial-gradient(1200px 600px at 85% -10%, #8b5cf61f, transparent 60%), radial-gradient(900px 500px at -10% 110%, #bfff000f, transparent 60%), var(--bg);font-size:14px;line-height:1.45}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{color:var(--text-strong);letter-spacing:-.01em;margin:0;font-weight:700}h1{font-size:24px}h2{font-size:17px}h3{font-size:15px}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.shell{grid-template-columns:232px 1fr;height:100%;display:grid}.sidebar{border-right:1px solid var(--glass-border);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#0d0d0d99;flex-direction:column;gap:4px;padding:20px 12px;display:flex;overflow-y:auto}.brand{align-items:center;gap:10px;padding:4px 10px 18px;display:flex}.brand-mark{background:var(--accent);width:32px;height:32px;color:var(--bg);border-radius:9px;place-items:center;font-size:15px;font-weight:800;display:grid}.brand-name{color:var(--text-strong);font-weight:700}.brand-sub{color:var(--subtle);font-size:12px}.nav-link{border-radius:var(--radius-sm);color:var(--subtle);align-items:center;gap:10px;padding:9px 12px;font-weight:500;display:flex;text-decoration:none!important}.nav-link:hover{background:var(--glass);color:var(--text)}.nav-link.active{color:var(--accent);background:#bfff001a}.nav-icon{text-align:center;width:18px;font-size:15px}.sidebar-foot{border-top:1px solid var(--glass-border);gap:10px;margin-top:auto;padding-top:16px;display:grid}.main{padding:28px 32px 48px;overflow-y:auto}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.page-head p{color:var(--subtle);margin:4px 0 0}.card{background:var(--glass);border:1px solid var(--glass-border);border-radius:var(--radius);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.card-pad{padding:18px 20px}.grid{gap:16px;display:grid}.grid-4{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.stat-label{color:var(--subtle);text-transform:uppercase;letter-spacing:.06em;font-size:12px}.stat-value{color:var(--text-strong);margin-top:6px;font-size:28px;font-weight:700}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.spacer{flex:1}.muted{color:var(--subtle)}.small{font-size:12px}.danger-text{color:var(--error)}.ok-text{color:var(--success)}.btn{border-radius:var(--radius-sm);border:1px solid var(--glass-border-bright);background:var(--surface-2);height:36px;color:var(--text);font:inherit;cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;gap:6px;padding:0 14px;font-weight:600;display:inline-flex}.btn:hover:not(:disabled){background:var(--surface-3)}.btn:disabled{opacity:.45;cursor:default}.btn-primary{background:var(--accent);color:#0d0d0d;border-color:#0000}.btn-primary:hover:not(:disabled){background:#d4ff4d}.btn-danger{color:var(--error);background:#f8717114;border-color:#f8717159}.btn-danger:hover:not(:disabled){background:#f8717129}.btn-ghost{color:var(--subtle);background:0 0;border-color:#0000}.btn-ghost:hover:not(:disabled){background:var(--glass);color:var(--text)}.btn-sm{height:30px;padding:0 10px;font-size:13px}.input,.select,textarea.input{border-radius:var(--radius-sm);border:1px solid var(--glass-border-bright);background:var(--surface);height:36px;color:var(--text);font:inherit;min-width:0;padding:0 12px}textarea.input{resize:vertical;height:auto;min-height:80px;padding:10px 12px}.input:focus,.select:focus{border-color:var(--accent);outline:none}.field{gap:6px;display:grid}.field>span{color:var(--subtle);font-size:12px;font-weight:500}.form{gap:14px;display:grid}.form-2{grid-template-columns:1fr 1fr;gap:14px;display:grid}.check{cursor:pointer;align-items:center;gap:8px;display:flex}.check input{accent-color:var(--accent);width:16px;height:16px}.seg{background:var(--surface);border:1px solid var(--glass-border);border-radius:var(--radius-sm);padding:3px;display:inline-flex}.seg button{color:var(--subtle);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:7px;padding:5px 12px;font-weight:600}.seg button.on{background:var(--surface-3);color:var(--text-strong)}.table-wrap{overflow-x:auto}table.table{border-collapse:collapse;width:100%}.table th{text-align:left;color:var(--subtle);text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--glass-border);white-space:nowrap;padding:12px 16px;font-size:12px;font-weight:600}.table td{border-bottom:1px solid var(--divider);vertical-align:middle;padding:11px 16px}.table tr:last-child td{border-bottom:0}.table tbody tr.clickable{cursor:pointer}.table tbody tr.clickable:hover td{background:#ffffff06}.num{text-align:right;font-variant-numeric:tabular-nums}.avatar{background:var(--surface-3);width:32px;height:32px;color:var(--text);border-radius:50%;flex:none;place-items:center;font-size:12px;font-weight:700;display:inline-grid;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%}.person{align-items:center;gap:10px;min-width:0;display:flex}.person-name{color:var(--text-strong);font-weight:600}.person-sub{color:var(--subtle);font-size:12px}.badge{letter-spacing:.02em;background:var(--surface-3);height:22px;color:var(--text);text-transform:uppercase;border-radius:999px;align-items:center;padding:0 8px;font-size:11px;font-weight:700;display:inline-flex}.badge-admin{color:#c4b5fd;background:#8b5cf62e}.badge-teacher{color:var(--accent);background:#bfff001f}.badge-student{color:var(--text);background:#ffffff12}.badge-super{color:var(--warning);background:#fbbf2429}.badge-off{color:var(--error);background:#f871711f}.debt{color:var(--error);font-weight:700}.credit{color:var(--success);font-weight:700}.empty{text-align:center;color:var(--subtle);padding:40px}.error-box{border-radius:var(--radius-sm);color:var(--error);background:#f871711a;border:1px solid #f871714d;padding:12px 14px}.spinner{border:2px solid var(--surface-3);border-top-color:var(--accent);border-radius:50%;width:22px;height:22px;margin:40px auto;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:50;background:#0009;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.dialog{border:1px solid var(--glass-border-bright);background:#1a1a1af5;border-radius:18px;width:min(560px,100%);max-height:calc(100vh - 40px);overflow-y:auto;box-shadow:0 30px 80px #00000080}.dialog-head{justify-content:space-between;align-items:center;padding:18px 20px 0;display:flex}.dialog-body{padding:18px 20px}.dialog-foot{justify-content:flex-end;gap:8px;padding:0 20px 18px;display:flex}.drawer-backdrop{z-index:39;background:#00000059;position:fixed;inset:0}.drawer{z-index:40;border-left:1px solid var(--glass-border-bright);background:#141414f7;flex-direction:column;width:min(520px,100%);display:flex;position:fixed;top:0;bottom:0;right:0;box-shadow:-30px 0 80px #00000073}.drawer-head{border-bottom:1px solid var(--glass-border);align-items:center;gap:12px;padding:18px 20px;display:flex}.drawer-body{flex:1;align-content:start;gap:18px;padding:18px 20px;display:grid;overflow-y:auto}.toast{z-index:60;background:var(--surface-3);border:1px solid var(--glass-border-bright);border-radius:12px;padding:10px 16px;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 10px 30px #0006}.toast.err{color:var(--error);border-color:#f8717180}.login{place-items:center;min-height:100%;padding:24px;display:grid}.login-card{text-align:center;justify-items:center;gap:18px;width:min(400px,100%);padding:36px 32px;display:grid}.login-card .brand-mark{border-radius:14px;width:52px;height:52px;font-size:24px}.cal{grid-template-columns:56px repeat(7,1fr);min-width:900px;display:grid}.cal-head{z-index:2;text-align:center;border-bottom:1px solid var(--glass-border);background:#141414f2;padding:10px 6px;font-weight:600;position:sticky;top:0}.cal-head.today{color:var(--accent)}.cal-hour{height:56px;color:var(--subtle);text-align:right;padding:3px 8px 0 0;font-size:11px}.cal-col{border-left:1px solid var(--divider);position:relative}.cal-slot{border-bottom:1px solid #ffffff09;height:56px}.cal-slot:hover{cursor:copy;background:#bfff0008}.cal-ev{cursor:pointer;color:#0d0d0d;border:1px solid #ffffff1f;border-radius:8px;padding:4px 6px;font-size:11px;font-weight:600;line-height:1.25;position:absolute;left:3px;right:3px;overflow:hidden}.cal-ev.cancelled{opacity:.4;text-decoration:line-through}.cal-ev small{opacity:.85;font-weight:500;display:block}.chat-layout{grid-template-columns:340px 1fr;gap:16px;height:calc(100vh - 140px);min-height:480px;display:grid}.chat-list{overflow-y:auto}.chat-item{border-bottom:1px solid var(--divider);cursor:pointer;gap:10px;padding:12px 14px;display:flex}.chat-item:hover{background:#ffffff06}.chat-item.active{background:#bfff000f}.chat-item .person-sub{white-space:nowrap;text-overflow:ellipsis;max-width:230px;overflow:hidden}.chat-pane{flex-direction:column;min-height:0;display:flex}.chat-msgs{flex-direction:column;flex:1;gap:8px;padding:16px 20px;display:flex;overflow-y:auto}.msg{background:var(--surface-2);white-space:pre-wrap;word-break:break-word;border-radius:14px;max-width:72%;padding:8px 12px}.msg-meta{color:var(--subtle);margin-bottom:2px;font-size:11px}.msg.system{color:var(--subtle);background:0 0;align-self:center;font-size:12px;font-style:italic}.msg.deleted{opacity:.5;font-style:italic}.msg-att{margin-top:6px;display:block}.msg-att img{border-radius:10px;max-width:260px;max-height:220px;display:block}.msg-score{cursor:pointer;background:var(--surface-3);border:1px solid var(--glass-border-bright);color:var(--text);font:inherit;text-align:left;white-space:normal;border-radius:12px;align-items:center;gap:10px;max-width:320px;padding:10px 12px;display:flex}.msg-score:hover{border-color:#bfff0073}.msg-score>span:last-child{display:grid}.msg-score-name{color:var(--text-strong);overflow-wrap:anywhere;font-weight:600}.gp-page{flex-direction:column;height:calc(100vh - 76px);min-height:480px;display:flex}.gp-page.dragging .gp-card,.gp-page.dragging .gp-drop{outline:2px dashed var(--accent);outline-offset:4px}.gp-drop{text-align:center;flex:1;place-content:center;justify-items:center;gap:14px;padding:40px;display:grid}.gp-card{flex:1;min-height:0;display:flex;overflow:hidden}.gp-overlay{place-items:stretch stretch;padding:24px}.gp-overlay .gp-card{border-color:var(--glass-border-bright);background:#141414f7}.gp{flex-direction:column;flex:1;min-width:0;display:flex}.gp-bar,.gp-controls{flex-wrap:wrap;align-items:center;gap:8px;padding:10px 14px;display:flex}.gp-bar{border-bottom:1px solid var(--glass-border)}.gp-controls{border-top:1px solid var(--glass-border);gap:10px 14px}.gp-icon{width:30px;height:30px;color:var(--accent);background:#bfff001f;border-radius:9px;flex:none;place-items:center;font-size:16px;display:grid}.gp-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:46%;overflow:hidden}.gp-select{max-width:200px;height:30px}.gp-stage{flex:1;min-height:0;position:relative}.gp-wrap{background:#fff;position:absolute;inset:0;overflow-y:auto}.gp-score{color:#000;padding:8px 4px 120px}.gp-cover{background:var(--surface);text-align:center;place-content:center;justify-items:center;gap:14px;padding:32px;display:grid;position:absolute;inset:0}.gp .at-cursor-bar{background:#bfff002e}.gp .at-cursor-beat{background:#508c00d9;width:3px}.gp .at-highlight *{fill:#4d7c0f;stroke:#4d7c0f}.gp .at-selection div{background:#8b5cf626}.gp-play{cursor:pointer;background:var(--accent);width:44px;height:44px;color:var(--bg);border:0;border-radius:50%;flex:none;place-items:center;font-size:15px;display:grid}.gp-play:disabled{background:var(--surface-3);cursor:default}.gp-time{font-variant-numeric:tabular-nums;min-width:86px;font-size:13px}.gp-caption{letter-spacing:.1em;text-transform:uppercase;color:var(--subtle);font-size:11px}.gp-speed,.gp-pitch{align-items:center;gap:8px;display:flex}.gp-speed input{width:160px;accent-color:var(--accent)}.gp-value{cursor:pointer;min-width:46px;height:28px;color:var(--text-strong);font:inherit;font-variant-numeric:tabular-nums;background:0 0;border:0;border-radius:8px;font-weight:700}.gp-value:disabled{cursor:default}.gp-value.on{color:var(--accent)}.gp-toggle{border:1px solid var(--glass-border);height:32px;color:var(--text);font:inherit;cursor:pointer;background:0 0;border-radius:9px;align-items:center;gap:6px;padding:0 10px;font-size:12px;font-weight:600;display:inline-flex}.gp-toggle:hover:not(:disabled){background:var(--glass)}.gp-toggle.on{color:var(--accent);background:#bfff0014;border-color:#bfff0066}.gp-toggle:disabled{opacity:.4;cursor:default}.gp-recent{border-radius:var(--radius-sm);align-items:center;gap:6px;display:flex}.gp-recent:hover{background:var(--glass)}.gp-recent-open{text-align:left;min-width:0;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;flex:1;padding:8px 10px;display:grid}.gp-recent-open .person-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media (width<=900px){.shell{grid-template-columns:1fr}.sidebar{flex-direction:row;padding:10px;overflow-x:auto}.brand,.sidebar-foot{display:none}.main{padding:20px 16px 40px}.chat-layout{grid-template-columns:1fr;height:auto}.form-2{grid-template-columns:1fr}.gp-page{height:calc(100vh - 120px)}.gp-overlay{padding:0}.gp-toggle span{display:none}}
