:root {
  --oa-primary: #073866;
  --oa-primary-light: #0c5a9e;
  --oa-primary-dark: #052847;
  --oa-accent: #4F46E5;
  --oa-accent-dark: #4338CA;
  --oa-accent-soft: #EEF2FF;
  --oa-select: #0EA5E9;
  --oa-select-glow: rgba(14, 165, 233, 0.28);
  --oa-success: #10B981;
  --oa-success-dark: #059669;
  --oa-warning: #F59E0B;
  --oa-warning-soft: #FFFBEB;
  --oa-warning-border: #D97706;
  --oa-danger: #EF4444;
  --oa-danger-dark: #DC2626;
  --oa-danger-soft: #FEE2E2;
  --oa-danger-text: #991B1B;
  --oa-ok-soft: #D1FAE5;
  --oa-ok-text: #065F46;
  --oa-gray-50: #F9FAFB;
  --oa-gray-100: #F3F4F6;
  --oa-gray-200: #E5E7EB;
  --oa-gray-400: #9CA3AF;
  --oa-gray-500: #6B7280;
  --oa-gray-700: #374151;
  --oa-gray-900: #111827;
  --oa-topbar-bg: #F0F4F8;
  --oa-topbar-border: #D8E0EA;
  --oa-radius: 12px;
  --oa-radius-sm: 8px;
  --oa-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --oa-font: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --oa-sidebar-w: 248px;

  /* Tipografi ölçeği (4px ızgara) */
  --text-2xs: 0.75rem;   /* 12px */
  --text-xs: 0.8125rem;  /* 13px */
  --text-sm: 0.875rem;   /* 14px */
  --text-md: 0.9375rem;  /* 15px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.35rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;

  --bg: var(--oa-gray-50);
  --bg2: #fff;
  --card: #fff;
  --text: var(--oa-gray-900);
  --muted: var(--oa-gray-500);
  --accent: var(--oa-accent);
  --accent2: var(--oa-primary);
  --danger: var(--oa-danger);
  --line: var(--oa-gray-200);
  --radius: var(--oa-radius);
  --font: var(--oa-font);
  --surface: #fff;
  --surface-2: var(--oa-gray-50);
  --flash-ok-bg: var(--oa-ok-soft);
  --flash-ok-fg: var(--oa-ok-text);
  --flash-err-bg: var(--oa-danger-soft);
  --flash-err-fg: var(--oa-danger-text);
}

@media (prefers-color-scheme: dark) {
  :root {
    --oa-gray-50: #0F172A;
    --oa-gray-100: #1E293B;
    --oa-gray-200: #334155;
    --oa-gray-400: #94A3B8;
    --oa-gray-500: #94A3B8;
    --oa-gray-700: #CBD5E1;
    --oa-gray-900: #F8FAFC;
    --oa-topbar-bg: #0B1220;
    --oa-topbar-border: #1E293B;
    --oa-accent-soft: #1E1B4B;
    --oa-warning-soft: #422006;
    --oa-danger-soft: #450A0A;
    --oa-ok-soft: #064E3B;
    --oa-ok-text: #A7F3D0;
    --oa-danger-text: #FECACA;
    --bg: #0B1220;
    --bg2: #111827;
    --card: #111827;
    --surface: #111827;
    --surface-2: #0F172A;
    --text: #F8FAFC;
    --muted: #94A3B8;
    --line: #334155;
    --oa-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    --flash-ok-bg: #064E3B;
    --flash-ok-fg: #A7F3D0;
    --flash-err-bg: #450A0A;
    --flash-err-fg: #FECACA;
  }
  body { background: var(--bg); color: var(--text); }
  .auth-card, .price-card, .table-wrap, .guest-book-card, .panel-main,
  .editor-inspector, dialog {
    background: var(--card);
    color: var(--text);
  }
  dialog h3 { color: #E2E8F0; border-bottom-color: var(--oa-gray-200); }
  dialog .btn-row,
  dialog .sticky-dlg-actions { border-top-color: var(--oa-gray-200); }
  dialog.mr-dialog--confirm .dlg-icon {
    background: #1E293B;
    border-color: #334155;
    color: #93C5FD;
  }
  dialog.mr-dialog--confirm .dlg-icon.is-danger {
    background: #450A0A;
    border-color: #7F1D1D;
    color: #FECACA;
  }
  .dlg-tabs { background: #0F172A; border-color: #334155; }
  .dlg-tab.is-active { background: #1E293B; color: #E2E8F0; }
  .editor-help-list li { background: #0F172A; }
  .editor-menu, .action-menu { background: var(--card); }
  .guest-sticky-bar {
    background: color-mix(in srgb, var(--card) 94%, transparent);
  }
  .zone-page-title { color: var(--text); }
  .zone-page-title.is-active { color: #fff; }
  .guest-sticky-summary,
  .editor-topbar h1,
  .floor-summary {
    color: var(--text);
  }
  input, select, textarea {
    background: var(--oa-gray-100);
    color: var(--text);
    border-color: var(--oa-gray-200);
  }
  .btn-ghost {
    background: var(--oa-gray-100);
    color: var(--oa-gray-700);
    border-color: var(--oa-gray-200);
  }
  .floor-table.st-available,
  .floor-table.pick.is-pickable:not(.is-unavailable) {
    background: #1E293B !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--oa-font);
  background: var(--oa-gray-50);
  color: var(--oa-gray-900);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--oa-accent); text-decoration: none; }
a:hover { color: var(--oa-accent-dark); }

.container { width: min(980px, 92vw); margin: 0 auto; padding: 1.5rem 0 3rem; }
.container.narrow { width: min(480px, 92vw); }

/* Marketing / auth chrome */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 4vw;
  background: linear-gradient(135deg, var(--oa-primary), var(--oa-primary-light));
  color: #fff;
  box-shadow: 0 2px 12px rgba(7, 56, 102, 0.2);
}
.brand {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  font-size: 1.1rem;
}
.topbar nav { display: flex; gap: 0.75rem; align-items: center; }
.topbar nav a { color: rgba(255, 255, 255, 0.9); font-weight: 600; font-size: 0.92rem; }
.topbar nav a:hover { color: #fff; }
.topbar .btn { background: #fff; color: var(--oa-primary); }
.topbar .btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.footer { text-align: center; color: var(--oa-gray-500); padding: 2rem; font-size: 0.85rem; }

.hero {
  padding: 3rem 0 2rem;
  background:
    radial-gradient(800px 320px at 90% -10%, rgba(79, 70, 229, 0.14), transparent),
    linear-gradient(180deg, #F0F4F8 0%, var(--oa-gray-50) 100%);
  margin: -1.5rem -4vw 0;
  padding-left: 4vw;
  padding-right: 4vw;
  border-bottom: 1px solid var(--oa-gray-200);
}
.eyebrow {
  color: var(--oa-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0.4rem 0 1rem;
  color: var(--oa-primary);
  font-weight: 800;
}
.lead { color: var(--oa-gray-500); font-size: 1.08rem; max-width: 36rem; }
.cta-row { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--oa-primary), var(--oa-primary-light));
  color: #fff;
  border: 0;
  border-radius: var(--oa-radius-sm);
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  text-decoration: none;
  min-height: 44px;
}
.btn:hover { filter: brightness(1.05); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
.zone-page-title:focus-visible,
.guest-list-table:focus-visible {
  outline: 3px solid var(--oa-accent);
  outline-offset: 2px;
}
.btn-ghost {
  background: var(--oa-gray-100);
  color: var(--oa-gray-700);
  border: 1px solid var(--oa-gray-200);
}
.btn-ghost:hover { background: var(--oa-gray-200); color: var(--oa-gray-900); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; min-height: 36px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--oa-danger); color: #fff; }
.btn:disabled,
.btn[disabled] {
  opacity: 1;
  cursor: not-allowed;
  filter: none;
  transform: none;
  background: var(--oa-gray-200);
  color: var(--oa-gray-500);
  box-shadow: none;
}
.btn-ghost:disabled,
.btn-ghost[disabled] {
  background: var(--oa-gray-100);
  color: var(--oa-gray-400);
  border-color: var(--oa-gray-200);
}
#undoBtn:not(:disabled) {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.pricing { margin-top: 2.5rem; }
.pricing h2 { color: var(--oa-primary); font-size: 1.35rem; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.price-card {
  background: var(--card);
  border: 1px solid var(--oa-gray-200);
  border-radius: var(--oa-radius);
  padding: 1.35rem;
  box-shadow: var(--oa-shadow);
}
.price-card.featured {
  border-color: var(--oa-accent);
  box-shadow: 0 0 0 1px var(--oa-accent), var(--oa-shadow);
}
.price { font-size: 2rem; font-weight: 800; margin: 0.5rem 0; color: var(--oa-primary); }
.price span { font-size: 0.9rem; color: var(--oa-gray-500); font-weight: 500; }
.price-card ul { padding-left: 1.1rem; color: var(--oa-gray-500); }
.save { color: var(--oa-success-dark); font-weight: 600; font-size: 0.9rem; }

.auth-card {
  background: var(--card);
  border: 1px solid var(--oa-gray-200);
  border-radius: var(--oa-radius);
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: var(--oa-shadow);
}
.auth-card h1 { color: var(--oa-primary); font-size: 1.4rem; margin-top: 0; }

.form { display: grid; gap: 0.85rem; }
.form.narrow { max-width: 420px; }
label { display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--oa-gray-700); font-weight: 600; }
input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--oa-radius-sm);
  border: 2px solid var(--oa-gray-200);
  background: var(--surface);
  color: var(--oa-gray-900);
  font-family: inherit;
  font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--oa-accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.input-suffix { display: flex; align-items: center; gap: 0.4rem; }
.input-suffix span { color: var(--oa-gray-500); white-space: nowrap; }
.muted { color: var(--oa-gray-500); }
.center { text-align: center; }

.flash {
  padding: 0.8rem 1rem;
  margin: 0.75rem 4vw;
  border-radius: var(--oa-radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
}
.flash-ok { background: var(--flash-ok-bg); color: var(--flash-ok-fg); }
.flash-error { background: var(--flash-err-bg); color: var(--flash-err-fg); }

/* Panel shell — OtelAdisyon sidebar look */
.body-panel { background: var(--oa-gray-50); }
.panel-shell {
  display: grid;
  grid-template-columns: var(--oa-sidebar-w) 1fr;
  min-height: 100vh;
}
.panel-nav {
  background: linear-gradient(180deg, #073866 0%, #052847 100%);
  color: #fff;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.12);
}
.brand-sm {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0.35rem 0.55rem 0.55rem;
  line-height: 1.3;
}
.sys-clock {
  margin: 0 0.35rem 0.85rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.1rem;
}
.sys-clock-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.sys-clock-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  line-height: 1.25;
}
.sys-clock-tz {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}
.panel-nav a {
  color: rgba(255, 255, 255, 0.82);
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.panel-nav a.active,
.panel-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.panel-nav a.active {
  background: rgba(79, 70, 229, 0.35);
  box-shadow: inset 3px 0 0 #a78bfa;
}
.nav-logout { margin: 0.35rem 0 0; }
.nav-logout button {
  width: 100%;
  text-align: left;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.7rem 0.85rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-logout button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-warn {
  margin-top: auto;
  font-size: 0.8rem;
  color: #FDE68A;
  background: rgba(245, 158, 11, 0.15);
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
}
.panel-main { padding: 1.15rem 1.35rem 2rem; background: var(--oa-gray-50); }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: var(--oa-topbar-bg);
  border: 1px solid var(--oa-topbar-border);
  border-radius: var(--oa-radius);
}
.toolbar h1 {
  margin: 0;
  font-size: 1.15rem;
  flex: 1;
  color: var(--oa-primary);
  font-weight: 700;
}

.editor-shell {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.editor-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--oa-gray-200);
  border-radius: var(--oa-radius);
}
.editor-topbar h1 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--oa-primary);
  font-weight: 700;
}
.editor-topbar .zone-page-titles {
  flex: 1;
  margin: 0;
  min-width: 140px;
}
.editor-topbar .zone-page-title {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  box-shadow: none;
}
.editor-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-left: auto;
}
.editor-dirty {
  font-size: 0.82rem;
  font-weight: 600;
  color: #B45309;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
}
.editor-menu-wrap {
  position: relative;
}
.editor-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  /* Müfettiş (120) ve seçim çubuğunun (250) üstünde kalmalı. */
  z-index: 320;
  min-width: 220px;
  padding: 0.5rem;
  background: var(--card, #fff);
  border: 1px solid var(--oa-gray-200);
  border-radius: 14px;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow:
    0 18px 40px rgba(7, 56, 102, 0.14),
    0 2px 8px rgba(7, 56, 102, 0.06);
  animation: mrPopIn 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.editor-menu.is-open {
  display: flex;
}
/* Sağ uçtaki menüler ekrandan taşmasın. */
.editor-menu-right {
  left: auto;
  right: 0;
}
.editor-menu-label {
  margin: 0.55rem 0.35rem 0.3rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--oa-primary);
  background: var(--oa-gray-100);
  border-radius: 6px;
  border-left: 3px solid var(--oa-primary);
}
.editor-menu-label:first-child {
  margin-top: 0.15rem;
}
.editor-menu button {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  color: var(--oa-gray-900);
  font: inherit;
  cursor: pointer;
}
.editor-menu button:hover {
  background: var(--oa-gray-100);
}
.editor-menu button.is-danger {
  color: var(--oa-danger);
}
.editor-zone-select-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.editor-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.editor-status .floor-summary {
  flex: 1;
  margin: 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
}
.editor-help-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--oa-gray-200);
  background: var(--card);
  color: var(--oa-primary);
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.editor-help-btn:hover {
  background: var(--oa-gray-100);
}
.editor-help-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.editor-help-list li {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: var(--oa-gray-50);
  border: 1px solid var(--oa-gray-200);
  font-size: 0.9rem;
  line-height: 1.4;
}
.editor-help-list kbd {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border: 1px solid var(--oa-gray-200);
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(7, 56, 102, 0.08);
}
.editor-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
}
.editor-canvas-wrap {
  position: relative;
  min-width: 0;
}
/* Müfettiş artık tuvalin üstünde durur. Sütun genişliğini değiştirdiğinde
   tuval yeniden akıyor ve masalar yer değiştirmiş gibi görünüyordu. */
