/* Existing classroom preview presentation, shared by the production entrypoint. */
.onboarding-wizard{max-width:1200px;margin:auto;padding-top:24px}.wizard-steps{display:flex;justify-content:space-between;list-style:none;padding:0;margin:24px 0;gap:10px;color:var(--muted);font-size:13px}.wizard-steps li{display:flex;gap:8px;align-items:center}.wizard-steps [aria-current]{font-weight:700;color:var(--teal)}.wizard-panel{padding:22px}.wizard-panel h2{font-size:23px;margin:0 0 8px}.wizard-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.wizard-fields label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600}.wizard-fields input,.wizard-fields select{font-size:18px;min-height:50px;width:100%;min-width:0}.wizard-heading,.wizard-actions,.wizard-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.wizard-actions{justify-content:flex-end}.wizard-footer{margin-top:18px}.wizard-actions button,.wizard-footer button{min-height:46px}.wizard-room-scroll{overflow-x:auto;margin-top:18px}.wizard-room{display:grid;gap:12px}.wizard-cell{border:1px dashed var(--border);border-radius:14px;min-width:0;padding:3px}.wizard-table{background:var(--white);border:1px solid var(--border);border-radius:12px;padding:10px;height:100%;min-width:0}.wizard-table.is-selected{border-color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal)}.wizard-group-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}.wizard-group-top>[data-group]{font-weight:700;font-size:14px;padding:5px;min-height:44px;min-width:0;border:0;background:transparent;color:var(--navy);touch-action:none}.wizard-group-top>[data-group]:disabled{opacity:1}.wizard-seat-count{display:flex;align-items:center;gap:4px;font-size:12px}.wizard-seat-count button{min-width:30px;min-height:44px;padding:4px}.wizard-group-top small{font-size:11px;color:var(--muted)}.wizard-seat-scroll{overflow-x:auto}.wizard-seats{display:grid;gap:5px}.wizard-seats .seat{min-height:44px;min-width:44px;padding:5px;font-size:12px}.wizard-seats .seat:disabled{opacity:1}.wizard-seats .selected{outline:2px solid var(--teal);outline-offset:-3px}.wizard-seat-space{background:var(--page);border-style:dashed}.wizard-empty-space{display:grid;place-items:center;min-height:115px;font-size:12px;color:var(--muted)}.wizard-dragging{background:var(--mist)!important;outline:2px solid var(--teal)}.wizard-fine-tuning .wizard-seats button{touch-action:none}.wizard-period-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.wizard-period-summary button{text-align:left;padding:16px}.wizard-period-summary strong{display:block;margin-top:8px;color:var(--teal)}
@media(max-width:600px){.wizard-steps{font-size:11px;gap:5px}.wizard-steps li{align-items:flex-start;flex-direction:column;gap:4px}.wizard-panel{padding:14px}.wizard-fields{gap:12px}.wizard-panel h2{font-size:20px}.wizard-period-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Shared views assume a teacher account; sandbox storage is described by its banner. */

/* Keep setup chrome compact and prevent split group labels on small screens. */
.wizard-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.wizard-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wizard-group-top{flex-wrap:wrap}
.wizard-group-top>[data-group]{white-space:nowrap}
.wizard-seat-count{margin-left:auto}
.wizard-room-scroll{overscroll-behavior-x:contain}
@media(max-width:600px){
 .onboarding-wizard{padding-top:14px}
 .onboarding-wizard .logo{width:38px;height:38px;border-radius:10px}
 .onboarding-wizard .brand h1{font-size:22px}
 .onboarding-wizard .brand p{font-size:11px;white-space:normal;line-height:1.35;margin-top:3px}
 .wizard-steps{margin:14px 0;justify-content:flex-start;align-items:center;gap:16px}
 .wizard-steps li{flex-direction:row;align-items:center}
 .wizard-steps li span{display:none}
 .wizard-steps li[aria-current] span{display:inline}
 .wizard-panel h2{font-size:20px}
 .wizard-panel .quiet{font-size:12px;line-height:1.45}
 .wizard-actions button{font-size:12px;min-height:40px;padding:7px 10px}
 .wizard-room-scroll{margin-top:12px}
 .wizard-room{gap:8px}
}

/* A lifted, non-interactive preview follows the drag; outlined cells show swaps. */
.wizard-group-top>[data-group],.wizard-fine-tuning [data-wizard-seat]{cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.wizard-dragging{opacity:.35;cursor:grabbing!important}
.wizard-drag-preview{z-index:2500;pointer-events:none!important;opacity:.95!important;box-sizing:border-box;box-shadow:0 10px 24px #173a4526;border:2px solid var(--teal)!important;border-radius:12px;will-change:transform;cursor:grabbing}
.wizard-drag-preview *{pointer-events:none!important}
.wizard-drop-target{outline:3px solid var(--teal);outline-offset:-3px;background:var(--mist)}

/* Move Groups offers the whole card as a handle; +/- remains a separate control. */
.wizard-group-mode .wizard-table{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.wizard-group-mode .wizard-seat-scroll{pointer-events:none}
.wizard-group-mode .wizard-group-top>[data-group]{flex:1;text-align:left;min-height:44px}
.wizard-group-mode .wizard-group-top>[data-group]::before{content:'';display:inline-block;width:10px;height:15px;margin-right:7px;background:radial-gradient(circle,var(--teal) 1px,transparent 1.5px) 0 0/5px 5px;vertical-align:middle}
.wizard-group-mode .wizard-table.wizard-dragging{cursor:grabbing}

/* Row classrooms form one narrow bank across the room, with readable headers. */
.wizard-room.wizard-row-room{grid-template-columns:repeat(var(--wizard-row-columns),minmax(72px,1fr))!important;grid-template-rows:auto!important;gap:8px}
.wizard-row-room .wizard-cell{padding:2px}
.wizard-row-room .wizard-table{padding:6px}
.wizard-row-room .wizard-group-top{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
.wizard-row-room .wizard-group-top>[data-group]{width:100%;min-width:0;overflow:visible;padding:3px 0;font-size:12px;text-align:center;white-space:nowrap}
.wizard-row-room .wizard-group-top>[data-group]::before{display:none}
.wizard-row-room .wizard-seat-count{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;width:100%;margin:0}
.wizard-row-room .wizard-seat-count span{grid-column:1/-1;grid-row:1;text-align:center}
.wizard-row-room .wizard-seat-count button{min-width:0;min-height:40px;padding:0;font-size:16px}
.wizard-row-room .wizard-group-top>small{font-size:10px;text-align:center}
.wizard-row-room .wizard-seats .seat{font-size:11px;padding:4px 0}
.classroom-row-layout .manage-view .tables.physical-room{grid-template-columns:repeat(var(--sandbox-row-count),minmax(76px,1fr))!important;grid-auto-rows:auto!important;gap:8px}
.classroom-row-layout .manage-view .table{padding:7px}
.classroom-row-layout .manage-view .table-top{flex-wrap:wrap;gap:4px}
.classroom-row-layout .manage-view .table-top strong{font-size:12px;white-space:nowrap}
.classroom-row-layout .manage-view .points{font-size:17px}
.classroom-row-layout .manage-view .team-opportunities{grid-template-columns:minmax(0,1fr)}
.classroom-row-layout .manage-view .quick-award{flex-direction:column;align-items:flex-start;gap:3px;padding:5px;font-size:10px}
.classroom-row-layout .manage-view .quick-award b{font-size:10px}
.classroom-row-layout .manage-view .team-deduction{font-size:10px;padding:5px 2px}
.classroom-row-layout .manage-view .seat{font-size:11px}

/* Keep group identity readable and separate counter taps from drag handles. */
.wizard-group-top{display:grid;grid-template-columns:minmax(0,1fr);gap:5px}
.wizard-group-top>[data-group]{width:100%;min-width:0;white-space:nowrap;text-align:left;overflow:visible;font-size:13px}
.wizard-seat-count{justify-self:end;margin:0}
.wizard-capacity-summary{margin:2px 0 7px;color:var(--teal);font-weight:600}

.wizard-fields [hidden],.wizard-actions[hidden]{display:none!important}
.custom-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}
.custom-tools button{font-size:12px;min-height:44px}
.custom-tools strong{font-size:12px;color:var(--teal)}
.custom-grid-scroll{--custom-cell-width:clamp(60px,6vw,76px);overflow:auto;max-height:65vh;max-width:100%;padding:4px}
.custom-seat-grid{display:grid;gap:4px;width:max-content;margin-inline:auto}
.custom-seat-grid button{min-width:44px;min-height:44px;padding:3px;font-size:12px;border:1px dashed var(--border);background:var(--page);color:var(--muted)}
.custom-seat-grid .custom-placed{background:var(--mist);border-style:solid;border-color:var(--accent-border);color:var(--navy)}
.custom-seat-grid .custom-grouped{background:var(--sea-glass);font-weight:700}
.custom-seat-grid .custom-selected{outline:3px solid var(--teal);outline-offset:-3px;background:var(--mist)}
.custom-floor-space{display:block;border:1px dashed var(--border);border-radius:8px}
.tables.custom-room{display:grid;grid-template-columns:repeat(var(--custom-columns),minmax(44px,1fr))!important;grid-template-rows:repeat(var(--custom-rows),44px)!important;grid-auto-rows:44px!important;gap:5px}
.custom-room .table,.custom-room .seat-layout-scroll,.custom-room .seats{display:contents!important}
.custom-room .table-top,.custom-room .earned-summary{display:none!important}
.custom-room .seat{min-width:44px;min-height:44px;height:44px;padding:3px;font-size:11px}
.participation-compact{font-size:11px;font-weight:650;line-height:1.3;color:var(--teal);white-space:nowrap}
.manage-view .seat-card .table-top,.manage-view .team-card .table-top{gap:5px;flex-wrap:wrap;align-items:center}
@media(max-width:600px){.participation-compact{font-size:10px}}
/* Wider custom seats share one horizontal scale across editor, Manage, and outlines. */
.tables.custom-room{--custom-cell-width:clamp(60px,6vw,76px);grid-template-columns:repeat(var(--custom-columns),var(--custom-cell-width))!important;width:max-content;min-width:0;gap:4px;margin-inline:auto}
.custom-room .seat{flex-direction:column;gap:0;line-height:1.1}
.custom-room .seat .dot{display:none}
.custom-room .seat-contributions{font-size:10px;min-width:14px;line-height:14px;padding:0 3px}
.custom-room .seat-state{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
.tables.custom-room{position:relative;isolation:isolate;padding:3px}
.tables.custom-points{grid-auto-rows:auto!important;padding-left:calc(3px + var(--custom-left-gutter,0px));padding-right:calc(3px + var(--custom-right-gutter,0px))}
.custom-group-outlines{width:calc(var(--custom-columns) * (var(--custom-cell-width) + 4px));height:calc(var(--custom-rows) * 48px);position:absolute;top:3px;left:calc(3px + var(--custom-left-gutter,0px));pointer-events:none;z-index:-1}
.custom-group-outlines path{fill:none;stroke:var(--layout-border);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.custom-point-seat{width:100%;height:44px;min-width:44px;min-height:44px;padding:2px;font-size:12px;border:0;border-radius:5px;background:var(--layout-seat-bg);color:var(--navy);box-shadow:none}
.custom-point-seat[aria-pressed="true"]{background:#d1eee7;color:#12665b;font-weight:800}
.custom-point-seat.unassigned{background:#f1f3f4;color:#94a3b8;opacity:1}
.custom-point-seat:focus-visible{outline:2px solid #008f95;outline-offset:1px}
.custom-team-summary{display:flex;align-items:center;gap:7px;padding:4px 6px;border:1px solid var(--layout-border);border-radius:8px;font-size:12px;background:var(--white)}
.custom-team-summary span{color:#007f84;font-weight:750}
.custom-team-summary button{min-width:44px;min-height:44px;padding:4px;font-size:12px}

.custom-team-margin{position:absolute;box-sizing:border-box;width:96px;height:44px;padding:0 2px 0 5px;gap:3px}
.custom-team-margin>div{min-width:0;flex:1;display:flex;flex-direction:column;line-height:1.2}
.custom-team-margin strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.custom-team-margin span{font-size:11px}
.custom-team-margin button{flex:none;min-width:44px;width:44px;min-height:44px;height:44px;border:1px solid var(--redirection-active-border);background:var(--redirection-active-bg);color:var(--redirection-active-text);border-radius:8px;font-size:14px;font-weight:750}
.custom-team-margin button:disabled{background:var(--redirection-idle-bg);color:var(--redirection-idle-text);border-color:var(--redirection-idle-border);opacity:1}
.custom-team-margin button:not(:disabled):active{background:var(--redirection-active-bg)}

/* Match the tool-tab height while keeping actions and results on one line. */
.manage-view{--classroom-tool-height:54px}
.manage-view .subbar .randomizer-banner{flex:1 1 430px;min-width:0;margin:0;height:var(--classroom-tool-height);padding:4px 8px;gap:8px;grid-template-columns:auto minmax(0,1fr);grid-template-rows:minmax(0,1fr);box-sizing:border-box}
.randomizer-banner .randomizer-actions button[aria-pressed="true"]{background:var(--mist);border-color:var(--teal);color:var(--teal)}
.manage-view .randomizer-banner .randomizer-result{height:100%;min-height:0;grid-column:2;grid-row:1}
.manage-view .subbar .randomizer-banner .randomizer-actions button{min-height:44px;padding:6px 8px;font-size:12px}
.randomizer-banner .randomizer-actions{display:flex;gap:5px}
.randomizer-banner .randomizer-label-short{display:none}
.randomizer-banner .response-prompt p{font-size:10px;margin-bottom:1px}
.randomizer-banner .response-prompt strong{font-size:24px;line-height:1.05}
.manage-view .seat-check-controls #edit-absences{margin-left:auto;flex:none;order:2}
.manage-view .seat-check-controls .room-toggle{order:3}
@media(min-width:768px){.manage-view{--classroom-tool-height:60px}}
@media(max-width:600px){
 .manage-view{--classroom-tool-height:52px}
 .manage-view .subbar .randomizer-banner{flex-basis:100%;padding:3px 4px;gap:5px}
 .randomizer-banner .randomizer-label-full{display:none}
 .randomizer-banner .randomizer-label-short{display:inline}
 .manage-view .subbar .randomizer-banner .randomizer-actions button{font-size:11px;padding:5px;min-width:44px}
 .randomizer-banner .response-prompt p{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .randomizer-banner .response-prompt strong{font-size:12px;line-height:1.15}
}

.wizard-period-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.wizard-period-controls label{display:grid;gap:5px;flex:1 1 220px;max-width:360px;font-size:12px;color:var(--muted);font-weight:650}
.wizard-period-controls input{width:100%;min-height:44px;font-size:16px}
.wizard-period-controls button{min-height:44px;padding:8px 12px;font-size:12px}
#wizard-remove-period{color:#a63838;background:#fff5f5;border-color:#eedede}

/* A single settings draft, organized into five focused views. */
.setup-wrap [hidden]{display:none!important}
.settings-home{display:grid;gap:8px;max-width:900px;margin:0 auto}
.settings-navigation-row{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:16px 18px;background:var(--white);border:1px solid var(--border);border-radius:var(--radius);min-height:76px}
.settings-navigation-row:hover,.settings-navigation-row:focus-visible{background:var(--mist);border-color:var(--accent-border)}
.settings-navigation-row>svg{width:23px;height:23px;flex:none;color:var(--teal)}
.settings-navigation-row>span:not(.settings-chevron){display:grid;gap:5px;min-width:0}
.settings-navigation-row strong{font-size:16px;color:var(--navy)}
.settings-navigation-row small{font-size:12px;line-height:1.4;font-weight:400;color:var(--muted)}
.settings-chevron{margin-left:auto;font-size:25px;color:var(--teal)}
.settings-section-heading{display:flex;align-items:center;gap:16px;margin:0 0 16px}
.settings-section-heading button{min-height:44px;flex:none;font-size:12px}
.settings-section-heading h3{margin:0;font-size:20px}
.settings-section-heading p{margin:5px 0 0;font-size:12px;color:var(--muted)}
.settings-focused-grid{grid-template-columns:minmax(0,1fr)}
.setup-wrap .setup-savebar{justify-content:flex-end}
@media(max-width:600px){.settings-navigation-row{padding:13px 12px;gap:10px}.settings-section-heading{align-items:flex-start;flex-direction:column;gap:10px}}

.settings-breadcrumb{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 14px}
.settings-breadcrumb button{min-height:44px;padding:7px 10px;font-size:12px;color:var(--muted);background:transparent;border-color:transparent}
.settings-breadcrumb button[aria-current]{color:var(--teal);background:var(--mist);border-color:var(--accent-border)}
.settings-layout-embedded{padding:0;max-width:none}
.settings-layout-embedded .wizard-panel{padding:12px 0 0;border:0;box-shadow:none}
.settings-layout-steps{gap:6px;margin:14px 0 0}
.settings-layout-steps button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-height:48px;padding:8px;font-size:12px;background:var(--page);border-color:var(--border);color:var(--muted)}
.settings-layout-steps button[aria-current]{color:var(--teal);background:var(--mist);border-color:var(--accent-border)}
.settings-layout-steps button>span{font-size:11px}
.settings-layout-options{display:grid;gap:14px}
.settings-layout-options .room-editor-scroll,.settings-layout-options .seat-position-grid{display:none}
.settings-layout-workspace>label{display:grid;gap:6px;font-size:12px;max-width:320px}
#settings-change-room{margin-top:14px;font-size:12px;min-height:44px}
@media(max-width:600px){.settings-layout-steps button{font-size:11px;gap:4px;flex-direction:column}.settings-breadcrumb{gap:3px}.settings-breadcrumb button{font-size:11px;padding:6px}}

.cancel-room-change{margin-top:16px;min-height:44px;font-size:12px}
.award-settings{margin-bottom:24px}.award-settings-card{padding:14px;border:1px solid var(--border);border-radius:14px;margin:10px 0;background:var(--white)}.award-settings-heading{display:flex;gap:12px;align-items:center}.award-settings-heading .badge-art{width:72px;height:72px;object-fit:contain;margin:0}.award-settings-heading h4{margin:0;font-size:17px}.award-settings-heading p{margin:5px 0;color:var(--muted);font-size:12px}.award-settings fieldset{border:0;margin:10px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px}.award-settings .award-radio{display:flex;align-items:flex-start;gap:8px;padding:9px;border:1px solid var(--border);border-radius:9px;margin:0}.award-radio.selected{background:var(--mist);border-color:var(--accent-border)}.award-radio input{width:18px;min-height:18px;margin:2px 0;flex:none;accent-color:var(--teal)}.award-radio span{display:grid;gap:4px}.award-radio strong{font-size:12px}.award-radio small{font-size:11px;line-height:1.4;color:var(--muted)}.award-current{padding:12px;background:var(--mist);border-radius:12px}.award-current p{font-size:12px;line-height:1.5}.award-current button{min-height:44px;font-size:12px}.award-override{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.award-override p{grid-column:1/-1}
.weekly-challenge-banner{display:grid;grid-template-columns:1.6fr 1fr;gap:10px;margin:10px 0}.weekly-challenges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;background:var(--white);border:1px solid var(--border);border-radius:12px}.weekly-challenges>div{display:grid;gap:3px;align-content:start}.weekly-challenges strong{font-size:11px;color:var(--teal)}.weekly-challenges span{font-size:10px;line-height:1.35;color:var(--muted)}.treasure-mystery{display:flex;align-items:center;gap:8px;padding:10px;background:var(--mist);border:1px solid var(--accent-border);border-radius:12px}.treasure-mystery .badge-art{width:50px;height:50px;flex:none;margin:0}.treasure-mystery strong{font-size:13px}.treasure-mystery p{font-size:11px;margin:4px 0}.treasure-mystery small{font-size:10px;color:var(--muted);line-height:1.3;display:block;margin-top:4px}.treasure-possibilities{display:flex;gap:8px}.treasure-possibilities span{display:grid;justify-items:center;gap:3px;flex:1;font-size:9px;white-space:nowrap}.treasure-possibilities .tool-icon{width:14px;height:14px}@media(max-width:600px){.weekly-challenge-banner{grid-template-columns:1fr}.award-settings fieldset,.award-override{grid-template-columns:1fr}}

.treasure-setting-help{font-size:12px;line-height:1.45;color:var(--muted);margin:6px 0 12px}
.treasure-possibilities span{white-space:normal;text-align:center;align-content:start}
.treasure-possibilities strong{font-size:10px;line-height:1.2}
.treasure-possibilities small{font-size:10px;line-height:1.2;margin-top:0}

.treasure-target-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.treasure-target-fields label{min-width:0;font-size:12px}
.treasure-target-fields input{width:100%;min-width:0}
.treasure-target-fields small{font-size:10px;color:var(--muted);font-weight:400}
@media(max-width:600px){.treasure-target-fields{grid-template-columns:1fr}}

/* Let the prompt use the full result area without changing the tool-banner size. */
.manage-view .randomizer-banner .response-prompt{width:100%;max-height:100%;min-width:0;overflow:auto;padding:0}
.manage-view .randomizer-banner .response-prompt strong{display:block;width:100%;margin:0;overflow-wrap:anywhere;line-height:1.05}
@media(min-width:768px){.manage-view .randomizer-banner .response-prompt strong{font-size:32px}}
@media(min-width:1100px){.manage-view .randomizer-banner .response-prompt strong{font-size:36px}}
@media(min-width:601px) and (max-width:1000px){.randomizer-banner .randomizer-label-full{display:none}.randomizer-banner .randomizer-label-short{display:inline}}
