:root{--blue:oklch(55% .135 248);--ink:oklch(27% .04 250);--muted:oklch(61% .02 250);--line:oklch(91% .015 248);--tint:oklch(98% .006 248);--ease:cubic-bezier(.22,1,.36,1)}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid oklch(72% .1 248);outline-offset:4px}.stage{aspect-ratio:16/9;width:min(1040px,calc(100% - 80px));min-height:550px;margin:max(24px,calc((100svh - 585px)/2)) auto 0;display:flex;align-items:center;justify-content:center;flex-direction:column;animation:enter 3s var(--ease) both}.identity{width:190px;transform:translateY(100px);animation:logo 3.5s .5s var(--ease) both}.identity img{display:block;width:100%;height:auto}.surface{width:min(100%,480px);margin-top:46px;animation:enter 3s 1.5s var(--ease) both}.input-wrap{position:relative}textarea{resize:none;display:block;width:100%;height:174px;padding:24px 24px 54px;border:1px solid var(--line);border-radius:18px;background:var(--tint);color:var(--ink);font-size:18px;line-height:1.7;overflow-y:auto}textarea::placeholder,input::placeholder{color:var(--muted)}.example{position:absolute;right:18px;bottom:14px;border:0;background:var(--tint);color:var(--muted);padding:4px;font-size:12px}.example:hover{color:var(--blue)}.primary{width:100%;height:56px;border:0;border-radius:28px;margin-top:18px;background:var(--blue);color:white;font-size:16px;font-weight:600;letter-spacing:.08em;transition:background .22s,transform .22s,box-shadow .22s}.primary:disabled{background:oklch(93% .006 248);color:oklch(64% .012 248)}.primary:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 8px 18px oklch(55% .135 248 / .14)}.primary:active{transform:none}.footnote{font-size:11px;letter-spacing:.16em;color:var(--muted);margin:22px 0 0;animation:enter .7s 1.05s var(--ease) both}.error{font-size:13px;color:oklch(50% .17 25);line-height:1.6;min-height:22px;margin:12px 0 0;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.result{max-width:940px;margin:0 auto;padding:56px 36px 80px;animation:enter 3.5s var(--ease)}.result-top{display:flex;justify-content:space-between;gap:20px;align-items:center}.eyebrow{color:var(--blue);font-size:12px;letter-spacing:.14em;margin:0 0 12px}h1{font-size:24px;font-weight:500;margin:0}.actions{display:flex;gap:8px}.secondary{border:1px solid var(--line);border-radius:24px;background:white;padding:12px 18px;color:var(--ink);font-size:13px}.secondary:hover{border-color:var(--blue);background:var(--tint)}.status{min-height:20px;color:var(--muted);font-size:13px;line-height:1.7}.team{display:grid;grid-template-columns:96px 1fr;gap:24px;padding:30px 0;border-top:1px solid var(--line)}.team-label{font-size:24px;color:var(--blue);margin:8px 0}.squads{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.squad-name{font-size:12px;color:var(--muted);margin:10px 0 18px}.members{display:flex;flex-direction:column;gap:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:24px;letter-spacing:.04em}.text-button{border:0;background:none;padding:16px 0;color:var(--muted);font-size:13px}#number{width:100%;height:64px;text-align:center;border:1px solid var(--line);border-radius:18px;background:var(--tint);color:var(--ink);font-family:ui-monospace,monospace;font-size:22px;letter-spacing:.13em}.my-group{width:min(480px,calc(100% - 40px));margin:0 auto 80px;padding-top:30px;border-top:1px solid var(--line);animation:enter 3.5s var(--ease)}.my-group h1{font-size:34px;color:var(--blue)}.my-group .members{margin-top:24px;flex-direction:row;flex-wrap:wrap;gap:12px}.member{border:1px solid var(--line);border-radius:12px;padding:14px 18px}.member.self{background:var(--blue);color:white;border-color:var(--blue)}body.has-result .stage{margin-top:16px;min-height:400px;aspect-ratio:auto}body.has-result .identity{width:120px}body.has-result .surface{margin-top:28px}body.has-result .footnote{display:none}[hidden]{display:none!important}@keyframes enter{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}@keyframes logo{from{transform:translateY(100px)}to{transform:translateY(0)}}@media(max-width:600px){.stage{width:calc(100% - 40px);min-height:500px;aspect-ratio:auto;margin-top:max(12px,calc((100svh - 550px)/2))}.identity{width:150px}.surface{margin-top:36px}textarea{font-size:16px}.result{padding:30px 24px 60px}.result-top{display:block}.actions{margin-top:24px;flex-wrap:wrap}.team{grid-template-columns:1fr;gap:10px}.team-label{font-size:22px}.squads{gap:12px}.members{font-size:20px}h1{font-size:22px}body.has-result .stage{min-height:360px}.my-group h1{font-size:30px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}.identity{transform:none}}

body.query-complete .stage{aspect-ratio:auto;min-height:0;margin:64px auto 0}
body.query-complete .identity{width:120px;animation:none;transform:none}
body.query-complete .surface{display:none}
.my-group{width:min(940px,calc(100% - 48px));margin:48px auto 64px;padding:0;border:0}
.my-group h1{text-align:center;font-size:28px;margin-bottom:32px}
.query-squads{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.query-squad{border:1px solid var(--line);border-radius:20px;padding:26px 22px;background:white}
.query-squad.active{background:oklch(96% .025 248);border-color:oklch(83% .06 248)}
.squad-heading{font-size:18px;font-weight:500;margin:0;color:var(--muted)}
.active .squad-heading{color:var(--blue)}
.my-group .members{flex-direction:column;margin-top:22px;gap:10px}
.member{text-align:center;border:0;padding:14px 12px;background:transparent}
@media(max-width:600px){body.query-complete .stage{margin-top:36px}.my-group{margin-top:32px;width:calc(100% - 40px)}.query-squads{grid-template-columns:1fr;gap:12px}.query-squad{padding:20px}.my-group .members{flex-direction:row;flex-wrap:wrap;margin-top:14px;gap:6px}.member{font-size:20px;padding:12px}.my-group h1{margin-bottom:24px}}

body.has-result .stage{min-height:0;margin-top:48px}
body.has-result .surface{display:none}
body.has-result .result{padding-top:40px}
.status:empty{display:none}
.marquee-screen{position:fixed;inset:0;z-index:10;background:white;display:flex;flex-direction:column;overflow:hidden}
.marquee-header{display:flex;align-items:center;justify-content:space-between;padding:32px}
.marquee-header img{width:130px;height:auto}
.marquee-window{width:100%;overflow:hidden;flex:1;display:flex;align-items:center;padding-bottom:70px}
.marquee-track{display:flex;width:max-content;will-change:transform}
.marquee-set{display:flex;gap:20px;padding-right:20px;flex-shrink:0}
.marquee-card{width:calc((100vw - 40px)/3);flex-shrink:0;padding:32px 26px;border:1px solid var(--line);border-radius:24px;background:var(--tint)}
.marquee-card h2{color:var(--blue);font-size:30px;font-weight:500;margin:0 0 28px}
.marquee-card .members{font-size:28px}
.marquee-card .squad-name{font-size:14px}
body.marquee-open{overflow:hidden}
@media(max-width:600px){body.has-result .stage{margin-top:36px}.marquee-header{padding:20px}.marquee-header img{width:100px}.marquee-set{gap:10px;padding-right:10px}.marquee-card{width:calc((100vw - 20px)/3);padding:20px 8px;border-radius:14px}.marquee-card h2{font-size:20px;margin-bottom:18px}.marquee-card .members{font-size:16px}.marquee-card .squad-name{font-size:11px}.marquee-card .squads{grid-template-columns:1fr;gap:14px}.marquee-window{padding-bottom:30px}.actions{gap:6px}.secondary{padding:11px 13px}}

.grouping-loader{text-align:center;margin-top:54px;animation:loader-in 1s var(--ease) both}

.loading-symbol{display:flex;justify-content:center;gap:16px}
.loading-symbol i{display:block;width:24px;height:24px;border-radius:9px;background:var(--blue);animation:gather 3s ease-in-out infinite}
.loading-symbol i:nth-child(2){animation-delay:.35s;background:oklch(72% .1 248)}
.loading-symbol i:nth-child(3){animation-delay:.7s;background:oklch(86% .06 248)}
body.grouping .surface{display:none}
@keyframes gather{0%,100%{transform:translateY(0) rotate(0);opacity:.45}50%{transform:translateY(-18px) rotate(10deg);opacity:1}}
@keyframes loader-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.result,.my-group{animation-name:result-in}
@keyframes result-in{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}
.marquee-header{padding:22px 32px;animation:loader-in 3s var(--ease) both}
.marquee-window{padding-bottom:20px;animation:loader-in 4s var(--ease) both}
.marquee-column{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:20px;width:calc((100vw - 40px)/3);flex-shrink:0}
.marquee-card{width:100%;padding:22px 24px;border-radius:20px;background:white}
.marquee-card h2{font-size:28px;margin-bottom:12px}
.marquee-card .squads{gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
.marquee-card .squad-name{margin:0 0 12px;font-size:15px;color:var(--blue)}
.marquee-card .members{font-size:clamp(30px,4.7vh,44px);line-height:1.12;letter-spacing:0;gap:10px}
.members{font-size:30px}
@media(max-width:600px){.marquee-header{padding:16px 20px}.marquee-column{width:85vw;gap:12px}.marquee-card{padding:18px 14px}.marquee-card h2{font-size:22px;margin-bottom:12px}.marquee-card .members{font-size:24px;gap:8px}.marquee-card .squads{gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}.marquee-card .squad-name{font-size:12px;margin-bottom:10px}.marquee-window{padding-bottom:16px}.members{font-size:24px}}
@media(max-height:650px){.marquee-header{padding:12px 20px}.marquee-card{padding:12px 16px}.marquee-column{gap:10px}.marquee-card h2{font-size:22px;margin-bottom:8px}.marquee-card .squad-name{margin-bottom:6px}.marquee-card .members{font-size:26px;gap:6px}.marquee-window{padding-bottom:12px}}

.marquee-header{position:relative;min-height:110px;justify-content:flex-end}
.marquee-header img{position:absolute;left:50%;top:32px;transform:translateX(-50%);width:150px}
.marquee-actions{display:flex;gap:10px}
@media(max-width:600px){.marquee-header{min-height:128px;align-items:flex-end;padding-bottom:8px}.marquee-header img{top:20px;width:120px}.marquee-actions{gap:8px}}
@media(max-height:650px) and (min-width:601px){.marquee-header{min-height:76px}.marquee-header img{top:20px;width:120px}}

.marquee-header{min-height:148px;align-items:flex-end;padding-bottom:16px}
.marquee-header img{top:24px;width:150px}
@media(max-width:600px){.marquee-header{min-height:132px;padding-bottom:12px}.marquee-header img{top:18px;width:115px}.marquee-actions{gap:5px}.marquee-actions .secondary{padding:10px 11px;font-size:12px}}
@media(min-width:1100px){.marquee-header{min-height:96px;align-items:center}.marquee-header img{top:22px}}
@media(max-height:650px) and (min-width:601px){.marquee-header{min-height:86px;align-items:flex-end}.marquee-header img{top:10px;width:95px}.marquee-actions .secondary{padding:8px 12px}.marquee-window{padding-bottom:8px}}

.marquee-header{min-height:166px;padding:0;align-items:center}
.marquee-header img:not(.qr-image){top:34px;width:150px}
.qr-share{position:absolute;top:12px;right:24px;border:0;border-radius:8px;background:white;padding:0;cursor:pointer;transition:box-shadow 3s var(--ease)}
.marquee-header .qr-image{position:static;transform:none;display:block;width:144px;height:144px}
.qr-share.copied{box-shadow:0 0 0 2px var(--blue)}
.quiet-download{position:absolute;bottom:14px;left:24px;border:0;background:none;padding:4px 0;color:var(--muted);opacity:.35;font-size:12px;letter-spacing:.06em;transition:opacity .25s}
.quiet-download:hover,.quiet-download:focus-visible{opacity:1}
@media(max-width:600px){.marquee-header{min-height:124px}.marquee-header img:not(.qr-image){top:30px;width:105px}.qr-share{top:12px;right:14px}.marquee-header .qr-image{width:96px;height:96px}.quiet-download{left:20px;bottom:12px}}
@media(max-height:650px) and (min-width:601px){.marquee-header{min-height:106px}.marquee-header img:not(.qr-image){top:28px;width:120px}.qr-share{top:8px;right:16px}.marquee-header .qr-image{width:92px;height:92px}}
@media(min-width:601px) and (min-height:651px) and (max-height:800px){.marquee-header{min-height:130px}.marquee-header .qr-image{width:116px;height:116px}.qr-share{top:7px}.marquee-card{padding:18px 20px}.marquee-card h2{font-size:24px;margin-bottom:10px}.marquee-card .members{font-size:30px;gap:8px}}
@media(max-width:360px){.marquee-header img:not(.qr-image){width:95px}}
.marquee-header img:not(.qr-image){top:72px}
@media(max-width:600px){.marquee-header img:not(.qr-image){top:56px}}
@media(max-height:650px) and (min-width:601px){.marquee-header img:not(.qr-image){top:46px}}

@media(max-width:600px){
 body.query-complete main{min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:36px;padding:32px 20px}
 body.query-complete .stage{width:100%;margin:0;min-height:0;flex-shrink:0}
 body.query-complete .identity{width:120px}
 body.query-complete .my-group{width:min(100%,480px);margin:0;flex-shrink:0}
 body.query-complete .my-group h1{margin-bottom:24px}
 body.query-complete .query-squad{text-align:center;padding:20px 16px}
 body.query-complete .my-group .members{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:14px}
 body.query-complete .my-group .members[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.query-complete .my-group .member{font-size:24px;padding:12px 4px;letter-spacing:0}
}
/* 分組展示：隊伍、分隊與編號在各自區塊內置中。 */
.marquee-card{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.marquee-card .squads{width:100%;align-items:center;text-align:center}
.marquee-card .squads>div{display:flex;flex-direction:column;justify-content:center;align-items:center}
.marquee-card .members{align-items:center;text-align:center}
.marquee-card .squad-name{text-align:center}
.query-squad{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.query-squad .members{width:100%;justify-content:center;align-items:center;text-align:center}
.team-label,.squad-name{text-align:center}
.team .squads>div{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.team .members{align-items:center;text-align:center}
.team,.team .squads{align-items:center}

.query-other{display:none}
@media(max-width:600px){.query-other{display:block;margin:22px auto 0;border:0;background:none;padding:8px 12px;font-size:13px;color:var(--muted);cursor:pointer}.query-other:hover,.query-other:focus-visible{color:var(--blue)}}

.marquee-header,.marquee-window{animation:none}

body.query-reentry .stage,body.query-reentry .identity,body.query-reentry .surface{animation:none;transform:none}
body.query-reentry .identity{width:120px}

.otp-wrap{position:relative}
.otp-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;z-index:1;cursor:text;font-size:16px}
.otp-cells{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.otp-cells span{height:64px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:14px;background:var(--tint);color:var(--blue);font-size:26px;font-family:ui-monospace,monospace}
.otp-wrap:focus-within .otp-cells .current{border-color:var(--blue);box-shadow:0 0 0 2px oklch(90% .03 248)}
body.admin-ready .identity,body.admin-ready .surface{animation:none;transform:none}
.marquee-card .squads,.team .squads{align-items:start}
.marquee-card .squads>div,.team .squads>div{justify-content:flex-start}
@media(max-width:600px){.otp-cells{gap:7px}.otp-cells span{height:58px;border-radius:12px}}.squad-caption{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:36px}
.upload-link-toggle{position:absolute;right:0;top:0;background:none;border:0;color:var(--blue);font-size:11px;padding:10px 6px;cursor:pointer;white-space:nowrap}
.project-link-form{width:100%;margin-top:20px;padding-top:18px;border-top:1px solid oklch(85% .035 248)}
.project-link-form input{width:100%;height:46px;border:1px solid var(--line);border-radius:12px;padding:0 12px;font-size:16px;background:white;color:var(--ink)}
.project-submit-row{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:12px}.project-submit-row .text-button{padding:10px}
.project-status{font-size:12px;color:oklch(50% .17 25);line-height:1.5;margin:12px 0 0}.project-status:empty{display:none}
.my-project-links{width:100%;margin-top:18px}.my-project-links:empty{display:none}.my-project-row{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:14px;font-size:12px}.my-project-row a{color:var(--blue);text-decoration:none}.my-project-row span{color:var(--muted);font-size:11px}
.projects-gallery-toggle{display:block;margin:16px auto 0;border:0;background:none;padding:8px 12px;color:var(--blue);font-size:13px;cursor:pointer}
.project-gallery{width:min(940px,calc(100% - 48px));margin:36px auto 60px}.gallery-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.gallery-head h1{color:var(--blue)}.project-gallery select{font:inherit;font-size:14px;border:1px solid var(--line);background:white;border-radius:12px;padding:12px 16px;color:var(--ink);margin-bottom:28px}
.gallery-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.gallery-item{border:1px solid var(--line);border-radius:18px;padding:24px;background:white;text-align:center}.gallery-item h2{font-size:24px;font-weight:500;margin:12px 0 22px}.gallery-open{color:var(--blue);font-size:14px;text-decoration:none}.gallery-item details{margin-top:22px;font-size:12px;color:var(--muted);text-align:left}.gallery-item summary{cursor:pointer}.gallery-version{display:flex;justify-content:space-between;gap:16px;margin-top:14px}.gallery-version a{color:var(--blue);text-decoration:none}.project-empty{font-size:14px;color:var(--muted);grid-column:1/-1}
body.gallery-view .stage{min-height:0;aspect-ratio:auto;margin:32px auto 0}body.gallery-view .surface{display:none}body.gallery-view .identity{width:120px;animation:none;transform:none}
@media(max-width:600px){body.gallery-view main{justify-content:flex-start;gap:28px}body.gallery-view .stage{margin:0}body.query-complete .project-gallery{width:100%;margin:0 0 32px}.gallery-list{grid-template-columns:1fr}.gallery-head{gap:12px}.gallery-head h1{font-size:22px}.gallery-head .text-button{font-size:12px}.upload-link-toggle{font-size:11px;padding:10px 0}}
.room-name-input{width:100%;height:50px;border:1px solid var(--line);border-radius:14px;background:var(--tint);padding:0 18px;font-size:16px;color:var(--ink);margin-bottom:16px}
.admin-dashboard{width:min(940px,calc(100% - 48px));margin:40px auto 72px}.dashboard-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.dashboard-head h1{font-size:24px;color:var(--blue)}.room-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.history-card{border:1px solid var(--line);border-radius:18px;padding:24px}.history-card h2{font-size:18px;font-weight:500;line-height:1.5;margin:0;overflow-wrap:anywhere}.history-meta{font-size:12px;color:var(--muted);margin:14px 0 20px}.history-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.history-actions a{text-decoration:none;font-size:12px}.activate-room{margin-top:18px;font-size:12px;color:var(--muted)}.activate-room summary{cursor:pointer}.activate-room form{display:flex;gap:8px;margin-top:14px}.activate-room input{width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px;font-size:16px}
body.admin-ready:not(.has-result) .stage{min-height:0;aspect-ratio:auto;margin:40px auto 0}body.admin-ready:not(.has-result) .identity{width:130px}
.student-rooms{width:min(480px,calc(100% - 40px));margin:32px auto 60px;text-align:center}.student-rooms h1{font-size:26px;color:var(--blue);margin-bottom:24px}.room-list{display:flex;flex-direction:column;gap:12px}.room-choice{border:1px solid var(--line);border-radius:18px;padding:22px;background:white;color:var(--ink);text-align:center;cursor:pointer}.room-choice strong{display:block;font-size:18px;font-weight:500;margin-bottom:12px;overflow-wrap:anywhere}.room-choice span{font-size:13px;color:var(--muted)}.room-choice:hover{background:var(--tint);border-color:var(--blue)}.room-other{display:block}.room-picker .stage{min-height:0;aspect-ratio:auto;margin:48px auto 0}.room-picker .surface{display:none}.room-picker .identity{width:120px;animation:none;transform:none}
.marquee-tools{position:absolute;left:24px;bottom:12px;display:flex;align-items:center;gap:20px}.marquee-tools button,.marquee-tools a{position:static!important;border:0;background:none;padding:6px 0;font-size:12px;letter-spacing:.04em;color:var(--muted);opacity:.4;cursor:pointer;text-decoration:none}.marquee-tools button:hover,.marquee-tools a:hover,.marquee-tools button:focus-visible,.marquee-tools a:focus-visible{opacity:1}.marquee-tools span{font-size:11px;color:var(--muted)}
body.gallery-view .admin-dashboard,body.gallery-view .student-rooms{display:none}
@media(max-width:600px){.admin-dashboard{width:calc(100% - 40px)}.room-history{grid-template-columns:1fr}.dashboard-head h1{font-size:20px}.history-card{padding:22px}.marquee-tools{left:16px;gap:14px}.marquee-tools button,.marquee-tools a{font-size:11px}.room-picker .stage{margin-top:32px}.student-rooms{margin-top:28px}}

.query-other,.text-button{appearance:none;border:0;background:transparent;color:var(--muted);font:inherit;font-size:14px;padding:10px 14px;border-radius:12px;text-decoration:none;cursor:pointer;transition:background .2s,color .2s}
.query-other:hover,.text-button:hover{background:var(--tint);color:var(--blue)}
.room-other{margin:14px auto 0;text-align:center}.my-group>.eyebrow{text-align:center}.my-group>.room-other{display:inline-block;margin:18px 4px 0}.my-group{text-align:center}
.room-primary-actions{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:28px;flex-wrap:wrap}
.room-primary-actions .secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:12px 22px;border-radius:24px;text-decoration:none;font-size:14px}
.book-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.playbook-corner{position:fixed;right:24px;bottom:max(20px,env(safe-area-inset-bottom));z-index:10;display:inline-flex;align-items:center;gap:9px;padding:12px 17px;border:1px solid var(--line);border-radius:24px;background:white;color:var(--blue);text-decoration:none;font-size:13px}
.playbook-corner:hover{background:var(--tint)}body.query-complete .playbook-corner{display:none}.room-delete{margin-left:auto;color:#a44}.history-actions{align-items:center;flex-wrap:wrap}.student-rooms{padding-bottom:50px}
@media(max-width:600px){.playbook-corner{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}.room-primary-actions{gap:10px}.room-primary-actions .secondary{padding:12px 18px}.marquee-tools{max-width:calc(100% - 160px);flex-wrap:wrap;gap:8px 14px}}

.dashboard-buttons{display:flex;gap:10px;flex-wrap:wrap}.delete-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 22px}.delete-toolbar span{font-size:14px;color:var(--muted);margin-right:auto}.danger{color:#a43b43;border-color:#e5c8cc}.room-select{display:none}.history-card{position:relative}.room-history.selecting{user-select:none}.selecting .history-card{cursor:pointer;padding-left:56px}.selecting .history-actions,.selecting .activate-room{display:none}.selecting .room-select{display:block;position:absolute;left:22px;top:27px;width:20px;height:20px;margin:0;accent-color:var(--blue);cursor:pointer}.selecting .history-card.selected{border-color:var(--blue);background:#edf6fe}.selection-box{position:fixed;pointer-events:none;z-index:100;border:1px solid var(--blue);background:rgba(38,120,197,.13)}
@media(max-width:600px){.dashboard-head{align-items:flex-start;flex-direction:column;gap:10px}.dashboard-buttons{width:100%}.dashboard-buttons .secondary{flex:1}.delete-toolbar{gap:10px}.delete-toolbar span{order:-1;width:100%}.selecting .history-card{padding-left:54px}}

.query-code{width:min(320px,100%);margin:0 auto}.query-cells{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.query-cells span{height:72px;font-size:30px;background:var(--tint)}#queryForm[aria-busy=true] .query-cells{opacity:.55;transition:opacity .2s}#queryForm .error{text-align:center;margin-top:20px}#number.otp-input{font-size:16px;letter-spacing:normal}
@media(max-width:600px){.query-cells span{height:66px}.query-code{width:min(300px,100%)}}
