:root {
  color-scheme: light;
  --ink: #191713;
  --muted: #6d665d;
  --line: #ddd6c9;
  --paper: #fffdf8;
  --panel: #f6f1e7;
  --accent: #0f6a5f;
  --accent-strong: #0a4c45;
  --sun: #d39c42;
  --danger: #b84732;
  --cyan: #20c8d8;
  --magenta: #cf00d8;
  --green: #38c414;
  --gray: #a7a7a7;
  --shadow: 0 22px 70px rgba(36, 28, 17, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(246, 241, 231, 0.92), rgba(255, 253, 248, 1) 360px),
    var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid rgba(221, 214, 201, 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.nav-actions,
.section-kicker,
.hero-stats,
.form-message,
.reservation-meta,
.panel-card span,
.capacity-alert,
label {
  color: var(--muted);
}

.nav-actions {
  display: flex;
  gap: 8px;
  font-weight: 700;
}

.nav-actions a {
  padding: 10px 12px;
  border-radius: 6px;
}

.nav-actions a:hover {
  background: var(--panel);
}

.view {
  padding: clamp(18px, 3vw, 42px);
}

.guest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
  min-height: auto;
}

.hero-panel {
  grid-column: 1 / -1;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(20, 16, 12, 0.8), rgba(20, 16, 12, 0.34)),
    url("./assets/kat2-hero-real-vibe.png") center / cover;
  box-shadow: 0 18px 54px rgba(36, 28, 17, 0.14);
}

.hero-copy {
  width: min(760px, 100%);
  padding: clamp(24px, 4vw, 46px);
  color: #fff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 560px;
  margin: 16px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-stats span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.event-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(980px, 100%);
  margin-top: 22px;
}

.event-card {
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  text-align: left;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.event-card:hover,
.event-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  transform: translateY(-2px);
}

.event-card span,
.event-card small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  line-height: 1.35;
}

.event-card strong {
  display: block;
  margin: 7px 0 5px;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.05;
}

.event-card-featured {
  border-color: rgba(255, 214, 64, 0.58);
  background: rgba(255, 214, 64, 0.16);
}

.booking-form,
.login-card,
.panel-card,
.reservation-card,
.seating-workbench,
.admin-seating-board,
.staff-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 44px rgba(45, 35, 19, 0.08);
}

.booking-form {
  grid-column: 2;
  grid-row: 2;
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
}

.seating-workbench {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: clamp(18px, 3vw, 28px);
}

.seating-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.seating-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.service-program {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(15, 106, 95, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 106, 95, 0.08), rgba(255, 255, 255, 0.94));
}

.service-program strong {
  color: var(--accent-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.service-program span {
  color: var(--ink);
  font-weight: 900;
  font-size: 1.08rem;
}

.service-program small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.service-menu-options {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.service-menu-options li {
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}

.service-menu-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.service-menu-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.service-menu-card img {
  width: 56px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(17, 15, 12, 0.12);
}

.service-menu-card span {
  display: grid;
  gap: 2px;
}

.service-menu-card strong {
  font-size: 14px;
  line-height: 1.2;
}

.service-menu-card small {
  color: var(--muted);
  font-size: 13px;
}

.menu-dialog {
  width: min(92vw, 520px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.menu-dialog::backdrop {
  background: rgba(17, 15, 12, 0.72);
  backdrop-filter: blur(3px);
}

.menu-dialog-panel {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(17, 15, 12, 0.32);
}

.menu-dialog-panel h2 {
  margin: 0;
  padding-right: 44px;
  font-size: 22px;
}

.menu-dialog-panel img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.menu-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.selected-table {
  padding: 14px;
  border-radius: 6px;
  color: var(--accent-strong);
  background: rgba(15, 106, 95, 0.1);
  font-weight: 800;
  line-height: 1.45;
}

.payment-summary {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(15, 106, 95, 0.22);
  border-radius: 8px;
  color: var(--accent-strong);
  background: rgba(15, 106, 95, 0.08);
  font-weight: 800;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
}

.payment-options[hidden] {
  display: none;
}

.payment-options legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--muted);
  font-weight: 900;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 900;
}

.payment-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.payment-summary strong {
  color: var(--ink);
}

.payment-summary small {
  color: var(--muted);
  line-height: 1.4;
}

.card-payment-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 106, 95, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 106, 95, 0.1), rgba(255, 255, 255, 0.82)),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64);
}

