/* Stable furniture hit areas; generated artwork is styled below. */
body[data-theme] .room button.table-node{container-type:size;container-name:service-table;width:132px;max-width:none;height:112px;max-height:none;min-height:0;background:transparent;border:0;border-radius:4px;padding:0;box-shadow:none;transform:none;overflow:visible}
body[data-theme] .room button.table-node:hover{transform:none}
body[data-theme] .room button.table-node .table-surface{inset:12px 8px 10px;width:auto;max-width:none;height:auto;margin:0;border:2px solid var(--ui-line,var(--line));border-radius:4px;background:var(--ui-panel,var(--card));box-shadow:none;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px;gap:4px}
body[data-theme] .room button.table-node .table-surface strong{font-family:inherit;font-size:22px;font-weight:700;line-height:1.1;color:var(--ui-ink,var(--ink));letter-spacing:0}
body[data-theme] .room button.table-node .table-surface small{font-size:14px;line-height:1.2;color:var(--ui-ink,var(--ink))}
body[data-theme] .room button.table-node .table-caption{position:static;width:100%;max-width:none;transform:none;border:0;border-radius:0;padding:0;margin:0;background:transparent;box-shadow:none;font-size:14px;line-height:1.15;text-align:center;white-space:normal;overflow-wrap:anywhere;color:var(--ui-ink,var(--ink))}
/* A small overview keeps identity legible instead of stacking three labels. */
@container service-table (max-height:120px){body[data-theme] .room button.table-node .table-surface{inset:8px 5px;padding:2px}body[data-theme] .room button.table-node .table-surface small,body[data-theme] .room button.table-node .table-caption{display:none}body[data-theme] .room button.table-node .table-surface strong{font-size:20px}}
@container service-table (max-width:150px){body[data-theme] .room button.table-node .table-surface small,body[data-theme] .room button.table-node .table-caption{display:none}}
body[data-theme] .floor-stage .room button.table-node[data-detail=compact] :is(small,.table-caption){display:none}
body[data-theme] .floor-stage .room button.table-node[data-detail=full] :is(small,.table-caption){display:block;font-size:var(--table-detail-font);line-height:1.15}
body[data-theme] .floor-stage .room button.table-node[data-detail=full] .table-surface strong{font-size:var(--table-id-font)}
body[data-theme] .room button.table-node .chair{width:18px;height:6px;background:var(--ui-muted,var(--muted));border:0;border-radius:1px;box-shadow:none}
body[data-theme] .room button.table-node .chair-1{top:3px;left:32%}body[data-theme] .room button.table-node .chair-2{bottom:1px;left:32%}
body[data-theme] .room button.table-node .chair-3{top:42%;left:0;width:6px;height:18px}body[data-theme] .room button.table-node .chair-4{top:42%;right:0;width:6px;height:18px}
body[data-theme] .room button.table-node .chair-5{top:3px;right:24%}body[data-theme] .room button.table-node .chair-6{bottom:1px;right:24%}
body[data-theme] .room button.table-node:is(.ready,.attention,.draft,.payment) .table-surface{border-color:var(--ui-accent,#237b79);border-width:3px}
body[data-theme] .room button.table-node.reserved .table-surface{border-style:dashed}
body[data-theme] .room button.table-node.cleaning .table-surface{border-style:dashed;border-width:3px}
.service-table.tone-cleaning{border-style:dashed}
body[data-theme] .room button.table-node.seat-selected .table-surface{border:3px solid var(--ui-accent,#237b79);outline:3px solid var(--ui-accent,#237b79);outline-offset:3px;box-shadow:none}
body[data-theme] .floor-card.compact .room button.table-node{transform:none}
body[data-theme] .room:not(.layout-editing) :is(.fixture-plant,.fixture-window,.fixture-banquette,.fixture-railing){display:none}
body[data-theme] .room:not(.layout-editing) :is(.fixture-bar,.fixture-service){background:var(--ui-panel,var(--card));color:var(--ui-ink,var(--ink));border:1px solid var(--ui-line,var(--line));border-radius:3px;box-shadow:none}
body[data-theme] .room:not(.layout-editing) :is(.fixture-bar,.fixture-service) .fixture-art{display:none}
body[data-theme] .room:not(.layout-editing) .fixture-label{color:var(--ui-ink,var(--ink));text-shadow:none;font-size:12px}
.floor-list-tools{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap;margin:20px 0}
.floor-list-tools label{display:grid;gap:8px;min-width:min(320px,100%);font-size:14px}.floor-list-tools input{width:100%;min-height:52px}
.floor-filters,.floor-list-areas{display:flex;gap:8px;flex-wrap:wrap}.floor-filters .btn{display:flex;gap:12px;align-items:center}.floor-filters span{font-variant-numeric:tabular-nums}
body[data-theme] :is(.floor-filters,.floor-list-areas) [aria-pressed=true]{border:2px solid var(--ui-accent,#237b79);font-weight:700;box-shadow:inset 0 0 0 1px var(--ui-accent,#237b79)}
.floor-list-layout{display:grid;gap:24px;align-items:start;margin-top:16px}.floor-list-layout.is-seating{grid-template-columns:minmax(0,1fr) 340px}
.service-table-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:16px}.floor-results{font-size:15px;margin:0 0 12px}
body[data-theme] button.service-table{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:10px;min-height:170px;padding:18px;border:1px solid var(--ui-line,var(--line));border-radius:10px;background:var(--ui-panel,var(--card));color:var(--ui-ink,var(--ink));font:inherit;line-height:1.4;overflow-wrap:anywhere}
.service-table-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.service-table-head strong{font-size:23px}.service-table-head>span{font-size:14px}.service-table-state{font-weight:700;font-size:17px}.service-table-party{font-size:17px}.service-table>span:not(.service-table-head){display:block}
body[data-theme] button.service-table:is(.selected,.tone-ready,.tone-attention){border:2px solid var(--ui-accent,#237b79)}
body[data-theme] button.service-table.selected{outline:3px solid var(--ui-accent,#237b79);outline-offset:2px}
body[data-theme] button.service-table:disabled{opacity:.65;cursor:not-allowed}
.service-floor .seat-panel{position:sticky;top:16px;left:auto;width:100%;max-height:calc(100dvh - 32px);overflow:auto;box-shadow:none;background:var(--ui-panel,var(--card));color:var(--ui-ink,var(--ink));border-color:var(--ui-line,var(--line));border-radius:10px;max-width:none}
body[data-theme] .seat-panel :is(h2,p,strong,small,label){color:var(--ui-ink,var(--ink))}.seat-panel>p{font-size:15px;line-height:1.5}.seat-panel form{margin:16px 0}.seat-panel-actions{display:grid;gap:10px;margin-top:16px}.seat-panel .btn{min-height:48px}.seat-panel-selection{background:var(--ui-panel,var(--card));border-color:var(--ui-line,var(--line))}
.covers-control{display:flex;align-items:center;gap:8px}.covers-control .btn{flex:none;min-width:56px}.covers-control input{min-width:0;text-align:center}.floor-seated-notice{margin:20px 0;padding:16px;border:1px solid var(--ui-line,var(--line));border-radius:8px}
.map-overview .table-node{pointer-events:none;opacity:1}.map-overview .floor-hint{font-weight:700}
body[data-theme] .map-overview .room button.table-node:disabled{opacity:1;cursor:default}
.seat-mobile-bar{display:none}
/* Give translated actions their own row instead of squeezing the summary. */
@media(max-width:700px){
  body[data-theme] .seat-mobile-bar{grid-template-columns:minmax(0,1fr);gap:8px}
  body[data-theme] .seat-mobile-bar>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body[data-theme] .seat-mobile-bar strong{display:block;line-height:1.35}
  body[data-theme] .seat-mobile-bar small{line-height:1.4}
  body[data-theme] .seat-mobile-bar .btn{min-width:0;white-space:normal}
  body[data-theme] .service-floor:has(.seat-mobile-bar){padding-bottom:calc(var(--seating-bar-height,180px) + 24px)}
}
@media(max-width:700px){.service-floor:has(.seat-mobile-bar){padding-bottom:120px}.service-floor .seat-panel:not(.details-expanded),.floor-stage>.seat-panel:not(.details-expanded){display:none}.seat-mobile-bar{position:fixed;left:0;right:0;bottom:0;z-index:19;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 12px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--ui-line,var(--line));background:var(--ui-panel,var(--card));color:var(--ui-ink,var(--ink));box-shadow:0 -4px 16px #0001}.seat-mobile-bar strong{font-size:15px;overflow-wrap:anywhere}.seat-mobile-bar small{display:block;font-size:13px}.seat-mobile-bar>div:last-child{display:flex;gap:8px}.seat-mobile-bar .btn{min-height:48px;padding:10px;font-size:14px}body:is(.modal-open,.drawer-open) .seat-mobile-bar,body:has(#choiceRoot [role=dialog]) .seat-mobile-bar{visibility:hidden}body:has(.seat-mobile-bar) .floor-zoom{bottom:110px}body:has(.seat-mobile-bar) .floor-hint{display:none}}
@media(max-width:900px){.floor-list-layout.is-seating{grid-template-columns:1fr}.service-floor .seat-panel{position:relative;top:auto;grid-row:1;max-height:none}.service-table-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}
@media(max-width:700px){.service-floor>.page-heading{margin-bottom:16px}.service-floor>.page-heading :is(.eyebrow,p){display:none}.floor-list-tools{align-items:stretch;margin:12px 0;gap:14px}.floor-list-tools label{width:100%}.floor-filters{width:100%}body[data-theme] .floor-filters .btn{flex:1;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px;min-height:56px;font-size:14px;line-height:1.25;padding:8px}.floor-list-areas{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:4px;overscroll-behavior-x:contain}.floor-list-areas .btn{flex:0 0 auto;min-height:48px;padding:10px;font-size:14px}.service-table-grid{grid-template-columns:1fr}body[data-theme] button.service-table{min-height:156px}.floor-stage>.seat-panel{max-height:45dvh;overflow:auto}}

/* Editor uses the same plan units as service; smaller screens scroll the plan. */
body[data-theme] .setup-canvas .floor-card{max-width:100%;overflow:auto}
body[data-theme] .setup-canvas .room{width:var(--room-width);min-width:var(--room-width);height:var(--room-height)!important;aspect-ratio:auto}
body[data-theme] .room button.table-node.geometry-warning .table-surface{outline:2px dashed var(--ui-accent,#237b79);outline-offset:2px}
.layout-checks{margin:20px 0;padding:20px;border:1px solid var(--ui-line,var(--line));border-radius:8px;background:var(--ui-panel,var(--card));color:var(--ui-ink,var(--ink))}
.layout-checks h2{font-size:20px;margin:0 0 12px}.layout-checks p,.layout-checks li{font-size:15px;line-height:1.5}.layout-checks li{margin:8px 0}.layout-checks summary{min-height:48px;cursor:pointer;padding:12px 0;font-weight:700}.layout-table-review{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px}.layout-table-review .btn{min-height:48px;white-space:normal;text-align:left}

.floor-map-filters{position:absolute;left:24px;right:24px;z-index:8;padding:12px;background:var(--ui-panel,var(--card));color:var(--ui-ink,var(--ink));border:1px solid var(--ui-line,var(--line));border-radius:6px;touch-action:auto;max-height:45%;overflow:auto;cursor:auto}
.floor-map-filters .floor-list-tools{margin:0;gap:10px;align-items:center}.floor-map-filters .floor-results{margin:8px 0 0;font-size:14px;line-height:1.4}.floor-map-filters label{min-width:min(260px,100%)}
.floor-stage>.seat-panel,.floor-stage>.seat-success{top:var(--floor-controls-bottom,220px)}
body[data-theme] .floor-area-tabs{max-width:100%;scrollbar-width:auto}
body[data-theme] .floor-area-tabs button{min-height:48px;font-size:14px;white-space:normal;min-width:120px}
body[data-theme] .floor-toolbar .floor-tool{min-height:48px}
@media(max-width:800px){.floor-map-filters{left:12px;right:12px;padding:8px}.floor-map-filters .floor-list-tools{gap:8px}.floor-map-filters .floor-filters{width:100%}.floor-map-filters label{width:100%}.floor-map-filters input{min-height:48px}.floor-map-filters .floor-results{font-size:14px}.floor-stage>.seat-panel{max-height:calc(100% - var(--floor-controls-bottom,220px) - 110px)}.floor-toolbar{gap:6px}.floor-area-tabs{width:100%}}
/* A focused offscreen table must not scroll the toolbar out of its stage. */
.floor-stage{overflow:clip}
body[data-theme] .floor-zoom button{min-width:48px;width:auto;min-height:48px;padding:0 10px;font-size:16px}
body[data-theme] .floor-zoom button[data-floor-readable]{font-size:14px}
body[data-theme] .floor-zoom button[data-floor-fit]{font-size:14px}
.floor-stage:has(.table-node:focus-visible) .floor-hint{display:none}
/* List seating follows page flow; the map alone owns a bounded overlay. */
body[data-theme] .service-floor .seat-panel{left:auto;bottom:auto;width:100%;top:16px;max-height:calc(100dvh - 32px)}
@media(max-width:900px){body[data-theme] .service-floor .seat-panel{position:relative;top:auto;bottom:auto;left:auto;width:100%;max-height:none}}
/* Generated furniture owns its dimensions; themes only supply visual tokens. */
body[data-theme] .room button.geometry-rendered .floor-table-geometry{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;--floor-table-fill:color-mix(in srgb,var(--ui-panel,var(--card)) 92%,#c8af86 8%);--floor-table-stroke:color-mix(in srgb,var(--ui-line,var(--line)) 70%,var(--ui-ink,var(--ink)) 30%);--floor-chair-fill:color-mix(in srgb,var(--ui-accent,#237b79) 55%,var(--ui-muted,#718475) 45%);--floor-chair-stroke:color-mix(in srgb,var(--floor-chair-fill) 75%,var(--ui-ink,var(--ink)) 25%);--floor-chair-cushion:color-mix(in srgb,var(--floor-chair-fill) 72%,var(--ui-panel,var(--card)) 28%);--floor-chair-back:var(--floor-chair-stroke);--floor-table-ink:var(--ui-ink,var(--ink))}
body[data-theme] .room button.geometry-rendered [data-tabletop]{filter:drop-shadow(0 3px 4px #26352924)}
body[data-theme] .room button.geometry-rendered [data-seat]{filter:drop-shadow(0 1px 1px #26352920)}
body[data-theme] .room button.geometry-rendered:is(.occupied,.preparing,.ordered) .floor-table-geometry{--floor-table-fill:color-mix(in srgb,var(--ui-accent,#237b79) 13%,var(--ui-panel,var(--card)) 87%)}
body[data-theme] .room button.geometry-rendered:is(.ready,.attention,.draft,.payment,.seat-selected) .floor-table-geometry{--floor-table-stroke:var(--ui-accent,#237b79)}
body[data-theme] .room button.geometry-rendered:is(.reserved,.cleaning) [data-tabletop]{stroke-dasharray:5 3}
body[data-theme] .room button.geometry-rendered.seat-selected [data-tabletop]{stroke-width:4}
body[data-theme] .room button.geometry-rendered.geometry-warning [data-tabletop]{stroke:var(--ui-accent,#237b79);stroke-dasharray:5 3}
.table-v2-details{position:absolute;transform:translate(-50%,-50%);width:80%;text-align:center;pointer-events:none;line-height:1.15;color:var(--ui-ink,var(--ink));font-size:var(--table-detail-font,12px);overflow-wrap:anywhere}
.table-v2-details strong{display:block;font-size:var(--table-id-font,22px);line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-v2-details small{display:block;margin-top:4px;font-size:inherit}button.geometry-rendered[data-detail=compact] .table-v2-details small,.floor-card.compact .table-v2-details small{display:none}
body[data-theme] .room button.geometry-rendered .table-v2-details{max-width:none;white-space:normal;overflow:visible;text-overflow:clip;margin:0}
.table-geometry-editor{grid-column:1/-1}.table-geometry-editor>.field{margin-bottom:16px}.table-geometry-preview{height:190px;max-width:100%;display:grid;place-items:center;margin-top:14px}.table-geometry-preview:empty{display:none}.table-geometry-preview svg{width:100%;height:190px}.table-geometry-editor [hidden]{display:none!important}.table-geometry-editor [role=status]{font-size:14px;line-height:1.45}.geometry-error{color:var(--danger,#a4352a);font-weight:600}
.feature-geometry-editor{grid-column:1/-1}.feature-geometry-editor>[class=field]{margin-bottom:16px}.feature-geometry-editor [hidden]{display:none!important}.feature-geometry-preview{height:160px;margin:16px 0}.feature-geometry-preview:empty{display:none}.feature-geometry-preview svg{width:100%;height:160px}.feature-geometry-editor [role=status],[data-room-resize-preview]{font-size:14px;line-height:1.45}
body[data-theme] .room .feature-v2{border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ui-ink,var(--ink))}
.feature-v2-surface{position:absolute;left:50%;top:50%;border:2px solid var(--ui-line,var(--line));background:var(--ui-panel,var(--card));pointer-events:none}
.feature-kind-kitchen .feature-v2-surface{background:var(--ui-soft,#e8eeeb);border-style:dashed}.feature-kind-column .feature-v2-surface{background:var(--ui-muted,#84938b)}.feature-kind-window .feature-v2-surface{background:#9cc9d0;border-color:#467e88}.feature-kind-door .feature-v2-surface{background:var(--ui-panel,#fff);border-color:var(--ui-accent,#237b79);border-style:dashed}
.feature-v2-label{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max-content;max-width:180px;font-size:var(--feature-label-font,12px);line-height:1.2;text-align:center;overflow-wrap:anywhere;pointer-events:none;background:var(--ui-panel,var(--card));padding:2px 4px}
.feature-wall-top .feature-v2-label{top:100%;transform:translate(-50%,3px);max-width:none}.feature-wall-bottom .feature-v2-label{top:0;transform:translate(-50%,-110%);max-width:none}.feature-wall-left .feature-v2-label{left:100%;transform:translate(3px,-50%);max-width:none}.feature-wall-right .feature-v2-label{left:0;transform:translate(-110%,-50%);max-width:none}
.room .feature-v2.geometry-warning{outline:2px dashed var(--ui-accent,#237b79);outline-offset:3px}
