/* Text entry must not trigger iOS's small-input focus zoom. Pinch zoom stays enabled. */
@media (any-pointer:coarse),(max-width:900px){
 html:root body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=button]):not([type=submit]):not([type=reset]):not([type=hidden]):not([type=file]){font-size:16px!important;line-height:1.4!important;max-width:100%;box-sizing:border-box}
}
/* Use one scroll owner in a dialog so the keyboard cannot strand its submit button. */
@media (max-width:979px),(max-height:500px) and (pointer:coarse){
 html:root body .modal-backdrop{box-sizing:border-box!important;top:var(--turnli-visible-top,0px)!important;left:var(--turnli-visible-left,0px)!important;right:auto!important;bottom:auto!important;width:var(--turnli-visible-width,100vw)!important;height:var(--turnli-visible-height,100dvh)!important;padding:12px!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important;overflow:auto!important;overscroll-behavior:contain;align-items:center!important}
 html:root body .modal-backdrop :is(.modal-v2,.modal,.modal-card){box-sizing:border-box!important;min-width:0!important;width:min(600px,100%)!important;max-width:100%!important;min-height:0!important;max-height:100%!important;margin:auto!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
 html:root body .modal-backdrop :is(.modal-head-v2,.modal-head){flex:0 0 auto!important;position:relative!important;min-width:0;padding:14px 16px!important;overflow-wrap:anywhere}
 html:root body .modal-backdrop :is(.modal-body-v2,.modal-body){flex:1 1 auto!important;min-height:0!important;min-width:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px!important;scroll-padding-block:16px}
 html:root body .modal-backdrop :is(.two-fields,.form-grid){min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}
 html:root body .modal-backdrop :is(.field,.field>*,form){min-width:0;box-sizing:border-box;max-width:100%}
 html:root body .modal-backdrop :is(.modal-actions,.walkin-success-actions-v145){flex-wrap:wrap;gap:8px}
 html:root body .modal-backdrop :is(.modal-actions,.walkin-success-actions-v145) .btn{white-space:normal;min-height:44px}
 html:root body .drawer-backdrop{top:var(--turnli-visible-top,0px)!important;left:var(--turnli-visible-left,0px)!important;right:auto!important;bottom:auto!important;width:var(--turnli-visible-width,100vw)!important;height:var(--turnli-visible-height,100dvh)!important;overflow:hidden!important}
 html:root body .drawer-backdrop>.drawer{box-sizing:border-box;max-width:100%!important;height:100%!important;max-height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
 html:root body .drawer-head{flex:0 0 auto!important;min-width:0}
 html:root body .drawer-body{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain}
 html:root body.app-body[data-page="live-dashboard"] #qualityFloorWorkspace.quality-floor-workspace{inset:auto!important;top:var(--turnli-visible-top,0px)!important;left:var(--turnli-visible-left,0px)!important;width:var(--turnli-visible-width,100vw)!important;max-width:100vw!important;height:var(--turnli-visible-height,100dvh)!important;max-height:var(--turnli-visible-height,100dvh)!important;min-height:0!important;box-sizing:border-box!important;overflow:hidden!important}
 html:root body.app-body[data-page="live-dashboard"] #qualityFloorWorkspace.quality-floor-workspace[open]{display:flex!important;flex-direction:column!important}
 html:root body #qualityFloorWorkspace .quality-floor-header{flex:0 0 auto!important;min-height:0!important;padding:10px 12px!important;gap:8px!important}
 html:root body #qualityFloorWorkspace :is([data-live-panel="floor"],.floor-tab-card-v80){flex:1 1 0!important;min-width:0!important;min-height:0!important;height:auto!important;overflow:hidden!important}
 html:root body #qualityFloorWorkspace [data-live-panel="floor"]:not([hidden]),html:root body #qualityFloorWorkspace .floor-tab-card-v80{display:flex!important;flex-direction:column!important}
 html:root body #qualityFloorWorkspace .floor-tab-frame-v80{display:block!important;flex:1 1 0!important;min-height:0!important;height:100%!important;width:100%!important}
 html:root.turnli-floor-embedded body[data-page="floor"] #inspector.is-open{max-height:calc(var(--turnli-visible-height,100dvh) - 24px)!important}
 html:root.turnli-floor-embedded body[data-page="floor"] #inspector.is-open .inspector-content{max-height:calc(var(--turnli-visible-height,100dvh) - 36px)!important}
}
/* The iframe gets the remaining workspace height, not a second full screen. */
html:root.turnli-floor-embedded body[data-page="floor"] #appShell{height:var(--turnli-visible-height,100%)!important}
html:root.turnli-floor-embedded body:not(.is-edit-mode) .floor-table .table-name{font-size:calc(14px / var(--floor-fit-scale,1))!important}
html:root.turnli-floor-embedded body:not(.is-edit-mode) .floor-table :is(.table-capacity,.table-status-mini,.table-guest,.table-live-detail){font-size:calc(11px / var(--floor-fit-scale,1))!important}
html:root.turnli-floor-embedded body:not(.is-edit-mode) .floor-table .table-inner{padding:calc(5px / var(--floor-fit-scale,1)) calc(7px / var(--floor-fit-scale,1))!important;gap:calc(3px / var(--floor-fit-scale,1))!important}
.seat-selection-help{display:block;font-size:12px;line-height:1.4;color:#756c80;margin-top:3px;overflow-wrap:anywhere}
.walkin-combine-choice{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;cursor:pointer}
.walkin-combine-choice input{width:18px;height:18px;flex:0 0 auto}
.floor-reset-actions{display:none}
html.turnli-floor-embedded .floor-bar-counter-v0422,html.turnli-floor-embedded .floor-bar-counter-v0422 *{pointer-events:none!important}
@media(max-width:979px){
 html:root.turnli-floor-embedded body[data-page="floor"] .floor-workspace>#inspector.is-open{display:block!important;position:fixed!important;inset:auto 8px max(8px,env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:min(620px,calc(var(--turnli-visible-height,100dvh) - 16px))!important;transform:none!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;z-index:200!important;border-radius:16px!important;overflow:hidden!important;animation:none!important}
 html:root.turnli-floor-embedded body[data-page="floor"] .floor-workspace>#inspector.is-open .inspector-content{height:auto!important;max-height:min(604px,calc(var(--turnli-visible-height,100dvh) - 32px))!important;overflow-y:auto!important;overscroll-behavior:contain}
 html:root.turnli-floor-embedded #inspector :is(.inspector-close,.action-grid .btn){min-height:44px!important}
 html:root.turnli-floor-embedded #inspector .inspector-close{min-width:44px!important}
 html:root.turnli-floor-embedded body[data-page="floor"] .floor-reset-actions:not([hidden]){display:block!important;flex:0 0 auto!important;padding:12px!important;border-bottom:1px solid #e6e1ec;background:#fffdf8}
 .floor-reset-actions>header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;margin-bottom:8px}
 .floor-reset-actions>header strong{font-size:14px;color:#3a3048}
 .floor-reset-actions>header span{font-size:12px;color:#756c80}
 .floor-reset-cards{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 1px 6px}
 .floor-reset-cards article{box-sizing:border-box;flex:0 0 min(330px,100%);scroll-snap-align:start;padding:12px;border:1px solid #e8ddc3;border-radius:12px;background:#fff;min-width:0}
 .floor-reset-cards article>div:first-child{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;margin-bottom:10px}
 .floor-reset-cards article strong{font-size:14px;overflow-wrap:anywhere;color:#3a3048}
 .floor-reset-cards article span{font-size:12px;color:#756c80}
 html:root.turnli-floor-embedded .floor-reset-buttons{display:flex;flex-wrap:wrap;gap:6px}
 html:root.turnli-floor-embedded .floor-reset-buttons .btn{min-height:44px!important;flex:1 1 auto;white-space:normal!important;font-size:13px!important;padding:8px 10px!important}
}
#seatCombineBtn[aria-pressed="true"]{background:#f2eaff!important;border-color:#9d80db!important;color:#6d28d9!important}
@media(max-width:760px){
 html:root.turnli-floor-embedded body[data-page="floor"] .main-shell{overflow-y:auto!important;padding:8px!important;gap:6px!important}
 html:root.turnli-floor-embedded body[data-page="floor"] .floor-workspace{flex:1 1 0!important;height:auto!important;min-height:0!important;overflow:visible!important}
 html:root.turnli-floor-embedded body[data-page="floor"] .floor-workspace>.canvas-panel{flex:1 1 0!important;height:100%!important;min-height:0!important;overflow-y:auto!important}
 html:root.turnli-floor-embedded body[data-page="floor"] #floorMapSurface:not([hidden]){flex:1 0 200px!important;height:auto!important;min-height:200px!important}
 html:root.turnli-floor-embedded body[data-page="floor"] #floorGridSurface:not([hidden]){flex:1 0 200px!important;min-height:200px!important}
 html:root.turnli-floor-embedded body[data-page="floor"] .floor-scroll{height:auto!important;min-height:0!important;touch-action:pan-x pan-y pinch-zoom!important}
 html:root.turnli-floor-embedded body[data-page="floor"][data-mobile-view="queue"] .floor-workspace>.queue-panel{min-height:0!important;flex:1 1 0!important}
 html:root.turnli-floor-embedded body[data-page="floor"] :is(.canvas-toolbar,.floor-commandbar-v0167,.seat-context,.suggestion-row,.floor-team-strip,.mobile-tabs){flex-shrink:0!important}
 html:root.turnli-floor-embedded body[data-page="floor"] .seat-context{padding:10px 12px!important;gap:8px!important;min-width:0!important;flex-wrap:wrap!important}
 html:root.turnli-floor-embedded .seat-context>div{min-width:0;max-width:100%}
 html:root.turnli-floor-embedded .seat-context-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;width:100%!important}
 html:root.turnli-floor-embedded .seat-context-actions .btn{min-height:44px!important;padding:8px 10px!important;white-space:normal!important;flex:1 1 auto}
 html:root.turnli-floor-embedded .seat-context-actions .floor-seat-server{flex:1 0 100%;display:flex;align-items:center;justify-content:space-between;gap:8px}
 html:root.turnli-floor-embedded .seat-context-actions .floor-seat-server select{min-height:40px!important;max-width:65%!important}
 html:root.turnli-floor-embedded body.floor-seating-active :is(.floor-commandbar-v0167,.floor-team-strip,.canvas-toolbar){display:none!important}
 html:root.turnli-floor-embedded body[data-page="floor"] .suggestion-row:not([hidden]){display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;padding:8px 12px!important;gap:8px!important}
 html:root.turnli-floor-embedded .suggestion-chip{flex:0 0 215px!important;min-width:0!important;max-width:85vw!important;min-height:44px;white-space:normal!important}
 html:root.turnli-floor-embedded .suggestion-chip em{white-space:normal!important;overflow-wrap:anywhere}
 html:root body #qualityFloorWorkspace .quality-floor-header>div:first-child{flex:1 1 120px!important}
 html:root body #qualityFloorWorkspace .floor-tab-actions-v80{order:3;flex:1 0 100%;overflow-x:auto;flex-wrap:nowrap!important}
 html:root body #qualityFloorWorkspace .floor-tab-actions-v80 .btn{flex:0 0 auto;min-height:44px!important}
 html:root body #qualityFloorWorkspace #qualityFloorClose{max-width:50%;white-space:normal}
}
@media(max-width:420px){html:root body .modal-backdrop :is(.two-fields,.form-grid){grid-template-columns:minmax(0,1fr)}}
@media(max-height:500px) and (min-width:761px){
 html:root.turnli-floor-embedded body[data-page="floor"] .main-shell{overflow-y:auto!important}
 html:root.turnli-floor-embedded body[data-page="floor"] .floor-workspace{flex:1 0 260px!important;min-height:260px!important}
}