.card-payment-preview[hidden] {
  display: none;
}

.card-payment-preview strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.card-payment-preview small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.4;
}

.card-payment-preview input:disabled {
  color: rgba(20, 18, 15, 0.5);
  background: rgba(255, 255, 255, 0.74);
  cursor: not-allowed;
}

.floorplan-shell {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

.floorplan {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 1000 / 860;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
}

.plant-rail,
.plan-divider,
.plan-box {
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.plant-rail-top {
  top: 3.2%;
  left: 5.5%;
  right: 4.5%;
  height: 6%;
  border: 2px solid var(--ink);
  border-left: 0;
  background:
    radial-gradient(circle at 50% 48%, #f7fff3 0 12%, transparent 13%),
    radial-gradient(ellipse at 35% 30%, #71c760 0 16%, transparent 17%),
    radial-gradient(ellipse at 65% 30%, #71c760 0 16%, transparent 17%),
    radial-gradient(ellipse at 32% 66%, #2d9f35 0 17%, transparent 18%),
    radial-gradient(ellipse at 68% 66%, #2d9f35 0 17%, transparent 18%);
  background-repeat: repeat-x;
  background-size: 42px 100%;
}

.plant-rail-left {
  top: 3.2%;
  left: 1.2%;
  width: 4.4%;
  bottom: 4.2%;
  border: 2px solid var(--ink);
  border-right: 0;
  background:
    radial-gradient(circle at 50% 48%, #f7fff3 0 12%, transparent 13%),
    radial-gradient(ellipse at 35% 30%, #71c760 0 16%, transparent 17%),
    radial-gradient(ellipse at 65% 30%, #71c760 0 16%, transparent 17%),
    radial-gradient(ellipse at 32% 66%, #2d9f35 0 17%, transparent 18%),
    radial-gradient(ellipse at 68% 66%, #2d9f35 0 17%, transparent 18%);
  background-repeat: repeat-y;
  background-size: 100% 42px;
}

.plan-divider {
  height: 4px;
  background: var(--ink);
}

.divider-left {
  top: 36%;
  left: 6.4%;
  width: 32%;
}

.divider-center {
  top: 32%;
  left: 50.5%;
  width: 43%;
}

.plan-box {
  top: 9.4%;
  width: 12.5%;
  height: 8%;
  border: 2px solid #8b8b8b;
  background: rgba(255, 255, 255, 0.96);
}

.plant-box-left {
  left: 35%;
}

.plant-box-right {
  left: 68%;
}

.plant-box span,
.plant-box span::before,
.plant-box span::after {
  position: absolute;
  border-radius: 50% 10% 50% 10%;
  background: #3caf3f;
  content: "";
}

.plant-box span {
  top: 28%;
  left: 45%;
  width: 18%;
  height: 42%;
  transform: rotate(45deg);
}

.plant-box span::before {
  top: -55%;
  left: -70%;
  width: 105%;
  height: 90%;
  transform: rotate(-75deg);
}

.plant-box span::after {
  right: -70%;
  bottom: -55%;
  width: 105%;
  height: 90%;
  transform: rotate(-75deg);
}

.stage,
.bar {
  position: absolute;
  display: grid;
  place-items: center;
  z-index: 2;
  border-radius: 24px 24px 0 0;
  color: var(--ink);
  background: #dcdcdc;
  font-weight: 800;
}

.stage {
  right: 7%;
  bottom: 3%;
  width: 38%;
  height: 17%;
  font-size: clamp(1.4rem, 4vw, 2.7rem);
}

.bar {
  bottom: 3%;
  width: 22%;
  height: 14%;
  font-size: clamp(1rem, 2.4vw, 1.8rem);
}

.bar-left {
  left: 6%;
}

.bar-middle {
  left: 30%;
}

.table-button {
  position: absolute;
  z-index: 3;
  width: 22px;
  width: clamp(17px, 3.55cqw, 34px);
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: 7px;
  color: #111;
  font-size: clamp(0.66rem, 1.2cqw, 0.95rem);
  font-weight: 900;
  touch-action: manipulation;
  transform: translate(-50%, -50%);
  user-select: none;
}

.table-button::before,
.table-button::after {
  position: absolute;
  top: 20%;
  bottom: 20%;
  width: 30%;
  border-radius: 999px;
  background: #ececec;
  box-shadow: 0 0 0 1px #bdbdbd inset;
  content: "";
}

.table-button::before {
  left: -34%;
}

.table-button::after {
  right: -34%;
}

.table-button:hover,
.table-button.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(25, 23, 19, 0.12);
}

.table-button.reserved,
.table-button.view-only {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.62;
}

.table-button.view-only:hover {
  border-color: transparent;
  box-shadow: none;
}

.cat-1,
.table-button.category-1 {
  background: #ffd91a;
}

.cat-2,
.table-button.category-2 {
  background: var(--gray);
}

.cat-3,
.table-button.category-3 {
  background: var(--magenta);
}

.cat-4,
.table-button.category-4 {
  background: var(--cyan);
}

.cat-5,
.table-button.category-5 {
  background: var(--green);
}

.reserved-dot,
.table-button.reserved {
  background: #3c3c3c;
  color: #fff;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend i {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
}

.form-header h2,
.login-card h2,
.admin-sidebar h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: 0;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 106, 95, 0.13);
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.form-grid,
.toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.ghost-button {
  color: var(--danger);
  background: transparent;
}

.form-message {
  min-height: 22px;
  margin: 0;
  font-weight: 700;
}

.admin-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
}

.admin-sidebar {
  position: sticky;
  top: 94px;
  align-self: start;
}

.admin-sidebar p {
  color: var(--muted);
  line-height: 1.7;
}

.compact {
  display: grid;
  gap: 6px;
  padding: 16px;
  box-shadow: none;
}

.admin-content {
  min-width: 0;
}

.login-card {
  max-width: 460px;
  display: grid;
  gap: 16px;
  padding: 24px;
}

.dashboard {
  display: grid;
  gap: 16px;
}

.toolbar {
  grid-template-columns: 180px 180px minmax(190px, 1fr);
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.admin-seating-board {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.admin-board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.admin-board-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.admin-program {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.admin-floorplan {
  width: 100%;
  user-select: none;
}

.admin-floorplan .table-button {
  cursor: pointer;
  touch-action: none;
  transition:
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.admin-floorplan .table-button.reserved {
  cursor: pointer;
  opacity: 1;
  filter: none;
  box-shadow: 0 0 0 3px rgba(184, 71, 50, 0.28);
}

.admin-floorplan .table-button.reserved:hover,
.admin-floorplan .table-button.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 5px rgba(15, 106, 95, 0.2);
}

.table-badge {
  position: absolute;
  z-index: 4;
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  place-items: center;
  border: 1px solid rgba(25, 23, 19, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.capacity-badge {
  right: -12px;
  bottom: -20px;
}

.guest-badge {
  left: 50%;
  top: -24px;
  min-width: 28px;
  color: #fff;
  background: var(--ink);
  border-color: rgba(25, 23, 19, 0.34);
  box-shadow: 0 4px 12px rgba(25, 23, 19, 0.18);
  transform: translateX(-50%);
}

.admin-floorplan .table-button.dragging {
  z-index: 20;
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 16px 34px rgba(25, 23, 19, 0.28);
}

.admin-control-stack {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 12px;
}

#staff-reservation-form {
  order: -3;
  border-color: rgba(15, 106, 95, 0.24);
  box-shadow: 0 18px 46px rgba(15, 106, 95, 0.1);
}

#day-config-form {
  order: 1;
}

#table-editor-form {
  order: 2;
}

.staff-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.compact-form {
  gap: 10px;
  padding: 14px;
  box-shadow: none;
}

.staff-form h3 {
  margin: 0;
  font-size: 1.35rem;
}

.compact-form h3 {
  font-size: 1.05rem;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metrics div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metrics span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}

.metrics small {
  color: var(--muted);
  font-weight: 700;
}

.capacity-alert {
  padding: 14px 16px;
  border: 1px solid rgba(184, 71, 50, 0.25);
  border-radius: 8px;
  background: rgba(184, 71, 50, 0.08);
}

.reservation-list {
  display: grid;
  gap: 12px;
}

.reservation-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.reservation-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.reservation-time {
  color: var(--accent);
  font-weight: 800;
}

.reservation-card h3 {
  margin: 4px 0 6px;
  font-size: 1.18rem;
}

.reservation-meta {
  margin: 0;
  line-height: 1.5;
}

.status-pill {
  align-self: flex-start;
  white-space: nowrap;
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: var(--sun);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-pill.onaylandı,
.status-pill.geldi {
  background: var(--accent);
}

.status-pill.odeme-bekliyor {
  background: var(--sun);
}

.status-pill.iptal {
  background: var(--danger);
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 160px auto auto;
  gap: 10px;
  justify-content: end;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 980px) {
  .guest-layout,
  .admin-layout,
  .seating-workbench,
  .admin-board-grid {
    grid-template-columns: 1fr;
  }

  .event-banner {
    grid-template-columns: 1fr;
  }

  .booking-form {
    grid-column: auto;
    grid-row: auto;
    position: static;
  }

  .hero-panel {
    min-height: 260px;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-board-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-control-stack,
  .staff-form {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions a {
    flex: 1;
    text-align: center;
    background: var(--panel);
  }

  .view {
    padding: 14px;
  }

  .hero-panel {
    min-height: 240px;
  }

  .floorplan-shell {
    overflow: auto;
    max-height: 74vh;
    padding: 8px 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
      linear-gradient(90deg, rgba(15, 106, 95, 0.12), transparent 42px, transparent calc(100% - 42px), rgba(15, 106, 95, 0.12)),
      #fffdf8;
    -webkit-overflow-scrolling: touch;
  }

  .floorplan {
    width: 920px;
    max-width: none;
    aspect-ratio: 1000 / 960;
  }

  .table-button {
    width: 30px;
    border-radius: 8px;
    font-size: 0.82rem;
  }

  .table-button::before,
  .table-button::after {
    display: none;
  }

  .capacity-badge {
    right: -8px;
    bottom: -17px;
    min-width: 20px;
    height: 20px;
    font-size: 0.6rem;
  }

  .guest-badge {
    top: -22px;
    min-width: 28px;
    height: 20px;
    font-size: 0.58rem;
  }

  .plant-rail-top {
    background-size: 58px 100%;
  }

  .plant-rail-left {
    background-size: 100% 58px;
  }

  .stage {
    border-radius: 18px 18px 0 0;
    font-size: 2rem;
  }

  .bar {
    border-radius: 16px 16px 0 0;
    font-size: 1.28rem;
  }

  .legend {
    position: sticky;
    left: 0;
    width: min(100%, calc(100vw - 44px));
    margin-top: 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.94);
    font-size: 0.78rem;
    backdrop-filter: blur(8px);
  }

  .form-grid,
  .toolbar,
  .metrics,
  .card-actions {
    grid-template-columns: 1fr;
  }

  .reservation-main {
    flex-direction: column;
  }
}
