.tabletop-designer{display:grid;gap:18px}.tabletop-designer fieldset{margin:0;padding:0;border:0;min-width:0}.tabletop-designer legend{font-size:16px;font-weight:800;margin-bottom:12px}.tabletop-designer label{display:grid;gap:8px;font-weight:750;min-width:0}.tabletop-designer input:not([type=radio]):not([type=color]),.tabletop-designer textarea,.tabletop-designer select{width:100%;min-height:50px;padding:12px 14px;border:2px solid #dce7e7;border-radius:14px;background:#fff;font:inherit;color:var(--ink,#294866)}.tabletop-designer textarea{resize:vertical;line-height:1.55}.tabletop-designer small{font-size:12px;font-weight:500;color:#546879;line-height:1.5}.tabletop-preset-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.tabletop-preset{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:126px;padding:10px 6px;border:3px solid transparent;border-radius:20px;background:#e5f4ff;box-shadow:0 5px 0 #bfd6e3;cursor:pointer;transition:transform .15s,box-shadow .15s;color:#294866}.tabletop-preset img{width:76px;height:76px;object-fit:contain;pointer-events:none}.tabletop-preset strong{font-size:13px;line-height:1.4}.tabletop-preset--math{background:#e8dbff}.tabletop-preset--sort{background:#d9f3b9}.tabletop-preset--story{background:#ffdbe3}.tabletop-preset--english{background:#ffe3ac}.tabletop-preset[aria-pressed=true]{border-color:#335372;box-shadow:0 5px 0 #335372}.tabletop-preset:active{transform:translateY(4px);box-shadow:0 1px 0 #335372}.tabletop-preset:focus-visible,.tabletop-tool-button:focus-visible,.tabletop-designer input:focus-visible,.tabletop-designer select:focus-visible,.tabletop-designer textarea:focus-visible{outline:3px solid #4973dc;outline-offset:4px}.tabletop-form-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(100px,1fr);gap:16px}.tabletop-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tabletop-mode-options>label{display:flex;align-items:center;gap:12px;border:2px solid #dce7e7;border-radius:16px;padding:14px;cursor:pointer;min-height:72px;background:#fafcff}.tabletop-mode-options>label:has(input:checked){border-color:#527c55;background:#eaf7dc}.tabletop-mode-options input{width:20px;height:20px;accent-color:#497547}.tabletop-mode-options span{display:grid;gap:5px}.tabletop-custom{padding:14px 16px;border:2px solid #e1e8ee;border-radius:16px}.tabletop-custom summary,.tabletop-more-tools summary{font-weight:750;cursor:pointer;min-height:28px}.tabletop-custom[open]>summary{margin-bottom:16px}.tabletop-custom .tabletop-form-columns{grid-template-columns:1fr 1fr}.tabletop-color-label{display:flex!important;align-items:center;gap:14px!important;margin-top:12px}.tabletop-color-label input[type=color]{width:64px;height:42px;border:0;padding:0;background:none;border-radius:10px;cursor:pointer}.tabletop-form-error{color:#a53939;font-size:14px;margin:0;min-height:0}.tabletop-form-error:empty{display:none}.tabletop-submit{width:100%;min-height:58px;font-size:17px;font-weight:800}.tabletop-reset-actions{display:flex;gap:12px;justify-content:flex-end}.tabletop-tools{display:grid;gap:15px;margin:0 0 18px;padding:18px;border:2px solid #d3e6df;border-radius:22px;background:#f3faeb;box-shadow:0 5px 0 #d4e2d0}.tabletop-tools-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.tabletop-tools-heading>div{display:grid;gap:7px}.tabletop-tools-heading strong{line-height:1.5;font-size:16px}.tabletop-tools-heading small{font-size:12px;line-height:1.5;color:#536c64}.tabletop-tools-heading>button{white-space:nowrap;min-height:48px}.tabletop-tool-rack{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.tabletop-piece-select{display:grid;gap:6px;font-size:12px;font-weight:700;max-width:250px;min-width:180px}.tabletop-piece-select select{width:100%;min-height:48px;padding:10px;border:2px solid #c9ded5;border-radius:12px;font:inherit;font-size:14px;color:#294866;background:#fff}.tabletop-tool-button{min-height:48px;padding:10px 14px;background:#fff;border:2px solid #c9ded5;border-radius:13px;font-size:14px;font-weight:750;color:#294866;box-shadow:0 3px 0 #b9cfc5;cursor:pointer;transition:transform .12s,box-shadow .12s}.tabletop-tool-button:active:not(:disabled){transform:translateY(3px);box-shadow:0 0 0 #b9cfc5}.tabletop-tool-button:disabled{opacity:.38;cursor:default;box-shadow:none}.tabletop-move{min-width:50px;font-size:22px;line-height:1}.tabletop-more-tools[open] summary{margin-bottom:12px}body[data-role=student] .tabletop-tools{background:#e4f8d3;border-color:#82b955;box-shadow:0 5px 0 #6d914f}body[data-role=student] .tabletop-tool-button{background:#fff2ac;border-color:#dcbd57;box-shadow:0 4px 0 #b19139}body[data-role=student] .tabletop-tools-heading strong{font-size:17px}@media(max-width:760px){.tabletop-preset-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tabletop-preset{min-height:116px}.tabletop-preset img{width:66px;height:66px}.tabletop-tools-heading{align-items:flex-start}.tabletop-tools{padding:14px}.tabletop-tools-heading>button{font-size:13px}.tabletop-tool-rack{gap:8px}.tabletop-tool-button{flex:1 0 auto}.tabletop-piece-select{width:100%;max-width:none}.tabletop-more-tools .tabletop-move{flex:0 0 48px}}@media(max-width:420px){.tabletop-form-columns,.tabletop-custom .tabletop-form-columns{grid-template-columns:1fr}.tabletop-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tabletop-preset:last-child{grid-column:1/-1;flex-direction:row;min-height:70px}.tabletop-preset:last-child img{width:54px;height:54px}.tabletop-mode-options{gap:8px}.tabletop-mode-options>label{padding:10px;gap:8px}.tabletop-tools-heading{flex-direction:column}.tabletop-tools-heading>button{align-self:flex-end}}@media(prefers-reduced-motion:reduce){.tabletop-preset,.tabletop-tool-button{transition:none}}
.classroom-table-stage{min-width:0;display:flex;flex-direction:column;gap:12px}.classroom-table-stage>.classroom-board-frame{display:block;flex:none;width:100%;height:60vh!important;min-height:360px;border:2px solid #d8e3ea!important;border-radius:20px!important;background:#f7fafc;box-shadow:0 5px 0 #cfdae3}.classroom-table-stage>.board-seating:empty{display:none}.classroom-table-stage>.board-seating{padding:8px 4px}.classroom-table-stage>.board-seating>h3{margin:8px 0 12px}.classroom-table-stage>.board-seating>label{display:inline-flex;gap:8px;align-items:center;margin:4px 12px 4px 0}.classroom-table-stage>.board-seating select{min-height:44px;max-width:150px;padding:7px;border:1px solid #d4dde6;border-radius:10px;background:#fff}.classroom-table-stage .tabletop-tools{margin:0;padding:12px 14px;gap:8px;border-color:#d2dee7;border-radius:18px;background:#f5f9fc;box-shadow:0 3px 0 #d0dce6}.classroom-table-stage .tabletop-tools-heading{gap:10px}.classroom-table-stage .tabletop-tools-heading>div{gap:2px;min-width:0}.classroom-table-stage .tabletop-tools-heading strong{font-size:14px;line-height:1.45}.classroom-table-stage .tabletop-tools-heading small{color:#627887;font-size:11px;display:none}.classroom-table-stage .tabletop-tools:has(.tabletop-more-tools[open]) .tabletop-tools-heading small{display:block}.classroom-table-stage .tabletop-tool-rack{align-items:center;gap:8px}.classroom-table-stage .tabletop-piece-select{display:flex;align-items:center;gap:9px;min-width:210px;max-width:330px;flex:0 1 330px}.classroom-table-stage .tabletop-piece-select>span{flex:none;white-space:nowrap;color:#567087}.classroom-table-stage .tabletop-piece-select select{min-width:0;min-height:46px;border-color:#cbdbe6;background:#fff}.classroom-table-stage .tabletop-tool-button{min-height:46px;padding:8px 12px;background:#fff;border-color:#ccdbe6;box-shadow:0 3px 0 #bdcbd6;font-size:13px;flex:none}.classroom-table-stage .tabletop-tool-button:disabled{display:none}.classroom-table-stage .tabletop-tool-rack>[data-table-action=rotate],.classroom-table-stage .tabletop-tool-rack>[data-table-action=discard]{display:none}.classroom-table-stage .tabletop-tools:has(.tabletop-more-tools[open]) .tabletop-tool-rack>[data-table-action=rotate]:not(:disabled),.classroom-table-stage .tabletop-tools:has(.tabletop-more-tools[open]) .tabletop-tool-rack>[data-table-action=discard]:not(:disabled){display:inline-block}.classroom-table-stage .tabletop-more-tools>summary{min-height:44px;display:flex;align-items:center;gap:8px;font-size:12px;color:#4c687e}.classroom-table-stage .tabletop-more-tools>summary::before{content:'▸';font-size:16px}.classroom-table-stage .tabletop-more-tools[open]>summary::before{content:'▾'}.classroom-table-stage .tabletop-more-tools[open]>summary{margin-bottom:7px}.classroom-table-stage .tabletop-more-tools .tabletop-tool-rack{padding-top:3px;border-top:1px solid #dbe5ec}.classroom-table-stage .tabletop-move{min-width:46px;font-size:20px}body[data-role=student] .classroom-table-stage>.classroom-board-frame{height:calc(100dvh - 230px)!important;min-height:330px}body[data-role=student] .classroom-table-stage .tabletop-tools{background:#f2f8fe;border-color:#b7d0e5;box-shadow:0 3px 0 #a3bad0}body[data-role=student] .classroom-table-stage .tabletop-tools-heading strong{font-size:14px}body[data-role=student] .classroom-table-stage .tabletop-tool-button{background:#fff;border-color:#bdd1e2;box-shadow:0 3px 0 #a0b6c9}body[data-role=student] .classroom-table-stage .tabletop-tool-button[data-table-action=roll],body[data-role=student] .classroom-table-stage .tabletop-tool-button[data-table-deck=draw]{background:#bcebf2;border-color:#80b8c6;box-shadow:0 3px 0 #5e96a7}@media(max-width:760px){.classroom-table-stage .tabletop-piece-select{width:auto;max-width:280px;min-width:190px;flex:1 1 200px}.classroom-table-stage .tabletop-tool-button{flex:0 1 auto}.classroom-table-stage .tabletop-tools-heading{flex-direction:row}.classroom-table-stage .tabletop-tools-heading>button{min-height:44px;padding:8px 12px;font-size:12px}}@media(max-width:420px){.classroom-table-stage .tabletop-tools{padding:11px}.classroom-table-stage .tabletop-piece-select{width:100%;max-width:none;flex:1 1 100%}.classroom-table-stage .tabletop-tool-rack{gap:7px}.classroom-table-stage .tabletop-tool-button{flex:1 1 auto}.classroom-table-stage .tabletop-more-tools .tabletop-tool-button{flex:0 1 auto}.classroom-table-stage .tabletop-tools-heading{align-items:center}.classroom-table-stage .tabletop-tools-heading>button{align-self:center}.classroom-table-stage .tabletop-more-tools .tabletop-move{flex:0 0 46px}}
.tabletop-mode-help{margin:11px 0 0;font-size:12px;line-height:1.6;color:#526b7d}
