.seating-editor{min-width:0;color:hsl(var(--foreground));flex-direction:column;gap:.75rem;display:flex}.seating-topbar{border:1px solid hsl(var(--border));background:hsl(var(--card));border-radius:1rem;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:.85rem 1rem;display:flex}.seating-save-status{color:hsl(var(--muted-foreground));margin-top:.2rem;font-size:.75rem}.seating-actions,.seating-placement-actions{flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.seating-editor button,.seating-create button{gap:.35rem}.seating-topbar button,.seating-placement-actions button{min-height:40px}.seating-library{border:1px solid hsl(var(--border));background:hsl(var(--card));border-radius:.85rem;position:relative}.seating-library>summary{cursor:pointer;padding:.6rem .85rem;font-size:.85rem;font-weight:600}.seating-placement-gallery{border-top:1px solid hsl(var(--border));grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.65rem;max-height:250px;padding:.75rem;display:grid;overflow:auto}.seating-placement-gallery button{text-align:left;border:1px solid hsl(var(--border));background:hsl(var(--background));overflow-wrap:anywhere;flex-direction:column;gap:.4rem;padding:.6rem;display:flex;border-radius:.75rem!important}.seating-placement-gallery button[aria-pressed=true],.seating-template-grid button[aria-pressed=true]{border:2px solid hsl(var(--primary));background:hsl(var(--primary) / .07)}.seating-modes{border:1px solid hsl(var(--border));background:hsl(var(--card));border-radius:1rem;gap:.25rem;padding:.3rem;display:flex}.seating-modes button{flex:1;min-width:0;min-height:44px;padding:.5rem;font-size:.9rem;font-weight:700;border-radius:.7rem!important}.seating-modes button[aria-selected=true]{color:hsl(var(--primary-foreground));background:hsl(var(--primary))}.seating-view-help{justify-content:space-between;align-items:center;gap:.75rem;font-size:.85rem;display:flex}.seating-designer{grid-template-columns:280px minmax(0,1fr);gap:.9rem;min-width:0;height:min(780px,max(520px,100dvh - 240px));display:grid}.seating-designer[data-mode=preview]{grid-template-columns:minmax(0,1fr)}.seating-room-pane{flex-direction:column;order:2;gap:.5rem;min-width:0;min-height:0;display:flex;position:relative}.seating-canvas-toolbar{flex-wrap:wrap;flex-shrink:0;align-items:center;gap:.35rem;display:flex}.seating-canvas-toolbar button{min-height:36px;padding-inline:.55rem;font-size:.75rem}.seating-canvas-tools{position:relative}.seating-canvas-tools>summary{cursor:pointer;border:1px solid hsl(var(--border));background:hsl(var(--card));border-radius:.7rem;padding:.5rem;font-size:.75rem;font-weight:600}.seating-canvas-tools>div{z-index:25;border:1px solid hsl(var(--border));background:hsl(var(--card));width:240px;box-shadow:0 12px 35px hsl(var(--foreground) / .14);border-radius:.8rem;gap:.4rem;padding:.7rem;display:grid;position:absolute;top:calc(100% + .35rem);right:0}.seating-viewport{overscroll-behavior:contain;background:hsl(var(--muted) / .35);flex:1;min-height:200px}.seating-controls-pane{overscroll-behavior:contain;flex-direction:column;order:1;gap:.8rem;min-width:0;min-height:0;padding-right:.25rem;display:flex;overflow:auto}.seating-controls-pane.hidden,.seating-controls-pane .hidden{display:none}.seating-controls-pane>*{flex-shrink:0}.seating-controls-pane>.seating-properties{order:-2}.seating-controls-pane>.seating-students{order:-1}.seating-properties{box-shadow:0 4px 16px hsl(var(--primary) / .08)}.seating-advanced,.seating-roster{margin-top:.65rem}.seating-advanced>summary,.seating-roster>summary,[data-testid=seating-rules]>summary{cursor:pointer;padding-block:.45rem;font-size:.85rem;font-weight:600}.seating-student-filter{gap:.4rem;margin-top:.65rem;display:flex}.seating-shuffle-actions{z-index:15;background:hsl(var(--card));border-top:1px solid hsl(var(--border));padding-block:.75rem;position:sticky;bottom:-.75rem}.seating-action-message{color:hsl(var(--foreground));background:hsl(var(--primary) / .08);border-radius:.65rem;padding:.5rem .65rem;font-size:.8rem}.seating-carry-message,.seating-action-message{box-shadow:0 2px 8px hsl(var(--foreground) / .1);order:-3}.seating-editor .seating-desk-body{background:linear-gradient(155deg, hsl(var(--card)), hsl(var(--muted) / .75));box-shadow:0 3px 0 hsl(var(--foreground) / .1);border-radius:7px!important}.seating-editor [data-desk-type=round] .seating-desk-body{border-radius:50%!important}.seating-editor [data-desk-type=semi] .seating-desk-body{border-radius:50% 50% 7px 7px!important}.seating-editor .seating-chair{border-radius:6px!important}.seating-name{box-shadow:0 2px 5px hsl(var(--foreground) / .1);padding:3px 2px;line-height:1.12;display:block;border-radius:6px!important}.seating-name-first{white-space:nowrap;text-overflow:ellipsis;font-weight:750;display:block;overflow:hidden}.seating-name-last{margin-top:1px;font-size:.8em;font-weight:500;display:block}.seating-workspace-overlay{z-index:50;background:hsl(var(--background));position:fixed;inset:0}.seating-workspace{z-index:50;background:hsl(var(--background));outline:none;height:100dvh;padding:clamp(.5rem,1.5vw,1rem);position:fixed;inset:0;overflow:auto}.seating-workspace .seating-editor{height:100%}.seating-workspace #seating-print-root,.seating-workspace #seating-print-area{flex-direction:column;flex:1;min-height:0;display:flex}.seating-workspace .seating-designer{flex:1;height:auto;min-height:0}.seating-workspace .seating-topbar{padding:.5rem .75rem}.seating-workspace .seating-placement-actions,.seating-workspace .seating-library,.seating-workspace [data-testid=seating-legend]{display:none}.seating-workspace .seating-viewport{min-height:110px}.seating-template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;display:grid}.seating-template-grid button{text-align:left;border:1px solid hsl(var(--border));flex-direction:column;gap:.3rem;min-width:0;padding:.6rem;display:flex;border-radius:.75rem!important}.seating-template-grid span{color:hsl(var(--muted-foreground));font-size:.75rem}.seating-select{border:1px solid hsl(var(--input));background:hsl(var(--background));border-radius:.6rem;width:100%;min-height:40px;padding:.4rem;display:block}.seating-short-label{display:none}@media (width<=800px){.seating-wide-label,.seating-canvas-toolbar .seating-actual-size{display:none}.seating-short-label{display:inline}.seating-canvas-toolbar{gap:.25rem}.seating-canvas-toolbar button{padding-inline:.35rem}.seating-canvas-toolbar>span{min-width:1.75rem;font-size:.65rem}.seating-canvas-tools>summary{padding:.5rem .35rem}.seating-shuffle-actions{position:static}.seating-designer{grid-template-rows:minmax(260px,1fr) minmax(170px,.65fr);grid-template-columns:minmax(0,1fr);height:680px;max-height:105dvh}.seating-designer[data-mode=preview]{grid-template-rows:minmax(260px,1fr);height:65dvh}.seating-room-pane{order:1}.seating-controls-pane{border-top:2px solid hsl(var(--primary) / .2);order:2;padding-top:.5rem}.seating-controls-pane>section,.seating-controls-pane>details{padding:.65rem}.seating-workspace .seating-designer{grid-template-rows:minmax(180px,1.1fr) minmax(130px,1fr);min-height:0}.seating-workspace .seating-designer[data-mode=preview]{grid-template-rows:minmax(0,1fr)}.seating-workspace .seating-editor{height:100%}.seating-workspace .seating-placement-actions,.seating-workspace .seating-library,.seating-workspace [data-testid=seating-legend]{display:none}.seating-workspace .seating-viewport{min-height:90px}.seating-topbar{padding:.65rem}.seating-topbar .seating-actions{width:100%}.seating-modes button{font-size:.8rem}.seating-placement-actions button{font-size:.75rem}.seating-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.seating-view-help{flex-wrap:wrap}}@media (width>=560px) and (width<=800px) and (height<=500px){.seating-workspace .seating-topbar{flex-wrap:nowrap}.seating-workspace .seating-topbar .seating-actions{flex-wrap:nowrap;width:auto}.seating-workspace .seating-designer{grid-template-rows:minmax(0,1fr);grid-template-columns:220px minmax(0,1fr);min-height:0}.seating-workspace .seating-controls-pane{border-top:0;order:1;padding-top:0}.seating-workspace .seating-room-pane{order:2}.seating-workspace .seating-designer[data-mode=preview]{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr)}.seating-workspace .seating-view-help p{display:none}}@media print{.seating-workspace,.seating-editor,.seating-designer,.seating-room-pane,.seating-viewport,#seating-print-root,#seating-print-area{height:auto!important;min-height:0!important;max-height:none!important;display:block!important;position:static!important;overflow:visible!important}.seating-name{box-shadow:none}.seating-workspace-overlay{display:none}}
