:root{--ink:#202a2b;--muted:#7b8580;--paper:#f4f2ec;--white:#fffefa;--line:#e8e6dd;--green:#355f52;--green2:#e2ece3;--orange:#cf784c;--shadow:0 12px 40px #23302a0a}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:13px "DM Sans",sans-serif}.app-shell{max-width:1460px;padding:0 52px;margin:auto}.topbar{height:68px;border-bottom:1px solid #e5e3da;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:2px;text-decoration:none;color:var(--ink);font:800 18px Manrope,sans-serif;letter-spacing:-.8px}.brand-mark{display:grid;place-items:center;width:27px;height:27px;margin-right:8px;border-radius:8px;background:var(--green);color:white;font-size:15px}.brand-amp{color:var(--orange)}.top-right{display:flex;align-items:center;gap:20px}.saved{font-size:11px;color:#849087}.saved i,.live-dot{display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#78a583}.help-button{border:1px solid #d9dcd4;border-radius:50%;background:transparent;width:25px;height:25px;color:#69766e;cursor:pointer}.page-heading{display:flex;justify-content:space-between;align-items:end;padding:31px 0 24px}.eyebrow,.kicker{font-size:9px;letter-spacing:1.15px;font-weight:700;color:#879088}.eyebrow span{padding:0 5px;color:#c0a18e}h1,h2,p{margin:0}h1{font:800 32px/1.2 Manrope,sans-serif;letter-spacing:-1.35px;margin:8px 0 5px}h1 em{font-style:normal;color:var(--green)}.page-heading p{font-size:12px;color:#7f8983}.print-button{border:1px solid #e2e2d9;border-radius:5px;padding:9px 12px;background:var(--white);font:600 10px "DM Sans",sans-serif;color:#58685e;cursor:pointer}.print-button:hover,.icon-action:hover{background:#eff3ec}.app-grid{display:grid;grid-template-columns:290px 1fr;gap:19px;align-items:stretch;min-height:650px}.sidebar,.chart-area{background:var(--white);border:1px solid #e9e7de;border-radius:9px;box-shadow:var(--shadow)}.sidebar{position:relative;padding:0 18px 55px}.side-tabs{height:49px;display:flex;gap:15px;border-bottom:1px solid #eeeae2;margin-bottom:18px}.side-tab{position:relative;display:flex;align-items:center;gap:6px;padding:0 2px;border:0;background:none;color:#a0a59e;font:700 9px "DM Sans",sans-serif;letter-spacing:.5px;cursor:pointer}.side-tab span{font-size:11px;letter-spacing:0}.side-tab.active{color:var(--green)}.side-tab.active:after{content:"";position:absolute;height:2px;background:var(--green);left:0;right:0;bottom:-1px}.side-tab b{font-size:9px;background:#e6efe5;color:#55765e;padding:3px 5px;border-radius:10px}.section-title{display:flex;align-items:center;justify-content:space-between}.section-title h2{font:700 16px Manrope,sans-serif;letter-spacing:-.3px;margin-top:5px}.student-count{min-width:25px;height:23px;padding:0 7px;border-radius:14px;background:#f0f2eb;display:grid;place-items:center;color:#6c7b70;font-size:10px;font-weight:600}.roster-tools{display:flex;align-items:center;gap:7px;margin:15px 0 8px}.roster-tools button{border:1px solid #e8e7df;border-radius:4px;padding:6px 8px;background:#fffefa;color:#67746b;font:600 9px "DM Sans",sans-serif;cursor:pointer}.roster-tools button:first-child{background:#f2f5ee;color:#4b6d59;border-color:#e1e9dd}textarea{font:11px/1.65 "DM Sans",sans-serif;color:var(--ink);outline:none;resize:vertical}#rosterInput{width:100%;height:97px;padding:10px 11px;border:1px solid #e4e5dc;border-radius:5px;background:#fdfcf9}textarea:focus,input:focus,select:focus{border-color:#82a08b!important;box-shadow:0 0 0 2px #e0ece1}.microcopy{font-size:9px;color:#9ba19a;margin-top:6px}.section-rule{height:1px;background:#eeece5;margin:17px 0 16px}.room-title{margin-bottom:12px}.text-button{border:0;background:none;color:#57816b;font:600 10px "DM Sans",sans-serif;cursor:pointer}.layout-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.preset{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:54px;border:1px solid #e8e9e0;border-radius:5px;background:#fffefa;color:#7b867f;font:500 9px "DM Sans",sans-serif;cursor:pointer}.preset.active{background:#eff4ed;border-color:#c9d9c9;color:#426a53}.preset-icon{font-size:17px;line-height:1}.room-config{display:grid;gap:11px;margin:16px 0 13px}.room-config>label{display:flex;align-items:center;justify-content:space-between;color:#65716a;font-size:10px}.number-control{height:25px;border:1px solid #e5e6de;border-radius:4px;display:flex;overflow:hidden}.number-control button{width:23px;border:0;background:#f7f7f1;color:#728077;cursor:pointer}.number-control input{width:30px;border:0;text-align:center;outline:none;-moz-appearance:textfield;font:600 10px "DM Sans",sans-serif}.number-control input::-webkit-inner-spin-button{-webkit-appearance:none}.room-config select{border:1px solid #e5e6de;border-radius:4px;background:#fffefa;padding:5px 6px;color:#617067;font:10px "DM Sans",sans-serif}.capacity-summary{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #efede6;padding:11px 0 13px;font-size:9px;color:#879189}.capacity-summary strong{color:#52695b;font-size:10px}.shuffle-button{width:100%;height:39px;border:0;border-radius:5px;background:var(--green);color:white;display:flex;align-items:center;padding:0 11px;gap:8px;font:600 11px "DM Sans",sans-serif;cursor:pointer;transition:background .18s}.shuffle-button:hover{background:#294c40}.shuffle-symbol{font-size:17px}.shuffle-arrow{margin-left:auto;font-size:15px}.last-shuffle{min-height:25px;padding-top:8px;text-align:center;color:#9ba29b;font-size:9px}.sidebar-foot{position:absolute;bottom:0;left:0;right:0;height:40px;border-top:1px solid #eeece5;display:flex;align-items:center;padding:0 18px;color:#929b93;font-size:9px}.privacy-mark{color:#8cad8c;font-size:8px;margin-right:7px}.rules-panel .section-title{margin-bottom:14px}.rule-card{border:1px solid #eceae3;border-radius:5px;padding:12px;margin-bottom:10px;background:#fffefa}.rule-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.rule-heading b,.front-rule b{display:block;font-size:10px;color:#4e5d54}.rule-heading p,.front-rule small{display:block;font-size:9px;color:#9ba19a;margin-top:3px}.rule-icon{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#f0f3ec;color:#69826f}.rule-card textarea{width:100%;height:50px;border:1px solid #e9e8e1;border-radius:4px;padding:7px;background:#fdfcf9}.front-rule label{display:flex;gap:8px;align-items:flex-start}.front-rule input{accent-color:var(--green);margin:1px 0}.front-rule textarea{margin-top:10px}.rules-note{font-size:9px;color:#949c95;line-height:1.55;margin:13px 1px}.chart-area{padding:18px 19px 13px;min-width:0;display:flex;flex-direction:column}.chart-toolbar{display:flex;align-items:center;justify-content:space-between;margin:0 1px 13px}.chart-toolbar h2{font:700 16px Manrope,sans-serif;letter-spacing:-.3px;margin-top:4px}.live-dot{width:6px;height:6px;margin:0 0 1px 4px}.chart-actions{display:flex;align-items:center;gap:8px}.desk-count{font-size:10px;color:#818c84;margin-right:5px}.icon-action{width:28px;height:27px;border:1px solid #e8e8e0;border-radius:4px;background:transparent;color:#78857d;font-size:15px;cursor:pointer}.room-viewport{flex:1;min-height:540px;overflow:auto;border:1px solid #e2e5da;border-radius:6px;background:#f1f3eb}.room-stage{position:relative;min-width:580px;min-height:540px;height:100%;overflow:hidden;background-color:#f2f4ee;background-image:linear-gradient(#dfe5db42 1px,transparent 1px),linear-gradient(90deg,#dfe5db42 1px,transparent 1px);background-size:28px 28px}.stage-front{position:absolute;top:19px;left:50%;transform:translateX(-50%);height:28px;display:flex;align-items:center;gap:12px;color:#879387;font-size:8px;letter-spacing:1.3px;white-space:nowrap}.front-line{width:95px;height:1px;background:#d6ddd3}.stage-items{position:absolute;inset:70px 30px 37px}.room-item{position:absolute;touch-action:none;user-select:none;display:flex;align-items:center;justify-content:center}.room-item.table-item{width:112px;height:96px}.table-body{width:94px;min-height:58px;position:relative;z-index:1;border:1px solid #d4c5aa;border-radius:14px;background:#eee3d0;box-shadow:0 3px 0 #d6c9b2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;justify-items:center;gap:4px;padding:8px 6px}.room-item:nth-child(3n+2) .table-body{background:#e4ece0;border-color:#cbdacb;box-shadow:0 3px 0 #cfdbcd}.room-item:nth-child(3n) .table-body{background:#efe2d9;border-color:#decdc0;box-shadow:0 3px 0 #dfd0c4}.room-item.desk-item{width:75px;height:64px}.desk-item .table-body{width:51px;min-height:34px;padding:4px;border-radius:6px;display:block}.table-legs{position:absolute;z-index:0;width:78px;height:68px;border-left:2px solid #ded3c2;border-right:2px solid #ded3c2;top:16px}.desk-item .table-legs{width:42px;height:44px;top:11px}.seat-chip{position:relative;max-width:100%;height:19px;padding:2px 4px;border-radius:3px;background:#fffefa;border:1px solid #e4e4db;color:#53665a;font-size:8px;font-weight:600;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:grab}.seat-chip:hover{border-color:#9db39e;z-index:3}.seat-chip.empty{height:13px;background:#f8f6ef;border-style:dashed;color:#c4bcad;cursor:default}.desk-item .seat-chip{height:22px;text-align:center}.table-label{position:absolute;bottom:0;left:0;right:0;text-align:center;color:#9ca297;font-size:7px;letter-spacing:.65px;pointer-events:none}.room-item.editing{cursor:grab;outline:1px dashed #77967e;outline-offset:0;border-radius:8px}.room-item.editing:active{cursor:grabbing}.room-item.selected{outline:2px solid #62896c!important;outline-offset:2px;border-radius:9px}.room-item.front-focus .table-body,.room-item.front-focus .table-body{box-shadow:0 0 0 2px #e5a66f,0 3px 0 #d6c9b2}.stage-door{position:absolute;bottom:0;left:26px;height:24px;border-top:1px solid #d3dbd1;color:#9ba397;font-size:7px;letter-spacing:1px;padding-top:7px}.stage-legend{position:absolute;right:16px;bottom:10px;color:#a3a89e;font-size:7px;letter-spacing:1px}.chart-footer{height:36px;display:flex;align-items:end;justify-content:space-between;color:#7c8880;font-size:9px}.chart-footer>div{display:flex;align-items:center}.chart-footer i{width:6px;height:6px;border-radius:50%;background:#82a989;margin-right:7px}.hint-text{color:#a1a69f}.layout-editor{margin-bottom:11px}.editor-tools,.selected-tools{display:flex;align-items:center;gap:6px;padding:7px;background:#f4f6f0;border:1px solid #e4e9df;border-radius:5px;margin-bottom:6px}.editor-tools>span{margin-right:auto}.editor-tools b{display:block;color:#52685a;font-size:10px}.editor-tools small{display:block;color:#9aa198;font-size:8px;margin-top:2px}.editor-tools button,.selected-tools button{padding:6px 8px;border:1px solid #dfe5db;border-radius:4px;background:#fffefa;color:#5d7565;font:600 9px "DM Sans",sans-serif;cursor:pointer}.editor-tools .done-editing{background:var(--green);border-color:var(--green);color:#fff}.selected-tools{padding:5px 7px}.selected-tools span{font-size:9px;color:#627168;margin-right:auto}.selected-tools .remove-tool{color:#a55743}.bottom-footer{display:flex;justify-content:space-between;padding:17px 2px 20px;color:#a0a59d;font-size:8px;letter-spacing:.8px}.bottom-footer span+span{font-size:9px;letter-spacing:0}dialog{max-width:380px;border:1px solid var(--line);border-radius:9px;padding:27px;color:var(--ink);box-shadow:0 20px 70px #14231d33}dialog::backdrop{background:#17221d66}dialog h2{font:700 20px Manrope,sans-serif;margin:11px 0}dialog p{font-size:12px;line-height:1.65;color:#69746d}.dialog-x{position:absolute;right:11px;top:8px;border:0;background:none;font-size:23px;color:#78817a;cursor:pointer}.notice-ok{margin-top:19px;border:0;border-radius:4px;padding:8px 15px;background:var(--green);color:white;font:600 10px "DM Sans",sans-serif;cursor:pointer}.over-capacity{color:#a55743!important}.room-item.rotated{transform:rotate(90deg)}[hidden]{display:none!important}
@media(max-width:920px){.app-shell{padding:0 24px}.app-grid{grid-template-columns:265px 1fr;gap:13px}.sidebar{padding-left:14px;padding-right:14px}.chart-area{padding:15px}.room-viewport,.room-stage{min-height:500px}}
@media(max-width:700px){.app-shell{padding:0 12px}.topbar{height:57px}.page-heading{padding:25px 0 17px}h1{font-size:26px}.page-heading p{font-size:10px;max-width:270px}.print-button{padding:8px}.print-button span{display:none}.app-grid{grid-template-columns:1fr;min-height:unset}.chart-area{order:0;min-height:500px}.sidebar{order:1;min-height:570px}.room-viewport,.room-stage{min-height:440px}.stage-items{inset:65px 8px 35px}.room-item.table-item{width:91px;height:81px}.table-body{width:78px;min-height:49px;padding:6px 4px;gap:3px}.seat-chip{height:16px;font-size:7px;padding:2px 3px}.seat-chip.empty{height:11px}.table-legs{width:65px;height:58px;top:14px}.room-item.desk-item{width:62px;height:52px}.desk-item .table-body{width:45px;min-height:30px}.desk-item .table-legs{width:38px;height:37px}.table-label{font-size:6px}.chart-footer{align-items:center}.hint-text{display:none}.chart-toolbar{margin-bottom:9px}.bottom-footer{padding-top:14px}}
@media print{body{background:white}.app-shell{max-width:none;padding:0}.topbar,.page-heading,.sidebar,.bottom-footer,.chart-actions,.chart-footer .hint-text{display:none!important}.app-grid{display:block;min-height:0}.chart-area{border:0;box-shadow:none;padding:0}.chart-toolbar{margin-bottom:10px}.room-viewport{overflow:visible;border:1px solid #ddd;background:#f5f5f1}.room-stage{min-width:0;min-height:650px;background-image:none}.stage-items{inset:70px 25px 36px}.seat-chip{font-size:9px}.room-item.table-item{width:122px;height:106px}.table-body{width:104px;min-height:66px}}
.stage-front.front-at-bottom{top:auto;bottom:18px}
.seat-chip.drop-target{outline:2px solid #719273;outline-offset:1px}
.room-item.moving{z-index:10}

/* Clear table colors, larger seat labels, and projector presentation. */
.room-item .table-body{background:hsl(var(--table-hue) 65% 90%);border:2px solid hsl(var(--table-hue) 53% 48%);box-shadow:0 4px 0 hsl(var(--table-hue) 45% 70%)}
.room-item .table-legs{border-color:hsl(var(--table-hue) 30% 70%)}
.room-item .seat-chip:not(.empty){height:27px;padding:4px 5px;border:2px solid hsl(var(--table-hue) 56% 47%);background:#fff;color:#192b2c;font-size:11px;font-weight:800;line-height:1.1;border-radius:5px;box-shadow:0 1px 1px #14261c18}
.room-item .seat-chip.empty{height:17px;border:1px dashed hsl(var(--table-hue) 30% 65%);background:#ffffff90;color:#84918a}
.room-item .table-label{font-size:8px;font-weight:700;color:hsl(var(--table-hue) 48% 31%)}
.room-item.table-item{width:130px;height:108px}
.table-item .table-body{width:108px;min-height:70px;padding:8px 6px;gap:5px}
.room-item.desk-item{width:84px;height:72px}
.desk-item .table-body{width:61px;min-height:42px;padding:5px}
.desk-item .seat-chip:not(.empty){height:29px;font-size:11px}
.desk-item .table-legs{width:50px;height:50px;top:12px}
.selected-tools button{min-width:54px;font-size:10px}
.projector-button{border:1px solid #c9d9c9;border-radius:5px;padding:7px 10px;background:#edf4ec;color:#315e4b;font:700 10px "DM Sans",sans-serif;cursor:pointer;white-space:nowrap}
.projector-button:hover{background:#dfece0}
.app-shell.projector-mode{max-width:none;width:100%;height:100vh;padding:16px 22px;background:#fbfcf8}
.app-shell.projector-mode .topbar,.app-shell.projector-mode .page-heading,.app-shell.projector-mode .sidebar,.app-shell.projector-mode .bottom-footer{display:none!important}
.app-shell.projector-mode main,.app-shell.projector-mode .app-grid{display:block;width:100%;height:100%;min-height:0}
.app-shell.projector-mode .chart-area{height:100%;border:0;box-shadow:none;padding:0;background:transparent}
.app-shell.projector-mode .chart-toolbar{min-height:52px;margin:0 0 10px}
.app-shell.projector-mode .chart-toolbar h2{font-size:23px}
.app-shell.projector-mode .kicker{font-size:11px}
.app-shell.projector-mode .desk-count{font-size:15px}
.app-shell.projector-mode .projector-button{font-size:13px;padding:10px 13px}
.app-shell.projector-mode .icon-action{width:37px;height:36px;font-size:20px}
.app-shell.projector-mode .room-viewport{height:calc(100vh - 94px);min-height:0;border:2px solid #cbd6c9;border-radius:10px;overflow:hidden}
.app-shell.projector-mode .room-stage{height:100%;min-height:620px;min-width:0;background-size:40px 40px}
.app-shell.projector-mode .stage-items{inset:80px 3.5% 50px}
.app-shell.projector-mode .stage-front{top:25px;font-size:12px;font-weight:800;letter-spacing:1.8px}
.app-shell.projector-mode .front-line{width:140px;height:2px}
.app-shell.projector-mode .stage-front.front-at-bottom{top:auto;bottom:18px}
.app-shell.projector-mode .room-item.table-item{width:168px;height:140px}
.app-shell.projector-mode .table-item .table-body{width:142px;min-height:91px;padding:11px 9px;gap:7px;border-radius:18px;box-shadow:0 6px 0 hsl(var(--table-hue) 45% 70%)}
.app-shell.projector-mode .room-item.desk-item{width:108px;height:90px}
.app-shell.projector-mode .desk-item .table-body{width:80px;min-height:56px;padding:7px;border-radius:8px}
.app-shell.projector-mode .room-item .seat-chip:not(.empty){height:37px;padding:6px 7px;font-size:15px;border-width:2px;border-radius:6px}
.app-shell.projector-mode .room-item .seat-chip.empty{height:21px;font-size:12px}
.app-shell.projector-mode .desk-item .seat-chip:not(.empty){height:38px;font-size:14px}
.app-shell.projector-mode .room-item .table-legs{width:118px;height:100px;top:20px;border-width:3px}
.app-shell.projector-mode .desk-item .table-legs{width:67px;height:66px;top:15px}
.app-shell.projector-mode .room-item .table-label{font-size:11px;letter-spacing:1px}
.app-shell.projector-mode .stage-door,.app-shell.projector-mode .stage-legend{font-size:10px;font-weight:700}
.app-shell.projector-mode .chart-footer{height:27px;font-size:11px}
@media(max-width:700px){.projector-button{font-size:9px;padding:7px}.app-shell.projector-mode{padding:8px}.app-shell.projector-mode .room-viewport{height:calc(100vh - 80px)}.app-shell.projector-mode .stage-items{inset:68px 2% 44px}.app-shell.projector-mode .room-item.table-item{width:100px;height:86px}.app-shell.projector-mode .table-item .table-body{width:85px;min-height:58px;padding:5px;gap:3px}.app-shell.projector-mode .room-item .seat-chip:not(.empty){height:27px;font-size:9px;padding:3px}.app-shell.projector-mode .room-item .seat-chip.empty{height:15px}.app-shell.projector-mode .room-item .table-legs{width:74px;height:60px;top:12px}.app-shell.projector-mode .room-item .table-label{font-size:7px}}

/* Save and switch between independent class rosters. */
.group-switcher{padding:0 0 14px;margin-bottom:15px;border-bottom:1px solid #eeece5}
.group-switch-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}
.group-switch-heading .text-button{padding:0;font-size:10px}
#groupSelect{width:100%;height:32px;border:1px solid #e2e5dc;border-radius:5px;background:#fdfcf9;padding:0 9px;color:#34483c;font:600 11px "DM Sans",sans-serif}
.group-hint{margin-top:5px;color:#939c94;font-size:9px;line-height:1.4}
.group-name-field{display:block;margin-top:18px;color:#5e6b62;font-size:11px;font-weight:600}
.group-name-field input{display:block;width:100%;margin-top:7px;padding:10px;border:1px solid #dfe4db;border-radius:5px;background:#fffefa;color:var(--ink);font:12px "DM Sans",sans-serif;outline:none}
.group-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.group-dialog-actions>button:first-child{border:1px solid #e2e5dc;border-radius:4px;padding:8px 13px;background:#fffefa;color:#627168;font:600 10px "DM Sans",sans-serif;cursor:pointer}
#groupDialog p{font-size:11px;line-height:1.5;color:#768179}

/* Let longer student names wrap instead of truncating them. */
.room-item.table-item{width:148px;height:auto;min-height:126px}
.room-item .table-body{width:130px;min-height:102px;padding:9px 7px;gap:5px}
.room-item .seat-chip:not(.empty){height:auto;min-height:40px;padding:5px 4px;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-overflow:clip;overflow:visible;line-height:1.15;font-size:12px;text-align:center}
.room-item .seat-chip.empty{height:20px;min-height:20px}
.room-item .table-label{bottom:-2px;font-size:9px}
.room-item.desk-item{width:96px;height:auto;min-height:82px}
.room-item.desk-item .table-body{width:78px;min-height:58px;padding:6px;white-space:normal}
.room-item.desk-item .seat-chip:not(.empty){min-height:42px;font-size:11px}
.room-item.desk-item .table-legs{width:61px;height:58px;top:13px}
.app-shell.projector-mode .room-item.table-item{width:208px;height:auto;min-height:176px}
.app-shell.projector-mode .room-item.table-item .table-body{width:184px;min-height:132px;padding:13px 10px;gap:8px}
.app-shell.projector-mode .room-item .seat-chip:not(.empty){min-height:54px;height:auto;padding:8px 7px;white-space:normal;overflow-wrap:anywhere;line-height:1.15;font-size:16px}
.app-shell.projector-mode .room-item .seat-chip.empty{min-height:25px;height:25px}
.app-shell.projector-mode .room-item .table-label{bottom:-3px;font-size:12px}
.app-shell.projector-mode .room-item.desk-item{width:146px;min-height:116px}
.app-shell.projector-mode .room-item.desk-item .table-body{width:124px;min-height:86px;padding:8px}
.app-shell.projector-mode .room-item.desk-item .seat-chip:not(.empty){min-height:58px;font-size:15px}
@media(max-width:700px){.room-stage{min-width:760px}.room-item.table-item{width:140px;min-height:120px}.room-item .table-body{width:122px;min-height:94px;padding:7px 5px;gap:4px}.room-item .seat-chip:not(.empty){min-height:34px;font-size:10px;padding:4px 3px}.room-item.desk-item{width:88px;min-height:76px}.room-item.desk-item .table-body{width:72px;min-height:54px}.app-shell.projector-mode .room-stage{min-width:0}.app-shell.projector-mode .room-item.table-item{width:112px;min-height:100px}.app-shell.projector-mode .room-item.table-item .table-body{width:96px;min-height:74px;padding:5px;gap:3px}.app-shell.projector-mode .room-item .seat-chip:not(.empty){min-height:35px;font-size:10px;padding:3px}.app-shell.projector-mode .room-item.desk-item{width:80px;min-height:70px}.app-shell.projector-mode .room-item.desk-item .table-body{width:66px;min-height:50px}}

/* Large, one-line seat names and editable item controls. */
.room-viewport,.room-stage{min-height:780px}
.room-stage{min-width:960px}
.stage-items{inset:70px 28px 42px}
.room-item.table-item{width:230px;height:154px}
.room-item .table-body{width:210px;min-height:132px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:6px;padding:11px 10px}
.room-item .seat-chip:not(.empty){box-sizing:border-box;width:100%;height:32px;min-height:32px;padding:4px 6px;white-space:nowrap;overflow:hidden;text-overflow:clip;overflow-wrap:normal;line-height:1.1;text-align:center;font-size:16px}
.room-item .seat-chip.empty{height:20px;min-height:20px}
.room-item .table-legs{width:176px;height:112px;top:18px}
.room-item.desk-item{width:180px;height:116px}
.room-item.desk-item .table-body{width:158px;min-height:92px;padding:8px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.room-item.desk-item .seat-chip:not(.empty){width:100%;height:36px;min-height:36px;font-size:14px}
.room-item.desk-item .table-legs{width:128px;height:82px;top:15px}
.room-item .table-label{font-size:10px;font-weight:800;letter-spacing:.2px}
.item-name-control,.rotation-control{display:flex;align-items:center;gap:4px;color:#5d7164;font-size:9px;font-weight:700;white-space:nowrap}
.item-name-control input{width:112px;height:28px;padding:4px 6px;border:1px solid #dfe5db;border-radius:4px;background:#fffefa;color:#34483c;font:600 10px "DM Sans",sans-serif}
.rotation-control input{width:55px;height:28px;padding:4px;border:1px solid #dfe5db;border-radius:4px;background:#fffefa;color:#34483c;font:600 10px "DM Sans",sans-serif}
.selected-tools{flex-wrap:wrap}
@media(max-width:700px){.room-stage{min-width:960px}.room-viewport,.room-stage{min-height:780px}.room-item.table-item{width:230px;height:154px}.room-item .table-body{width:210px;min-height:132px}.room-item.desk-item{width:180px;height:116px}.room-item.desk-item .table-body{width:158px;min-height:92px}}
.app-shell.projector-mode .room-viewport,.app-shell.projector-mode .room-stage{min-height:760px}
.app-shell.projector-mode .room-stage{min-width:1100px}
.app-shell.projector-mode .room-item.table-item{width:250px;height:170px}
.app-shell.projector-mode .room-item.table-item .table-body{width:228px;min-height:146px;padding:12px;gap:7px}
.app-shell.projector-mode .room-item .seat-chip:not(.empty){height:36px;min-height:36px;font-size:19px;padding:5px 7px}
.app-shell.projector-mode .room-item .seat-chip.empty{height:22px;min-height:22px}
.app-shell.projector-mode .room-item .table-legs{width:190px;height:124px;top:20px}
.app-shell.projector-mode .room-item.desk-item{width:195px;height:128px}
.app-shell.projector-mode .room-item.desk-item .table-body{width:172px;min-height:102px;padding:9px;gap:7px}
.app-shell.projector-mode .room-item.desk-item .seat-chip:not(.empty){height:39px;min-height:39px;font-size:17px}
.app-shell.projector-mode .room-item.desk-item .table-legs{width:138px;height:92px;top:16px}
@media(max-width:700px){.app-shell.projector-mode .room-stage{min-width:1100px}.app-shell.projector-mode .room-item.table-item{width:250px;height:170px}.app-shell.projector-mode .room-item.table-item .table-body{width:228px;min-height:146px}.app-shell.projector-mode .room-item.desk-item{width:195px;height:128px}.app-shell.projector-mode .room-item.desk-item .table-body{width:172px;min-height:102px}}

/* Prominent group labels with per-table color and visibility controls. */
.group-name-toggle{border:1px solid #cddbcc;border-radius:5px;padding:7px 9px;background:#f0f5ee;color:#365e48;font:700 10px "DM Sans",sans-serif;cursor:pointer;white-space:nowrap}
.group-name-toggle[aria-pressed="false"]{background:#f7f7f2;border-color:#dedfd6;color:#78837a}
.room-item .table-body{background:color-mix(in srgb,var(--item-color) 22%,white);border-color:var(--item-color);box-shadow:0 5px 0 color-mix(in srgb,var(--item-color) 42%,white)}
.room-item .table-legs{border-color:color-mix(in srgb,var(--item-color) 42%,white)}
.room-item .seat-chip:not(.empty){border-color:var(--item-color)}
.room-item .table-label{left:50%;right:auto;bottom:-8px;transform:translateX(-50%);width:max-content;max-width:calc(100% + 22px);padding:5px 11px;border:2px solid var(--item-color);border-radius:999px;background:#fff;color:#17251d;font-size:13px;font-weight:900;line-height:1.1;letter-spacing:.1px;box-shadow:0 2px 5px #18291a24;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:2}
.room-stage.hide-group-names .table-label{display:none}
.item-color-control{display:flex;align-items:center;gap:5px;color:#5d7164;font-size:9px;font-weight:700;white-space:nowrap}
.item-color-control input{width:34px;height:28px;border:1px solid #dfe5db;border-radius:4px;background:#fffefa;padding:2px;cursor:pointer}
.app-shell.projector-mode .room-item .table-label{bottom:-10px;padding:7px 14px;font-size:16px;box-shadow:0 3px 8px #18291a30}
@media(max-width:700px){.group-name-toggle{padding:6px;font-size:9px}.app-shell.projector-mode .room-item .table-label{font-size:13px}}
.item-size-control{display:flex;align-items:center;gap:5px;color:#5d7164;font-size:9px;font-weight:700;white-space:nowrap}
.item-size-control select{height:28px;min-width:78px;padding:4px 6px;border:1px solid #dfe5db;border-radius:4px;background:#fffefa;color:#34483c;font:600 10px "DM Sans",sans-serif}

/* Drag a marquee to select and move several room items together. */
.selection-box{position:absolute;z-index:30;border:2px solid #477bce;background:#4884dc2b;pointer-events:none;border-radius:3px}
.room-item.selected{outline:3px solid #4179c8!important;outline-offset:3px;z-index:3}
.selected-tools.multi-selected{background:#edf3ff;border-color:#c5d7f5}
.selected-tools.multi-selected>#selectedLabel{margin-right:0;color:#315d9c;font-weight:800;font-size:11px}

/* Bulk controls shown when the marquee contains multiple tables or desks. */
.selected-tools.multi-selected>:not(#selectedLabel):not(#multiTools){display:none!important}
#multiTools{align-items:center;gap:6px;flex-wrap:wrap}
#multiTools[hidden]{display:none!important}
#multiTools:not([hidden]){display:flex}
#multiTools button{padding:6px 8px;border:1px solid #cbd8eb;border-radius:4px;background:#fff;color:#365a88;font:600 9px "DM Sans",sans-serif;cursor:pointer}
#multiTools .remove-tool{color:#a55743;border-color:#ead2ca}
#multiTools .rotation-control input{width:60px}
.editor-tools button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:700px){.editor-tools{flex-wrap:wrap}.editor-tools>span{flex:1 1 100%;margin-right:0}}

/* Bring the editable classroom edges half as close to the stage boundary. */
.stage-items{inset:35px 14px 21px}
.stage-front{top:4px;height:24px}
.stage-front.front-at-bottom{top:auto;bottom:9px}
@media(max-width:700px){.stage-items{inset:32px 4px 17px}.stage-front{top:3px;height:22px}.stage-front.front-at-bottom{top:auto;bottom:5px}}
@media print{.stage-items{inset:35px 12px 18px}}
.app-shell.projector-mode .stage-items{inset:40px 1.75% 25px}
.app-shell.projector-mode .stage-front{top:5px;height:28px}
.app-shell.projector-mode .stage-front.front-at-bottom{top:auto;bottom:9px}
@media(max-width:700px){.app-shell.projector-mode .stage-items{inset:34px 1% 22px}.app-shell.projector-mode .stage-front{top:3px;height:24px}.app-shell.projector-mode .stage-front.front-at-bottom{top:auto;bottom:6px}}

/* Tighter room bounds with a visible editing boundary. */
.stage-items{inset:17px 7px 10px}
@media(max-width:700px){.stage-items{inset:16px 2px 8px}}
@media print{.stage-items{inset:17px 6px 9px}}
.app-shell.projector-mode .stage-items{inset:20px .875% 12px}
@media(max-width:700px){.app-shell.projector-mode .stage-items{inset:17px .5% 11px}}
.room-stage.is-editing .stage-items{outline:2px dashed #718b74;outline-offset:-2px;border-radius:5px}

/* Per-item paint must override the alternating legacy table palette. */
.room-item:nth-child(n) .table-body{background:color-mix(in srgb,var(--item-color) 22%,white)!important;border-color:var(--item-color)!important;box-shadow:0 5px 0 color-mix(in srgb,var(--item-color) 42%,white)!important}
.tag-create-row{display:flex;gap:6px;margin-bottom:9px}.tag-create-row input,.tag-name,.tag-field select{min-width:0;border:1px solid #e5e6de;border-radius:4px;background:#fffefa;padding:7px;color:#526158;font:10px "DM Sans",sans-serif}.tag-create-row input{flex:1}.tag-create-row button,.tag-delete{border:1px solid #dfe5db;border-radius:4px;background:#f5f7f1;color:#55745f;padding:6px 8px;font:600 9px "DM Sans",sans-serif;cursor:pointer;white-space:nowrap}.custom-tag-list{display:grid;gap:8px}.student-tag{border:1px solid #e5e9df;border-radius:5px;background:#f8f9f5;padding:9px}.tag-title-row{display:flex;gap:6px;margin-bottom:7px}.tag-name{flex:1;font-weight:700}.tag-delete{color:#9a5a4a;font-size:15px;line-height:1}.tag-field{display:grid;gap:4px;margin-top:7px;color:#758078;font-size:9px;font-weight:600}.tag-field textarea{height:44px;min-height:36px;background:#fffefa}.tag-field select{width:100%;padding:6px}.tag-check-list{display:flex;flex-wrap:wrap;gap:4px 8px;padding:5px;border:1px solid #e8eae2;border-radius:4px;background:#fffefa;max-height:84px;overflow:auto}.tag-check{display:inline-flex;align-items:center;gap:3px;color:#647369;font-size:9px;font-weight:500}.tag-check input{accent-color:var(--green);margin:0}

/* Seat positions run left to right across the table surface. */
.room-item.table-item{width:310px;height:170px}
.room-item.table-item .table-body{width:290px;min-height:144px;display:grid;grid-template-columns:repeat(var(--seat-columns,3),minmax(0,1fr));grid-auto-rows:minmax(32px,auto);align-content:center;justify-items:stretch;gap:6px;padding:10px}
.room-item.table-item .table-body.seat-count-1{grid-template-columns:1fr}
.room-item.table-item .table-body.seat-count-1 .seat-chip{width:55%;justify-self:center}
.room-item.table-item .seat-chip:not(.empty){box-sizing:border-box;width:100%;height:auto;min-height:32px;padding:4px 3px;white-space:nowrap;overflow:hidden;text-overflow:clip;line-height:1.05;text-align:center}
.room-item.table-item .seat-chip.empty{width:100%;height:20px;min-height:20px}
.room-item.table-item .table-legs{width:246px;height:126px;top:18px}
.app-shell.projector-mode .room-item.table-item{width:340px;height:176px}
.app-shell.projector-mode .room-item.table-item .table-body{width:320px;min-height:148px;grid-template-columns:repeat(var(--seat-columns,3),minmax(0,1fr));grid-auto-rows:minmax(34px,auto);padding:10px;gap:6px}
.app-shell.projector-mode .room-item.table-item .table-legs{width:270px;height:130px;top:20px}
@media(max-width:700px){.room-item.table-item{width:310px;height:170px}.room-item.table-item .table-body{width:290px;min-height:144px}.app-shell.projector-mode .room-item.table-item{width:340px;height:176px}.app-shell.projector-mode .room-item.table-item .table-body{width:320px;min-height:148px}}

/* Keep the room canvas fixed between modes so table spacing does not jump. */
.room-stage{width:1100px;min-width:1100px;height:760px;min-height:760px;margin-inline:auto}
.room-viewport,.room-stage{min-height:760px}
.room-item.table-item{width:306px;height:160px}
.room-item.table-item .table-body{width:290px;min-height:132px;grid-auto-rows:minmax(30px,auto)}
.room-item.table-item .seat-chip:not(.empty){min-height:30px}
.room-item.table-item .seat-chip.empty{height:19px;min-height:19px}
.room-item.table-item .table-legs{height:116px}

/* Projector mode gets its own full-screen room; the regular room stays fixed-size. */
.app-shell.projector-mode .room-viewport{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;z-index:1!important}
.app-shell.projector-mode .room-stage{width:100vw!important;min-width:0!important;height:100vh!important;min-height:0!important;margin:0!important;transform:none!important}
.app-shell.projector-mode .stage-items{position:absolute!important;top:var(--room-content-top,130px)!important;right:20px!important;bottom:20px!important;left:20px!important;width:auto!important;height:auto!important}
.app-shell.projector-mode .room-stage.is-editing .stage-items{top:var(--edit-boundary-top,130px)!important;right:20px!important;bottom:20px!important;left:20px!important}
.app-shell.projector-mode .chart-toolbar{position:fixed;top:10px;left:22px;right:22px;z-index:4;pointer-events:none}
.app-shell.projector-mode .chart-toolbar>*{pointer-events:auto}
.app-shell.projector-mode .layout-editor{position:fixed;top:82px;left:22px;right:22px;z-index:4}
.room-stage.is-dragging .stage-items::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background-image:linear-gradient(#66807142 1px,transparent 1px),linear-gradient(90deg,#66807142 1px,transparent 1px);background-size:14px 14px;background-position:-3.5px -8.5px}
.app-shell.projector-mode .room-stage.is-dragging .stage-items::before{background-size:20px 20px;background-position:0 -5px}
.alignment-guides{position:absolute;inset:0;z-index:8;overflow:visible;pointer-events:none}
.alignment-guide{position:absolute;opacity:.9;filter:drop-shadow(0 0 2px #fff)}
.alignment-guide.vertical{top:0;bottom:0;width:1px;background:repeating-linear-gradient(to bottom,#2783c7 0 7px,transparent 7px 12px)}
.alignment-guide.horizontal{left:0;right:0;height:1px;background:repeating-linear-gradient(to right,#2783c7 0 7px,transparent 7px 12px)}

/* Give seat names more room while keeping every name on one line. */
.room-item.table-item .table-body{gap:1px!important;padding:8px!important}
.room-item.table-item .seat-chip:not(.empty){display:flex!important;align-items:center!important;justify-content:center!important;padding:1px 0!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;text-align:center!important}
.room-item.desk-item .table-body{padding:3px!important}
.room-item.desk-item .seat-chip:not(.empty){display:flex!important;align-items:center!important;justify-content:center!important;padding:1px 0!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;text-align:center!important}
.app-shell.projector-mode .room-item.table-item .table-body{gap:1px!important;padding:8px!important}
.app-shell.projector-mode .room-item .seat-chip:not(.empty){display:flex!important;align-items:center!important;justify-content:center!important;padding:1px 0!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;text-align:center!important}
.app-shell.projector-mode .room-item.desk-item .table-body{padding:6px!important}
.projector-edit-layout-button{display:none;border:1px solid #c9d9c9;border-radius:5px;padding:7px 10px;background:#edf4ec;color:#315e4b;font:700 10px "DM Sans",sans-serif;cursor:pointer;white-space:nowrap}
.app-shell.projector-mode .projector-edit-layout-button{display:inline-flex;align-items:center;justify-content:center;font-size:13px;padding:10px 13px}
.app-shell.projector-mode .projector-edit-layout-button[aria-pressed="true"]{background:#355f52;border-color:#355f52;color:#fff}
@media(max-width:700px){.app-shell.projector-mode .projector-edit-layout-button{font-size:9px;padding:7px}}

/* Keep the seating chart together on one landscape print page. */
@page{size:letter landscape;margin:.28in}
@media print{
  html,body{width:100%;height:100%;margin:0!important;background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body{font-size:10px}
  .app-shell,.app-shell.projector-mode{width:100%!important;max-width:none!important;height:7.94in!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important}
  .topbar,.page-heading,.sidebar,.bottom-footer,.chart-actions,.chart-footer .hint-text,.layout-editor{display:none!important}
  main,.app-grid{display:block!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important}
  .chart-area,.app-shell.projector-mode .chart-area{display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
  .chart-toolbar,.app-shell.projector-mode .chart-toolbar{position:static!important;display:flex!important;flex:0 0 .38in!important;height:.38in!important;min-height:0!important;margin:0 0 .08in!important;padding:0!important;pointer-events:auto!important}
  .chart-toolbar .kicker{font-size:8px!important;letter-spacing:1px!important}
  .chart-toolbar h2,.app-shell.projector-mode .chart-toolbar h2{font-size:16px!important;margin-top:2px!important}
  .room-viewport,.app-shell.projector-mode .room-viewport{position:relative!important;inset:auto!important;display:block!important;flex:1 1 auto!important;width:100%!important;height:auto!important;min-width:0!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:hidden!important;border:1px solid #d5ddd3!important;border-radius:5px!important;background:#f4f5ef!important}
  .room-stage,.app-shell.projector-mode .room-stage{position:relative!important;width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;margin:0!important;overflow:hidden!important;transform:none!important;background-color:#f4f5ef!important;background-image:linear-gradient(#dfe5db55 1px,transparent 1px),linear-gradient(90deg,#dfe5db55 1px,transparent 1px)!important;background-size:24px 24px!important}
  .stage-front,.app-shell.projector-mode .stage-front{top:5px!important;bottom:auto!important;height:20px!important;font-size:8px!important;letter-spacing:1px!important}
  .front-line{width:1in!important;height:1px!important}
  .stage-items,.app-shell.projector-mode .stage-items{position:absolute!important;inset:var(--room-content-top,130px) 20px 20px!important;width:auto!important;height:auto!important;outline:0!important}
  .room-stage.is-editing .stage-items{outline:0!important}
  .room-item.editing,.room-item.selected{outline:0!important;outline-offset:0!important}
  .room-item.moving{z-index:2!important}
  .room-item.table-item{width:260px!important;height:120px!important;min-height:0!important}
  .room-item.table-item .table-body{width:240px!important;min-height:66px!important;grid-auto-rows:minmax(34px,auto)!important;padding:2px 8px!important;gap:1px!important}
  .room-item.table-item .seat-chip:not(.empty){height:36px!important;min-height:36px!important;padding:1px 0!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important}
  .room-item.table-item .seat-chip.empty{height:22px!important;min-height:22px!important}
  .room-item.desk-item{width:195px!important;height:100px!important;min-height:0!important}
  .room-item.desk-item .table-body{width:172px!important;min-height:58px!important;padding:1.5px 6px!important}
  .room-item.desk-item .seat-chip:not(.empty){height:39px!important;min-height:39px!important;line-height:1.1!important;white-space:nowrap!important}
  .room-item.table-item .table-body>.table-label{bottom:-12px!important;padding:2px 14px!important;font-size:16px!important}
  .room-item.desk-item .table-body>.table-label{bottom:-10px!important;padding:2px 10px!important;font-size:12px!important}
  .chart-footer{display:flex!important;flex:0 0 .24in!important;height:.24in!important;align-items:flex-end!important;margin:0!important;padding:3px 1px 0!important;font-size:8px!important}
  .chart-footer>div{display:flex!important}
}

/* Fit the complete regular classroom canvas inside the chart panel. */
@media screen{
  .app-shell:not(.projector-mode) .chart-area{min-height:0}
  .app-shell:not(.projector-mode) .room-viewport{position:relative;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden}
  .app-shell:not(.projector-mode) .room-stage{position:absolute;top:50%;left:50%;width:1100px;height:760px;min-width:0;min-height:0;margin:0;transform:translate(-50%,-50%) scale(var(--room-scale,1));transform-origin:center center}
}

/* Keep roster transfer controls tidy in the sidebar. */
.roster-tools{flex-wrap:wrap}

/* Reduce vertical whitespace around seat labels on tables and desks. */
.app-shell:not(.projector-mode) .room-item.table-item .table-body{min-height:66px!important;padding-top:2px!important;padding-bottom:2px!important;row-gap:.25px!important}
.app-shell.projector-mode .room-item.table-item .table-body{min-height:66px!important;padding-top:2px!important;padding-bottom:2px!important;row-gap:.25px!important}
.app-shell:not(.projector-mode) .room-item.desk-item .table-body{min-height:58px!important;padding-top:1.5px!important;padding-bottom:1.5px!important;row-gap:1.5px!important}
.app-shell.projector-mode .room-item.desk-item .table-body{min-height:58px!important;padding-top:1.5px!important;padding-bottom:1.5px!important;row-gap:1.75px!important}
.app-shell:not(.projector-mode) .room-item.table-item,.app-shell.projector-mode .room-item.table-item{height:120px!important}
.app-shell:not(.projector-mode) .room-item.table-item .table-legs,.app-shell.projector-mode .room-item.table-item .table-legs{height:58px!important;top:31px!important}
.app-shell:not(.projector-mode) .room-item.desk-item,.app-shell.projector-mode .room-item.desk-item{height:100px!important}
.app-shell:not(.projector-mode) .room-item.desk-item .table-legs,.app-shell.projector-mode .room-item.desk-item .table-legs{height:52px!important;top:24px!important}
.room-item.editing{outline:none!important;outline-offset:0!important}
.room-item.editing .table-body{outline:1px dashed #77967e!important;outline-offset:2px}
.room-item.selected{outline:none!important;outline-offset:0!important}
.room-item.selected .table-body{outline:3px solid #4179c8!important;outline-offset:3px}

/* Use the projector's room coordinate system, then scale that whole scene down. */
@media screen{
  .app-shell:not(.projector-mode) .room-stage{background-size:40px 40px}
  .app-shell:not(.projector-mode) .stage-items{inset:var(--room-content-top,130px) 20px 20px}
  .app-shell:not(.projector-mode) .stage-front{top:5px;height:28px;font-size:12px;font-weight:800;letter-spacing:1.8px}
  .app-shell:not(.projector-mode) .front-line{width:140px;height:2px}
  .app-shell:not(.projector-mode) .room-item.table-item{width:340px;height:176px}
  .app-shell:not(.projector-mode) .room-item.table-item .table-body{width:320px;min-height:148px;grid-template-columns:repeat(var(--seat-columns,3),minmax(0,1fr));grid-auto-rows:minmax(34px,auto);gap:1px;padding:8px}
  .app-shell:not(.projector-mode) .room-item.table-item .table-legs{width:270px;height:130px;top:20px}
  .app-shell:not(.projector-mode) .room-item .seat-chip:not(.empty){height:36px;min-height:36px;padding:1px 0;font-size:19px;line-height:1.1;white-space:nowrap;overflow-wrap:normal;word-break:normal;text-align:center}
  .app-shell:not(.projector-mode) .room-item .seat-chip.empty{height:22px;min-height:22px}
  .app-shell:not(.projector-mode) .room-item.desk-item{width:195px;height:128px}
  .app-shell:not(.projector-mode) .room-item.desk-item .table-body{width:172px;min-height:102px;padding:6px}
  .app-shell:not(.projector-mode) .room-item.desk-item .seat-chip:not(.empty){height:39px;min-height:39px}
  .app-shell:not(.projector-mode) .room-item.desk-item .table-legs{width:138px;height:92px;top:16px}
  .app-shell:not(.projector-mode) .room-item .table-label{bottom:-10px;padding:7px 14px;font-size:16px;letter-spacing:1px;box-shadow:0 3px 8px #18291a30}
}

/* Keep class controls available as an overlay in the default presentation view. */
.drawer-head{display:none}
.class-tools-button{border:1px solid #c9d9c9;border-radius:5px;padding:8px 11px;background:#edf4ec;color:#315e4b;font:700 12px "DM Sans",sans-serif;cursor:pointer;white-space:nowrap}
.class-tools-button:hover{background:#dfece0}
.app-shell.projector-mode .sidebar.class-tools-open{position:fixed!important;display:block!important;inset:0 auto 0 0;width:min(350px,88vw);height:100vh;max-height:100vh;overflow:auto;z-index:6;padding:14px 18px 55px;background:#fffefa;border:0;border-right:1px solid #dfe6dd;border-radius:0;box-shadow:12px 0 36px #14261c2e}
.app-shell.projector-mode .drawer-head{display:flex;align-items:center;justify-content:space-between;margin:0 -2px 12px;padding:3px 0 10px;border-bottom:1px solid #e8ece5;color:#7f8a80;font-size:9px;font-weight:800;letter-spacing:1.2px}
.app-shell.projector-mode .drawer-close{border:1px solid #e3e7df;border-radius:4px;padding:5px 8px;background:#fff;color:#52665a;font:600 10px "DM Sans",sans-serif;cursor:pointer}
@media(max-width:700px){.app-shell.projector-mode .chart-actions{gap:4px}.app-shell.projector-mode .class-tools-button{padding:7px;font-size:9px}.app-shell.projector-mode .group-name-toggle{padding:6px;font-size:9px}}

/* Overlay group labels on the lower edge of the compact furniture surface. */
.app-shell.projector-mode .room-item.table-item .table-label,.app-shell:not(.projector-mode) .room-item.table-item .table-label{bottom:13px!important;padding:2px 14px!important;font-size:16px!important;line-height:1.1}
.app-shell.projector-mode .room-item.desk-item .table-label,.app-shell:not(.projector-mode) .room-item.desk-item .table-label{bottom:32px!important;padding:2px 10px!important;font-size:12px!important;line-height:1.1}

/* Keep selected furniture controls alongside the add and copy tools. */
.app-shell.projector-mode .layout-editor{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:8px}
.app-shell.projector-mode .editor-tools{width:max-content;max-width:100%;flex-wrap:nowrap;margin:0;white-space:nowrap}
.app-shell.projector-mode .editor-tools>span{flex:0 0 auto;margin-right:0;white-space:nowrap}
.app-shell.projector-mode .selected-tools{min-width:0;align-self:stretch;margin:0;border-left:4px solid #355f52;border-radius:0 5px 5px 0;padding-left:10px}
.app-shell.projector-mode .selected-tools>span{flex:0 0 auto;margin-right:4px;white-space:nowrap}
@media(max-width:1100px){.app-shell.projector-mode .layout-editor{grid-template-columns:1fr;gap:5px}.app-shell.projector-mode .editor-tools{width:100%;flex-wrap:wrap}.app-shell.projector-mode .selected-tools{border-left-width:4px}}
.editor-tools #removeTableButton{color:#a55743;border-color:#ead2ca}
.app-shell.projector-mode .chart-actions{display:flex;align-items:center;gap:10px}
.app-shell.projector-mode .chart-actions .shuffle-button{display:flex;align-items:center;justify-content:center;width:auto;height:40px;padding:0 16px;border:2px solid #1e59b8;border-radius:7px;background:linear-gradient(180deg,#4d94f2,#2869d5);color:#fff;font:800 13px "DM Sans",sans-serif;box-shadow:0 3px 0 #174b9c,0 5px 14px #235ebc45;white-space:nowrap}
.app-shell.projector-mode .chart-actions .shuffle-button:hover{background:linear-gradient(180deg,#68a4fb,#205fc9);transform:translateY(-1px)}
.app-shell.projector-mode .chart-actions .shuffle-symbol{font-size:20px}
.app-shell.projector-mode .chart-actions .shuffle-arrow{margin-left:0;font-size:17px}
.toolbar-group-select{width:150px;height:38px;padding:0 9px;border:1px solid #d6e0d2;border-radius:6px;background:#fffefa;color:#355f52;font:700 12px "DM Sans",sans-serif;cursor:pointer}
@media(max-width:1050px){.app-shell.projector-mode .chart-actions{gap:6px}.app-shell.projector-mode .chart-actions .shuffle-button{height:34px;padding:0 9px;font-size:10px}.toolbar-group-select{width:120px;height:34px;font-size:10px}}
.app-shell .stage-front{top:calc(var(--room-content-top,130px) + 2px)!important;bottom:auto!important}
.app-shell .stage-front.front-at-bottom{top:auto!important;bottom:22px!important}
.editor-room-options{display:flex;flex:0 0 auto;align-items:center;gap:10px;min-width:max-content;padding-left:9px;border-left:2px solid #8b9c8d;white-space:nowrap}
.editor-room-options .layout-presets{display:flex;gap:4px;margin:0}
.editor-room-options .preset{height:28px;min-width:0;flex-direction:row;padding:0 8px}
.editor-room-options .preset-icon{display:none}
.editor-room-options .room-config{display:flex;align-items:center;gap:9px;margin:0}
.editor-room-options .room-config>label{display:flex;justify-content:flex-start;gap:5px;white-space:nowrap}
.editor-room-options .room-config select{height:27px;padding:4px 6px}
.editor-room-options .capacity-summary{display:flex;align-items:center;gap:4px;margin:0;padding:0;border:0;white-space:nowrap}
.editor-room-options .capacity-summary strong{font-size:9px}
.app-shell.projector-mode .editor-tools{flex-wrap:nowrap;overflow-x:auto}
.app-shell.projector-mode .layout-editor{height:52px;min-height:52px;max-height:52px;grid-template-columns:max-content minmax(0,1fr);align-items:stretch}
.app-shell.projector-mode .editor-tools,.app-shell.projector-mode .selected-tools{height:52px;min-height:52px;max-height:52px;box-sizing:border-box;overflow-y:hidden}
.app-shell.projector-mode .selected-tools{min-width:0;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap}
.app-shell.projector-mode #multiTools:not([hidden]){flex-wrap:nowrap;white-space:nowrap}
@media(max-width:1100px){.app-shell.projector-mode .layout-editor{grid-template-columns:minmax(0,max-content) minmax(0,1fr);gap:6px}.app-shell.projector-mode .editor-tools{max-width:55vw}.app-shell.projector-mode .selected-tools{max-width:calc(45vw - 6px)}}
.room-transfer-tools{position:relative;display:flex;gap:7px;margin:8px 0}
.room-transfer-tools button{border:1px solid #dfe5db;border-radius:4px;padding:6px 9px;background:#f4f6f0;color:#4e6d58;font:600 9px "DM Sans",sans-serif;cursor:pointer}
.room-transfer-tools button:disabled{opacity:.45;cursor:not-allowed}
.layout-copy-toast{position:absolute;z-index:10;left:0;top:calc(100% + 7px);padding:8px 11px;border:1px solid #cbd9c8;border-radius:6px;background:#fffefa;color:#315e48;font:700 10px "DM Sans",sans-serif;box-shadow:0 5px 16px #19291e25;white-space:nowrap;pointer-events:none}
.layout-copy-toast::before{content:"";position:absolute;left:16px;top:-5px;width:8px;height:8px;background:#fffefa;border-top:1px solid #cbd9c8;border-left:1px solid #cbd9c8;transform:rotate(45deg)}
.layout-copy-toast.visible{animation:layout-copy-toast 1600ms ease both}
@keyframes layout-copy-toast{0%{opacity:0;transform:translateY(-4px)}12%,78%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-3px)}}
.app-shell.projector-mode .chart-actions .print-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto;min-width:68px;padding:0 10px;font:700 12px "DM Sans",sans-serif;white-space:nowrap}
.app-shell.projector-mode .room-stage.is-shuffling .seat-chip{pointer-events:none;cursor:default}
.group-select-row{display:flex;align-items:center;gap:6px}
.group-select-row #groupSelect{flex:1;min-width:0}
.rename-group-button{color:#4b6c8d;background:#f5f8fb;border-color:#d9e2ec}
.group-name-error{display:block;margin-top:6px;color:#a55743;font-size:10px}
.delete-group-button{height:32px;padding:0 9px;border:1px solid #ecd7ce;border-radius:5px;background:#fff9f6;color:#a55743;font:600 10px "DM Sans",sans-serif;cursor:pointer}
.delete-group-button:hover:not(:disabled){background:#fbece6}
.delete-group-button:disabled{opacity:.45;cursor:not-allowed}
.chart-actions{flex-wrap:wrap;justify-content:flex-end}
.app-shell.projector-mode .chart-actions{transform:translateY(6px)}
.copy-image-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:92px;height:32px;padding:0 10px;border:1px solid #cbd9e9;border-radius:5px;background:#f2f7ff;color:#315f9c;font:700 11px "DM Sans",sans-serif;cursor:pointer;white-space:nowrap}
.copy-image-button:hover{background:#e6f0ff;border-color:#9eb9db}
.copy-image-button:disabled{opacity:.6;cursor:wait}
.copy-image-toast{position:absolute;right:0;top:calc(100% + 8px);z-index:8;max-width:min(360px,90vw);padding:8px 11px;border:1px solid #cbd9e9;border-radius:6px;background:#fff;color:#315f48;font:700 10px "DM Sans",sans-serif;box-shadow:0 5px 16px #19291e25;white-space:normal;pointer-events:none}
.copy-image-toast.visible{animation:layout-copy-toast 2200ms ease both}
.chart-actions{position:relative}
@media(max-width:1050px){.copy-image-button{height:30px;min-width:0;padding:0 8px;font-size:10px}.app-shell.projector-mode .chart-actions{transform:translateY(3px)}}
.room-item .table-body>.table-label{transform:translateX(-50%) translateY(2px)!important}
.app-shell.projector-mode .room-item.table-item .table-body>.table-label{bottom:-14px!important}
.app-shell.projector-mode .room-item.desk-item .table-body>.table-label{bottom:-12px!important}
.seat-chip-text,.table-label-text{display:inline-block;transform:scaleX(.87412587) scaleY(.98039216);transform-origin:center}
#rosterInput{height:245px;min-height:245px}
.roster-list-summary{display:flex;align-items:center;justify-content:space-between;margin:9px 1px 5px;color:#8a948d;font-size:9px}
.roster-list-summary strong{color:#52685a;font-size:10px}
.tag-help{margin:4px 0 0;color:#8a948d;font-size:9px;line-height:1.4}
.solo-seating-option{display:flex;align-items:flex-start;gap:8px;margin:11px 1px 4px;color:#52685a;cursor:pointer}
.solo-seating-option input{margin:2px 0 0;accent-color:var(--green)}
.solo-seating-option b,.solo-seating-option small{display:block}
.solo-seating-option b{font-size:10px}
.solo-seating-option small{margin-top:3px;color:#879189;font-size:9px;line-height:1.4}
.room-item.table-item .table-body>.table-label{bottom:-12px!important}
.room-item.desk-item .table-body>.table-label{bottom:-10px!important}
.app-shell.projector-mode .room-item.table-item .table-body>.table-label,.app-shell:not(.projector-mode) .room-item.table-item .table-body>.table-label{bottom:-12px!important}
.app-shell.projector-mode .room-item.desk-item .table-body>.table-label,.app-shell:not(.projector-mode) .room-item.desk-item .table-body>.table-label{bottom:-10px!important}
.app-shell.projector-mode .room-item.table-item,.app-shell:not(.projector-mode) .room-item.table-item{width:286px!important}
.app-shell.projector-mode .room-item.table-item .table-body,.app-shell:not(.projector-mode) .room-item.table-item .table-body{width:264px!important}
.app-shell.projector-mode .room-item.desk-item,.app-shell:not(.projector-mode) .room-item.desk-item{width:215px!important}
.app-shell.projector-mode .room-item.desk-item .table-body,.app-shell:not(.projector-mode) .room-item.desk-item .table-body{width:189px!important}
.app-shell.projector-mode .room-stage{position:absolute!important;width:var(--room-logical-width,100vw)!important;height:var(--room-logical-height,100vh)!important;min-width:0!important;min-height:0!important;margin:0!important;transform:scale(var(--room-scale,1))!important;transform-origin:top left!important}
@media print{
  .app-shell.projector-mode .room-viewport{position:relative!important;inset:auto!important;overflow:hidden!important}
  .app-shell.projector-mode .room-stage{position:absolute!important;left:var(--print-room-left,0px)!important;top:var(--print-room-top,0px)!important;width:var(--print-room-width,1920px)!important;height:var(--print-room-height,1080px)!important;min-width:0!important;min-height:0!important;margin:0!important;transform:scale(var(--print-room-scale,.5))!important;transform-origin:top left!important}
}

/* Furniture update: +15% width and +5% height over the previous dimensions.
   Text stays proportionate, while group labels retain their existing gap. */
.room-item .table-body>.table-label{transform:translateX(-50%) translateY(1.867px) scaleX(.81407723)!important}
.room-item.table-item .table-body>.table-label{bottom:-11.204px!important}
.room-item.desk-item .table-body>.table-label{bottom:-9.337px!important}
.seat-chip-text{display:inline-block;transform:scaleX(.81407723);transform-origin:center}
.table-label-text{display:inline-block;transform:none;transform-origin:center}

/* Larger, heavier type in the Class Tools drawer for easier reading. */
.sidebar .drawer-head{font-size:11px}
.sidebar .side-tabs{height:54px}
.sidebar .side-tab{font-size:10px;font-weight:800}
.sidebar .side-tab span{font-size:13px;font-weight:800}
.sidebar .side-tab>b{font-size:10px}
.sidebar .kicker{font-size:10px;font-weight:800;letter-spacing:1px}
.sidebar .section-title h2{font-size:18px;font-weight:800}
.sidebar .student-count{font-size:12px;font-weight:700}
.sidebar #groupSelect{font-size:13px;font-weight:700}
.sidebar .group-switch-heading .text-button{font-size:11px;font-weight:700}
.sidebar .group-hint{font-size:10px;font-weight:600;line-height:1.45}
.sidebar .delete-group-button{font-size:11px;font-weight:700}
.sidebar .roster-tools button,.sidebar .room-transfer-tools button{font-size:10px;font-weight:700}
.sidebar .roster-list-summary strong{font-size:12px;font-weight:800}
.sidebar .roster-list-summary span{font-size:10px;font-weight:600}
.sidebar #rosterInput,.sidebar .rule-card textarea{font-size:12px;font-weight:600;line-height:1.5}
.sidebar .microcopy{font-size:10px;font-weight:600}
.sidebar .solo-seating-option b{font-size:11px;font-weight:800}
.sidebar .solo-seating-option small{font-size:10px;font-weight:600;line-height:1.45}
.sidebar .last-shuffle{font-size:11px;font-weight:600}
.sidebar .rule-heading b,.sidebar .front-rule b{font-size:12px;font-weight:800}
.sidebar .rule-heading p,.sidebar .front-rule small{font-size:11px;font-weight:600;line-height:1.45}
.sidebar .tag-create-row input,.sidebar .tag-create-row button{font-size:11px;font-weight:700}
.sidebar .tag-field{font-size:10px;font-weight:700}
.sidebar .tag-check{font-size:10px;font-weight:600}

/* First-visit product tour */
.tutorial-dialog{position:fixed;width:min(900px,calc(100vw - 32px));max-width:900px;height:min(540px,calc(100dvh - 32px));max-height:540px;padding:0;border:1px solid #e1e4db;border-radius:14px;background:#fffefa;overflow:hidden;grid-template-columns:1.12fr .88fr;box-shadow:0 30px 100px #14231d44}
.tutorial-dialog[open]{display:grid;animation:tutorial-pop .28s ease-out both}
.tutorial-dialog::backdrop{background:#17221db8;backdrop-filter:blur(3px)}
.tutorial-dialog .dialog-x{z-index:5;right:12px;top:10px;width:32px;height:32px;border-radius:50%;background:#fffefaee;font-size:22px}
.tutorial-visual{position:relative;display:grid;place-items:center;overflow:hidden;padding:40px;background:#f0f3eb;background-image:radial-gradient(#cfd8ca 1px,transparent 1px);background-size:19px 19px}
.tutorial-visual:before,.tutorial-visual:after{position:absolute;content:"";border-radius:50%;background:#e3eadf88;pointer-events:none}
.tutorial-visual:before{width:310px;height:310px;left:-150px;bottom:-150px}.tutorial-visual:after{width:210px;height:210px;right:-115px;top:-95px}
.tutorial-scene{position:absolute;inset:40px;display:grid;place-items:center;opacity:0;transform:translateY(12px) scale(.98);transition:opacity .45s ease,transform .55s cubic-bezier(.2,.75,.2,1);pointer-events:none}
.tutorial-scene.is-active{opacity:1;transform:translateY(0) scale(1)}
.tour-window{position:relative;width:min(100%,420px);min-height:330px;padding:0 20px 15px;border:1px solid #dfe3d9;border-radius:9px;background:#fffefa;box-shadow:0 22px 55px #31452d24;overflow:hidden;animation:tour-float 5s ease-in-out infinite}
.tour-window-bar{height:38px;display:flex;align-items:center;gap:5px;border-bottom:1px solid #eceee7;margin:0 -20px;padding:0 13px;background:#fafbf7}
.tour-window-bar i{width:6px;height:6px;border-radius:50%;background:#c9d3c5}.tour-window-bar i:first-child{background:#d9a18d}.tour-window-bar i:nth-child(2){background:#e5cc8d}.tour-window-bar i:nth-child(3){background:#9eb99d}.tour-window-bar span{margin-left:auto;color:#849184;font-size:8px;font-weight:800;letter-spacing:1px}
.tour-mini-heading{margin:24px 0 13px;color:#34463a;font:800 21px Manrope,sans-serif;letter-spacing:-.8px}.tour-mini-heading em{color:#72907a;font-style:normal}
.tour-mini-room,.tour-result-room{position:relative;height:202px;border:1px solid #e2e7dd;border-radius:6px;background-color:#f1f4ed;background-image:linear-gradient(#dfe5db55 1px,transparent 1px),linear-gradient(90deg,#dfe5db55 1px,transparent 1px);background-size:19px 19px}
.tour-front,.tour-result-front{position:absolute;top:8px;left:50%;transform:translateX(-50%);color:#96a194;font-size:7px;letter-spacing:1px}
.tour-table{position:absolute;top:48px;width:92px;height:85px;border:1px solid #d9c9ac;border-radius:11px;background:#eee3d0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-shadow:0 3px 0 #d6c9b2;animation:tour-seat-pop .65s .25s both}
.tour-table b{position:absolute;bottom:-17px;color:#8c968b;font-size:7px;font-weight:600}.tour-table i,.tour-result-table i{padding:3px 7px;border:1px solid #e7e8df;border-radius:3px;background:#fffefa;color:#56675b;font-size:8px;font-style:normal;font-weight:700}
.tour-table-a{left:9%;top:46px}.tour-table-b{left:calc(50% - 46px);top:88px;background:#e4ece0;border-color:#cbdacb}.tour-table-c{right:9%;top:46px;background:#efe2d9;border-color:#decdc0}
.tour-mini-footer{display:flex;justify-content:space-between;margin-top:13px;color:#8b968b;font-size:8px}.tour-ready{color:#718976}.tour-ready i{display:inline-block;width:6px;height:6px;margin-right:4px;border-radius:50%;background:#85ae8b}
.tour-spark{position:absolute;color:#d6a86d;font-size:22px;animation:tour-sparkle 2.2s ease-in-out infinite}.tour-spark-one{right:7%;top:20%}.tour-spark-two{left:9%;bottom:16%;animation-delay:.9s}
.tour-mini-switch{position:relative;margin-top:23px;padding:12px;border:1px solid #e7e9e2;border-radius:6px;background:#fbfcf8}.tour-mini-switch small,.tour-mini-roster small{display:flex;justify-content:space-between;color:#809080;font-size:8px;font-weight:800;letter-spacing:.8px}.tour-select{margin-top:8px;padding:9px 10px;border:1px solid #b7c9b4;border-radius:4px;background:white;color:#465a4a;font-size:11px;font-weight:700;box-shadow:0 0 0 3px #e5eee2}.tour-select b{float:right;color:#849585}.tour-class-option{position:absolute;z-index:1;left:12px;right:12px;top:69px;padding:9px 10px;border:1px solid #e0e5da;border-radius:4px;background:white;color:#536455;font-size:10px;box-shadow:0 10px 20px #2639261c;animation:tour-option 4.8s 1s infinite}.tour-class-option span{float:right;color:#9ba59a;font-size:8px}
.tour-mini-roster{margin-top:15px;padding:12px;border:1px solid #e7e9e2;border-radius:6px}.tour-mini-roster small b{color:#778c79}.tour-name-list{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}.tour-name-list span{padding:7px;border-radius:4px;background:#f2f4ee;color:#58685b;font-size:9px}.tour-name-list span:last-child{border:1px dashed #b6c4b2;background:white;color:#6c8c71;text-align:center}.tour-file-actions{display:flex;gap:7px;margin-top:10px}.tour-file-actions i{padding:6px 8px;border:1px solid #e6e8e1;border-radius:4px;color:#6c796e;font-size:8px;font-style:normal}
.tour-swap-arrow{position:absolute;right:11%;top:104px;color:#769477;font-size:25px;animation:tour-swap 3.8s ease-in-out infinite}
.tour-rules-title{display:flex;align-items:center;justify-content:space-between;margin:20px 0 10px;color:#405344;font:800 17px Manrope,sans-serif}.tour-rules-title span{padding:4px 7px;border-radius:4px;background:#edf2e9;color:#718a73;font-size:9px}
.tour-rule-card{position:relative;margin:7px 0;padding:10px 11px;border:1px solid #e8e8e0;border-radius:5px;background:#fffefa;animation:tour-seat-pop .55s both}.tour-rule-card:nth-of-type(3){animation-delay:.15s}.tour-rule-card:nth-of-type(4){animation-delay:.3s}.tour-rule-card b{display:block;color:#4e5d54;font-size:10px}.tour-rule-card p{margin:3px 0 8px;color:#929b92;font-size:8px}.tour-rule-names{display:flex;align-items:center;gap:7px;color:#829182;font-size:9px}.tour-rule-names i{padding:4px 8px;border:1px solid #e4e8df;border-radius:3px;background:#f7f9f4;color:#536755;font-size:8px;font-style:normal;font-weight:700}.tour-rule-card.together{background:#f9fbf6}.tour-front-rule{display:flex;align-items:center;gap:8px;padding:8px 10px}.tour-front-rule b{display:inline}.tour-front-rule small{margin-left:auto;color:#96a095;font-size:7px}.tour-check{width:14px;height:14px;display:grid;place-items:center;border-radius:3px;background:#708c73;color:white;font-size:9px}.tour-tag-rule{display:flex;align-items:center;gap:8px;padding:8px 10px}.tour-tag{padding:4px 7px;border-radius:10px;background:#e9efe5;color:#658069;font-size:8px;font-weight:700}.tour-tag-rule small{color:#929b92;font-size:8px}
.tour-result-top{display:flex;justify-content:space-between;margin:17px 0 8px;color:#879285;font-size:8px;font-weight:800;letter-spacing:.7px}.tour-result-top b{font-weight:700;letter-spacing:0}.tour-result-room{height:175px;overflow:hidden}.tour-result-table{position:absolute;width:74px;height:51px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border:1px solid #d4c5aa;border-radius:8px;background:#eee3d0;animation:tour-result-seat 5s ease-in-out infinite}.tour-result-table.one{left:12%;top:27px}.tour-result-table.two{left:58%;top:25px;background:#e4ece0;border-color:#cbdacb;animation-delay:.3s}.tour-result-table.three{left:34%;top:100px;background:#efe2d9;border-color:#decdc0;animation-delay:.7s}.tour-result-table.four{right:4%;top:103px;background:#e4ece0;border-color:#cbdacb;animation-delay:1s}.tour-result-table i{padding:2px 4px;font-size:7px}.tour-result-front{top:auto;bottom:5px;font-size:6px}.tour-shuffle-button{position:absolute;right:19px;bottom:58px;padding:8px 11px;border-radius:4px;background:#708c73;color:#fff;font-size:8px;font-weight:700;box-shadow:0 4px 10px #55785b33;animation:tour-button-pulse 2s ease-in-out infinite}.tour-result-note{margin-top:17px;color:#829083;font-size:8px}.tour-result-note span{color:#739579;font-weight:900}
.tutorial-copy{display:flex;flex-direction:column;justify-content:center;padding:48px 42px 34px 38px;background:#fffefa}.tutorial-eyebrow{display:flex;align-items:center;gap:8px;color:#839184;font-size:9px;font-weight:800;letter-spacing:1px}.tutorial-mark{width:22px;height:22px;display:grid;place-items:center;border-radius:6px;background:#718e75;color:#fff;font:800 13px Manrope,sans-serif;letter-spacing:0}.tutorial-step-count{margin-left:auto;color:#9aa298;font-size:10px;letter-spacing:0}.tutorial-copy h2{margin:28px 0 12px;color:#34463a;font:800 clamp(22px,3vw,31px)/1.2 Manrope,sans-serif;letter-spacing:-1px}.tutorial-copy>p{min-height:65px;margin:0;color:#748076;font-size:13px;line-height:1.7}.tutorial-progress{display:flex;gap:7px;margin-top:26px}.tutorial-progress button{width:24px;height:4px;padding:0;border:0;border-radius:4px;background:#e4e7df;cursor:pointer;transition:width .3s,background .3s}.tutorial-progress button.is-active{width:45px;background:#718e75}.tutorial-actions{display:flex;align-items:center;justify-content:flex-end;margin-top:28px}.tutorial-actions>div{display:flex;gap:8px}.tutorial-back,.tutorial-next{height:38px;padding:0 12px;border:1px solid #e1e5dc;border-radius:5px;background:#fffefa;color:#647367;font:700 11px "DM Sans",sans-serif;cursor:pointer}.tutorial-back:disabled{opacity:.45;cursor:default}.tutorial-next{min-width:86px;border-color:#718e75;background:#718e75;color:white}.tutorial-next:hover{background:#5f7d63}
@keyframes tutorial-pop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@keyframes tour-float{0%,100%{translate:0 0}50%{translate:0 -5px}}
@keyframes tour-seat-pop{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
@keyframes tour-sparkle{0%,100%{opacity:.45;transform:rotate(0) scale(.8)}50%{opacity:1;transform:rotate(22deg) scale(1.14)}}
@keyframes tour-option{0%,20%,100%{opacity:0;transform:translateY(-5px)}28%,83%{opacity:1;transform:translateY(0)}}
@keyframes tour-swap{0%,15%,100%{opacity:.25;transform:translateY(-5px)}45%,70%{opacity:1;transform:translateY(5px)}}
@keyframes tour-result-seat{0%,100%{translate:0 0}50%{translate:4px -3px}}
@keyframes tour-button-pulse{0%,100%{box-shadow:0 4px 10px #55785b33}50%{box-shadow:0 4px 0 5px #718e7520}}
@media(max-width:720px){.tutorial-dialog{height:min(720px,calc(100dvh - 22px));max-height:none;grid-template-columns:1fr;grid-template-rows:minmax(245px,38%) 1fr;overflow-y:auto}.tutorial-visual{min-height:245px;padding:18px}.tutorial-scene{inset:18px}.tour-window{width:min(100%,340px);min-height:250px;padding:0 14px 10px}.tour-window-bar{height:30px;margin:0 -14px;padding:0 10px}.tour-mini-heading{margin:12px 0 8px;font-size:16px}.tour-mini-room{height:139px;background-size:15px 15px}.tour-table{width:67px;height:60px;gap:3px}.tour-table-a{top:34px}.tour-table-b{left:calc(50% - 33px);top:59px}.tour-table-c{top:34px}.tour-table i{padding:2px 4px;font-size:7px}.tour-rules-title{margin:9px 0 6px;font-size:13px}.tour-rule-card{margin:4px 0;padding:7px}.tour-rule-card p{margin:2px 0 4px}.tour-rule-names i{padding:3px 6px}.tour-mini-switch{margin-top:10px;padding:8px}.tour-mini-roster{margin-top:9px;padding:8px}.tour-name-list{gap:4px;margin-top:6px}.tour-name-list span{padding:5px;font-size:8px}.tour-file-actions{margin-top:6px}.tour-result-top{margin:8px 0 5px}.tour-result-room{height:120px}.tour-result-table{width:56px;height:39px}.tour-result-table.three,.tour-result-table.four{top:72px}.tour-shuffle-button{bottom:40px;right:12px;padding:6px 8px}.tour-result-note{margin-top:9px}.tutorial-copy{padding:21px 25px 18px}.tutorial-copy h2{margin:13px 0 6px;font-size:21px}.tutorial-copy>p{min-height:45px;font-size:11px;line-height:1.55}.tutorial-progress{margin-top:15px}.tutorial-actions{margin-top:15px}}
@media(prefers-reduced-motion:reduce){.tutorial-dialog[open],.tutorial-scene,.tour-window,.tour-table,.tour-rule-card,.tour-result-table,.tour-spark,.tour-class-option,.tour-swap-arrow,.tour-shuffle-button{animation:none!important;transition:none!important}.tutorial-scene:not(.is-active){display:none}}
.tutorial-launch{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:28px;padding:0 9px;border:1px solid #d7e1d4;border-radius:5px;background:#f7faf5;color:#5f7d63;font:700 10px "DM Sans",sans-serif;white-space:nowrap;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.tutorial-launch:hover{background:#eaf1e7;border-color:#a9bea5;transform:translateY(-1px)}
.app-shell.projector-mode .chart-actions .tutorial-launch{height:34px;padding:0 10px;border-color:#d7e1d4;background:#f7faf5;color:#55775a;font-size:11px}
.app-shell.projector-mode .chart-actions .tutorial-launch:hover{background:#eaf1e7}
.tour-drag-title{display:flex;align-items:center;justify-content:space-between;margin:20px 0 12px;color:#405344;font:800 16px Manrope,sans-serif}
.tour-drag-title>span{padding:5px 7px;border-radius:4px;background:#edf2e9;color:#718a73;font:800 8px "DM Sans",sans-serif;letter-spacing:.8px}
.tour-drag-room{position:relative;height:208px;overflow:hidden;border:1px solid #e2e7dd;border-radius:6px;background-color:#f1f4ed;background-image:linear-gradient(#dfe5db55 1px,transparent 1px),linear-gradient(90deg,#dfe5db55 1px,transparent 1px);background-size:19px 19px}
.tour-drag-front{position:absolute;top:8px;left:50%;transform:translateX(-50%);color:#96a194;font-size:7px;letter-spacing:1px}
.tour-drag-table{position:absolute;top:57px;width:92px;height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #d4c5aa;border-radius:11px;background:#eee3d0;box-shadow:0 3px 0 #d6c9b2}
.tour-drag-table.from{left:7%}.tour-drag-table.to{right:7%;top:87px;background:#e4ece0;border-color:#cbdacb}
.tour-drag-table>b{position:absolute;bottom:-19px;color:#8c968b;font-size:8px;font-weight:600}
.tour-drag-table>i{padding:4px 9px;border:1px solid #e7e8df;border-radius:3px;background:#fffefa;color:#56675b;font-size:8px;font-style:normal;font-weight:700}
.tour-drag-table>.tour-empty-seat{border:1px dashed #9bb49b;background:#f7fbf5;color:#718d73}
.tour-drag-path{position:absolute;left:13%;top:43px;width:74%;height:100px;overflow:visible}
.tour-moving-name{position:absolute;left:26%;top:67%;z-index:2;padding:5px 9px;border:1px solid #cbdacb;border-radius:4px;background:#fffefa;color:#536b55;font-size:9px;font-weight:800;box-shadow:0 5px 12px #31452d24;animation:tour-drag-name 4.4s cubic-bezier(.55,.05,.35,1) infinite}
.tour-moving-name>b{position:absolute;right:-13px;bottom:-11px;color:#607c62;font-size:16px}
.tour-drag-hint{margin-top:12px;color:#819082;font-size:8px;font-weight:700;letter-spacing:.5px;text-align:center;text-transform:uppercase}
.tour-together-pill{display:flex;align-items:center;gap:7px;margin-top:12px;padding:8px 10px;border:1px solid #e3e9df;border-radius:5px;background:#f8faf6;color:#68786a;font-size:9px;font-weight:700}
.tour-together-pill>span{width:15px;height:15px;display:grid;place-items:center;border-radius:50%;background:#739176;color:white;font-size:9px}
.tour-together-pill>i{margin-left:auto;color:#536b55;font-size:9px;font-style:normal}
@keyframes tour-drag-name{0%,8%{left:26%;top:67%;transform:scale(1)}18%{transform:scale(1.08)}55%,74%{left:68%;top:73%;transform:scale(1.08)}92%,100%{left:26%;top:67%;transform:scale(1)}}
@media(max-width:720px){.tour-drag-title{margin:10px 0 6px;font-size:13px}.tour-drag-room{height:123px;background-size:15px 15px}.tour-drag-front{top:5px;font-size:6px}.tour-drag-table{top:34px;width:66px;height:55px;gap:3px}.tour-drag-table.from{left:5%}.tour-drag-table.to{right:5%;top:51px}.tour-drag-table>b{bottom:-15px;font-size:7px}.tour-drag-table>i{padding:2px 5px;font-size:7px}.tour-drag-path{top:25px;height:72px}.tour-moving-name{padding:3px 6px;font-size:7px}.tour-moving-name>b{font-size:12px}.tour-drag-hint{margin-top:7px;font-size:7px}.tour-together-pill{gap:5px;margin-top:7px;padding:6px 8px;font-size:8px}.tour-together-pill>i{font-size:8px}}
@media(prefers-reduced-motion:reduce){.tour-moving-name{animation:none!important;left:68%;top:73%}}

/* Tutorial scene 1: show that classroom furniture can be rearranged. */
.tutorial-scene[data-tour-scene="0"] .tour-table{animation:tour-furniture-arrange 6.4s ease-in-out infinite;will-change:transform}
.tutorial-scene[data-tour-scene="0"] .tour-table-b{animation-name:tour-furniture-arrange-b;animation-delay:.15s}
.tutorial-scene[data-tour-scene="0"] .tour-table-c{animation-name:tour-furniture-arrange-c;animation-delay:.3s}
.tour-layout-hint{position:absolute;left:50%;bottom:7px;z-index:1;display:flex;align-items:center;gap:5px;transform:translateX(-50%);padding:4px 8px;border:1px solid #e1e8dc;border-radius:12px;background:#fffefaed;color:#687b6a;font-size:7px;font-weight:800;white-space:nowrap;box-shadow:0 2px 7px #26392614}
.tour-layout-hint b{display:inline-block;color:#668567;font-size:12px;animation:tour-layout-grab 1.6s ease-in-out infinite}
@keyframes tour-furniture-arrange{0%,8%,100%{transform:translate(0,0) rotate(0)}22%,43%{transform:translate(34px,23px) rotate(2deg)}58%,78%{transform:translate(12px,8px) rotate(-1deg)}}
@keyframes tour-furniture-arrange-b{0%,17%,100%{transform:translate(0,0) rotate(0)}33%,54%{transform:translate(-29px,-17px) rotate(-2deg)}68%,88%{transform:translate(-8px,-5px) rotate(1deg)}}
@keyframes tour-furniture-arrange-c{0%,34%,100%{transform:translate(0,0) rotate(0)}50%,72%{transform:translate(-27px,22px) rotate(-2deg)}84%,96%{transform:translate(-9px,7px) rotate(1deg)}}
@keyframes tour-layout-grab{0%,100%{transform:translate(0,0) rotate(0)}35%{transform:translate(5px,-3px) rotate(-10deg)}65%{transform:translate(9px,1px) rotate(-4deg)}}
@media(max-width:720px){.tour-layout-hint{bottom:5px;padding:3px 6px;font-size:6px}}
/* Larger tutorial panel, illustrations, and readable copy. */
.tutorial-dialog{width:min(1080px,calc(100vw - 32px));max-width:1080px;height:min(700px,calc(100dvh - 32px));max-height:700px;grid-template-columns:1.08fr .92fr}
.tutorial-dialog .dialog-x{right:16px;top:14px;width:38px;height:38px;font-size:26px}
.tutorial-visual{padding:34px}
.tutorial-scene{inset:32px}
.tour-window{width:min(100%,500px);min-height:395px;padding:0 24px 18px;border-radius:12px}
.tour-window-bar{height:44px;margin:0 -24px;padding:0 16px;gap:7px}
.tour-window-bar i{width:8px;height:8px}
.tour-window-bar span{font-size:9px}
.tour-mini-heading{margin:27px 0 16px;font-size:26px}
.tour-mini-room{height:230px;background-size:22px 22px}
.tour-front{top:10px;font-size:9px}
.tour-table{width:108px;height:96px;gap:5px}
.tour-table-a{left:9%;top:51px}.tour-table-b{left:calc(50% - 54px);top:101px}.tour-table-c{right:9%;top:51px}
.tour-table b{bottom:-20px;font-size:9px}
.tour-table i{padding:4px 9px;font-size:10px}
.tour-mini-footer{margin-top:16px;font-size:10px}
.tour-ready i{width:8px;height:8px}
.tour-spark{font-size:27px}
.tour-mini-switch{margin-top:26px;padding:15px}
.tour-mini-switch small,.tour-mini-roster small{font-size:10px}
.tour-select{margin-top:10px;padding:11px 12px;font-size:13px}
.tour-class-option{top:80px;padding:11px 12px;font-size:12px}
.tour-class-option span{font-size:10px}
.tour-mini-roster{margin-top:18px;padding:15px}
.tour-name-list{gap:8px;margin-top:12px}
.tour-name-list span{padding:9px;font-size:11px}
.tour-file-actions{gap:9px;margin-top:12px}
.tour-file-actions i{padding:8px 10px;font-size:10px}
.tour-rules-title{margin:24px 0 13px;font-size:20px}
.tour-rules-title span{font-size:11px}
.tour-rule-card{margin:9px 0;padding:12px 14px}
.tour-rule-card b{font-size:12px}
.tour-rule-card p{margin:4px 0 9px;font-size:10px}
.tour-rule-names{gap:9px;font-size:11px}
.tour-rule-names i{padding:5px 10px;font-size:10px}
.tour-front-rule{gap:10px;padding:9px 12px}
.tour-front-rule small,.tour-tag-rule small,.tour-tag{font-size:9px}
.tour-check{width:17px;height:17px;font-size:11px}
.tour-result-top{margin:20px 0 10px;font-size:10px}
.tour-result-room{height:205px;background-size:22px 22px}
.tour-result-table{width:88px;height:61px;gap:4px}
.tour-result-table.one{top:32px}.tour-result-table.two{top:30px}.tour-result-table.three{top:120px}.tour-result-table.four{top:123px}
.tour-result-table i{padding:3px 6px;font-size:9px}
.tour-result-front{bottom:6px;font-size:8px}
.tour-shuffle-button{right:22px;bottom:66px;padding:10px 13px;font-size:10px}
.tour-result-note{margin-top:20px;font-size:10px}
.tutorial-copy{padding:60px 50px 46px 46px}
.tutorial-eyebrow{gap:10px;font-size:11px}
.tutorial-mark{width:26px;height:26px;font-size:15px}
.tutorial-step-count{font-size:12px}
.tutorial-copy h2{margin:30px 0 15px;font-size:clamp(28px,3.3vw,38px)}
.tutorial-copy>p{min-height:90px;font-size:16px;line-height:1.65}
.tutorial-progress{gap:9px;margin-top:30px}
.tutorial-progress button{width:30px;height:6px}
.tutorial-progress button.is-active{width:54px}
.tutorial-actions{margin-top:32px}
.tutorial-actions>div{gap:10px}
.tutorial-back,.tutorial-next{height:44px;padding:0 15px;font-size:13px}
.tutorial-next{min-width:100px}
.tour-drag-title{margin:23px 0 14px;font-size:19px}
.tour-drag-title>span{padding:6px 9px;font-size:10px}
.tour-drag-room{height:240px;background-size:22px 22px}
.tour-drag-front{top:10px;font-size:9px}
.tour-drag-table{top:65px;width:108px;height:90px;gap:6px}
.tour-drag-table.to{top:101px}
.tour-drag-table>b{bottom:-21px;font-size:10px}
.tour-drag-table>i{padding:5px 10px;font-size:10px}
.tour-drag-path{top:50px;height:120px}
.tour-moving-name{padding:6px 10px;font-size:11px}
.tour-drag-hint{margin-top:14px;font-size:10px}
.tour-together-pill{gap:9px;margin-top:14px;padding:10px 12px;font-size:11px}
.tour-together-pill>span{width:18px;height:18px;font-size:11px}
.tour-together-pill>i{font-size:11px}
@media(max-width:720px){
  .tutorial-dialog{width:calc(100vw - 22px);height:calc(100dvh - 22px);max-height:none;grid-template-columns:1fr;grid-template-rows:minmax(285px,38%) 1fr}
  .tutorial-dialog .dialog-x{right:9px;top:8px;width:34px;height:34px;font-size:23px}
  .tutorial-visual{min-height:285px;padding:16px}
  .tutorial-scene{inset:14px}
  .tour-window{width:min(100%,390px);min-height:292px;padding:0 17px 12px}
  .tour-window-bar{height:34px;margin:0 -17px;padding:0 11px;gap:5px}
  .tour-window-bar i{width:6px;height:6px}.tour-window-bar span{font-size:8px}
  .tour-mini-heading{margin:14px 0 9px;font-size:19px}
  .tour-mini-room{height:166px;background-size:17px 17px}
  .tour-front{top:6px;font-size:7px}
  .tour-table{width:76px;height:67px;gap:3px}
  .tour-table-a{top:35px}.tour-table-b{left:calc(50% - 38px);top:70px}.tour-table-c{top:35px}
  .tour-table b{bottom:-16px;font-size:7px}.tour-table i{padding:2px 5px;font-size:7px}
  .tour-mini-footer{margin-top:9px;font-size:8px}.tour-ready i{width:6px;height:6px}
  .tour-spark{font-size:20px}
  .tour-mini-switch{margin-top:12px;padding:9px}.tour-mini-switch small,.tour-mini-roster small{font-size:8px}
  .tour-select{margin-top:7px;padding:8px 9px;font-size:10px}
  .tour-class-option{top:61px;padding:8px 9px;font-size:9px}.tour-class-option span{font-size:8px}
  .tour-mini-roster{margin-top:9px;padding:9px}.tour-name-list{gap:5px;margin-top:7px}.tour-name-list span{padding:6px;font-size:8px}
  .tour-file-actions{gap:5px;margin-top:7px}.tour-file-actions i{padding:5px 6px;font-size:8px}
  .tour-rules-title{margin:11px 0 7px;font-size:15px}.tour-rules-title span{font-size:8px}
  .tour-rule-card{margin:5px 0;padding:7px 8px}.tour-rule-card b{font-size:9px}.tour-rule-card p{margin:2px 0 5px;font-size:7px}
  .tour-rule-names{gap:6px;font-size:8px}.tour-rule-names i{padding:3px 6px;font-size:7px}
  .tour-front-rule{gap:6px;padding:6px 8px}.tour-front-rule small,.tour-tag-rule small,.tour-tag{font-size:7px}
  .tour-check{width:13px;height:13px;font-size:8px}
  .tour-result-top{margin:9px 0 5px;font-size:8px}.tour-result-room{height:126px;background-size:16px 16px}
  .tour-result-table{width:59px;height:42px;gap:2px}.tour-result-table.one{top:21px}.tour-result-table.two{top:20px}.tour-result-table.three{top:72px}.tour-result-table.four{top:74px}
  .tour-result-table i{padding:2px 4px;font-size:7px}.tour-result-front{bottom:4px;font-size:6px}
  .tour-shuffle-button{right:12px;bottom:42px;padding:6px 8px;font-size:7px}.tour-result-note{margin-top:10px;font-size:8px}
  .tutorial-copy{padding:27px 30px 22px}
  .tutorial-eyebrow{gap:7px;font-size:9px}.tutorial-mark{width:22px;height:22px;font-size:13px}.tutorial-step-count{font-size:10px}
  .tutorial-copy h2{margin:15px 0 8px;font-size:26px}.tutorial-copy>p{min-height:58px;font-size:14px;line-height:1.55}
  .tutorial-progress{gap:7px;margin-top:17px}.tutorial-progress button{width:25px;height:5px}.tutorial-progress button.is-active{width:44px}
  .tutorial-actions{margin-top:18px}.tutorial-actions>div{gap:8px}.tutorial-back,.tutorial-next{height:40px;padding:0 12px;font-size:12px}.tutorial-next{min-width:90px}
  .tour-drag-title{margin:12px 0 7px;font-size:14px}.tour-drag-title>span{padding:4px 6px;font-size:7px}
  .tour-drag-room{height:145px;background-size:16px 16px}.tour-drag-front{top:5px;font-size:6px}
  .tour-drag-table{top:36px;width:67px;height:57px;gap:3px}.tour-drag-table.to{top:56px}
  .tour-drag-table>b{bottom:-16px;font-size:7px}.tour-drag-table>i{padding:2px 5px;font-size:7px}
  .tour-drag-path{top:27px;height:78px}.tour-moving-name{padding:3px 6px;font-size:7px}
  .tour-drag-hint{margin-top:8px;font-size:7px}.tour-together-pill{gap:5px;margin-top:8px;padding:6px 8px;font-size:8px}
  .tour-together-pill>span{width:14px;height:14px;font-size:8px}.tour-together-pill>i{font-size:8px}
}