.mesas-page .suite.mesas-suite {
  width: min(100%, 56rem);
}

.mesas-head {
  background: var(--paper);
  box-shadow: 0 12px 24px var(--shadow);
  padding: var(--space-4) var(--space-3);
  margin-bottom: var(--space-3);
  text-align: center;
}

.mesas-head h1 {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 500;
  color: var(--seal);
  line-height: 0.98;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 var(--space-2);
}

.mesas-layout {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 52rem) {
  .mesas-layout {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    align-items: start;
  }
}

.tray-panel,
.floor-panel,
.catering {
  background: var(--paper);
  box-shadow: 0 12px 24px var(--shadow);
  padding: var(--space-3);
}

.tray-panel h2,
.floor-panel h2,
.catering h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--seal);
}

.tray {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  max-height: 28rem;
  overflow: auto;
}

.guest-chip {
  width: 100%;
  min-height: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink);
  text-align: left;
  font: 600 0.9rem/1.2 var(--font-ui);
  cursor: pointer;
}
.guest-chip small {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.78rem;
}
.guest-chip.is-selected {
  border-color: var(--seal);
  box-shadow: inset 0 0 0 2px var(--seal);
}
.guest-chip:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.floor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.table-card {
  border: 1px solid oklch(55% 0.04 70 / 0.4);
  background: var(--paper-2);
  padding: var(--space-2);
  min-width: 0;
}
.table-card.is-target {
  border-color: var(--seal);
  box-shadow: inset 0 0 0 2px var(--seal);
}
.table-card.is-head {
  outline: 1px solid var(--gold);
  outline-offset: -3px;
}
.table-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}
.table-card .count {
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.seat-list {
  list-style: none;
  margin: var(--space-1) 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.seat-list button {
  width: 100%;
  min-height: 2.25rem;
  border: 1px dashed oklch(55% 0.04 70 / 0.45);
  border-radius: 0.65rem;
  background: oklch(97.4% 0.012 92 / 0.7);
  color: var(--ink);
  text-align: left;
  padding: 0.3rem 0.65rem;
  font: 0.85rem/1.2 var(--font-ui);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.seat-list button:hover {
  background: var(--paper);
  border-color: oklch(55% 0.04 70 / 0.7);
}
.seat-list button.is-filled {
  border-style: solid;
  font-weight: 600;
}
.seat-list button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.table-hit {
  width: 100%;
  min-height: 2.5rem;
  margin-top: var(--space-1);
  border: 1px solid oklch(36% 0.12 25 / 0.4);
  border-radius: 999px;
  background: oklch(97.4% 0.012 92 / 0.55);
  color: var(--seal);
  font: 600 0.85rem/1 var(--font-ui);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.table-hit:hover {
  background: var(--paper-2);
  border-color: oklch(36% 0.12 25 / 0.6);
}
.table-hit:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.cater-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.cater-card {
  padding: var(--space-2);
  border: 1px solid oklch(55% 0.04 70 / 0.35);
  background: var(--paper-2);
}
.cater-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--seal);
}
.cater-card.is-long strong {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media print {
  .menu,
  .toolbar,
  .map-go { display: none !important; }
  body { background: white; padding: 0; }
  .tray-panel { break-before: page; }
}
