*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#10233b;font-family:system-ui,sans-serif;color:#fff9eb}#stage{width:100%;height:100%;display:block}.tools{position:fixed;right:24px;top:20px;display:flex;align-items:center;gap:10px;max-width:65%;flex-wrap:wrap;justify-content:flex-end}button,a,summary{cursor:pointer}button,summary,.tools>label{border:1px solid #ffffff44;border-radius:24px;background:#102b4edb;color:#fff8e7;padding:10px 15px;font:inherit}button:disabled{opacity:.55;cursor:wait}input[type=range]{width:100px;vertical-align:middle;accent-color:#efbf70}details{position:relative}.panel{position:absolute;right:0;top:45px;width:320px;padding:18px;border-radius:16px;background:#10263ff5;box-shadow:0 10px 35px #0005;font-size:14px}.panel button,.panel a{display:block;margin:12px 0;color:#fff0cd}.status{position:fixed;right:22px;bottom:18px;display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:12px;text-shadow:0 1px 4px #000}.phone{overflow:auto;background:linear-gradient(#163e6bd9,#10253df5),url('/assets/rocket-launch/visual-v1/launch-background.png') center/cover fixed}.phone main{max-width:440px;margin:40px auto;padding:24px}.phone h1{font-size:30px}.phone button{display:block;width:100%;margin:14px 0}.phone .card{padding:20px;border:1px solid #ffffff33;border-radius:20px;background:#ffffff12}.phone img{max-height:38vh;max-width:100%;display:block;margin:auto}.phone p{line-height:1.7}.phone a{color:#f5d393}@media(max-width:700px){.tools{right:12px;top:100px;max-width:95%;gap:5px}.tools button,.tools summary,.tools>label{padding:7px 10px;font-size:12px}.panel{width:280px}.status{max-width:85%;bottom:10px}}
.phone main{margin:12px auto;padding:16px}.phone h1{font-size:24px;margin:8px 0 16px}.phone .eyebrow,.phone .note{font-size:12px;opacity:.7}.phone img{max-height:25vh}.phone #status{font-size:20px;font-weight:650;color:#ffdf94}.phone #guidance{font-size:13px;min-height:44px}.phone details{margin:18px 0}.phone #records{white-space:pre-line;font-size:12px}.phone #ignite.armed{background:#f1b84f;color:#182c44;box-shadow:0 0 30px #f2b75066;animation:ready-glow 2s ease-in-out infinite}.phone #cancel{background:transparent;font-size:13px}@keyframes ready-glow{50%{box-shadow:0 0 38px #ffd37799}}@media(prefers-reduced-motion:reduce){.phone #ignite.armed{animation:none}}
.phone .card{margin:16px 0}.scan-workshop h2{font-size:20px;margin-top:0}.draft-badge{color:#ffe4a6;font-size:12px;border-left:3px solid #f2be56;padding-left:10px}.scan-help,#scan-status{font-size:13px}.file-picker{display:block;padding:14px;border:1px dashed #92bbca;border-radius:12px}.file-picker input{display:block;max-width:100%;margin-top:10px}.scan-workshop #scan-canvas{width:100%;height:auto;display:block;border-radius:8px;background:#fff;touch-action:none}.scan-row{display:flex;gap:8px}.scan-row button{width:50%;font-size:12px}.scan-check{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.6;margin:12px 0}.scan-check input{margin-top:5px;flex:none}.scan-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.scan-pair figure{margin:0;text-align:center}.scan-pair img,.scan-parts img{width:100%;max-height:none;background:#edf3f2;border-radius:8px}.scan-pair figcaption{font-size:11px;margin-top:8px}.scan-parts{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.scan-workshop input[type=text],.scan-workshop select{box-sizing:border-box;display:block;width:100%;padding:10px;border:1px solid #6b8ba9;border-radius:8px;margin:8px 0;background:#143555;color:white}.phone #artwork:not([src]){display:none}

.scan-parts{grid-template-columns:repeat(2,1fr)}.scan-parts figure{margin:0}.scan-parts figcaption{font-size:11px;text-align:center}

#screen-join{position:fixed;right:24px;bottom:70px;width:220px;padding:18px;background:#fff9eaf2;color:#123753;border-radius:18px;text-align:center;box-shadow:0 8px 30px #0003}#screen-join[hidden]{display:none}#screen-join img{display:block;width:180px;height:180px;margin:12px auto;background:#fff}#screen-join strong{font-size:16px;line-height:1.5}#screen-join p,#screen-join small{font-size:12px}#screen-login{position:fixed;right:24px;bottom:80px}body:not(.phone) .status{max-width:70%}@media(max-width:700px){#screen-join{width:170px;right:12px;bottom:60px;padding:10px}#screen-join img{width:145px;height:145px}#screen-join strong{font-size:12px}}

.operation-timer{position:fixed;left:28px;top:140px;max-width:min(520px,43vw);padding:14px 18px;border:1px solid #ffe6a466;border-radius:16px;background:#0b274dde;color:#fff2c3;font-size:clamp(15px,1.7vw,24px);line-height:1.6;pointer-events:none;white-space:normal}.operation-timer[data-urgent=true]{border-color:#ffd25d;color:#ffe19a}.operation-timer[hidden]{display:none}

.class-entry{position:fixed;left:3.5vw;bottom:14vh;display:flex;align-items:center;gap:9px;padding:7px 14px;border:1px solid #d8b56e;border-radius:30px;background:#102c49d9;color:#fff3d2;box-shadow:0 3px 12px #0004;font-size:15px;z-index:3;cursor:pointer}.class-entry>span:first-child{display:flex;color:#e9c777}.class-entry>span:last-child{font-size:25px;line-height:1}.class-banner{position:fixed;left:3.5vw;top:7vh;max-width:min(550px,46vw);display:flex;flex-direction:column;gap:7px;padding:15px 20px;border:1px solid #eccb7c50;border-radius:18px;background:#08233bd9;color:#fff4d4;pointer-events:none}.class-banner[hidden]{display:none}.class-banner strong{font-size:clamp(20px,2.5vw,32px)}.class-banner p{margin:0;font-size:14px;color:#d5e6ec}.class-dialog,.class-gallery-dialog{box-sizing:border-box;border:1px solid #d4b774;border-radius:22px;background:#fff9eb;color:#173b4b;padding:24px;width:min(800px,94vw);max-height:90vh;overflow:auto;box-shadow:0 20px 80px #0008}.class-dialog::backdrop,.class-gallery-dialog::backdrop{background:#071725b8}.class-dialog header,.class-gallery-dialog header{display:flex;align-items:center;justify-content:space-between;gap:20px}.class-dialog h2,.class-gallery-dialog h2{font-size:23px;margin:0 0 15px}.class-dialog header button{background:transparent;color:#274e5b;border:0;font-size:28px;padding:0 8px}.class-dialog label{display:flex;flex-direction:column;gap:8px;margin:14px 0}.class-dialog input:not([type=checkbox]){font:inherit;padding:12px;border-radius:10px;border:1px solid #a9bdc3;background:#fff;color:#163f50}.class-dialog button,.class-gallery-dialog button{color:#fff7dc;background:#143e57;border:1px solid #77919c;border-radius:12px;font:inherit;padding:11px 16px;cursor:pointer}.class-dialog button:disabled,.class-gallery-dialog button:disabled{opacity:.45;cursor:default}.class-dialog button[type=submit],#class-start{background:#eabd59;color:#173448;border-color:#d7aa49;font-weight:700}.class-actions{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}.class-check{flex-direction:row!important;align-items:center}.class-note{font-size:13px;line-height:1.7;color:#637780}.class-queues{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.class-queues section{border:1px solid #d8d0b9;border-radius:12px;padding:12px}.class-queues h3{margin:0;font-size:16px}.class-queues ol{list-style:none;padding:0;max-height:150px;overflow:auto;font-size:14px;line-height:1.8}#class-message{color:#975129;line-height:1.6}.class-gallery-dialog{width:min(1180px,95vw)}#class-gallery-canvas{width:100%;height:auto;display:block;border-radius:12px}.class-dialog [hidden],.class-gallery-dialog [hidden]{display:none!important}@media(max-width:800px){.class-entry{font-size:12px;padding:6px 10px;bottom:16vh}.class-entry svg{width:32px}.class-banner{top:15vh;max-width:64vw;padding:10px}.class-banner strong{font-size:18px}.class-banner span,.class-banner p{font-size:12px}.class-dialog{padding:18px}.class-queues{grid-template-columns:1fr 1fr}}
.class-history-list{display:grid;gap:8px;margin:12px 0}.class-history-list button{text-align:left;font-size:14px}
.class-gallery-dialog{width:min(1000px,95vw)}#class-gallery-canvas{width:auto;max-width:100%;height:auto;max-height:58vh;margin:0 auto}
.class-timing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.class-dialog select{font:inherit;padding:12px;border-radius:10px;border:1px solid #a9bdc3;background:white;color:#163f50}#class-timing-details{margin-top:18px}#class-timing-details label{font-size:14px}@media(max-width:500px){.class-timing-grid{grid-template-columns:1fr}}
/* Activity-only compact HUD. Original single-launch layout is untouched. */
.class-active .class-banner{left:24px;top:20px;width:min(540px,calc(100vw - 610px));max-width:none;padding:10px 16px;min-height:48px;border-radius:25px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px 12px;background:#112f4bdb;border-color:#d6b56d80;box-shadow:0 3px 14px #10233b25}
.class-active .class-banner strong{min-width:0;font-size:clamp(15px,1.45vw,22px);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.class-active .class-banner>span{font-size:12px;white-space:nowrap;color:#f5e8ce}.class-active .class-banner #class-round{border-left:1px solid #f1d79855;padding-left:12px}
.class-active .class-live-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.class-active .class-banner.has-alert .class-live-status{position:static;grid-column:1/-1;clip-path:none;width:auto;height:auto;white-space:normal;color:#ffe4a7;font-size:12px;line-height:1.4}
.class-counts{position:fixed;left:28px;top:74px;max-width:calc(100vw - 56px);margin:0;padding:5px 10px;border-radius:16px;background:#102c49a6;font-size:11px;color:#f1eadb;pointer-events:none}.class-counts[hidden]{display:none}.class-banner.has-alert+.class-counts{top:110px}.class-collection-panel{padding:14px 16px;margin:16px 0;border:1px solid #d3c39e;border-radius:13px;background:#f4ecd7}.class-collection-panel p{margin:10px 0}.class-collection-panel .class-actions{margin:10px 0}.class-collection-panel strong{color:#1a555d}#class-upload-status{font-size:14px;line-height:1.6}
.class-active .tools{font-size:14px;gap:8px}.class-active .tools button,.class-active .tools>label{padding:9px 13px}.class-active .class-entry{left:24px;bottom:24px;background:#102c49ed}.class-active .status{right:18px;bottom:8px;font-size:10px;max-width:340px;gap:2px}.class-active .status #connection{display:none}
.class-active #screen-join{right:18px;bottom:42px;width:144px;padding:8px;border-radius:12px;box-shadow:0 5px 16px #06172255;background:#fffaf2fa}.class-active #screen-join strong{display:block;font-size:12px;line-height:1.3;margin:0 0 7px}.class-active #join-qr{display:block;width:128px;height:128px;margin:0;background:white;image-rendering:pixelated}.class-active #screen-label{display:none}.class-active #screen-join p{font-size:10px;line-height:1.3;margin:6px 0 0;color:#35546a}
#class-qr-open{position:absolute;inset:0;border:0;border-radius:12px;padding:0;background:transparent;width:100%;height:100%}#class-qr-open:focus-visible{outline:3px solid #e6a42e;outline-offset:3px}#class-qr-open:hover{box-shadow:0 0 0 2px #d8b56e inset}
.class-qr-dialog{width:min(570px,94vw);max-height:94vh;overflow:auto;padding:24px;border:1px solid #d4b774;border-radius:20px;background:#fff9ec;color:#173b4b;text-align:center;box-shadow:0 20px 70px #0008}.class-qr-dialog::backdrop{background:#061522c4}.class-qr-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px}.class-qr-dialog h2{font-size:20px;margin:0}.class-qr-dialog button{font-size:14px}.class-qr-dialog p{font-size:14px;line-height:1.6}.class-qr-dialog img{display:block;width:min(66vh,100%);max-width:440px;aspect-ratio:1;height:auto;margin:16px auto;background:#fff;image-rendering:pixelated}
@media(max-width:1100px) and (min-width:901px){.class-active .class-banner{width:calc(100vw - 520px);left:18px;gap:8px;padding:10px 12px}.class-active .tools{font-size:12px;right:18px;gap:5px}.class-active .tools button,.class-active .tools>label{padding:8px 10px}.class-active .tools input{width:80px}}
@media(max-width:900px){.class-active .class-banner{left:14px;top:12px;width:calc(100vw - 28px);min-height:40px;padding:8px 13px}.class-active .class-banner strong{font-size:16px}.class-active .tools{top:66px;right:14px;max-width:calc(100vw - 28px);font-size:12px}.class-active #screen-join{right:12px;bottom:42px}.class-active .class-entry{left:14px;bottom:20px}.class-active .class-banner.has-alert~.tools{top:88px}}
@media(max-width:900px){.class-counts{left:14px;top:106px;max-width:calc(100vw - 28px);font-size:10px}.class-banner.has-alert+.class-counts{top:145px}}
@media(max-height:580px){.class-active #screen-join{width:128px;padding:8px;bottom:32px}.class-active #join-qr{width:112px;height:112px}.class-active #screen-join strong{font-size:11px}.class-active .status{font-size:9px}.class-active .class-entry{bottom:14px}.class-qr-dialog{padding:16px}.class-qr-dialog img{width:min(58vh,100%);margin:10px auto}}

/* Card actions retain the compact activity HUD and the original single scene. */
.class-banner.activity-swipe{position:fixed!important;pointer-events:auto;display:block;background:transparent;z-index:4}
.class-active .class-banner.activity-swipe{display:block;background:transparent}
.class-banner.activity-swipe[hidden]{display:none}
.class-banner.activity-swipe>.activity-swipe-surface{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px;min-height:48px;padding:10px 72px 10px 16px!important;background:#112f4b!important;color:#fff3d2}
.class-banner.activity-swipe #class-name{grid-row:1/3}.class-banner.activity-swipe #class-progress,.class-banner.activity-swipe #class-round{font-size:11px;white-space:nowrap;border:0;padding:0}.class-banner.activity-swipe .activity-swipe-status{grid-column:1/-1;color:#ffe4a7}
.class-history-card{border:1px solid #c7b998;border-radius:12px;background:#f5edda;color:#173b4b}
.class-history-card .activity-swipe-surface{padding:12px 76px 12px 12px!important;min-height:70px;background:#f5edda!important}
.class-history-card .class-history-open{display:block;width:100%;border:0;background:transparent;color:#173b4b;padding:6px 0;min-height:40px}
#class-mode .class-deleted-notice{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;width:min(460px,90vw);padding:25px;border:1px solid #d4b774;border-radius:18px;background:#102c49f2;color:#fff3d2;text-align:center;box-shadow:0 15px 60px #0006}#class-mode .class-deleted-notice[hidden]{display:none}#class-mode .class-deleted-notice h2{font-size:24px;margin:0 0 14px}#class-mode .class-deleted-notice p{font-size:15px;line-height:1.7}#class-mode .class-deleted-notice button{background:#f0c66d;color:#173b4b;font-weight:700}