.editor-inspector {
  display: none;
  background: var(--card);
  border: 1px solid var(--oa-gray-200);
  border-radius: var(--oa-radius);
  padding: 0.9rem;
  flex-direction: column;
  gap: 0.65rem;
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 120;
  width: min(300px, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  overflow: auto;
  box-shadow: 0 10px 30px rgba(7, 56, 102, 0.22);
}
.editor-inspector.is-open {
  display: flex;
}
.editor-inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.editor-inspector-head h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--oa-primary);
}
.editor-inspector-actions {
  flex-wrap: wrap;
}
.editor-inspector-hint {
  margin: 0;
  font-size: 0.8rem;
}
.editor-selection-bar {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 250;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--oa-gray-200);
  border-radius: 12px;
  width: fit-content;
  max-width: calc(100vw - 1.5rem);
  margin: 0;
  pointer-events: auto;
  box-shadow: 0 8px 28px rgba(7, 56, 102, 0.18);
}
.editor-selection-bar.is-open {
  display: flex !important;
}
.editor-selection-bar .btn {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.editor-selection-bar .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
/* Pasif hizalama butonları: saydamlık yerine gerçek gri — ghost buton
   üstünde 0.55 opaklık WCAG kontrast eşiğinin altında kalıyordu. */
.editor-selection-bar [data-align]:not(.is-align-ready) {
  opacity: 1;
  color: #6B7280;
  background: var(--oa-gray-100, #F3F4F6);
  border-color: var(--oa-gray-200);
}
.editor-selection-label {
  font-weight: 700;
  color: var(--oa-primary);
  margin-right: 0.25rem;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor-toast {
  display: none;
  position: fixed;
  left: 50%;
  top: auto;
  bottom: max(5.5rem, calc(4.5rem + env(safe-area-inset-bottom)));
  transform: translateX(-50%) translateY(8px);
  z-index: 300;
  background: linear-gradient(135deg, #052847, #0a4a7a);
  color: #fff;
  padding: 0.8rem 1.25rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 14px 36px rgba(5, 40, 71, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.editor-toast.is-open {
  display: block !important;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.editor-toast.is-warn {
  background: linear-gradient(135deg, #92400E, #B45309);
}
.editor-menu-wide {
  min-width: 260px;
}
.editor-menu-field {
  display: grid;
  gap: 0.25rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--oa-gray-500);
}
.editor-menu-field select {
  font-weight: 500;
  color: var(--oa-gray-900);
}
.editor-search input {
  min-width: 120px;
  max-width: 160px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--oa-gray-200);
  border-radius: 8px;
  font: inherit;
}
.editor-snap-toggle {
  margin: 0;
  white-space: nowrap;
  font-size: 0.85rem;
}
.editor-tag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.5rem;
  max-height: 160px;
  overflow: auto;
  margin-bottom: 0.35rem;
}
.editor-tag-grid .check-inline {
  font-size: 0.8rem;
  font-weight: 500;
}
.floor-item-wrap.is-locked .floor-table {
  opacity: 0.7;
  outline: 2px dashed var(--oa-danger);
  outline-offset: 2px;
}
.floor-item-wrap.is-combined .floor-table {
  box-shadow: 0 0 0 2px #F59E0B;
}
.floor-item-wrap.is-search-hit .floor-table {
  outline: 3px solid #10B981;
  outline-offset: 3px;
}
.table-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  max-width: 100%;
  pointer-events: none;
}
.table-tag-chip {
  font-size: 0.55rem;
  font-weight: 700;
  background: rgba(7, 56, 102, 0.1);
  color: var(--oa-primary);
  padding: 0.05rem 0.25rem;
  border-radius: 4px;
  line-height: 1.2;
}
.floor-table.shape-booth {
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #E8EEF5, #fff);
  border-color: #7C93B2;
}
.floor-table.shape-banquette {
  border-radius: 4px 16px 16px 4px;
  background: #F3EDE4;
  border-color: #A67C52;
}
.floor-table.shape-hightop {
  border-radius: 10px;
  background: #FFF7ED;
  border-color: #C2410C;
}
.floor-table.shape-cabana {
  border-radius: 8px;
  background: linear-gradient(160deg, #FEF3C7, #FDE68A);
  border-color: #D97706;
}
.floor-table.shape-daybed {
  border-radius: 14px;
  background: #ECFDF5;
  border-color: #059669;
}
/* Plaj locası: kare çardak. Hasır zemin + dört köşe direği + tente gölgesi. */
.floor-table.shape-beachloge {
  border-radius: 6px;
  border: 3px solid #B4762E;
  background-color: #F5E7C6;
  background-image:
    linear-gradient(#B4762E, #B4762E),
    linear-gradient(#B4762E, #B4762E),
    linear-gradient(#B4762E, #B4762E),
    linear-gradient(#B4762E, #B4762E),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(45deg, #FDF6E3, #FDF6E3 6px, #F5E7C6 6px, #F5E7C6 12px);
  background-repeat: no-repeat;
  background-size:
    8px 8px,
    8px 8px,
    8px 8px,
    8px 8px,
    100% 100%,
    100% 100%;
  background-position:
    4px 4px,
    calc(100% - 4px) 4px,
    4px calc(100% - 4px),
    calc(100% - 4px) calc(100% - 4px),
    0 0,
    0 0;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.65);
}
.floor-table.shape-beachloge::before,
.floor-table.shape-beachloge::after {
  content: none;
  display: none;
}
.floor-table.shape-beachloge .table-face { z-index: 3; }
.floor-table.shape-walkway {
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #E5E7EB, #E5E7EB 8px, #D1D5DB 8px, #D1D5DB 16px);
  border-color: #9CA3AF;
  color: #4B5563;
}
.floor-table.shape-stage {
  border-radius: 6px;
  background: #1F2937;
  border-color: #111827;
  color: #F9FAFB;
}
.floor-table.shape-stage .table-name,
.floor-table.shape-stage .cap-label { color: #F9FAFB; background: transparent; }
.floor-table.shape-standing {
  border-radius: 6px;
  border-style: dashed;
  background: rgba(7, 56, 102, 0.06);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media print {
  .panel-nav,
  .no-print,
  .editor-topbar,
  .editor-status,
  .editor-inspector,
  .editor-selection-bar,
  .flash,
  .editor-toast {
    display: none !important;
  }
  .panel-shell { display: block; }
  .panel-main { padding: 0; }
  .floor-canvas.edit {
    height: auto !important;
    min-height: 0;
    box-shadow: none;
    border: 1px solid #ccc;
    overflow: visible;
  }
  /* Yazdırmada zoom devre dışı: plan gerçek ölçüsünde çıksın. */
  .floor-stage {
    transform: none !important;
    position: relative;
  }
  .floor-stage-sizer {
    width: auto !important;
    height: auto !important;
  }
  .editor-guide,
  .editor-marquee,
  .table-remove,
  .resize-handle {
    display: none !important;
  }
}
.editor-dirty[hidden],
.editor-menu[hidden],
.editor-inspector[hidden],
.editor-selection-bar[hidden],
.editor-toast[hidden] {
  display: none !important;
}
.floor-item-wrap.is-other-zone {
  opacity: 0.28;
  /* Başka bölgenin öğeleri yalnızca bağlam olarak görünür. Tıklanabilir
     olduklarında aktif bölgedeki masaların üstünden seçim çalıyor ve
     hizalamaya karışıp üst üste binmeye yol açıyorlardı. */
  pointer-events: none;
  filter: grayscale(0.5);
}
.floor-item-wrap.is-other-zone.is-selected {
  opacity: 1;
  pointer-events: auto;
  filter: none;
}
/* Gerçekten üst üste binen öğeler için uyarı çerçevesi. */
.floor-item-wrap.is-overlap .floor-table {
  outline: 2px dashed #DC2626;
  outline-offset: 2px;
}

.zone-page-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  align-items: center;
}
.zone-page-title {
  display: inline-flex;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: inherit;
  color: var(--oa-primary);
  background: var(--card);
  border: 1px solid var(--oa-gray-200);
  border-radius: 10px;
  padding: 0.4rem 0.85rem;
  box-shadow: var(--oa-shadow);
  line-height: 1.2;
  cursor: pointer;
}
.zone-page-title.is-active {
  background: var(--oa-primary);
  color: #fff;
  border-color: var(--oa-primary);
}
.floor-canvas {
  position: relative;
  min-height: 560px;
  padding: 28px;
  background:
    radial-gradient(circle at 1px 1px, rgba(7, 56, 102, 0.06) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--surface-2), var(--oa-gray-100));
  border: 1px solid var(--oa-gray-200);
  border-radius: var(--oa-radius);
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.floor-canvas.edit {
  min-height: 780px;
  height: min(82vh, 960px);
}
.table-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  text-align: center;
  pointer-events: none;
  max-width: 100%;
  z-index: 2;
}
.floor-table {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  background: var(--card);
  border: 2px solid var(--oa-gray-200);
  color: var(--oa-gray-900);
  cursor: pointer;
  user-select: none;
  padding: 0.15rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(7, 56, 102, 0.08);
  overflow: visible;
  z-index: 1;
}
.floor-table.shape-round { border-radius: 999px; }
.floor-table.shape-rect { border-radius: 10px; }
.floor-table.shape-square { border-radius: 8px; }
.floor-table.shape-bar {
  border-radius: 5px;
  background: linear-gradient(180deg, #4A3728, #2F2118);
  border-color: #1F150F;
  color: #F5E6D3;
}
.floor-table.shape-bar.st-available,
.floor-table.shape-bar.st-reserved,
.floor-table.shape-bar.st-seated,
.floor-table.shape-bar.st-closed {
  border-color: #1F150F;
  background: linear-gradient(180deg, #4A3728, #2F2118);
  opacity: 1;
}
.floor-table.shape-bar strong,
.floor-table.shape-bar small { color: #F5E6D3; }
.floor-table.shape-stool {
  border-radius: 999px;
  background: #D6B48A;
  border-color: #8B6914;
  padding: 0;
}
.floor-table.shape-pool {
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 35% 30%, rgba(255, 255, 255, 0.45), transparent 45%),
    linear-gradient(160deg, #5EC8F0 0%, #1E88C8 45%, #0B5F9A 100%);
  border: 3px solid #7EC8E8;
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.25),
    0 4px 14px rgba(14, 90, 140, 0.28);
  color: #fff;
}
.floor-table.shape-sea {
  z-index: 1;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.12) 0 10px,
      transparent 10px 22px
    ),
    linear-gradient(180deg, #3BA4D4 0%, #1A6FA8 42%, #0E4F7A 100%);
  border: 2px solid #7EBFE0;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.15);
  color: #fff;
}
.floor-table.shape-pool { z-index: 2; }
.floor-table.shape-deck { z-index: 3; }
.floor-table.shape-text { z-index: 12; }
.floor-table:not(.shape-sea):not(.shape-pool):not(.shape-deck):not(.shape-text) { z-index: 8; }
.floor-table.shape-deck {
  border-radius: 6px;
  background:
    repeating-linear-gradient(
      90deg,
      #D2AE78 0 14px,
      #A87E45 14px 16px
    );
  border: 2px solid #7A5528;
  box-shadow: 0 4px 12px rgba(60, 40, 10, 0.25);
  color: #3A2410;
}
.floor-table.shape-text {
  background: transparent;
  border: 1px dashed transparent;
  box-shadow: none;
  padding: 0.2rem 0.35rem;
}
.floor-table.shape-text:hover,
.floor-item-wrap.is-selected .floor-table.shape-text {
  border-color: rgba(7, 56, 102, 0.35);
  background: rgba(255, 255, 255, 0.55);
}
.floor-table.shape-text .table-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--oa-primary);
}
.floor-table.shape-text .cap-label,
.floor-table.shape-text .table-remove { opacity: 0.85; }
.floor-table.shape-sea .table-name,
.floor-table.shape-sea .cap-label,
.floor-table.shape-pool .table-name,
.floor-table.shape-pool .cap-label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.floor-table.shape-deck .table-name { color: #3A2410; }
.floor-table.shape-deck .cap-label { color: #5C4030; }
.floor-table.shape-pool.st-available,
.floor-table.shape-pool.st-reserved,
.floor-table.shape-pool.st-seated,
.floor-table.shape-pool.st-closed,
.floor-table.shape-sea.st-available,
.floor-table.shape-sea.st-reserved,
.floor-table.shape-sea.st-seated,
.floor-table.shape-sea.st-closed,
.floor-table.shape-deck.st-available,
.floor-table.shape-deck.st-reserved,
.floor-table.shape-deck.st-seated,
.floor-table.shape-deck.st-closed,
.floor-table.shape-text.st-available,
.floor-table.shape-text.st-reserved,
.floor-table.shape-text.st-seated,
.floor-table.shape-text.st-closed {
  opacity: 1;
}
.floor-table.shape-pool.st-available,
.floor-table.shape-pool.st-reserved,
.floor-table.shape-pool.st-seated,
.floor-table.shape-pool.st-closed {
  border-color: #7EC8E8;
  background:
    radial-gradient(ellipse at 35% 30%, rgba(255, 255, 255, 0.45), transparent 45%),
    linear-gradient(160deg, #5EC8F0 0%, #1E88C8 45%, #0B5F9A 100%);
  opacity: 1;
}
.floor-table.shape-sea.st-available,
.floor-table.shape-sea.st-reserved,
.floor-table.shape-sea.st-seated,
.floor-table.shape-sea.st-closed {
  border-color: #7EBFE0;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.12) 0 10px,
      transparent 10px 22px
    ),
    linear-gradient(180deg, #3BA4D4 0%, #1A6FA8 42%, #0E4F7A 100%);
  opacity: 1;
}
.floor-table.shape-deck.st-available,
.floor-table.shape-deck.st-reserved,
.floor-table.shape-deck.st-seated,
.floor-table.shape-deck.st-closed {
  border-color: #7A5528;
  background:
    repeating-linear-gradient(
      90deg,
      #D2AE78 0 14px,
      #A87E45 14px 16px
    );
  opacity: 1;
}
.floor-table.shape-lounger {
  border-radius: 8px 8px 5px 5px;
  background:
    linear-gradient(180deg, #F2D4A8 0 18%, transparent 18%),
    linear-gradient(90deg, #E8C48A 0%, #D4A86A 50%, #E8C48A 100%);
  border: 2px solid #A67C3D;
  box-shadow: 0 2px 8px rgba(120, 80, 30, 0.2);
}
.floor-table.shape-lounger strong { font-size: 0.62rem; }
.floor-table.shape-lounger small { font-size: 0.55rem; }
.floor-table.shape-umbrella {
  border-radius: 999px;
  background:
    conic-gradient(
      from 0deg,
      #E85D4C 0 45deg,
      #F5F0E6 45deg 90deg,
      #E85D4C 90deg 135deg,
      #F5F0E6 135deg 180deg,
      #E85D4C 180deg 225deg,
      #F5F0E6 225deg 270deg,
      #E85D4C 270deg 315deg,
      #F5F0E6 315deg 360deg
    );
  border: 2px solid #B83A2C;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
.floor-table.shape-umbrella::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #5C3A1E;
  z-index: 1;
}
.floor-table.shape-umbrella.st-available,
.floor-table.shape-umbrella.st-reserved,
.floor-table.shape-umbrella.st-seated,
.floor-table.shape-umbrella.st-closed {
  border-color: #B83A2C;
  opacity: 1;
}
.floor-table.shape-umbrella strong {
  position: relative;
  z-index: 2;
  font-size: 0.58rem;
  color: #3A2010;
  background: rgba(255, 255, 255, 0.65);
  padding: 0.08rem 0.2rem;
  border-radius: 4px;
}
.floor-table.shape-umbrella small { display: none; }
.floor-table.st-available { border-color: var(--oa-success); }
.floor-table.st-reserved {
  border-color: var(--oa-warning-border) !important;
  background: var(--oa-warning-soft) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}
.floor-table.st-seated {
  border-color: var(--oa-danger-dark) !important;
  background: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.28);
}
.floor-table.st-closed { opacity: 0.45; border-color: var(--oa-gray-400) !important; }
.floor-table.st-reserved .cap-label,
.floor-table.st-seated .cap-label {
  font-weight: 700;
  color: #B45309;
}
.floor-table.st-seated .cap-label { color: #B91C1C; }
.floor-table .cap-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--oa-gray-500);
  line-height: 1.1;
  letter-spacing: 0;
}
.floor-table .table-name {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--oa-primary);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.floor-table.shape-bar .cap-label,
.floor-table.shape-pool .cap-label { color: rgba(255, 255, 255, 0.85); }
.floor-table.shape-bar .table-name,
.floor-table.shape-pool .table-name { color: #fff; }
.floor-table.shape-umbrella .cap-label {
  font-size: 0.62rem;
  color: #3A2010;
  background: none;
  padding: 0;
}
.floor-table.shape-umbrella .table-name {
  font-size: 0.72rem;
  color: #3A2010;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
}
.floor-table strong { font-size: 1.12rem; font-weight: 800; color: var(--oa-primary); line-height: 1.05; }
.floor-table small { font-size: 0.68rem; color: var(--oa-gray-500); line-height: 1.1; }
.floor-item-wrap {
  position: absolute;
  z-index: 1;
  overflow: visible;
  touch-action: none;
}
.floor-item-wrap.is-selected { z-index: 15; }
.floor-item-wrap.is-selected .floor-table {
  outline: 3px solid var(--oa-select);
  outline-offset: 4px;
  box-shadow:
    0 0 0 6px var(--oa-select-glow),
    0 4px 14px rgba(7, 56, 102, 0.22);
  border-color: var(--oa-select);
}
.floor-item-wrap.is-selected::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px dashed var(--oa-accent);
  border-radius: 8px;
  pointer-events: none;
  z-index: 0;
}
.floor-item-wrap .floor-table {
  position: relative;
  left: auto;
  top: auto;
}
/* Silme butonu sürekli görünürken hem görsel gürültü hem yanlış tıklama
   kaynağıydı; artık yalnızca seçiliyken ya da üzerine gelince çıkıyor. */
.floor-item-wrap .table-remove {
  right: -10px;
  top: -10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.floor-item-wrap:hover .table-remove,
.floor-item-wrap.is-selected .table-remove,
.floor-item-wrap:focus-within .table-remove {
  opacity: 1;
  pointer-events: auto;
}
.editor-marquee {
  position: absolute;
  border: 2px solid var(--oa-accent);
  background: rgba(14, 165, 233, 0.12);
  pointer-events: none;
  z-index: 50;
  display: none;
}
/* Ölçeklenebilir sahne: #editorFloor sadece kaydırma kabı, öğeler burada. */
.floor-stage-sizer {
  position: relative;
  min-width: 100%;
  min-height: 100%;
}
.floor-stage {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}
/* Sürüklerken komşulara hizalandığını gösteren çizgiler. */
.editor-guide {
  position: absolute;
  background: #EC4899;
  pointer-events: none;
  z-index: 60;
}
.editor-guide-x { width: 1px; }
.editor-guide-y { height: 1px; }
.editor-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid var(--oa-gray-200);
  border-radius: 10px;
  padding: 0.1rem;
  background: var(--card);
}
.editor-zoom .editor-zoom-value {
  min-width: 3.6rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.editor-topbar-sep {
  width: 1px;
  align-self: stretch;
  margin: 0.1rem 0.2rem;
  background: var(--oa-gray-200);
}
.floor-canvas.edit {
  cursor: default;
}
.floor-canvas.edit.is-marquee {
  cursor: crosshair;
}
.table-rotate,
.table-rotate-btn {
  display: none !important;
}
.floor-item-wrap.is-selected .resize-handle { display: block; }
.resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--card);
  border: 2px solid var(--oa-accent);
  border-radius: 2px;
  z-index: 8;
  display: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.resize-n { top: -6px; left: 50%; margin-left: -6px; cursor: ns-resize; }
.resize-s { bottom: -6px; left: 50%; margin-left: -6px; cursor: ns-resize; }
.resize-e { right: -6px; top: 50%; margin-top: -6px; cursor: ew-resize; }
.resize-w { left: -6px; top: 50%; margin-top: -6px; cursor: ew-resize; }
.resize-ne { top: -6px; right: -6px; cursor: nesw-resize; }
.resize-nw { top: -6px; left: -6px; cursor: nwse-resize; }
.resize-se { bottom: -6px; right: -6px; cursor: nwse-resize; }
.resize-sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.editor-meta {
  margin: 0.75rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: end;
}
.editor-rotate-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.floor-summary {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--oa-gray-200);
  border-radius: var(--oa-radius);
  font-size: 0.95rem;
  color: var(--oa-gray-900);
  box-shadow: var(--oa-shadow);
}
.item-edit-form .item-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.item-edit-form .item-edit-head h3 { margin: 0; }
.item-edit-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--oa-gray-100, #EEF2F7);
  color: var(--oa-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.item-edit-close:hover {
  background: var(--oa-danger, #DC2626);
  color: #fff;
}
.item-edit-section-label {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--oa-primary);
}
.item-edit-actions {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}
.floor-chair {
  position: absolute;
  width: 14px;
  height: 12px;
  background: #C9A06A;
  border: 1.5px solid #7A5528;
  border-radius: 3px;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  z-index: 2;
}
.floor-chair::before {
  content: '';
  position: absolute;
  background: #8B6914;
  border-radius: 2px;
}
.floor-chair.chair-n { top: -17px; left: 50%; transform: translateX(-50%); }
.floor-chair.chair-n::before { top: -4px; left: 2px; right: 2px; height: 4px; }
.floor-chair.chair-s { bottom: -17px; left: 50%; transform: translateX(-50%); }
.floor-chair.chair-s::before { bottom: -4px; left: 2px; right: 2px; height: 4px; }
.floor-chair.chair-n1 { top: -17px; left: 30%; transform: translateX(-50%); }
.floor-chair.chair-n1::before { top: -4px; left: 2px; right: 2px; height: 4px; }
.floor-chair.chair-n2 { top: -17px; left: 70%; transform: translateX(-50%); }
.floor-chair.chair-n2::before { top: -4px; left: 2px; right: 2px; height: 4px; }
.floor-chair.chair-n3 { top: -17px; left: 50%; transform: translateX(-50%); }
.floor-chair.chair-n3::before { top: -4px; left: 2px; right: 2px; height: 4px; }
.floor-chair.chair-s1 { bottom: -17px; left: 30%; transform: translateX(-50%); }
.floor-chair.chair-s1::before { bottom: -4px; left: 2px; right: 2px; height: 4px; }
.floor-chair.chair-s2 { bottom: -17px; left: 70%; transform: translateX(-50%); }
.floor-chair.chair-s2::before { bottom: -4px; left: 2px; right: 2px; height: 4px; }
.floor-chair.chair-s3 { bottom: -17px; left: 50%; transform: translateX(-50%); }
.floor-chair.chair-s3::before { bottom: -4px; left: 2px; right: 2px; height: 4px; }
.floor-chair.chair-w { left: -17px; top: 50%; transform: translateY(-50%); width: 12px; height: 14px; }
.floor-chair.chair-w::before { left: -4px; top: 2px; bottom: 2px; width: 4px; }
.floor-chair.chair-e { right: -17px; top: 50%; transform: translateY(-50%); width: 12px; height: 14px; }
.floor-chair.chair-e::before { right: -4px; top: 2px; bottom: 2px; width: 4px; }
.floor-chair.chair-w1 { left: -17px; top: 28%; transform: translateY(-50%); width: 12px; height: 14px; }
.floor-chair.chair-w1::before { left: -4px; top: 2px; bottom: 2px; width: 4px; }
.floor-chair.chair-w2 { left: -17px; top: 72%; transform: translateY(-50%); width: 12px; height: 14px; }
.floor-chair.chair-w2::before { left: -4px; top: 2px; bottom: 2px; width: 4px; }
.floor-chair.chair-w3 { left: -17px; top: 50%; transform: translateY(-50%); width: 12px; height: 14px; }
.floor-chair.chair-w3::before { left: -4px; top: 2px; bottom: 2px; width: 4px; }
.floor-chair.chair-e1 { right: -17px; top: 28%; transform: translateY(-50%); width: 12px; height: 14px; }
.floor-chair.chair-e1::before { right: -4px; top: 2px; bottom: 2px; width: 4px; }
.floor-chair.chair-e2 { right: -17px; top: 72%; transform: translateY(-50%); width: 12px; height: 14px; }
.floor-chair.chair-e2::before { right: -4px; top: 2px; bottom: 2px; width: 4px; }
.floor-chair.chair-e3 { right: -17px; top: 50%; transform: translateY(-50%); width: 12px; height: 14px; }
.floor-chair.chair-e3::before { right: -4px; top: 2px; bottom: 2px; width: 4px; }
.floor-chair.chair-ne { top: -14px; right: -14px; transform: rotate(45deg); }
.floor-chair.chair-ne::before { top: -4px; left: 2px; right: 2px; height: 4px; }
.floor-chair.chair-se { bottom: -14px; right: -14px; transform: rotate(135deg); }
.floor-chair.chair-se::before { top: -4px; left: 2px; right: 2px; height: 4px; }
.floor-chair.chair-sw { bottom: -14px; left: -14px; transform: rotate(-135deg); }
.floor-chair.chair-sw::before { top: -4px; left: 2px; right: 2px; height: 4px; }
.floor-chair.chair-nw { top: -14px; left: -14px; transform: rotate(-45deg); }
.floor-chair.chair-nw::before { top: -4px; left: 2px; right: 2px; height: 4px; }
.check-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.check-inline input { width: auto; }
.table-remove {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--oa-danger);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  z-index: 30;
  pointer-events: auto;
  font-size: 1rem;
  padding: 0;
}
.rez-chip {
  font-size: 0.65rem;
  background: var(--oa-accent-soft);
  color: var(--oa-accent-dark);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.rez-chip.is-next {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FDBA74;
}
.rez-chip.is-now {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #F59E0B;
  font-weight: 700;
}
.floor-table.floor-prop {
  cursor: default;
}
.floor-table.floor-prop small {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.floor-table.pick input { position: absolute; opacity: 0; }
.floor-table.pick:has(input:checked) {
  outline: 3px solid var(--oa-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.22);
  z-index: 12;
}
.floor-table.pick.is-pickable {
  cursor: pointer;
}
.floor-canvas.guest .floor-table.pick .table-face {
  gap: 0.05rem;
  padding: 0.1rem;
}
.floor-canvas.guest .floor-table.pick .table-name {
  font-size: 1.05rem;
  line-height: 1;
}
.floor-canvas.guest .floor-table.pick .cap-label {
  font-size: 0.62rem;
  line-height: 1.05;
  font-weight: 600;
  color: var(--oa-gray-500);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.floor-table.pick.is-occupied {
  cursor: not-allowed;
  background: #FEE2E2 !important;
  border-color: #DC2626 !important;
  color: #991B1B;
}
.floor-table.pick.is-runtime-closed,
.floor-table.pick.st-closed:not(.is-occupied):not(.is-capacity-mismatch) {
  cursor: not-allowed;
  opacity: 0.72;
  background: #F3F4F6 !important;
  border-color: #9CA3AF !important;
  color: #6B7280;
  filter: grayscale(0.25);
}
.floor-table.pick.is-capacity-mismatch {
  cursor: not-allowed;
  background: #F9FAFB !important;
  border-color: #D1D5DB !important;
  color: #6B7280;
  opacity: 0.85;
}
.floor-table.pick.is-unavailable:not(.is-occupied):not(.is-runtime-closed):not(.is-capacity-mismatch):not(.is-pickable) {
  cursor: not-allowed;
  background: #F3F4F6 !important;
  border-color: #9CA3AF !important;
}
.floor-table.pick.is-occupied .table-name {
  text-decoration: none;
  color: #991B1B;
}
.floor-table.pick.is-occupied .cap-label,
.floor-table.pick.is-occupied .table-status {
  color: #B91C1C;
  font-weight: 700;
}
.floor-table.pick.is-capacity-mismatch .table-status,
.floor-table.pick.is-runtime-closed .table-status {
  color: #6B7280;
  font-weight: 700;
}
.floor-table.pick.is-pickable:not(.is-unavailable) {
  background: var(--card);
}
.floor-table.is-static {
  pointer-events: none;
}
.floor-table.is-zone-hidden {
  display: none !important;
}
.floor-table.is-other-zone {
  opacity: 0.35;
}
.floor-canvas.guest {
  min-height: 420px;
  margin: 0.5rem 0 0.75rem;
}
.guest-main {
  width: min(960px, 96vw);
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}
.guest-book-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.guest-floor-hint {
  margin: 0.25rem 0 1rem;
  font-size: 0.9rem;
}
@media (max-width: 720px) {
  .guest-book-fields {
    grid-template-columns: 1fr;
  }
}

.table-wrap {
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--oa-gray-200);
  border-radius: var(--oa-radius);
  box-shadow: var(--oa-shadow);
}
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--oa-gray-200);
  text-align: left;
  font-size: 0.92rem;
}
table.data th {
  background: var(--oa-topbar-bg);
  color: var(--oa-primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.guest-head { margin-bottom: 1.25rem; }
.guest-head h1 { color: var(--oa-primary); margin: 0.35rem 0; }
.guest-step-hint {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--oa-gray-700);
}
.guest-section-title {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
  color: var(--oa-primary);
}
.guest-book-card { padding: 1.1rem 1rem 1.25rem; }
.guest-floor-legend,
.floor-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.35rem 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--oa-gray-700);
}
.guest-floor-legend .leg::before,
.floor-legend .leg::before {
  content: '';
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  margin-right: 0.3rem;
  vertical-align: -1px;
  border: 1px solid var(--oa-gray-200);
}
.leg-free::before { background: var(--card); border-color: var(--oa-success); }
.leg-busy::before { background: #FFFBEB; border-color: #D97706; }
.leg-seated::before { background: #FEF2F2; border-color: #DC2626; }
.leg-capacity::before { background: var(--oa-gray-50); border-color: #D1D5DB; }
.leg-closed::before { background: var(--oa-gray-200); border-color: #9CA3AF; }
/* Misafir "Dolu" = kırmızı (slot çakışması); panel "Rezerve" = amber */
.guest-floor-legend .leg-busy::before { background: #FEE2E2; border-color: #DC2626; }
.floor-canvas.guest.is-loading {
  opacity: 0.55;
  pointer-events: none;
}
.floor-table.pick:focus-within {
  outline: 2px solid var(--oa-accent);
  outline-offset: 2px;
}
.guest-table-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 0.35rem;
}
.guest-list-table {
  min-height: 44px;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--oa-gray-200);
  background: var(--card);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--oa-gray-900);
}
.guest-list-table.is-selected,
.guest-list-table:hover {
  border-color: var(--oa-primary);
  background: rgba(7, 56, 102, 0.06);
}
.guest-list-empty { margin: 0.35rem 0; }
.guest-logo { display: block; max-width: 120px; max-height: 80px; object-fit: contain; margin-bottom: 0.75rem; }
.settings-logo { max-width: 140px; max-height: 90px; object-fit: contain; border-radius: 10px; border: 1px solid var(--oa-gray-200); }
.form.settings-form { max-width: 560px; }
.hours-grid { display: grid; gap: 0.65rem; margin: 0.75rem 0 1.25rem; }
.hours-day {
  border: 1px solid var(--oa-gray-200);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: var(--card);
}
.hours-day.is-closed { opacity: 0.72; background: var(--oa-gray-50, #f7f8fa); }
.hours-day-times { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.45rem; }
.panel-lang-switch { display: flex; gap: 0.4rem; margin: 0.35rem 0 0.75rem; }
.panel-lang-switch a { font-size: 0.8rem; font-weight: 700; color: var(--oa-gray-500); text-decoration: none; }
.panel-lang-switch a.is-active { color: var(--oa-primary); }
.guest-lang-bar a { font-size: 0.85rem; font-weight: 600; color: var(--oa-gray-500); text-decoration: none; }
.guest-lang-bar a.is-active { color: var(--oa-primary); }
.bulk-cancel-box { margin: 0.75rem 0 1rem; padding: 0.75rem; border: 1px solid var(--oa-gray-200); border-radius: 10px; }
.bulk-cancel-box summary { cursor: pointer; font-weight: 600; }
.hours-day-toggle { margin: 0; }
.guest-tag-filters { margin: 0.5rem 0 0.75rem; }
.label { color: var(--oa-gray-500); font-size: 0.9rem; margin: 0.5rem 0; font-weight: 600; }

@keyframes mrDlgIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes mrBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mrPopIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

dialog {
  border: 0;
  border-radius: 18px;
  background: var(--card, #fff);
  color: var(--text, var(--oa-gray-900));
  padding: 0;
  width: min(440px, calc(100vw - 1.5rem));
  max-height: min(88vh, 760px);
  overflow: auto;
  box-shadow:
    0 24px 64px rgba(5, 40, 71, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.4) inset;
}
dialog[open] {
  animation: mrDlgIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
dialog::backdrop {
  background: rgba(5, 40, 71, 0.52);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: mrBackdropIn 0.2s ease;
}
dialog > form.form,
dialog > .form {
  margin: 0;
  padding: 1.2rem 1.3rem 1.15rem;
  display: grid;
  gap: 0.85rem;
}
dialog h3 {
  margin: 0;
  padding: 0 0 0.85rem;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--oa-primary);
  border-bottom: 1px solid var(--oa-gray-200);
  line-height: 1.25;
}
dialog .muted,
dialog .dlg-message {
  margin: 0;
  color: var(--muted, var(--oa-gray-500));
  font-size: 0.95rem;
  line-height: 1.45;
}
dialog .btn-row,
dialog .sticky-dlg-actions {
  margin-top: 0.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--oa-gray-200);
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
dialog .btn-row .btn,
dialog .sticky-dlg-actions .btn {
  min-width: 6.5rem;
}
dialog.mr-dialog--wide {
  width: min(520px, calc(100vw - 1.5rem));
}
dialog.mr-dialog--confirm {
  width: min(400px, calc(100vw - 1.5rem));
  text-align: center;
}
dialog.mr-dialog--confirm > form.form {
  justify-items: center;
  gap: 0.75rem;
  padding: 1.45rem 1.4rem 1.25rem;
}
dialog.mr-dialog--confirm h3 {
  border-bottom: 0;
  padding: 0;
  width: 100%;
}
dialog.mr-dialog--confirm .dlg-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--oa-primary);
  background: linear-gradient(160deg, #E8F1FA 0%, #F5F8FC 100%);
  border: 1px solid #D5E3F0;
  margin-bottom: 0.15rem;
}
dialog.mr-dialog--confirm .dlg-icon.is-danger {
  color: var(--oa-danger-dark);
  background: linear-gradient(160deg, #FEE2E2 0%, #FEF2F2 100%);
  border-color: #FECACA;
}
dialog.mr-dialog--confirm .btn-row {
  width: 100%;
  border-top: 0;
  padding-top: 0.35rem;
  justify-content: stretch;
}
dialog.mr-dialog--confirm .btn-row .btn {
  flex: 1;
  min-width: 0;
}
.btn-row { display: flex; gap: 0.5rem; }
.btn-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.hero-pos-1 { left: 6%; top: 14%; }
.hero-pos-2 { left: 28%; top: 8%; }
.hero-pos-3 { left: 52%; top: 16%; }
.hero-pos-4 { left: 74%; top: 10%; }
.hero-pos-5 { left: 12%; top: 48%; }
.hero-pos-6 { left: 40%; top: 52%; }
.hero-pos-7 { left: 68%; top: 46%; }
.hero-pos-bar { left: 78%; top: 68%; }
.dlg-section {
  border: 1px solid var(--oa-gray-200);
  border-radius: 12px;
  padding: 0.8rem 0.9rem 0.95rem;
  margin: 0;
  display: grid;
  gap: 0.65rem;
  background: var(--surface-2, var(--oa-gray-50));
}
.dlg-section legend {
  padding: 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--oa-gray-700);
}

.panel-mobile-tabs { display: none; }
.dlg-tabs {
  display: flex;
  gap: 0.3rem;
  margin: 0;
  padding: 0.28rem;
  background: var(--oa-gray-100);
  border-radius: 12px;
  border: 1px solid var(--oa-gray-200);
}
.dlg-tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 0.55rem 0.45rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: var(--oa-gray-700);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.dlg-tab:hover { background: rgba(255, 255, 255, 0.65); }
.dlg-tab.is-active {
  background: var(--card);
  color: var(--oa-primary);
  box-shadow: 0 1px 3px rgba(7, 56, 102, 0.12);
}
.floor-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.floor-legend .leg-seated::before { background: #DBEAFE; border-color: #2563EB; }
.action-more { position: relative; display: inline-block; }
.action-more summary {
  list-style: none;
  cursor: pointer;
}
.action-more summary::-webkit-details-marker { display: none; }
.action-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  min-width: 168px;
  background: var(--card, #fff);
  border: 1px solid var(--oa-gray-200);
  border-radius: 14px;
  box-shadow:
    0 16px 36px rgba(7, 56, 102, 0.14),
    0 2px 8px rgba(7, 56, 102, 0.06);
  padding: 0.45rem;
  display: grid;
  gap: 0.15rem;
  animation: mrPopIn 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.action-menu a,
.action-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  color: var(--oa-gray-900);
  cursor: pointer;
  text-decoration: none;
}
.action-menu a:hover,
.action-menu button:hover { background: var(--oa-gray-50); }
.action-menu .danger { color: var(--oa-danger); }
.guest-link-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.brand-hero {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--oa-primary);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.auth-brand { text-align: center; }
.hero-product { margin-top: 1.5rem; }
.hero-floor-mock {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(7, 56, 102, 0.95), rgba(5, 40, 71, 0.92)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 45%);
  color: #fff;
  padding: 0.85rem 1rem 1rem;
  box-shadow: var(--oa-shadow);
  max-width: 520px;
  min-height: 280px;
}
.hero-floor-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.hero-floor-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.hero-floor-title {
  margin-left: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  opacity: 0.9;
}
.hero-floor-canvas {
  position: relative;
  height: 180px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-table {
  position: absolute;
  width: 4.2rem;
  height: 3.4rem;
  border-radius: 8px;
  background: #fff;
  color: var(--oa-primary);
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  animation: heroFloat 4.5s ease-in-out infinite;
}
.hero-table.shape-round { border-radius: 999px; width: 3.6rem; height: 3.6rem; }
.hero-table strong { font-size: var(--text-lg); line-height: 1; }
.hero-table small { font-size: var(--text-2xs); font-weight: 700; }
.hero-table.st-free { border: 2px solid var(--oa-success); }
.hero-table.st-busy { border: 2px solid var(--oa-warning-border); background: var(--oa-warning-soft); animation-delay: 0.4s; }
.hero-table.st-seated { border: 2px solid var(--oa-danger-dark); background: #FEF2F2; animation-delay: 0.8s; }
.hero-prop {
  position: absolute;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.18);
  font-size: var(--text-xs);
  font-weight: 700;
}
.hero-floor-legend {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
}
.hero-floor-legend .leg { color: rgba(255,255,255,0.92); }
.hero-floor-legend .leg::before {
  content: '';
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 3px;
  margin-right: 0.3rem;
  vertical-align: -1px;
  border: 1px solid rgba(255,255,255,0.35);
}
.hero-floor-legend .leg-free::before { background: #fff; border-color: var(--oa-success); }
.hero-floor-legend .leg-busy::before { background: var(--oa-warning-soft); border-color: var(--oa-warning-border); }
.hero-floor-legend .leg-seated::before { background: #FEF2F2; border-color: var(--oa-danger-dark); }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.sub-banner a { color: inherit; font-weight: 700; }
.list-phone { font-size: var(--text-sm); }
.body-guest .auth-card,
.body-guest .form {
  background: var(--card);
}

@media (max-width: 800px) {
  .panel-shell { grid-template-columns: 1fr; }
  .panel-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem;
    padding-bottom: 0.5rem;
  }
  .panel-nav .sys-clock { display: none; }
  .panel-nav a, .nav-logout button { font-size: 0.8rem; padding: 0.45rem 0.55rem; }
  .panel-main { padding-bottom: 4.5rem; }
  .panel-mobile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: #052847;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
  }
  .panel-mobile-tabs a {
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 0.65rem 0.35rem;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    text-decoration: none;
  }
  .panel-mobile-tabs a.active { background: rgba(255,255,255,0.12); color: #fff; }
  .brand-sm { width: 100%; margin: 0 0 0.5rem; }
  .nav-warn { width: 100%; margin-top: 0.5rem; }
  .hero { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .editor-inspector {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-height: 62vh;
    border-radius: var(--oa-radius) var(--oa-radius) 0 0;
    z-index: 300;
  }
  .editor-topbar h1 { width: 100%; }
  .editor-zoom { margin-left: auto; }
  .editor-topbar-actions { margin-left: 0; width: 100%; }
  .floor-canvas.edit {
    min-height: 520px;
    height: min(70vh, 720px);
  }
  .action-menu { min-width: 140px; }
}

/* Sticky booking summary + OTP */
.guest-zone-note { margin: 0.15rem 0 0.5rem; font-size: 0.85rem; }
.guest-book-card { padding-bottom: 1rem; }
.guest-sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 1rem -1rem -1.25rem;
  padding: 0.75rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--oa-gray-200);
  box-shadow: 0 -8px 24px rgba(7, 56, 102, 0.08);
  backdrop-filter: blur(8px);
}
@supports (background: color-mix(in srgb, white 50%, transparent)) {
  .guest-sticky-bar {
    background: color-mix(in srgb, var(--card) 96%, transparent);
  }
}
.guest-sticky-summary {
  margin: 0 0 0.55rem;
  font-weight: 700;
  color: var(--oa-primary);
  font-size: 0.95rem;
}
.guest-book-form:has(#guestStickyBar:not([hidden])) .guest-submit-fallback { display: none; }
.otp-summary {
  background: var(--oa-gray-50);
  border: 1px solid var(--oa-gray-200);
  border-radius: var(--oa-radius-sm);
  padding: 0.75rem 0.9rem;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.95rem;
  color: var(--oa-gray-900);
}
.otp-hold { font-weight: 600; color: var(--oa-gray-700); }
.otp-hold.is-expired { color: #B91C1C; }

/* Panel toast (shared with editor look) */
.mr-toast {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(14px);
  z-index: 9999;
  background: linear-gradient(135deg, #052847, #0a4a7a);
  color: #fff;
  padding: 0.8rem 1.25rem;
  border-radius: 14px;
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 36px rgba(5, 40, 71, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: min(92vw, 420px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.mr-toast.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.mr-toast.is-warn {
  background: linear-gradient(135deg, #92400E, #B45309);
}
.mr-toast[hidden] { display: none !important; }

/* Mobil liste kartları */
.inline-form { display: inline-flex; align-items: center; gap: 0.5rem; }
.sticky-dlg-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--card, #fff);
  padding-top: 0.5rem;
}
.dlg-panel { display: grid; gap: 0.75rem; }
@media (max-width: 720px) {
  table.list-data thead { display: none; }
  table.list-data,
  table.list-data tbody,
  table.list-data tr.list-row,
  table.list-data td {
    display: block;
    width: 100%;
  }
  table.list-data tr.list-row {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--oa-gray-200);
  }
  table.list-data td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.25rem 0;
    border: 0;
  }
  table.list-data td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--oa-gray-500);
    flex: 0 0 5.5rem;
  }
  table.list-data td.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.4rem;
    padding-top: 0.55rem;
  }
  table.list-data td.actions::before { display: none; }
  .table-wrap { overflow: visible; }
}

.editor-canvas-wrap,
.floor-canvas.edit {
  touch-action: pan-x pan-y;
}

/* Empty states, list tools, mobile more sheet */
.empty-state {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--card);
  border: 1px dashed var(--oa-gray-200);
  border-radius: var(--oa-radius);
  margin: var(--space-4) 0;
}
.empty-state p { margin: 0 0 var(--space-3); color: var(--oa-gray-700); font-weight: 600; }
.empty-state.is-hidden,
.is-hidden { display: none !important; }
.list-day-summary {
  margin: 0 0 var(--space-3);
  font-weight: 700;
  color: var(--oa-primary);
  font-size: var(--text-md);
}
.list-search-wrap { min-width: min(220px, 100%); }
.list-search-wrap input {
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  font-size: var(--text-sm);
}
.list-row.is-search-hidden { display: none !important; }
.list-filter-empty { padding: var(--space-3) var(--space-4); }
.panel-mobile-tabs .more-tab,
.panel-mobile-tabs button.more-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 0.65rem 0.35rem;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
}
.panel-mobile-tabs .more-tab[aria-expanded="true"] {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.panel-more-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 40, 71, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: mrBackdropIn 0.2s ease;
}
body.panel-more-open { overflow: hidden; }
.panel-more-sheet[hidden] { display: none !important; }
.panel-more-panel {
  width: min(100%, 420px);
  background: var(--card);
  color: var(--text);
  border-radius: 20px 20px 0 0;
  padding: var(--space-4);
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  box-shadow: 0 -16px 48px rgba(5, 40, 71, 0.22);
  animation: mrDlgIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.panel-more-panel::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--oa-gray-200);
  margin: 0 auto 0.85rem;
}
.panel-more-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}
.panel-more-links {
  display: grid;
  gap: 0.4rem;
}
.panel-more-links a {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--oa-gray-50);
  color: var(--oa-primary);
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.panel-more-links a:hover {
  background: #E8F1FA;
  border-color: #D5E3F0;
}
.mr-confirm-form { width: 100%; min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  dialog[open],
  dialog::backdrop,
  .editor-menu,
  .panel-more-sheet,
  .panel-more-panel,
  .mr-toast {
    animation: none !important;
    transition: none !important;
  }
}
.table-cap, .cap-label, .table-tag-chip {
  font-size: var(--text-2xs);
}
.floor-table .table-name,
.floor-table strong {
  font-size: var(--text-lg);
}
.guest-floor-legend,
.floor-legend {
  font-size: var(--text-xs);
}
@media (min-width: 801px) {
  .panel-more-sheet { display: none !important; }
}


