:root{--bg: #0b0e12;--panel: #161b22f2;--panel-solid: #161b22;--fg: #e6edf3;--muted: #8b98a8;--sep: #2b3440;--chip: #232b36;--accent: #2dd4bf;--accent-fg: #06201c;--card: #161b22;--today: #2dd4bf;--status: #161b22d9}:root[data-theme=light]{--bg: #f1f5f9;--panel: #ffffffee;--panel-solid: #fff;--fg: #0f172a;--muted: #64748b;--sep: #e2e8f0;--chip: #eef2f6;--accent: #0d9488;--accent-fg: #fff;--card: #fff;--today: #0d9488;--status: #ffffffd9}*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--fg);font-family:system-ui,sans-serif}body{overscroll-behavior:none;-webkit-user-select:none;user-select:none}#app{height:100%}button{font:inherit;color:inherit}.picker{max-width:760px;margin:0 auto;padding:32px 16px;overflow:auto}.picker header{display:flex;align-items:center;justify-content:space-between;gap:12px}.picker h1{margin:0 0 4px;font-size:32px}.picker .sub{margin:0 0 24px;color:var(--muted)}.students{display:grid;gap:12px}.student{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:var(--card);border-radius:14px;padding:12px;box-shadow:0 1px 3px #0003}.student a{text-decoration:none;color:inherit;border-radius:10px}.student .today{flex:1 1 220px;font-size:22px;font-weight:600;padding:14px 16px;background:var(--chip);display:flex;justify-content:space-between;align-items:center}.student .today span{font-size:13px;font-weight:500;color:var(--today)}.student .old{padding:10px 12px;background:var(--chip);font-size:15px;color:var(--muted)}.board{position:fixed;top:0;right:0;bottom:0;left:0;overflow:hidden}.stage,.layer{position:absolute;top:0;right:0;bottom:0;left:0;touch-action:none}.topbar{position:absolute;left:50%;top:8px;transform:translate(-50%);display:flex;gap:4px;align-items:center;background:var(--panel);padding:6px;border-radius:16px;box-shadow:0 4px 16px #0004;max-width:calc(100% - 16px);overflow-x:auto;scrollbar-width:none;touch-action:pan-x;color:var(--fg)}.topbar::-webkit-scrollbar{display:none}.sep{width:1px;height:32px;background:var(--sep);margin:0 2px;flex:none}.btn{width:48px;height:48px;flex:none;border:0;border-radius:12px;background:transparent;display:grid;place-items:center;cursor:pointer;padding:0;text-decoration:none;color:var(--fg)}.btn svg{width:26px;height:26px}.btn:disabled{opacity:.3}.btn.on{background:var(--accent);color:var(--accent-fg)}.btn:active:not(:disabled){transform:scale(.94)}.tool.shape:after{content:"";position:absolute}.size i{display:block;width:var(--s);height:var(--s);border-radius:50%;background:currentColor}.swatches{display:flex;gap:4px;flex:none}.swatch{width:36px;height:36px;flex:none;border-radius:50%;border:3px solid var(--panel-solid);background:var(--c);box-shadow:0 0 0 1px var(--sep);cursor:pointer;padding:0}.swatch.on{box-shadow:0 0 0 3px var(--accent)}.pop{position:absolute;display:none;background:var(--panel-solid);border-radius:14px;padding:6px;box-shadow:0 8px 24px #0005;gap:4px;z-index:5}.pop.open{display:flex}.pop.menu{flex-direction:column;gap:12px;padding:14px;width:min(420px,calc(100vw - 16px));max-height:calc(100vh - 90px);overflow:auto;-webkit-user-select:text;user-select:text}.row{display:flex;flex-direction:column;gap:6px}.row b{font-size:13px;color:var(--muted);font-weight:600}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{border:0;background:var(--chip);padding:10px 14px;border-radius:10px;cursor:pointer;font-size:15px}.chip.on{background:var(--accent);color:var(--accent-fg)}.chip.wide{width:100%}.share{display:grid;grid-template-columns:110px 1fr;grid-template-rows:auto auto;gap:6px 10px;align-items:center}.share .qr{grid-row:span 2;background:#fff;border-radius:8px;padding:4px;width:110px;height:110px}.share .qr svg{width:100%;height:100%}.share input,.export input{width:100%;padding:9px 10px;border-radius:10px;border:1px solid var(--sep);background:var(--bg);color:var(--fg);font:inherit;font-size:14px}.export{display:flex;flex-direction:column;gap:6px}.exp-status{font-size:13px;color:var(--muted);word-break:break-word}.selbar{position:absolute;left:50%;top:72px;transform:translate(-50%);display:none;gap:4px;background:var(--panel);padding:5px;border-radius:14px;box-shadow:0 4px 16px #0004}.selbar.show{display:flex}.status{position:absolute;right:10px;bottom:10px;background:var(--status);padding:6px 12px;border-radius:999px;font-size:13px;color:var(--muted);pointer-events:none;display:flex;align-items:center;gap:6px;max-width:calc(100% - 20px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status .dot{width:10px;height:10px;border-radius:50%;background:#94a3b8;flex:none}.status .dot.ok{background:#22c55e}.status .dot.wait{background:#f59e0b}.status .dot.off{background:#ef4444}.text-editor{position:absolute;z-index:4;background:transparent;border:1px dashed var(--accent);border-radius:4px;outline:none;resize:none;overflow:hidden;padding:0;margin:0;line-height:1.25;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;white-space:pre;-webkit-user-select:text;user-select:text}.as-student .teacher-only{display:none!important}.readonly .topbar .tool:not([data-tool=laser]):not([data-tool=hand]),.readonly .swatches,.readonly .size,.readonly [data-act=undo],.readonly [data-act=redo]{opacity:.25;pointer-events:none}@media(max-width:1100px){.btn{width:42px;height:42px}.btn svg{width:23px;height:23px}.swatch{width:30px;height:30px}}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#0008;display:grid;place-items:center;z-index:10}.modal[hidden]{display:none}.dialog{background:var(--panel-solid);color:var(--fg);border-radius:16px;padding:16px;width:min(560px,calc(100vw - 32px));display:flex;flex-direction:column;gap:10px;box-shadow:0 12px 40px #0006}.m-tex{width:100%;min-height:70px;font:16px ui-monospace,monospace;padding:10px;border-radius:10px;border:1px solid var(--sep);background:var(--bg);color:var(--fg);-webkit-user-select:text;user-select:text}.m-preview{min-height:48px;display:grid;place-items:center;overflow-x:auto;padding:8px;background:var(--bg);border-radius:10px}.m-preview svg{max-width:100%;height:auto;min-height:28px}.m-msg{font-size:13px;color:var(--muted)}
