/* Optional compact seat workspace. Original markup retained for one-click rollback. */
#seatWorkspace.seat-compact > .function-bar,#seatWorkspace.seat-compact .workbench > .controls { display:none; }
#seatWorkspace.seat-compact .workbench { display:block; }
.seat-compact-tools { display:flex; justify-content:flex-end; align-items:center; gap:6px; margin-bottom:8px; }
#seatWorkspace .seat-compact-tools .seat-tool-icon { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; min-width:36px; min-height:36px; padding:8px; font-size:0; gap:0; border-radius:9px; }
.seat-compact-tools .seat-tool-icon .ui-icon { width:18px; height:18px; margin:0; flex:none; }
.seat-tool-dialog { width:min(650px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); padding:0; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--ink); overflow:auto; }
.seat-tool-dialog::backdrop { background:#18243380; }
.seat-tool-dialog > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; position:sticky; top:0; z-index:3; background:var(--surface); border-bottom:1px solid var(--line); }
.seat-tool-dialog h2 { margin:0; font-size:18px; }
.seat-tool-dialog > header button { width:34px; min-height:34px; padding:7px; }
.seat-tool-body { padding:14px; }
.seat-tool-body > .function-block,.seat-tool-body > .panel { box-shadow:none; border:0; padding:0; }
.seat-tool-body .function-title,.seat-tool-body .rule-panel-head { display:none; }
.seat-tool-body .adjust-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.seat-restore-classic { margin-top:18px; font-size:12px; }
.seat-detail-dialog #studentDetailsPanel { border:0; box-shadow:none; margin:0; }
.seat-detail-dialog .panel-head { position:sticky; top:0; background:var(--surface); z-index:4; }
#seatWorkspace.seat-compact #redoBtn,#seatWorkspace.seat-compact #individualLockBtn { display:none !important; }
#detailSeatLockBtn.is-active { color:var(--accent,#ed0033); background:#ed003312; border-color:currentColor; }
@media(max-width:760px) {
 #seatWorkspace.seat-compact .seat-compact-tools { gap:2px; }
 #seatWorkspace.seat-compact .seat-compact-tools .seat-tool-icon { width:clamp(24px,7.2vw,32px); min-width:24px; height:34px; min-height:34px; padding:3px; }
 #seatWorkspace.seat-compact .board-panel { min-width:0; width:100%; box-sizing:border-box; padding:8px 5px; overflow:visible; }
 #seatWorkspace.seat-compact .board-panel::before { display:none; }
 #seatWorkspace.seat-compact .seat-board { min-width:0; width:100%; gap:5px; }
 #seatWorkspace.seat-compact .seat-row { min-width:0; gap:clamp(10px,3.3vw,16px); }
 #seatWorkspace.seat-compact .seat-board[data-layout-type="single"] .seat-row { gap:6px; }
 #seatWorkspace.seat-compact .seat-group { min-width:0; gap:2px; }
 #seatWorkspace.seat-compact .seat { min-width:0; padding:5px 1px; min-height:45px; gap:2px; }
 #seatWorkspace.seat-compact .seat-name { font-size:clamp(10px,2.8vw,13px); line-height:1.3; white-space:normal; overflow-wrap:anywhere; }
 #seatWorkspace.seat-compact .seat-meta { font-size:9px; }
 #seatWorkspace.seat-compact .class-title { font-size:18px; margin:5px 0; }
 #seatWorkspace.seat-compact .desk-line { min-height:24px; padding:4px; margin-block:6px; font-size:12px; }
 .seat-tool-dialog .adjust-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .seat-tool-dialog .layout-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
 #seatWorkspace.seat-compact .seat-name { font-size:clamp(9px,2.5vw,11px) !important; }
}
