:root{--ink: #171717;--muted: #66706c;--bg: #eef0f2;--surface: #ffffff;--line: #d9ddd8;--line-strong: #c5cbc4;--accent: #1f4e8c;--accent-hover: #183d6e;--accent-soft: #e8eef6;--well: #111318;--ok: #1b7a4a;--danger: #b42318;--radius: 10px;--shadow: 0 1px 2px rgba(17, 19, 24, .06), 0 10px 28px rgba(17, 19, 24, .05);--font: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", sans-serif;--mono: "IBM Plex Mono", ui-monospace, monospace}*{box-sizing:border-box}html,body,#app{min-height:100%}body{margin:0;color:var(--ink);background:var(--bg);font-family:var(--font);font-size:15px;line-height:1.55}button,input,select,textarea{font:inherit}button{cursor:pointer}img{max-width:100%}.skip-link{position:absolute;left:12px;top:-44px;z-index:50;padding:8px 12px;background:var(--ink);color:#fff}.skip-link:focus{top:12px}.hidden-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;padding:0}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:36px;height:36px;color:var(--accent);background:var(--accent-soft);border-radius:8px}.brand-mark svg{width:20px;height:20px}.brand h1{margin:0;font-size:18px;font-weight:700;letter-spacing:-.03em;line-height:1.1}.brand p,.brand-kicker{margin:2px 0 0;color:var(--muted);font-size:12px;letter-spacing:.08em;text-transform:uppercase}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);font-weight:600;transition:background .16s ease,border-color .16s ease,color .16s ease}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-ghost{border-color:var(--line);background:var(--surface)}.btn-ghost:hover:not(:disabled){background:var(--accent-soft);border-color:#c5d2e4}.btn-sm{min-height:36px;padding:0 12px;font-size:13px}.btn:disabled{cursor:not-allowed;opacity:.5}.btn:focus-visible,.dropzone:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #8da8d4;outline-offset:2px}.lede{margin:0 0 20px;color:var(--muted)}.error{margin:0;color:var(--danger);font-size:14px}.error.banner{margin:0 0 16px;padding:10px 12px;background:#fdecec;border-radius:8px}.field{display:grid;gap:6px;margin-bottom:14px}.field label{font-size:13px;font-weight:600}.field-inline{display:flex;gap:8px;align-items:stretch}.field-inline input{flex:1;min-width:0}.field-inline .btn{flex:0 0 auto;white-space:nowrap}.field input,.field select,.url-row input{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:#fbfbfc;color:var(--ink)}.field select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%235b6b7c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}.field input:focus,.field select:focus,.url-row input:focus{background:#fff;border-color:var(--accent)}.auth-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}.boot-screen{min-height:100vh;display:grid;place-content:center;gap:12px;text-align:center;color:var(--muted)}.boot-mark{width:36px;height:36px;margin:0 auto;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(280px,42%) 1fr}.auth-brand{display:flex;flex-direction:column;justify-content:space-between;gap:48px;padding:48px 44px 56px;color:#e8eaed;background:linear-gradient(165deg,rgba(31,78,140,.28),transparent 36%),var(--well)}.auth-brand .brand-mark{background:#e8eef61a;color:#d7e3f4}.auth-brand h1,.auth-brand .brand-kicker{color:#fff}.auth-brand .brand-kicker{color:#9aa6b5}.auth-lead{margin:0 0 24px;max-width:34ch;color:#c5ccd6;font-size:16px}.auth-points{margin:0;padding:0;list-style:none;display:grid;gap:18px}.auth-points li{display:grid;gap:4px}.auth-points strong{font-size:13px;letter-spacing:.04em}.auth-points span{color:#9aa6b5;font-size:14px}.auth-panel{display:grid;place-items:center;padding:32px 20px}.auth-card{width:min(460px,100%)}.auth-card h2,.modal h2,.inspector-head h2,.history-head h2{margin:0 0 6px;font-size:22px;letter-spacing:-.03em}.workspace-chip{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);text-align:left}.dir-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#dbe4f0;color:var(--accent);font-size:13px;font-weight:700}.dir-avatar.sm{width:28px;height:28px;font-size:12px}.workspace-chip small{color:var(--muted);font-family:var(--mono);font-size:12px}.empty-inline,.empty-panel{color:var(--muted)}.app-shell{min-height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;padding:0 28px;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.topbar-meta{display:flex;align-items:center;gap:10px}.workspace-chip{width:auto;min-height:44px;padding-right:16px}.workspace-chip span{display:grid;line-height:1.25}.console{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:28px 0 64px}.studio{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:20px;align-items:stretch}.dropzone{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;min-height:320px;padding:28px;border:1px dashed var(--line-strong);border-radius:12px;background:var(--surface);color:inherit;text-align:left}.dropzone:hover:not(:disabled),.dropzone.is-hot{border-color:var(--accent);background:#f6f8fb}.dropzone.is-busy{opacity:.7}.drop-icon{display:grid;place-items:center;width:44px;height:44px;color:var(--accent);background:var(--accent-soft);border-radius:10px}.drop-icon svg{width:22px;height:22px}.drop-copy{display:grid;gap:6px}.drop-copy span{color:var(--muted);font-size:14px}kbd{display:inline-block;padding:1px 6px;border:1px solid var(--line);border-bottom-width:2px;border-radius:4px;background:#fff;font-family:var(--mono);font-size:12px}.inspector{display:flex;flex-direction:column;min-height:320px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.inspector-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.inspector-head h2{font-size:15px;font-weight:700}.status{padding:3px 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:600}.well{position:relative;flex:1;min-height:220px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(45deg,#1b1e26 25%,transparent 25%) 0 0 / 16px 16px,linear-gradient(-45deg,#1b1e26 25%,transparent 25%) 0 8px / 16px 16px,var(--well);border-radius:8px;color:#9aa0ab}.well img{width:100%;height:240px;object-fit:contain}.well.empty{background:var(--well)}.inspector-meta{margin-top:14px}.meta-row{display:flex;flex-wrap:wrap;gap:10px 14px;margin-bottom:10px;color:var(--muted);font-size:12px}.meta-row span:first-child{color:var(--ink);font-weight:600}.url-row{display:flex;gap:8px}.url-row input{flex:1;min-width:0;font-family:var(--mono);font-size:12px;overflow:hidden;text-overflow:ellipsis}.history{margin-top:28px}.history-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}.history-head p{margin:0;color:var(--muted);font-size:13px}.history-head h2{font-size:16px}.count{color:var(--muted);font-size:13px}.table-wrap{overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse}th,td{padding:12px 14px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--line)}th{color:var(--muted);font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:#f7f8f9}tr:last-child td{border-bottom:0}tbody tr:hover{background:#f7f9fc}td strong{display:block;font-size:14px}td small,td time{color:var(--muted);font-size:12px}.thumb{width:48px;height:48px;object-fit:cover;background:#111318;border-radius:6px}.url-cell{max-width:360px}.url-cell code{display:block;overflow:hidden;color:var(--muted);font-family:var(--mono);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.empty-panel{padding:28px;background:var(--surface);border:1px dashed var(--line);border-radius:12px}.modal-root{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;padding:20px;background:#11131875}.modal{width:min(440px,100%);padding:24px;background:var(--surface);border-radius:12px;box-shadow:var(--shadow)}.toast{position:fixed;right:20px;bottom:20px;z-index:40;min-height:44px;padding:10px 14px;background:var(--ink);color:#fff;border-radius:8px;box-shadow:var(--shadow)}a.btn{text-decoration:none}.admin-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px}.admin-head h2{margin:0;font-size:22px;letter-spacing:-.03em}.admin-head .lede{margin:6px 0 0}.admin-head-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.stats{display:grid;grid-template-columns:repeat(2,minmax(140px,220px));gap:12px;margin-bottom:20px}.stat-card{padding:16px 18px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.stat-card span{color:var(--muted);font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.stat-card strong{display:block;margin-top:4px;font-size:28px;letter-spacing:-.04em}.teacher-cell{display:flex;align-items:center;gap:10px}.pin-cell{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.muted{color:var(--muted);font-size:13px}.row-actions{white-space:nowrap}.btn-danger{border:1px solid #f0c4c0;background:#fff;color:var(--danger)}.btn-danger:hover:not(:disabled){background:#fdecec}@media(prefers-reduced-motion:reduce){.btn,.boot-mark{animation:none;transition:none}}@media(max-width:980px){.studio{grid-template-columns:1fr}.inspector{order:-1}}@media(max-width:800px){.admin-head,.stats{grid-template-columns:1fr;flex-direction:column;align-items:stretch}.auth-shell{grid-template-columns:1fr}.auth-brand{padding:28px 22px}.topbar,.topbar-meta,.url-row,.auth-actions,.admin-head-actions{flex-direction:column;align-items:stretch}.topbar{padding:12px 16px}.console{width:calc(100% - 24px)}.url-cell{max-width:180px}}
