.cafe-floor{--floor-gold:#c9a768;--floor-ivory:#f5eedf;color:var(--floor-ivory);font-family:Arial,sans-serif}.floor-tools{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:14px;background:#201d17;border:1px solid #50452f;border-radius:12px}.floor-tools label{margin:0;font-size:12px;display:grid;gap:5px}.floor-tools button,.floor-properties button{min-height:42px;background:#30291c;border:1px solid #8d7448;color:#f4e6ce;padding:9px 14px;border-radius:7px;cursor:pointer}.floor-tools button:disabled{opacity:.35}.cafe-floor input,.cafe-floor select{box-sizing:border-box;width:100%;color:#f5eedf;background:#14130f;border:1px solid #655d49;border-radius:6px;min-height:40px;padding:8px;font-size:15px}.cafe-floor .floor-check{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:14px}.cafe-floor .floor-check input{width:20px;min-height:20px;accent-color:#c9a768}.floor-help{font-size:13px;color:#c7bfaf;line-height:1.6;margin:12px 0}.floor-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.floor-workspace:has(.floor-properties){grid-template-columns:minmax(0,1fr) 235px}.floor-rooms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.floor-room-card:nth-child(3){grid-column:1/-1;max-width:1180px;width:100%;justify-self:center}.floor-room-card{background:#191813;border:1px solid #4b4435;border-radius:16px;overflow:hidden;min-width:0}.floor-room-card header{padding:17px 19px;border-bottom:1px solid #373228;display:flex;align-items:center;justify-content:space-between;gap:10px}.floor-room-card h3{font-family:Georgia,serif;font-size:21px;font-weight:normal;margin:0;color:#efe3c8}.floor-room-card header span{font-size:12px;color:#b6a98d;white-space:nowrap}.floor-canvas{display:block;width:100%;height:auto;max-height:680px;user-select:none;-webkit-user-select:none}.floor-canvas.floor-editable{touch-action:pan-y}.floor-editable .floor-object{touch-action:none;cursor:grab}.floor-editable .floor-object:active{cursor:grabbing}.floor-room-ground{fill:#1f211c;stroke:#575440;stroke-width:3}.floor-grid{fill:none;stroke:#76725e;stroke-width:.6;opacity:.22;pointer-events:none}.floor-object{outline:none}.floor-object:focus .floor-hit,.floor-object.selected .floor-hit{fill:#d5b36b14;stroke:#f2c66a;stroke-width:2;stroke-dasharray:5 4}.floor-hit{fill:transparent;stroke:transparent}.floor-surface{fill:#383929;stroke:#b09d65;stroke-width:2}.floor-chair{fill:#5a5135;stroke:#ac955c;stroke-width:1}.floor-table-symbol{cursor:pointer}.floor-table-symbol.state-CONFIRMED .floor-surface,.floor-table-symbol.state-ACCEPTED .floor-surface{fill:#294039;stroke:#75b299}.floor-table-symbol.state-SEATED .floor-surface{fill:#283d50;stroke:#8cb8d7}.floor-table-symbol.state-PENDING .floor-surface,.floor-table-symbol.state-ALT_TIME_PROPOSED .floor-surface{fill:#534427;stroke:#ebc078}.floor-object-name{fill:#fff5e0;font-size:22px;font-weight:600;pointer-events:none}.floor-object-capacity{fill:#d9ccb1;font-size:14px;pointer-events:none}.floor-counter{fill:#695334;stroke:#b8975d;stroke-width:2}.floor-wall{fill:#8a8578;stroke:#b6b0a2;stroke-width:1}.floor-label{fill:#292a24;stroke:#635f4d;stroke-width:1}.floor-door-gap{fill:#1c2923;stroke:#82a790;stroke-width:1}.floor-door{stroke:#abd4b9;fill:none;stroke-width:4}.floor-door-arc{stroke:#799b80;fill:none;stroke-width:2;stroke-dasharray:4 3}.floor-group-link{stroke:#d9af5c;stroke-width:5;stroke-dasharray:6 6;opacity:.8;pointer-events:none}.floor-group-note{font-size:12px;color:#d8bd86;margin:12px 18px}.floor-properties{background:#201e18;border:1px solid #524a3a;border-radius:12px;padding:16px;align-self:start}.floor-properties h3{font-family:Georgia,serif;font-weight:normal;font-size:24px;margin:0 0 16px}.floor-properties label{display:grid;gap:6px;font-size:13px;margin:10px 0}.floor-property-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.floor-properties button{width:100%;margin-top:8px}.floor-properties .floor-danger{border-color:#a96e5e;color:#ffc5b0}.floor-properties details{margin-top:22px}.floor-properties summary{font-size:13px;cursor:pointer}.floor-properties fieldset{border:1px solid #514936;margin:12px 0;padding:10px}.floor-save-state{color:#98c5a8;font-size:13px}.floor-save-state.unsaved{color:#e7c681}.floor-rooms svg text{dominant-baseline:auto}.floor-service-legend{display:flex;flex-wrap:wrap;gap:15px;font-size:13px;margin:16px 0}.floor-service-legend span:before{content:'';display:inline-block;width:10px;height:10px;background:var(--dot);border-radius:50%;margin-right:7px}.floor-service-legend .free{--dot:#b09d65}.floor-service-legend .pending{--dot:#ebc078}.floor-service-legend .confirmed{--dot:#75b299}.floor-service-legend .seated{--dot:#8cb8d7}@media(max-width:1000px){.floor-workspace:has(.floor-properties){grid-template-columns:minmax(0,1fr)}.floor-properties{max-width:none}.floor-property-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.floor-properties>button{width:auto;margin-right:8px}}@media(max-width:650px){.floor-rooms{grid-template-columns:1fr}.floor-room-card:nth-child(3){grid-column:auto}.floor-property-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.floor-tools{gap:8px}.floor-tools label{flex:1;min-width:120px}.floor-room-card header{padding:14px}.floor-help{font-size:12px}.floor-canvas{max-height:none}.floor-tools button{padding:8px 10px}}

/* Safari: avoid intrinsic field overflow and focus zoom. Blank canvas scrolls; only objects drag. */
.cafe-floor label,.cafe-floor input,.cafe-floor select{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:650px){.cafe-floor input,.cafe-floor select{font-size:16px}.floor-tools label{min-width:0;flex:1 1 120px}.floor-tools .floor-check{flex-basis:100%}.floor-properties{min-width:0}}

/* Reserved stays green. Only checked-in guests have the blue occupied symbol. */
.floor-table-symbol.state-SEATED .floor-surface{fill:#135b89;stroke:#c0e5ff;stroke-width:3}
.floor-table-symbol.state-SEATED .floor-chair{fill:#2d74a0;stroke:#aad9ff}
.floor-booking-bubble{position:fixed;z-index:1000;box-sizing:border-box;max-width:min(320px,calc(100vw - 20px));padding:12px 15px;border:1px solid #c9a768;border-radius:10px;background:#181610;color:#fff5e0;box-shadow:0 8px 24px #0006;font:14px/1.5 Arial,sans-serif;pointer-events:none;overflow-wrap:anywhere}
.floor-booking-bubble[hidden]{display:none}
.floor-booking-bubble>div:first-child{font-weight:700;color:#e8c885}
.floor-booking-bubble>div:nth-child(2){font-weight:700}

/* Service arrangement is explicit; the save action stays near the visible plan. */
.floor-arrange-controls{position:sticky;top:0;z-index:10;background:#fffaf0;color:#30271a;border:1px solid #bca56d;border-radius:10px;padding:12px 16px;margin-bottom:16px}.floor-arrange-controls p{margin:0 0 8px}.floor-arrange-controls [data-floor-pending]{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.floor-arrange-controls [data-floor-dirty-label]{flex:1 1 220px}.floor-arrange-controls button{min-height:44px}.floor-arrange-controls button:disabled{opacity:.5}

.floor-quick-move .floor-table-symbol,.floor-quick-move .floor-table-symbol *{touch-action:none;cursor:grab}
.floor-quick-move .floor-table-symbol:active,.floor-quick-move .floor-table-symbol:active *{cursor:grabbing}
.floor-arrange-controls button,.floor-scope-choices button{background:#382e20;color:#fff8e8;border:1px solid #67563d}
.floor-arrange-controls button:disabled{opacity:1;color:#57534c;background:#eee9dc;border-color:#b6ad9b}
.floor-arrange-controls button:focus-visible,.floor-scope-choices button:focus-visible{outline:3px solid #946419;outline-offset:2px}
.floor-join-dialog{box-sizing:border-box;width:min(28rem,calc(100% - 2rem));max-height:90vh;padding:1.4rem;color:#30271a;background:#fffaf0;border:1px solid #99845b;border-radius:12px}
.floor-join-dialog::backdrop{background:rgb(20 19 15 / 60%)}
.floor-join-dialog h2{margin:0 0 1rem}
.floor-join-dialog label{display:grid;gap:.4rem;color:#423526}
.floor-join-dialog select{background:white;color:#30271a}
.floor-join-dialog p{line-height:1.5;color:#544838}
.floor-join-dialog .form-actions{display:flex;gap:.6rem;flex-wrap:wrap}
.floor-join-dialog button{min-height:44px}
