*{box-sizing:border-box} [hidden]{display:none!important} :root{color-scheme:dark;--ap-accent:#6366f1;--ap-border:#334155;--ap-surface:#131e30;--ap-muted:#aab8cc} body{margin:0;background:#0a0f1a;color:#f1f5f9;font:16px/1.5 Outfit,"Segoe UI",sans-serif} a{color:#b7c4ff} button,input,textarea,select{font:inherit} button,.ap-button{min-height:44px;border:1px solid transparent;border-radius:12px;padding:9px 15px;background:#4f46e5;color:#fff;font-weight:650;cursor:pointer;white-space:normal} button:hover{filter:brightness(1.1)}button:disabled{opacity:.55;cursor:wait}button.ap-secondary{background:transparent;color:inherit;border-color:var(--ap-border)}button.ap-danger{background:#9f2340}input,textarea,select{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--ap-border);border-radius:10px;color:inherit;background:var(--ap-surface);min-width:0}textarea{resize:vertical}label{display:block;font-weight:650;margin:10px 0 4px}input[type=checkbox]{width:22px;min-height:22px;height:22px;accent-color:#6366f1} :focus-visible{outline:3px solid #a5b4fc;outline-offset:3px}h1,h2,h3,p{margin:0 0 12px}h1{font-size:1.55rem}h2{font-size:1.25rem}h3{font-size:1.05rem}form{display:grid;gap:10px}small,.ap-muted{color:var(--ap-muted)}.ap-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-bottom:1px solid var(--ap-border);flex-shrink:0}.ap-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;font-weight:800}.ap-brand img{width:32px;height:32px}.ap-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-start}.ap-panel>.ap-actions,.ap-panel>form+button,.ap-panel>button+button{margin-top:12px}.ap-row .ap-actions>button{white-space:nowrap}.ap-panel{background:var(--ap-surface);border:1px solid var(--ap-border);border-radius:18px;padding:20px;margin-bottom:18px;min-width:0}.ap-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ap-inline input{flex:1 1 140px}.ap-error{color:#fca5a5;white-space:pre-wrap;overflow-wrap:anywhere}.ap-warning{color:#fcd34d}.ap-sync{font-size:.75rem;color:var(--ap-muted);margin:8px 0 0;overflow-wrap:anywhere}.ap-sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.ap-layout{max-width:1200px;margin:auto;padding:24px 20px}.ap-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:18px}.ap-list{display:grid;gap:12px}.ap-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px;border:1px solid var(--ap-border);border-radius:12px}.ap-row>div{min-width:0;overflow-wrap:anywhere}.ap-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.ap-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}.ap-stat{padding:15px;border:1px solid var(--ap-border);border-radius:12px}.ap-stat strong{display:block;font-size:1.8rem}.ap-pill{display:inline-block;border:1px solid var(--ap-border);border-radius:999px;padding:2px 9px;font-size:.75rem}.ap-check{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px;margin:0;font-weight:400}.ap-check small{display:block}.ap-checks{max-height:40vh;overflow:auto;border:1px solid var(--ap-border);border-radius:12px;padding:8px}.ap-footer{padding:20px;text-align:center;font-size:.8rem;display:flex;flex-direction:column;align-items:center;gap:10px}.ap-footer>*{margin:0}.ap-footer a{margin:0 6px}dialog{padding:0;width:min(600px,calc(100% - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--ap-border);border-radius:20px;background:var(--ap-surface);color:inherit;box-shadow:0 24px 100px #0008}dialog::backdrop{background:#030712bd;backdrop-filter:blur(4px)}.ap-dialog-body{padding:24px;overflow-wrap:anywhere}.ap-dialog-body>button{margin:12px 10px 0 0}.ap-dialog-foot{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid var(--ap-border);font-size:.8rem}.ap-dialog-foot>*{margin:0}.ap-qr{background:#fff;padding:16px;width:fit-content;max-width:100%;margin:16px auto;border-radius:12px}.ap-qr canvas,.ap-qr img{max-width:100%;height:auto!important}.ap-secret{display:block;overflow-wrap:anywhere;font-size:1.05rem;margin:12px 0;user-select:all}.ap-instructions{white-space:pre-wrap;overflow-wrap:anywhere}.ap-instructions a{display:inline-block;min-height:44px}.ap-print-card{text-align:center;break-inside:avoid;padding:24px}.ap-print-grid{display:none}.ap-teacher-nav{display:flex;gap:10px;flex-wrap:wrap}.ap-teacher-nav button[aria-selected=true]{background:#6366f1}.ap-student{--ap-border:#cbd0d8;--ap-surface:#fff;--ap-muted:#586477;color-scheme:light;background:#f4eedc;color:#172554;height:100dvh;display:flex;flex-direction:column;overflow:hidden}.ap-student .ap-header{padding:8px 14px}.ap-student a{color:#4338ca}.ap-student-main{flex:1;min-height:0;overflow-y:auto;padding:18px 14px}.ap-workshop-title{max-width:620px;margin:0 auto 14px;font-size:1.1rem}.ap-stamps{max-width:620px;margin:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ap-stamp{border:1.5px dashed #9196a1;background:#ffffff45;border-radius:14px;min-height:160px;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:8px;overflow-wrap:anywhere;text-align:center;min-width:0}.ap-stamp>strong{font-size:.8rem}.ap-stamp button{font-size:.8rem}.ap-stamp-mark{border:3px double #1e3a8a;border-radius:50%;width:125px;height:125px;display:flex;flex-direction:column;justify-content:center;padding:12px;font:800 13px/1.15 monospace;transform:rotate(-8deg);color:#1e3a8a}.ap-stamp-mark small{font-size:10px;line-height:1.2;margin-top:6px;color:inherit}.ap-action-panel{flex-shrink:0;background:#fff;border-top:1px solid var(--ap-border);padding:10px 16px max(10px,env(safe-area-inset-bottom));box-shadow:0 -5px 25px #17255412;max-height:50dvh;overflow-y:auto}.ap-action-panel>*,.ap-action-panel .ap-actions{max-width:620px;margin-left:auto;margin-right:auto}.ap-action-panel #currentStatus{font-weight:750;margin-bottom:3px;overflow-wrap:anywhere}.ap-action-panel #statusSub{font-size:.8rem;margin-bottom:8px}.ap-progress{display:flex;align-items:center;gap:12px;font-size:.75rem;margin-bottom:7px}.ap-progress progress{flex:1;height:10px;accent-color:#6366f1}.ap-student dialog{color:#172554;background:#fff}.ap-student .ap-error{color:#b91c1c}.ap-student .ap-warning{color:#92400e}.ap-student #welcomePanel{max-width:620px;margin:auto auto 16px}.ap-student #reader{max-height:40dvh;overflow:hidden}.ap-student #reader video{max-height:35dvh;width:100%;object-fit:cover}.ap-student #backupDialog{color:#172554}.ap-header button{flex-shrink:0}.ap-connection[data-offline=true]{color:#fcd34d}.ap-source-note{font-size:.8rem}.ap-toast{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);background:#172554;color:white;padding:12px 18px;border-radius:12px;max-width:calc(100% - 24px);z-index:100}
@media(max-width:600px){.ap-layout{padding:16px 12px}.ap-header{padding:10px 12px}.ap-stats{grid-template-columns:repeat(2,1fr)}.ap-panel{padding:16px}.ap-dialog-body{padding:18px}.ap-row .ap-actions{width:100%}.ap-row .ap-actions button{flex:1}.ap-student .ap-actions button{flex:1;padding:8px 10px;font-size:.8rem}.ap-stamp{min-height:150px}.ap-action-panel{padding-left:12px;padding-right:12px}.ap-student .ap-header .ap-brand{font-size:.95rem}.ap-student #statusSub{margin-bottom:5px}.ap-sync{margin-top:5px}.ap-footer{padding:14px}.ap-teacher-nav button{flex:1}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}.ap-stamp-mark{transform:none}}
@media print{body>*{display:none!important}body>.ap-print-grid{display:grid!important;grid-template-columns:repeat(2,1fr);color:#111;background:#fff}body:has(#backupDialog[open])>#backupDialog{display:block!important;position:static;width:100%;max-height:none;border:0;background:#fff;color:#111}#backupDialog button{display:none!important}.ap-qr img{display:block!important}.ap-qr canvas{display:none!important}.ap-footer,.lmb-ai-label-link{display:none!important}}
