.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{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-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}}

/* Service gestures: visible hold feedback, safe touch targets, no text callout. */
.cafe-floor .floor-table-symbol{-webkit-touch-callout:none}
.cafe-floor .floor-drag-ready .floor-surface{stroke:#fff1b5;stroke-width:5;filter:drop-shadow(0 0 6px #e7c681)}
.cafe-floor .floor-group-controls{color:#f5eedf;background:#201d17;border:1px solid #655d49;border-radius:12px;padding:14px;margin-bottom:16px}
.cafe-floor .floor-group-controls[hidden]{display:none}
.cafe-floor .floor-group-controls button{min-height:44px;margin:6px 8px 6px 0}
