:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --bg: #f7f3ee;
  --surface: #fffdfb;
  --surface-muted: #f7f3ee;
  --border: #e6ddd1;
  --border-strong: #cbb99f;
  --text: #1e1a16;
  --text-secondary: #5a4f42;
  --text-muted: #8a7d6a;
  /* Brand accent — wine, used sparingly */
  --accent: #7a2731;
  --accent-hover: #5e1c24;
  --accent-soft: #f6e6e5;
  --accent-border: #c98d8f;
  --accent-gradient: var(--accent); /* solid; kept for legacy var() refs */
  /* Support tags only */
  --olive: #3f5d44;
  --olive-soft: #e7f0e9;
  --amber: #b5762e;
  --amber-soft: #fbeee0;
  /* Aliases so existing components stay warm, not rainbow */
  --teal: var(--olive);
  --teal-soft: var(--olive-soft);
  --violet: var(--amber);
  --violet-soft: var(--amber-soft);
  --rose: var(--accent);
  --rose-soft: var(--accent-soft);
  --sky: var(--text-secondary);
  --sky-soft: var(--surface-muted);
  /* Status */
  --success: #2f6b45;
  --success-soft: #e8f2eb;
  --pending: #b5762e;
  --pending-soft: #fbeee0;
  --warning: var(--pending);
  --warning-soft: var(--pending-soft);
  --danger: #a13333;
  --danger-soft: #f8eaea;
  /* Flat: no elevation */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-glow: none;
  --radius-sm: 8px;   /* inputs, buttons */
  --radius-md: 12px;  /* cards */
  --radius-lg: 12px;
  --radius-xl: 12px;
  /* Guest listing banner: same crop on browse cards, detail hero, and profile preview */
  --restaurant-cover-aspect: 5 / 2;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.18s;
  --dur-med: 0.35s;
  --dur-slow: 0.55s;
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* App root fills the viewport so shell can pin the footer */
#app {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
  width: 100%;
}

/* Lock page scroll while any native <dialog> is open (see syncBodyScrollLock in app.js). */
html.modal-open,
html.modal-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fade-scale-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes soft-pop {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  70% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-up-fade {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes brand-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

@keyframes accent-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
  }
  50% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ——— Page enter choreography ——— */
#app.page-enter .topbar {
  animation: rise-in var(--dur-med) var(--ease-spring) both;
}

#app.page-enter .shell > *:not(.topbar) {
  animation: rise-in var(--dur-slow) var(--ease-spring) both;
  animation-delay: 0.05s;
}

#app.page-enter .home-hero {
  animation: rise-in 0.6s var(--ease-spring) both;
  animation-delay: 0.04s;
}

#app.page-enter .home-hero .brand-mark,
#app.page-enter .auth-brand .brand-mark {
  animation: soft-pop 0.55s var(--ease-spring) both, brand-breathe 3.6s ease-in-out 0.7s infinite;
}

#app.page-enter .hero .role-card {
  animation: rise-in 0.55s var(--ease-spring) both;
}

#app.page-enter .hero .role-card:nth-child(1) {
  animation-delay: 0.1s;
}

#app.page-enter .hero .role-card:nth-child(2) {
  animation-delay: 0.18s;
}

#app.page-enter .page-header h2,
#app.page-enter .detail-header h1,
#app.page-enter .detail-header h2,
#app.page-enter .section-title,
#app.page-enter .main-content > h2 {
  animation: slide-up-fade 0.45s var(--ease-spring) both;
}

#app.page-enter .page-header p,
#app.page-enter .detail-header p {
  animation: slide-up-fade 0.5s var(--ease-spring) both;
  animation-delay: 0.06s;
}

#app.page-enter .grid-restaurants .restaurant-card,
#app.page-enter .guest-browse-results-grouped .restaurant-card,
#app.page-enter .guest-browse-results-grouped .cuisine-group {
  animation: rise-in 0.5s var(--ease-spring) both;
}

#app.page-enter .grid-restaurants .restaurant-card:nth-child(1),
#app.page-enter .guest-browse-results-grouped .cuisine-group:nth-child(1) { animation-delay: 0.06s; }
#app.page-enter .grid-restaurants .restaurant-card:nth-child(2),
#app.page-enter .guest-browse-results-grouped .cuisine-group:nth-child(2) { animation-delay: 0.1s; }
#app.page-enter .grid-restaurants .restaurant-card:nth-child(3),
#app.page-enter .guest-browse-results-grouped .cuisine-group:nth-child(3) { animation-delay: 0.14s; }
#app.page-enter .grid-restaurants .restaurant-card:nth-child(4),
#app.page-enter .guest-browse-results-grouped .cuisine-group:nth-child(4) { animation-delay: 0.18s; }
#app.page-enter .grid-restaurants .restaurant-card:nth-child(5),
#app.page-enter .guest-browse-results-grouped .cuisine-group:nth-child(5) { animation-delay: 0.22s; }
#app.page-enter .grid-restaurants .restaurant-card:nth-child(6),
#app.page-enter .guest-browse-results-grouped .cuisine-group:nth-child(6) { animation-delay: 0.26s; }
#app.page-enter .grid-restaurants .restaurant-card:nth-child(7),
#app.page-enter .guest-browse-results-grouped .cuisine-group:nth-child(7) { animation-delay: 0.3s; }
#app.page-enter .grid-restaurants .restaurant-card:nth-child(8),
#app.page-enter .guest-browse-results-grouped .cuisine-group:nth-child(8) { animation-delay: 0.34s; }
#app.page-enter .grid-restaurants .restaurant-card:nth-child(9),
#app.page-enter .guest-browse-results-grouped .cuisine-group:nth-child(9) { animation-delay: 0.38s; }
#app.page-enter .grid-restaurants .restaurant-card:nth-child(10),
#app.page-enter .guest-browse-results-grouped .cuisine-group:nth-child(10) { animation-delay: 0.42s; }
#app.page-enter .grid-restaurants .restaurant-card:nth-child(11),
#app.page-enter .guest-browse-results-grouped .cuisine-group:nth-child(11) { animation-delay: 0.46s; }
#app.page-enter .grid-restaurants .restaurant-card:nth-child(12),
#app.page-enter .guest-browse-results-grouped .cuisine-group:nth-child(12) { animation-delay: 0.5s; }

#app.page-enter .stats-row .stat-card,
#app.page-enter .stats-row-admin .stat-card {
  animation: soft-pop 0.5s var(--ease-spring) both;
}

#app.page-enter .stats-row .stat-card:nth-child(1),
#app.page-enter .stats-row-admin .stat-card:nth-child(1) { animation-delay: 0.08s; }
#app.page-enter .stats-row .stat-card:nth-child(2),
#app.page-enter .stats-row-admin .stat-card:nth-child(2) { animation-delay: 0.14s; }
#app.page-enter .stats-row .stat-card:nth-child(3),
#app.page-enter .stats-row-admin .stat-card:nth-child(3) { animation-delay: 0.2s; }
#app.page-enter .stats-row .stat-card:nth-child(4),
#app.page-enter .stats-row-admin .stat-card:nth-child(4) { animation-delay: 0.26s; }

#app.page-enter .slot-grid .slot-btn {
  animation: soft-pop 0.4s var(--ease-spring) both;
}

#app.page-enter .slot-grid .slot-btn:nth-child(1) { animation-delay: 0.05s; }
#app.page-enter .slot-grid .slot-btn:nth-child(2) { animation-delay: 0.08s; }
#app.page-enter .slot-grid .slot-btn:nth-child(3) { animation-delay: 0.11s; }
#app.page-enter .slot-grid .slot-btn:nth-child(4) { animation-delay: 0.14s; }
#app.page-enter .slot-grid .slot-btn:nth-child(5) { animation-delay: 0.17s; }
#app.page-enter .slot-grid .slot-btn:nth-child(6) { animation-delay: 0.2s; }
#app.page-enter .slot-grid .slot-btn:nth-child(7) { animation-delay: 0.23s; }
#app.page-enter .slot-grid .slot-btn:nth-child(8) { animation-delay: 0.26s; }
#app.page-enter .slot-grid .slot-btn:nth-child(9) { animation-delay: 0.29s; }
#app.page-enter .slot-grid .slot-btn:nth-child(10) { animation-delay: 0.32s; }
#app.page-enter .slot-grid .slot-btn:nth-child(11) { animation-delay: 0.35s; }
#app.page-enter .slot-grid .slot-btn:nth-child(12) { animation-delay: 0.38s; }

#app.page-enter .card,
#app.page-enter .detail-layout > *,
#app.page-enter .reservation-group,
#app.page-enter .filter-pill {
  animation: rise-in 0.45s var(--ease-spring) both;
}

#app.page-enter .filter-pill:nth-child(1) { animation-delay: 0.04s; }
#app.page-enter .filter-pill:nth-child(2) { animation-delay: 0.07s; }
#app.page-enter .filter-pill:nth-child(3) { animation-delay: 0.1s; }
#app.page-enter .filter-pill:nth-child(4) { animation-delay: 0.13s; }
#app.page-enter .filter-pill:nth-child(5) { animation-delay: 0.16s; }
#app.page-enter .filter-pill:nth-child(6) { animation-delay: 0.19s; }
#app.page-enter .filter-pill:nth-child(7) { animation-delay: 0.22s; }
#app.page-enter .filter-pill:nth-child(8) { animation-delay: 0.25s; }

#app.page-enter .detail-layout > *:nth-child(1) { animation-delay: 0.05s; }
#app.page-enter .detail-layout > *:nth-child(2) { animation-delay: 0.1s; }
#app.page-enter .detail-layout > *:nth-child(3) { animation-delay: 0.15s; }
#app.page-enter .detail-layout > *:nth-child(4) { animation-delay: 0.2s; }
#app.page-enter .detail-layout > *:nth-child(5) { animation-delay: 0.25s; }

#app.page-enter .confirmation-code-value {
  animation: soft-pop 0.65s var(--ease-spring) both;
  animation-delay: 0.12s;
}

/* List / filter re-render enters */
#reservations-results.results-enter > *,
#guest-browse-results.results-enter > *,
#guest-browse-results.results-enter .cuisine-group,
#guest-browse-results.results-enter .restaurant-card {
  animation: rise-in 0.42s var(--ease-spring) both;
}

#guest-browse-results.results-enter .cuisine-group:nth-child(1),
#guest-browse-results.results-enter > *:nth-child(1) { animation-delay: 0.02s; }
#guest-browse-results.results-enter .cuisine-group:nth-child(2),
#guest-browse-results.results-enter > *:nth-child(2) { animation-delay: 0.06s; }
#guest-browse-results.results-enter .cuisine-group:nth-child(3),
#guest-browse-results.results-enter > *:nth-child(3) { animation-delay: 0.1s; }
#guest-browse-results.results-enter .cuisine-group:nth-child(4),
#guest-browse-results.results-enter > *:nth-child(4) { animation-delay: 0.14s; }
#guest-browse-results.results-enter .cuisine-group:nth-child(5),
#guest-browse-results.results-enter > *:nth-child(5) { animation-delay: 0.18s; }
#guest-browse-results.results-enter .cuisine-group:nth-child(6),
#guest-browse-results.results-enter > *:nth-child(6) { animation-delay: 0.22s; }

#reservations-results.results-enter > *:nth-child(1) { animation-delay: 0.02s; }
#reservations-results.results-enter > *:nth-child(2) { animation-delay: 0.06s; }
#reservations-results.results-enter > *:nth-child(3) { animation-delay: 0.1s; }
#reservations-results.results-enter > *:nth-child(4) { animation-delay: 0.14s; }
#reservations-results.results-enter > *:nth-child(5) { animation-delay: 0.18s; }
#reservations-results.results-enter > *:nth-child(6) { animation-delay: 0.22s; }

/* Status pills & nav chips: subtle pop when they appear */
.status-pill,
.home-pill {
  transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast), color var(--dur-fast);
}

#app.page-enter .status-pill {
  animation: soft-pop 0.4s var(--ease-spring) both;
}

#app.page-enter .home-pill:nth-child(1) {
  animation: soft-pop 0.45s var(--ease-spring) both;
  animation-delay: 0.12s;
}
#app.page-enter .home-pill:nth-child(2) {
  animation: soft-pop 0.45s var(--ease-spring) both;
  animation-delay: 0.18s;
}
#app.page-enter .home-pill:nth-child(3) {
  animation: soft-pop 0.45s var(--ease-spring) both;
  animation-delay: 0.24s;
}

/* Respect system reduced-motion */
@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;
  }

  .restaurant-card:hover .restaurant-card-cover,
  .restaurant-card:hover,
  .role-card:hover,
  .btn:hover,
  .slot-btn:hover:not(:disabled) {
    transform: none !important;
  }
}

.shell {
  width: min(100%, calc(100% - 2.5rem));
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 0 3rem;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  /* Always separate topbar / content / footer (works even when footer is pin-to-bottom) */
  row-gap: 2.5rem;
  min-height: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
}

.topbar {
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem 1rem;
  /* Spacing to content comes from .shell row-gap */
  margin-bottom: 0;
  padding: 0.65rem 0.75rem 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: none;
}

.topbar-main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex: 1 1 12rem;
  min-width: 0;
}

.topbar-end {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-copy {
  min-width: 0;
}

.brand-copy p {
  margin: 0.1rem 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.brand-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}

.brand-btn:hover {
  transform: none;
}

.brand-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.brand-mark-sm {
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  animation: none;
}

.brand-mark-xs {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 7px;
  animation: none;
  box-shadow: none;
}

.brand-mark-lg {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 16px;
}

.auth-brand-logo {
  margin: 0 auto 0.85rem;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}



.brand-footer {
  position: relative;
  /* Stick to bottom of viewport when page content is short.
     .shell row-gap keeps a real gap above the footer on long pages too. */
  margin-top: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-footer-accent {
  height: 4px;
  background: var(--accent);
    animation: shimmer 8s linear infinite;
}

.brand-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 1.1rem 1.25rem;
}

.brand-footer-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  justify-self: start;
}

.brand-footer-lockup strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
}

.brand-footer-lockup span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.brand-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  justify-self: center;
}

.brand-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  text-decoration: none;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}

.brand-footer-social-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.brand-footer-social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.brand-footer-social-icon {
  display: block;
  flex-shrink: 0;
}

.brand-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  min-width: 0;
  justify-self: end;
  text-align: right;
}

.brand-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  justify-content: flex-end;
}

.brand-footer-link {
  min-height: 0;
  padding: 0.15rem 0.35rem;
  font-size: 0.8125rem;
  text-decoration: none;
}

.brand-footer-link[href] {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 720px) {
  .brand-footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    text-align: left;
  }

  .brand-footer-lockup {
    justify-self: start;
    flex-direction: row;
    text-align: left;
  }

  .brand-footer-social {
    justify-self: end;
    justify-content: flex-end;
  }

  .brand-footer-meta {
    grid-column: 1 / -1;
    justify-self: stretch;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .brand-footer-links {
    justify-content: center;
  }
}

.register-legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.25rem 0 0.15rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  background: var(--surface-2, #faf8f5);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-secondary);
  cursor: pointer;
}

.register-legal-consent input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.register-legal-consent-text {
  flex: 1;
  min-width: 0;
}

.register-legal-consent .link-inline {
  display: inline;
  min-height: 0;
  padding: 0 0.1rem;
  font-size: inherit;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  vertical-align: baseline;
}

.booking-legal-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.legal-crosslink {
  margin-top: 1.25rem;
}

.privacy-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--surface);
    box-shadow: none;
}

.privacy-notice p {
  margin: 0;
  flex: 1 1 14rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.privacy-notice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.privacy-notice-actions .btn {
  flex: 0 1 auto;
}

@media (max-width: 768px) {
  .privacy-notice {
    flex-direction: column;
    align-items: stretch;
  }

  .privacy-notice-actions {
    width: 100%;
  }

  .privacy-notice-actions .btn-primary,
  .privacy-notice-actions .btn-secondary {
    flex: 1 1 calc(50% - 0.45rem);
    min-height: 2.75rem;
  }
}

.legal-page {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
}

.legal-body h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
}

.legal-body h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1rem;
  color: var(--text);
}

.legal-body p {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.legal-updated {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
}

.home-hero {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  padding: 1.5rem 1rem 0.25rem;
}

.home-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.home-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-title span {
  display: block;
  background: var(--accent);
    -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

.home-lead {
  margin: 0.85rem auto 0;
  max-width: 30rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.6;
}

.home-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.home-pill {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.home-pill:nth-child(1) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.home-pill:nth-child(2) {
  border-color: color-mix(in srgb, var(--olive) 28%, var(--border));
  background: var(--olive-soft);
  color: var(--olive);
}

/* —— Airbnb-style guest search (mobile-first) —— */
html.search-sheet-open,
html.search-sheet-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.home-search {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  padding: 0 0.15rem;
}

.home-search-hint {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.airbnb-search {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.airbnb-search-browse {
  position: sticky;
  top: 0;
  z-index: 40;
  /* Prevent flex/sticky stretch from creating a tall empty band under the pill on mobile */
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.65rem;
  padding: 0.25rem 0 0.35rem;
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--bg) 72%,
    color-mix(in srgb, var(--bg) 0%, transparent) 100%
  );
}

/* Mobile: search (3/4) + show-on-map (1/4) */
.airbnb-search-compact-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 0.5rem;
  width: 100%;
  align-items: stretch;
}

.airbnb-search-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  min-height: 3.35rem;
  padding: 0.55rem 0.85rem 0.55rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color var(--dur-fast),
    background var(--dur-fast),
    transform var(--dur-fast) var(--ease-spring);
}

.airbnb-map-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  min-width: 0;
  min-height: 3.35rem;
  padding: 0.45rem 0.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color var(--dur-fast),
    background var(--dur-fast),
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-fast);
}

.airbnb-map-compact:active {
  transform: scale(0.985);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.airbnb-map-compact:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.airbnb-map-compact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.airbnb-map-compact-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Live OSM preview behind the Map control (mobile + desktop) */
.airbnb-map-btn-preview {
  color: var(--text);
}

.airbnb-map-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.airbnb-map-preview .leaflet-container {
  width: 100%;
  height: 100%;
  background: var(--surface-muted);
  font: inherit;
  cursor: inherit;
}

.airbnb-map-preview .leaflet-control-container,
.airbnb-map-preview .leaflet-pane.leaflet-tooltip-pane,
.airbnb-map-preview .leaflet-pane.leaflet-popup-pane {
  display: none !important;
}

.airbnb-map-preview .leaflet-marker-icon,
.airbnb-map-preview .leaflet-marker-shadow {
  pointer-events: none !important;
}

.airbnb-map-preview .guest-map-pin-sm .guest-map-pin-inner {
  width: 16px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(30, 26, 22, 0.35));
}

.airbnb-map-preview .guest-map-pin-sm .guest-map-pin-svg {
  width: 16px;
  height: 22px;
}

.airbnb-map-preview-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(
      to top,
      color-mix(in srgb, var(--surface) 72%, transparent) 0%,
      color-mix(in srgb, var(--surface) 18%, transparent) 48%,
      color-mix(in srgb, var(--surface) 8%, transparent) 100%
    );
}

.airbnb-map-preview-label {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  pointer-events: none;
}

/* Desktop: search (3/4) + map (1/4) on one row — hidden until desktop media query */
.airbnb-search-desktop-row {
  display: none;
}

.airbnb-desktop-map-btn {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 0.85rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: 1.15rem;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast),
    transform var(--dur-fast) var(--ease-spring);
}

.airbnb-desktop-map-btn:hover {
  border-color: var(--accent-border);
}

.airbnb-desktop-map-btn:hover .airbnb-map-preview-scrim {
  background:
    linear-gradient(
      to top,
      color-mix(in srgb, var(--surface) 55%, transparent) 0%,
      color-mix(in srgb, var(--surface) 12%, transparent) 55%,
      color-mix(in srgb, var(--surface) 4%, transparent) 100%
    );
}

.airbnb-desktop-map-btn:active {
  transform: scale(0.985);
}

.airbnb-desktop-map-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.airbnb-desktop-map-btn .airbnb-map-compact-icon {
  width: 2.15rem;
  height: 2.15rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(30, 26, 22, 0.14);
}

.airbnb-desktop-map-btn .airbnb-map-preview-label {
  gap: 0.35rem;
}

.airbnb-desktop-map-btn-label {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 1px 6px rgba(30, 26, 22, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Full-screen open-restaurants map — filters float over the map */
html.open-map-sheet-open,
html.open-map-sheet-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.guest-open-map-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--surface-muted);
}

.guest-open-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: var(--surface-muted);
}

.guest-open-map .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
  background: var(--surface-muted);
}

.guest-open-map .leaflet-control-attribution {
  font-size: 0.65rem;
  max-width: 70%;
}

/* Keep zoom controls clear of the floating filter card */
.guest-open-map .leaflet-top.leaflet-left {
  top: auto;
  bottom: 1rem;
  left: 0.65rem;
}

.guest-open-map-hover-card {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 520;
  width: min(18.75rem, calc(100% - 1.5rem));
  pointer-events: auto;
  filter: drop-shadow(0 12px 28px rgba(30, 26, 22, 0.2));
}

.guest-open-map-hover-card[hidden] {
  display: none !important;
}

.guest-open-map-hover-card .restaurant-card {
  width: 100%;
  background: var(--surface);
}

.guest-open-map-hover-card .restaurant-card:hover,
.guest-open-map-hover-card .restaurant-card:active {
  transform: none;
}

.guest-open-map-locate {
  position: absolute;
  z-index: 510;
  left: 0.65rem;
  bottom: calc(1rem + 5.6rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: #2563eb;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(30, 26, 22, 0.12);
  -webkit-tap-highlight-color: transparent;
}

.guest-open-map-locate:active {
  background: color-mix(in srgb, #2563eb 12%, var(--surface));
}

.guest-open-map-locate:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Floating chrome in front of the map */
.guest-open-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: max(1rem, calc(env(safe-area-inset-top) + 0.35rem)) 0.75rem 0.75rem;
  max-width: 36rem;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.guest-open-map-overlay-top {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  pointer-events: none;
}

.guest-open-map-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 16px rgba(30, 26, 22, 0.12);
}

.guest-open-map-close:active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.guest-open-map-filters {
  flex: 1;
  min-width: 0;
  pointer-events: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.guest-open-map-field-row {
  margin: 0;
}

/* Keep map filters at the original compact control size (date + party). */
.guest-open-map-field-row .airbnb-field-input,
.guest-open-map-field-row .booking-date-trigger {
  min-height: 2.75rem;
  font-size: 1rem;
}

.guest-open-map-party-stepper {
  min-height: 2.75rem;
  padding: 0.25rem;
  gap: 0.35rem;
}

.guest-open-map-party-stepper .airbnb-party-btn {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
}

.guest-open-map-party-stepper .airbnb-party-value-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 4.75rem;
  max-width: 6.5rem;
  min-height: 2.25rem;
  height: 2.25rem;
  padding: 0 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.guest-open-map-status {
  pointer-events: none;
  align-self: center;
  margin: 0.55rem 0 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(30, 26, 22, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Brand pin markers (logo accent #7a2731) — pure SVG, no PNG assets */
.guest-map-pin {
  background: transparent !important;
  border: none !important;
}

.guest-map-pin-inner {
  display: block;
  width: 30px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(30, 26, 22, 0.35));
  transform-origin: center bottom;
  transition: transform 0.12s var(--ease-spring, ease);
}

.guest-map-pin:hover .guest-map-pin-inner,
.leaflet-marker-icon:focus .guest-map-pin-inner {
  transform: scale(1.08);
}

.guest-map-pin-svg {
  display: block;
  width: 30px;
  height: 40px;
  overflow: visible;
}

.guest-map-user-pin .guest-map-pin-inner {
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.4));
}

.airbnb-search-compact:active {
  transform: scale(0.985);
}

.airbnb-search-compact:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.airbnb-search-compact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.airbnb-search-compact-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.airbnb-search-compact-where {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.airbnb-search-compact-where.is-muted {
  font-weight: 600;
  color: var(--text-secondary);
}

.airbnb-search-compact-meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.airbnb-search-active-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-right: 0.15rem;
}

/* Desktop expanded pill is hidden on small screens — force collapse so it never
   reserves height under the compact search + Map row on mobile. */
.airbnb-search-desktop {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}

.airbnb-search-pill {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 0.9rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 1.35rem;
  background: var(--surface);
}

.airbnb-search-home .airbnb-search-pill {
  border-radius: 1.5rem;
}

.airbnb-search-fields {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
}

.airbnb-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.airbnb-field-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.airbnb-field-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.airbnb-field-input:focus {
  border-color: var(--accent-border);
  box-shadow: var(--focus-ring);
  background: var(--surface);
}

select.airbnb-field-input {
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) calc(50% + 0.1rem),
    calc(100% - 0.75rem) calc(50% + 0.1rem);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.airbnb-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.airbnb-date-shell {
  display: block;
  width: 100%;
}

.airbnb-date-shell input[type="date"] {
  width: 100%;
}

.airbnb-party-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
}

.airbnb-party-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.airbnb-party-btn:active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.airbnb-party-value {
  width: 3.25rem;
  min-height: 2.25rem;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  -moz-appearance: textfield;
}

.airbnb-party-value::-webkit-outer-spin-button,
.airbnb-party-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.airbnb-party-stepper .airbnb-party-value-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 4.75rem;
  max-width: 6.75rem;
  min-height: 2.25rem;
  height: 2.25rem;
  padding: 0 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  pointer-events: none;
  user-select: none;
  flex: 1 1 auto;
}

.airbnb-quick-pills {
  justify-content: flex-start;
  margin: 0.1rem 0 0;
}

.airbnb-search-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.airbnb-search-cta:active {
  background: var(--accent-hover);
}

.airbnb-search-cta-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* Mobile full-screen search sheet (portaled to body — see mountGuestSearchSheetOnBody) */
.airbnb-search-sheet {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.airbnb-search-sheet.is-open {
  display: flex !important;
  pointer-events: auto;
}

.airbnb-search-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: color-mix(in srgb, var(--text) 42%, transparent);
  opacity: 1;
  cursor: pointer;
}

.airbnb-search-sheet-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 36rem;
  max-height: min(92dvh, 40rem);
  border-radius: 1.25rem 1.25rem 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 0;
  transform: translate3d(0, 0, 0);
  animation: airbnb-sheet-up var(--dur-med) var(--ease-spring);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -12px 40px color-mix(in srgb, var(--text) 18%, transparent);
}

@keyframes airbnb-sheet-up {
  from {
    transform: translate3d(0, 12%, 0);
    opacity: 0.88;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

.airbnb-search-sheet-header {
  display: grid;
  grid-template-columns: 2.75rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.airbnb-search-sheet-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

.airbnb-search-sheet-close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.airbnb-search-sheet-clear {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  padding: 0.4rem 0.15rem;
  min-height: 2.5rem;
}

.airbnb-search-sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.95rem 1rem 1rem;
}

.airbnb-search-sheet-footer {
  padding: 0.75rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.airbnb-search-sheet-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.page-header-browse {
  margin-bottom: 0.65rem;
}

/* Browse title + search + results as one shell flex child (avoids row-gap between them). */
.guest-browse-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Secondary filter row is desktop-only (mobile uses the sheet). */
.airbnb-desktop-secondary {
  display: none;
}

/* Desktop sticky compact search — portaled to body; hidden until scroll */
.airbnb-search-sticky {
  display: none;
}

.airbnb-search-cta-round {
  display: none;
}

.airbnb-seg-divider {
  display: none;
}

.airbnb-desktop-panel {
  display: none;
}

@media (min-width: 769px) {
  .airbnb-search-compact-row {
    display: none !important;
  }

  .airbnb-search-compact {
    display: none !important;
  }

  /* Sheet is body-portaled; never show on desktop layout. */
  body > .airbnb-search-sheet {
    display: none !important;
  }

  .airbnb-search-browse {
    position: static;
    margin: 0 0 1.15rem;
    padding: 0;
    max-width: 100%;
    min-width: 0;
    background: none;
    align-self: stretch;
  }

  .airbnb-search-desktop {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    pointer-events: auto;
  }

  /*
   * Sticky mini search (Airbnb-style): sits in the sticky topbar band after
   * the full search bar scrolls away. Portaled to body for clean fixed layout.
   */
  body > .airbnb-search-sticky,
  .airbnb-search-sticky {
    display: flex !important;
    position: fixed;
    top: 0.85rem;
    left: 50%;
    z-index: 200;
    justify-content: center;
    width: max-content;
    max-width: min(38rem, calc(100vw - 16rem));
    margin: 0;
    padding: 0;
    transform: translateX(-50%) translateY(-0.35rem) scale(0.96);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity 0.22s var(--ease-spring),
      transform 0.22s var(--ease-spring),
      visibility 0.22s;
  }

  body > .airbnb-search-sticky.is-visible,
  .airbnb-search-sticky.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  body > .airbnb-search-sticky[hidden],
  .airbnb-search-sticky[hidden] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .airbnb-search-sticky-pill {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 3rem;
    max-width: 100%;
    padding: 0.35rem 0.4rem 0.35rem 1rem;
    border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow:
      0 1px 2px color-mix(in srgb, var(--text) 5%, transparent),
      0 10px 28px color-mix(in srgb, var(--text) 12%, transparent);
    transition:
      box-shadow var(--dur-fast),
      border-color var(--dur-fast),
      transform var(--dur-fast) var(--ease-spring);
  }

  .airbnb-search-sticky-pill:hover {
    border-color: var(--border-strong);
    box-shadow:
      0 2px 6px color-mix(in srgb, var(--text) 6%, transparent),
      0 14px 34px color-mix(in srgb, var(--text) 14%, transparent);
  }

  .airbnb-search-sticky-pill:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }

  .airbnb-search-sticky-pill:active {
    transform: scale(0.985);
  }

  .airbnb-sticky-seg {
    max-width: 9.5rem;
    padding: 0.15rem 0.55rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
  }

  .airbnb-sticky-seg.is-muted {
    font-weight: 500;
    color: var(--text-secondary);
  }

  .airbnb-sticky-divider {
    width: 1px;
    height: 1.15rem;
    flex-shrink: 0;
    background: var(--border);
  }

  .airbnb-sticky-open-now {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--success-soft) 90%, var(--surface));
    color: var(--success);
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .airbnb-sticky-open-now[hidden] {
    display: none !important;
  }

  .airbnb-sticky-open-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--success) 25%, transparent);
  }

  .airbnb-sticky-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    margin-left: 0.45rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
  }

  /* Leave room in the sticky topbar for the centered compact pill */
  .shell--guest .topbar {
    /* Keep brand / actions; compact pill floats over the center */
    position: sticky;
  }

  html.guest-search-sticky-active .shell--guest .topbar {
    box-shadow:
      0 1px 2px color-mix(in srgb, var(--text) 4%, transparent),
      0 8px 24px color-mix(in srgb, var(--text) 6%, transparent);
  }

  /* Search · Open now · Map — one aligned control row */
  .airbnb-search-desktop-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(12.5rem, 15rem);
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: center;
  }

  .airbnb-desktop-map-btn {
    display: flex;
    height: 4.25rem;
    min-height: 4.25rem;
    max-height: 4.25rem;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    align-self: center;
    box-sizing: border-box;
  }

  /* Live status toggle — same height as search pill + map */
  .airbnb-search-desktop .airbnb-open-now-toggle {
    display: flex;
    align-items: center;
    height: 4.25rem;
    min-height: 4.25rem;
    max-height: 4.25rem;
    margin: 0;
    padding: 0;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .airbnb-search-desktop .airbnb-open-now-toggle-face {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    height: 100%;
    min-width: 8.75rem;
    max-width: 12rem;
    padding: 0 1.05rem 0 0.95rem;
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    border-radius: 999px;
    background: var(--surface);
    box-shadow:
      0 1px 2px color-mix(in srgb, var(--text) 4%, transparent),
      0 8px 28px color-mix(in srgb, var(--text) 8%, transparent);
    box-sizing: border-box;
    transition:
      background var(--dur-fast),
      border-color var(--dur-fast),
      box-shadow var(--dur-fast),
      transform var(--dur-fast) var(--ease-spring);
  }

  .airbnb-search-desktop .airbnb-open-now-toggle:hover .airbnb-open-now-toggle-face {
    border-color: color-mix(in srgb, var(--success) 40%, var(--border));
  }

  .airbnb-search-desktop .airbnb-open-now-toggle:has(input:focus-visible) .airbnb-open-now-toggle-face {
    box-shadow: var(--focus-ring);
  }

  .airbnb-search-desktop .airbnb-open-now-dot {
    position: relative;
    flex-shrink: 0;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text-muted) 55%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent);
  }

  .airbnb-search-desktop .airbnb-open-now-copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
  }

  .airbnb-search-desktop .airbnb-open-now-title {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    white-space: nowrap;
  }

  .airbnb-search-desktop .airbnb-open-now-hint {
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.15;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Active: green live-status treatment (matches open-now badges on cards) */
  .airbnb-search-desktop .airbnb-open-now-toggle.is-on .airbnb-open-now-toggle-face,
  .airbnb-search-desktop .airbnb-open-now-toggle:has(input:checked) .airbnb-open-now-toggle-face {
    border-color: color-mix(in srgb, var(--success) 40%, transparent);
    background: color-mix(in srgb, var(--success-soft) 88%, var(--surface));
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--success) 18%, transparent),
      0 8px 22px color-mix(in srgb, var(--success) 12%, transparent);
  }

  .airbnb-search-desktop .airbnb-open-now-toggle.is-on .airbnb-open-now-dot,
  .airbnb-search-desktop .airbnb-open-now-toggle:has(input:checked) .airbnb-open-now-dot {
    background: var(--success);
    box-shadow:
      0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent),
      0 0 10px color-mix(in srgb, var(--success) 45%, transparent);
  }

  .airbnb-search-desktop .airbnb-open-now-toggle.is-on .airbnb-open-now-title,
  .airbnb-search-desktop .airbnb-open-now-toggle:has(input:checked) .airbnb-open-now-title {
    color: var(--success);
  }

  .airbnb-search-desktop .airbnb-open-now-toggle.is-on .airbnb-open-now-hint,
  .airbnb-search-desktop .airbnb-open-now-toggle:has(input:checked) .airbnb-open-now-hint {
    color: color-mix(in srgb, var(--success) 75%, var(--text-muted));
  }

  /* Outer wrapper: transparent so fields-desktop owns the capsule look */
  .airbnb-search-desktop .airbnb-search-pill-classic {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 0;
    position: relative;
    align-self: center;
  }

  .airbnb-search-desktop .airbnb-search-fields-desktop {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    height: 4.25rem;
    min-height: 4.25rem;
    max-height: 4.25rem;
    box-sizing: border-box;
    gap: 0;
    padding: 0.35rem 0.4rem 0.35rem 0.35rem;
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    border-radius: 999px;
    background: var(--surface);
    box-shadow:
      0 1px 2px color-mix(in srgb, var(--text) 4%, transparent),
      0 8px 28px color-mix(in srgb, var(--text) 8%, transparent);
    transition:
      background var(--dur-fast),
      box-shadow var(--dur-fast);
  }

  /* Expanded track: soft gray bar; active segment pops white */
  .airbnb-search-desktop .airbnb-search-fields-desktop.is-expanded {
    background: color-mix(in srgb, var(--surface-muted) 92%, #e8e4de);
    box-shadow:
      0 1px 2px color-mix(in srgb, var(--text) 3%, transparent),
      0 12px 32px color-mix(in srgb, var(--text) 10%, transparent);
  }

  .airbnb-search-desktop .airbnb-seg {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 0;
    padding: 0.55rem 1.15rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
      background var(--dur-fast),
      box-shadow var(--dur-fast);
  }

  .airbnb-search-desktop .airbnb-seg:hover {
    background: color-mix(in srgb, var(--surface) 55%, transparent);
  }

  .airbnb-search-desktop .airbnb-search-fields-desktop.is-expanded .airbnb-seg:hover {
    background: color-mix(in srgb, var(--surface) 70%, transparent);
  }

  .airbnb-search-desktop .airbnb-seg.is-active {
    background: var(--surface);
    box-shadow:
      0 1px 3px color-mix(in srgb, var(--text) 8%, transparent),
      0 6px 18px color-mix(in srgb, var(--text) 10%, transparent);
  }

  .airbnb-search-desktop .airbnb-seg:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }

  .airbnb-search-desktop .airbnb-field-where {
    flex: 1.25 1 0;
  }

  .airbnb-search-desktop .airbnb-field-when {
    flex: 0.95 1 0;
  }

  .airbnb-search-desktop .airbnb-field-who {
    flex: 0.85 1 0;
  }

  .airbnb-search-desktop .airbnb-field-cuisine {
    flex: 1 1 0;
    padding-right: 0.55rem;
  }

  .airbnb-search-desktop .airbnb-field-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.2;
    color: var(--text);
  }

  .airbnb-search-desktop .airbnb-seg-value {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--text);
  }

  .airbnb-search-desktop .airbnb-seg-value.is-muted {
    color: var(--text-muted);
    font-weight: 400;
  }

  .airbnb-search-desktop .airbnb-seg-divider {
    display: block;
    align-self: center;
    width: 1px;
    height: 1.75rem;
    flex-shrink: 0;
    background: var(--border);
  }

  .airbnb-search-desktop .airbnb-search-fields-desktop.is-expanded .airbnb-seg-divider {
    opacity: 0;
  }

  /* Search CTA: circle by default; expands with label when bar is open */
  .airbnb-search-desktop .airbnb-search-cta-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
    align-self: center;
    min-width: 3rem;
    height: 3rem;
    margin: 0 0.25rem 0 0.15rem;
    padding: 0 0.85rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition:
      background var(--dur-fast),
      transform var(--dur-fast) var(--ease-spring),
      padding var(--dur-fast),
      min-width var(--dur-fast);
  }

  .airbnb-search-desktop .airbnb-search-cta-text {
    display: none;
  }

  .airbnb-search-desktop .airbnb-search-fields-desktop.is-expanded .airbnb-search-cta-round {
    min-width: 6.75rem;
    padding: 0 1.1rem;
  }

  .airbnb-search-desktop .airbnb-search-fields-desktop.is-expanded .airbnb-search-cta-text {
    display: inline;
  }

  .airbnb-search-desktop .airbnb-search-cta-round:hover {
    background: var(--accent-hover);
  }

  .airbnb-search-desktop .airbnb-search-cta-round:active {
    transform: scale(0.96);
  }

  .airbnb-search-desktop .airbnb-search-cta-round:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }

  .airbnb-search-desktop .airbnb-search-cta-round .airbnb-search-cta-icon {
    display: inline-flex;
    line-height: 0;
  }

  /* ——— Popover panels (desktop only) ——— */
  .airbnb-search-desktop .airbnb-desktop-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    z-index: 60;
    box-sizing: border-box;
    padding: 1.15rem 1.25rem 1.25rem;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    border-radius: 1.75rem;
    background: var(--surface);
    box-shadow:
      0 4px 12px color-mix(in srgb, var(--text) 6%, transparent),
      0 24px 48px color-mix(in srgb, var(--text) 12%, transparent);
  }

  .airbnb-search-desktop .airbnb-desktop-panel.is-open {
    display: block;
  }

  .airbnb-search-desktop .airbnb-panel-where {
    left: 0;
    width: min(26rem, calc(100vw - 3rem));
    max-height: min(28rem, 70vh);
    overflow: auto;
    padding-top: 1rem;
  }

  .airbnb-search-desktop .airbnb-panel-when {
    left: 50%;
    transform: translateX(-50%);
    width: min(22rem, calc(100vw - 3rem));
  }

  .airbnb-search-desktop .airbnb-panel-who {
    right: 8rem;
    left: auto;
    width: min(22rem, calc(100vw - 3rem));
  }

  .airbnb-search-desktop .airbnb-panel-cuisine {
    right: 0;
    left: auto;
    width: min(26rem, calc(100vw - 3rem));
    max-height: min(28rem, 70vh);
    overflow: auto;
  }

  .airbnb-cuisine-panel-body .cuisine-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.15rem 0 0.85rem;
  }

  .airbnb-cuisine-panel-body .cuisine-pill {
    margin: 0;
  }

  .airbnb-cuisine-panel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border);
  }

  .airbnb-panel-where-head {
    margin-bottom: 0.85rem;
  }

  .airbnb-panel-where-input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text);
    font: inherit;
    font-size: 0.9375rem;
    outline: none;
  }

  .airbnb-panel-where-input:focus {
    border-color: var(--accent-border);
    box-shadow: var(--focus-ring);
    background: var(--surface);
  }

  .airbnb-panel-eyebrow {
    margin: 0 0 0.55rem;
    padding: 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
  }

  .airbnb-suggest-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .airbnb-suggest-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.55rem 0.5rem;
    border: 0;
    border-radius: 0.85rem;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background var(--dur-fast);
  }

  .airbnb-suggest-item:hover,
  .airbnb-suggest-item.is-active {
    background: var(--surface-muted);
  }

  .airbnb-suggest-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    flex-shrink: 0;
    color: var(--text-secondary);
  }

  .airbnb-suggest-icon-nearby {
    background: #e8eef8;
    color: #3d5a80;
  }

  .airbnb-suggest-icon-city {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .airbnb-suggest-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
  }

  .airbnb-suggest-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
  }

  .airbnb-suggest-sub {
    font-size: 0.8125rem;
    color: var(--text-muted);
  }

  .airbnb-suggest-empty {
    margin: 0.5rem 0.35rem;
    font-size: 0.875rem;
    color: var(--text-muted);
  }

  /* Calendar */
  .airbnb-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
  }

  .airbnb-cal-month {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
  }

  .airbnb-cal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
  }

  .airbnb-cal-nav-btn:hover {
    background: var(--surface-muted);
    border-color: var(--border-strong);
  }

  .airbnb-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.15rem;
    margin-bottom: 0.35rem;
    text-align: center;
  }

  .airbnb-cal-wd {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem 0;
  }

  .airbnb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
  }

  .airbnb-cal-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    width: 100%;
    min-height: 2.35rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
  }

  .airbnb-cal-day.is-empty {
    pointer-events: none;
    visibility: hidden;
  }

  .airbnb-cal-day:hover:not(:disabled):not(.is-selected) {
    background: var(--surface-muted);
  }

  .airbnb-cal-day.is-today:not(.is-selected) {
    box-shadow: inset 0 0 0 1.5px var(--text);
  }

  .airbnb-cal-day.is-selected {
    background: var(--text);
    color: #fff;
    font-weight: 700;
  }

  .airbnb-cal-day.is-disabled,
  .airbnb-cal-day:disabled {
    color: var(--border-strong);
    cursor: default;
  }

  /* Who popover */
  .airbnb-who-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0.15rem;
  }

  .airbnb-who-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
  }

  .airbnb-who-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
  }

  .airbnb-who-sub {
    font-size: 0.8125rem;
    color: var(--text-muted);
  }

  .airbnb-who-stepper {
    flex-shrink: 0;
    min-height: auto;
    gap: 0.55rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .airbnb-who-stepper .airbnb-party-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-size: 1.15rem;
  }

  .airbnb-who-stepper .airbnb-party-btn:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .airbnb-who-stepper .airbnb-party-value-label {
    min-width: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
  }

}

@media (min-width: 769px) and (max-width: 1100px) {
  .airbnb-search-desktop-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .airbnb-search-desktop .airbnb-desktop-map-btn {
    grid-column: 1 / -1;
    min-height: 3.25rem;
    max-height: none;
    height: auto;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
  }

  .airbnb-search-desktop .airbnb-seg {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .airbnb-search-desktop .airbnb-field-who {
    flex: 1.1 1 0;
  }

  .airbnb-search-desktop .airbnb-panel-when {
    left: 0;
    transform: none;
    width: min(22rem, calc(100vw - 2rem));
  }

  .airbnb-search-desktop .airbnb-open-now-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .airbnb-search-sheet-panel,
  .airbnb-search-compact {
    transition: none;
    animation: none;
  }
}

.home-pill:nth-child(3) {
  border-color: color-mix(in srgb, var(--amber) 28%, var(--border));
  background: var(--amber-soft);
  color: var(--amber);
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-brand-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--accent);
    -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-brand-tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.sidebar-brand strong {
  color: var(--accent);
  font-weight: 700;
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.topbar-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  padding-left: 0.15rem;
}

.topbar-nav-sep {
  width: 1px;
  height: 1.35rem;
  background: var(--border-strong);
  margin: 0 0.1rem;
}

.btn-nav {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

.btn-nav:hover {
  background: var(--surface);
  border-color: transparent;
  color: var(--text);
  transform: none;
  box-shadow: none;
}

.btn-nav-label-short {
  display: none;
}

.lang-dropdown {
  position: relative;
  flex-shrink: 0;
  padding-right: 0;
}

.lang-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 0;
  border-color: transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  box-shadow: none;
  transform: none;
}

.lang-dropdown-toggle:hover {
  background: var(--surface);
  border: 0;
  border-color: transparent;
  color: var(--text);
  box-shadow: none;
  transform: none;
}

.lang-dropdown-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-dropdown-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.lang-dropdown-current {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-dropdown-chevron {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform var(--dur-fast);
}

.lang-dropdown.is-open .lang-dropdown-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 80;
  min-width: 10.5rem;
  padding: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow:
    0 4px 12px color-mix(in srgb, var(--text) 6%, transparent),
    0 18px 40px color-mix(in srgb, var(--text) 12%, transparent);
}

.lang-dropdown-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.lang-dropdown-option:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.lang-dropdown-option.is-active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast),
    transform var(--dur-fast),
    box-shadow var(--dur-fast);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.97) translateY(0);
}

.btn-sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.8125rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  animation: accent-glow 1.4s ease-in-out infinite;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--violet-soft);
  border-color: color-mix(in srgb, var(--amber) 30%, var(--border));
  color: var(--violet);
  transform: translateY(-1px);
}

.lang-dropdown-toggle.btn-ghost,
.lang-dropdown-toggle.btn-ghost:hover {
  border: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.lang-dropdown-toggle.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.btn-danger {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger-soft);
  transform: translateY(-1px);
}

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}

.icon-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: rotate(90deg);
}

.page-header {
  margin-bottom: 1.25rem;
}

.page-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 42rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: none;
  transition: border-color var(--dur-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: 1.25rem;
}

.card + .card {
  margin-top: 1rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
}

.role-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-med),
    transform var(--dur-med);
}

.role-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  transition: width var(--dur-med) var(--ease-spring);
}

.role-card-guest::before {
  background: var(--accent);
}

.role-card-rest::before {
  background: var(--olive);
}

.role-card:hover {
  box-shadow: none;
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.role-card:active {
  transform: translateY(-1px) scale(0.995);
}

.role-card:hover::before {
  width: 7px;
}

.role-card-guest:hover {
  border-color: var(--accent-border);
}

.role-card-rest:hover {
  border-color: color-mix(in srgb, var(--olive) 40%, var(--border));
}

.role-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  transition: transform var(--dur-med) var(--ease-spring);
}

.role-card-guest .role-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.role-card-rest .role-icon {
  background: var(--teal-soft);
  color: var(--teal);
}

.role-card:hover .role-icon {
  transform: scale(1.1) rotate(-4deg);
}

.role-card h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.role-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.demo-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  border: 1px dashed var(--border-strong);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.demo-note strong {
  color: var(--accent);
}

.guest-browse {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.guest-browse-search-panel {
  margin-bottom: 1.25rem;
}

.guest-browse-toolbar {
  display: none;
}

.guest-browse-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.85rem;
  position: relative;
}

.guest-browse-search-btn-icon {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.85;
}

.guest-browse-filter-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--surface);
}

.filters {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.guest-browse-filters {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.guest-browse-filters .guest-filter-search {
  width: 100%;
}

.guest-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
}

.guest-filter-row > label {
  min-width: 0;
}

.guest-filter-row .booking-date-shell {
  width: 100%;
  min-width: 0;
}

.guest-filter-row .booking-date-shell input[type="date"] {
  transform: none;
}

.guest-filter-row .booking-date-shell input[type="date"]:focus {
  transform: none;
}

.guest-cuisine-dropdown-shell {
  position: relative;
}

.guest-cuisine-dropdown-trigger {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 2.25rem 0.45rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background-color: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238a7d6a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem;
  transition:
    border-color var(--dur-fast),
    background-color var(--dur-fast);
}

.guest-cuisine-dropdown-trigger:hover,
.guest-cuisine-dropdown-shell.is-open .guest-cuisine-dropdown-trigger {
  border-color: var(--accent-border);
  background-color: var(--surface);
}

.guest-cuisine-dropdown-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  padding: 0.65rem;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 1.25rem;
  box-shadow:
    0 4px 12px color-mix(in srgb, var(--text) 6%, transparent),
    0 18px 40px color-mix(in srgb, var(--text) 12%, transparent);
  max-height: 13rem;
  overflow-y: auto;
}

.guest-cuisine-dropdown-menu .cuisine-picker {
  gap: 0.35rem;
}

.guest-cuisine-dropdown-menu .cuisine-pill span {
  font-size: 0.75rem;
  padding: 0.32rem 0.62rem;
}

.guest-filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.15rem 0;
}

.guest-browse-filters .guest-filter-pills {
  width: 100%;
  justify-content: center;
  margin: 0.15rem 0 0;
}

.filter-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.filter-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.filter-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-spring),
    border-color var(--dur-fast),
    color var(--dur-fast),
    transform var(--dur-fast) var(--ease-spring);
}

.filter-pill:hover span {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text);
  transform: translateY(-1px);
}

.filter-pill:has(input:checked) span,
.filter-pill.is-selected span {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: none;
  transform: scale(1.04);
}

.filter-pill:has(input:checked):hover span,
.filter-pill.is-selected:hover span {
  transform: scale(1.05) translateY(-1px);
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filters input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]),
.filters select,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not(.open-hours-time-part),
.field select,
.field textarea,
.capacity-grid input,
.capacity-add-row input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.9rem;
  outline: none;
  transition:
    border-color var(--dur-fast),
    background-color var(--dur-fast),
    box-shadow var(--dur-fast),
    transform var(--dur-fast);
}

.field .capacity-item input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not(.open-hours-time-part),
.field .capacity-item input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.open-hours-time-part):focus {
  background: #fff;
  background-color: #fff;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.field .capacity-item input::-webkit-outer-spin-button,
.field .capacity-item input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field textarea,
.filters textarea {
  border-radius: 1.25rem;
  min-height: 5.5rem;
  padding: 0.75rem 0.95rem;
  resize: vertical;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not(.open-hours-time-part),
.filters input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]),
.capacity-grid input,
.capacity-add-row input {
  min-height: 2.75rem;
}

.filters select,
.field select {
  min-height: 2.75rem;
  padding: 0.45rem 2.25rem 0.45rem 0.9rem;
  border-radius: 999px;
  background-color: var(--surface-muted);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238a7d6a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
}

.filters select:hover,
.field select:hover,
.filters select:focus,
.field select:focus {
  border-color: var(--accent-border);
  background-color: var(--surface);
}

.filters input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.open-hours-time-part):focus,
.field select:focus,
.field textarea:focus,
.capacity-grid input:focus {
  border-color: var(--accent-border);
  background-color: var(--surface);
  box-shadow: var(--focus-ring);
  transform: none;
}

.grid-restaurants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
}

.guest-reservations-grouped {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Flat list on My reservations (no Active / Completed group shells) */
.guest-reservations-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.guest-reservations-list .reservation-card {
  flex: none;
  width: 100%;
  max-width: none;
  scroll-snap-align: none;
}

.reservation-group {
  display: block;
  min-width: 0;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.reservation-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0.9;
}

.reservation-group-active::before {
  background: var(--success);
}

.reservation-group-completed::before {
  background: var(--border-strong);
}

.reservation-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.15rem 0.1rem 0;
}

.reservation-group-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.reservation-group-count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.reservation-group-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.1rem 0.1rem 0.2rem;
  margin: 0;
}

.reservation-group-track::-webkit-scrollbar {
  display: none;
}

.reservation-group-empty {
  flex: 1;
  min-width: 100%;
  padding: 1.25rem 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.reservation-card {
  flex: 0 0 min(78vw, 18rem);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  min-height: 9.5rem;
  text-align: left;
  font: inherit;
  color: inherit;
  position: relative;
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast),
    transform var(--dur-fast);
}

.reservation-card-active {
  cursor: pointer;
}

.reservation-card-active:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.reservation-card-active:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.reservation-card-history {
  cursor: default;
  opacity: 0.92;
  background: var(--surface);
}

.reservation-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.reservation-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.reservation-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
}

.reservation-card-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.reservation-card-row dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reservation-card-row dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.reservation-card-chevron {
  margin-top: auto;
  align-self: flex-end;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

.reservation-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
}

.reservation-detail-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.65rem;
  align-items: baseline;
}

.reservation-detail-row dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reservation-detail-row dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.address-directions-link {
  color: var(--accent, #0d6efd);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  word-break: break-word;
}

.address-directions-link:hover,
.address-directions-link:focus-visible {
  color: var(--accent-hover, #0a58ca);
}

.guest-browse-results-grouped {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.guest-browse-results-grouped .cuisine-group {
  display: block;
  min-width: 0;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.guest-browse-results-grouped .cuisine-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border-strong);
  opacity: 0.9;
}

.guest-browse-results-grouped .cuisine-group[data-cuisine="Slovenian"]::before {
  background: var(--olive);
}

.guest-browse-results-grouped .cuisine-group[data-cuisine="Italian"]::before,
.guest-browse-results-grouped .cuisine-group[data-cuisine="Pizza"]::before {
  background: var(--amber);
}

.guest-browse-results-grouped .cuisine-group[data-cuisine="Seafood"]::before {
  background: var(--olive);
}

.guest-browse-results-grouped .cuisine-group[data-cuisine="Asian"]::before {
  background: var(--amber);
}

.guest-browse-results-grouped .cuisine-group[data-cuisine="Bistro"]::before {
  background: var(--olive);
}

.guest-browse-results-grouped .cuisine-group[data-cuisine="Fine dining"]::before {
  background: var(--accent);
}

.guest-browse-results-grouped .cuisine-group[data-cuisine="Café"]::before {
  background: var(--amber);
}

.guest-browse-results-grouped .cuisine-group[data-cuisine="BBQ"]::before {
  background: var(--accent);
}

.guest-browse-results-grouped .cuisine-group[data-cuisine="Burger"]::before {
  background: var(--amber);
}

.guest-browse-results-grouped .cuisine-group[data-cuisine="Steak"]::before {
  background: var(--accent);
}

.guest-browse-results-grouped .cuisine-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.15rem 0.1rem 0;
}

.guest-browse-results-grouped .cuisine-group-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.guest-browse-results-grouped .cuisine-group-count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.guest-browse-results-grouped .cuisine-group-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
}

.restaurant-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--dur-fast),
    transform 0.35s var(--ease-spring);
}

.restaurant-card-media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: var(--restaurant-cover-aspect);
  background: var(--border);
  overflow: hidden;
}

.restaurant-card-media.is-placeholder {
  background: var(--accent);
  opacity: 0.92;
}

.restaurant-card[data-cuisine="Slovenian"] .restaurant-card-media.is-placeholder {
  background: var(--olive);
}

.restaurant-card[data-cuisine="Italian"] .restaurant-card-media.is-placeholder,
.restaurant-card[data-cuisine="Pizza"] .restaurant-card-media.is-placeholder {
  background: var(--amber);
}

.restaurant-card[data-cuisine="Seafood"] .restaurant-card-media.is-placeholder {
  background: var(--olive);
}

.restaurant-card[data-cuisine="Asian"] .restaurant-card-media.is-placeholder {
  background: var(--amber);
}

.restaurant-card[data-cuisine="Bistro"] .restaurant-card-media.is-placeholder {
  background: var(--olive);
}

.restaurant-card[data-cuisine="Fine dining"] .restaurant-card-media.is-placeholder {
  background: var(--accent);
}

.restaurant-card[data-cuisine="Café"] .restaurant-card-media.is-placeholder {
  background: var(--amber);
}

.restaurant-card[data-cuisine="BBQ"] .restaurant-card-media.is-placeholder {
  background: var(--accent);
}

.restaurant-card[data-cuisine="Burger"] .restaurant-card-media.is-placeholder {
  background: var(--amber);
}

.restaurant-card[data-cuisine="Steak"] .restaurant-card-media.is-placeholder {
  background: var(--accent);
}

.restaurant-card-media.is-loading {
  background: var(--surface-muted);
}

@keyframes restaurant-card-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.restaurant-card-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--ease-spring);
  will-change: transform;
}

.restaurant-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem 1.05rem 1.1rem;
  flex: 1 1 auto;
  min-width: 0;
}

/* Single-row pills: Open/Closed · City · Cuisine — swipe horizontally if overflow. */
.restaurant-card-pills {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
}

.restaurant-card-pills::-webkit-scrollbar {
  display: none;
}

.restaurant-card-pills > [role="listitem"] {
  flex: 0 0 auto;
}

.restaurant-card-pills .badge {
  white-space: nowrap;
}

.restaurant-card-pills .badge-closed-now {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
}

/* Legacy thin accent bar only when there is no media strip (should not apply now). */
.restaurant-card::before {
  display: none;
}

.restaurant-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

.restaurant-card:active {
  transform: translateY(-1px) scale(0.995);
}

.restaurant-card:hover .restaurant-card-cover {
  transform: scale(1.05);
}

.restaurant-card:hover .restaurant-card-media.is-placeholder {
  filter: brightness(1.06);
  transition: filter var(--dur-med) ease;
}

.restaurant-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.restaurant-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .restaurant-card-media {
    height: 9.5rem;
  }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--dur-fast);
}

.restaurant-card:hover .badge {
  transform: translateY(-1px);
}

/* Cuisine tags: olive + amber support colors only. */
.badge-cuisine[data-cuisine="Slovenian"] { background: var(--olive-soft); color: var(--olive); }
.badge-cuisine[data-cuisine="Italian"] { background: var(--amber-soft); color: var(--amber); }
.badge-cuisine[data-cuisine="Pizza"] { background: var(--amber-soft); color: var(--amber); }
.badge-cuisine[data-cuisine="Seafood"] { background: var(--olive-soft); color: var(--olive); }
.badge-cuisine[data-cuisine="Asian"] { background: var(--amber-soft); color: var(--amber); }
.badge-cuisine[data-cuisine="Bistro"] { background: var(--olive-soft); color: var(--olive); }
.badge-cuisine[data-cuisine="Fine dining"] { background: var(--amber-soft); color: var(--amber); }
.badge-cuisine[data-cuisine="Café"] { background: var(--surface-muted); color: var(--text-secondary); }
.badge-cuisine[data-cuisine="BBQ"] { background: var(--amber-soft); color: var(--amber); }
.badge-cuisine[data-cuisine="Burger"] { background: var(--amber-soft); color: var(--amber); }
.badge-cuisine[data-cuisine="Steak"] { background: var(--olive-soft); color: var(--olive); }
.badge-cuisine:not([data-cuisine]) {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.badge-city {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.badge-open {
  background: var(--success-soft);
  color: var(--success);
}

.badge-open-now {
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
}

.badge-distance {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.badge-full {
  background: var(--danger-soft);
  color: var(--danger);
}

.detail-page {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

.detail-page--ot {
  max-width: 100%;
}

.detail-back {
  margin-bottom: 1rem;
  padding: 0.5rem 0.85rem;
}

/* ——— OpenTable-inspired guest detail (mobile base + desktop enhance) ——— */
.detail-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Match browse-card banner crop (--restaurant-cover-aspect) */
  aspect-ratio: var(--restaurant-cover-aspect);
  min-height: 0;
  margin: 0 0 1.15rem;
  border-radius: 1.15rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.detail-hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.detail-hero.is-placeholder .detail-hero-image,
.detail-hero.is-loading .detail-hero-image {
  display: none;
}

.detail-hero-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent-soft) 90%, transparent), transparent 55%),
    linear-gradient(145deg, var(--surface-muted), color-mix(in srgb, var(--accent-soft) 55%, var(--surface)));
}

.detail-hero-fallback-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 10%, transparent);
}

.detail-hero-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, color-mix(in srgb, #1e1a16 42%, transparent), transparent);
  pointer-events: none;
}

.detail-hero-actions {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  z-index: 1;
}

.detail-hero-status {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  color: var(--text);
  backdrop-filter: blur(6px);
}

.detail-hero-status.is-open {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
  background: color-mix(in srgb, var(--success-soft) 88%, var(--surface));
}

.detail-hero-status.is-closed {
  color: var(--text-muted);
}

.detail-hero-photos-btn {
  margin-left: auto;
  padding: 0.45rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--text) 12%, transparent);
}

.detail-hero-photos-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.detail-ot-header {
  margin: 0 0 1rem;
}

.detail-ot-details-in-overview {
  margin-top: 1.15rem;
}

.detail-ot-details-in-overview .card-body {
  padding: 0.95rem 1rem;
}

.detail-ot-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

.detail-ot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.detail-ot-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.detail-ot-chip-open {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
  background: var(--success-soft);
}

.detail-ot-chip-closed {
  color: var(--text-muted);
}

.detail-ot-chip-muted {
  color: var(--text-muted);
  font-weight: 500;
}

.detail-ot-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Mobile: booking near top of body; contact/hours/map live under Overview */
.detail-ot-booking {
  order: 0;
}

.detail-ot-main {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.detail-ot-tabs {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  margin: 0 0 0.15rem;
  padding: 0 0.1rem;
}

.detail-ot-tabs::-webkit-scrollbar {
  display: none;
}

.detail-ot-tab {
  flex: 0 0 auto;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.detail-ot-tab:hover {
  color: var(--text);
}

.detail-ot-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.detail-ot-section {
  scroll-margin-top: 5.5rem;
}

.detail-ot-section-title {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.detail-ot-about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.detail-ot-description {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.98rem;
}

.detail-ot-booking-card {
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text) 4%, transparent),
    0 12px 32px color-mix(in srgb, var(--text) 7%, transparent);
}

.detail-ot-booking-card .card-body {
  padding: 1.15rem 1.15rem 1.25rem;
}

.detail-ot-booking-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

.booking-select-time {
  margin-top: 0.95rem;
}

.booking-select-time-label {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.booking-slots-left {
  margin: 0 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--success);
}

/* Booking card time pills: always compact, 3 per row */
.detail-ot-booking-card .slot-grid,
.detail-page--ot .booking-panel .slot-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.4rem;
  margin-top: 0.55rem;
  width: 100%;
}

.detail-ot-booking-card .slot-btn,
.detail-page--ot .booking-panel .slot-btn {
  width: 100%;
  height: auto;
  min-height: 2.35rem;
  max-height: none;
  padding: 0.35rem 0.25rem;
  border-radius: 0.55rem;
  box-sizing: border-box;
}

.detail-ot-booking-card .slot-btn.slot-available,
.detail-page--ot .booking-panel .slot-btn.slot-available {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.detail-ot-booking-card .slot-btn.slot-available strong,
.detail-page--ot .booking-panel .slot-btn.slot-available strong {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.1;
}

.detail-ot-booking-card .slot-btn.slot-available span,
.detail-page--ot .booking-panel .slot-btn.slot-available span {
  color: color-mix(in srgb, #fff 78%, transparent);
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.detail-ot-booking-card .slot-btn.slot-available:hover:not(:disabled),
.detail-page--ot .booking-panel .slot-btn.slot-available:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: none;
}

.detail-ot-booking-card .slot-btn.slot-unavailable,
.detail-page--ot .booking-panel .slot-btn.slot-unavailable {
  opacity: 0.45;
  min-height: 2.35rem;
}

/* Desktop OT layout */
@media (min-width: 900px) {
  .detail-page--ot {
    max-width: 68rem;
    margin: 0 auto;
  }

  .detail-hero {
    /* Full page width, shared cover aspect ratio */
    aspect-ratio: var(--restaurant-cover-aspect);
    width: 100%;
    max-width: none;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 1.35rem;
  }

  .detail-hero-actions {
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
  }

  .detail-ot-header {
    margin-bottom: 1.25rem;
  }

  .detail-ot-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19.5rem, 22.5rem);
    gap: 1.5rem 1.75rem;
    align-items: start;
  }

  .detail-ot-main,
  .detail-ot-booking {
    order: unset;
  }

  .detail-ot-booking {
    position: sticky;
    top: 5.25rem;
    z-index: 12;
  }

  .detail-ot-booking-card {
    border-radius: 1.25rem;
  }

  .detail-ot-booking-card .card-body {
    padding: 1.35rem 1.35rem 1.45rem;
  }

  .detail-ot-booking-card h3 {
    font-size: 1.2rem;
  }

  .detail-ot-tabs {
    position: sticky;
    top: 4.5rem;
    z-index: 8;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px);
    margin-bottom: 0.35rem;
  }

  .detail-ot-section {
    padding-top: 0.35rem;
  }

  .detail-ot-section + .detail-ot-section {
    margin-top: 0.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
  }

  /* Photos gallery on detail: wider track */
  .detail-page--ot .photo-gallery-card {
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .detail-page--ot .photo-gallery-card .card-body {
    padding: 0;
  }

  .detail-page--ot .photo-gallery-header h3 {
    display: none;
  }
}

.meta-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.meta-row-actions .maps-link {
  flex: 1 1 auto;
}

.detail-distance {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.detail-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.detail-meta-info {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.detail-map-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  box-shadow: var(--shadow-sm);
  min-height: 11rem;
}

.detail-map {
  display: block;
  width: 100%;
  height: 11rem;
  border: 0;
  background: var(--success-soft);
}

.detail-map-open-link {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.detail-map-open-link:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

@media (min-width: 640px) {
  .detail-meta-grid {
    grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 42%);
    gap: 1rem 1.15rem;
  }

  .detail-map-wrap,
  .detail-map {
    min-height: 12.5rem;
    height: 12.5rem;
  }
}

.meta-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.meta-row strong {
  min-width: 4.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.meta-row span {
  color: var(--text);
}

.meta-row-open-hours {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.open-hours-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 0.75rem;
  width: 100%;
}

.open-hours-summary span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.booking-panel h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.booking-intro-hint {
  margin: 0;
}

.booking-panel-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  margin-top: 0.75rem;
  align-items: start;
}

.booking-panel-fields--airbnb {
  gap: 0.75rem;
}

.booking-panel-fields--airbnb > .booking-field > span:first-child,
.booking-panel-fields--airbnb > .field > span:first-child {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.booking-party-stepper {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
}

.booking-party-stepper .airbnb-party-btn {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.booking-party-stepper .airbnb-party-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.booking-party-stepper .airbnb-party-value-label {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  font-size: 0.875rem;
}

/* Guest detail — party size as pill dropdown (matches date trigger) */
.booking-party-select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  height: 2.75rem;
  padding: 0.45rem 2.25rem 0.45rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background-color: var(--surface-muted);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238a7d6a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  transition:
    border-color var(--dur-fast),
    background-color var(--dur-fast),
    box-shadow var(--dur-fast);
}

.booking-party-select:hover,
.booking-party-select:focus {
  border-color: var(--accent-border);
  background-color: var(--surface);
  outline: none;
}

.booking-party-select:focus-visible {
  box-shadow: var(--focus-ring);
}

.booking-panel-fields .booking-field-party .booking-party-select {
  margin: 0;
}

.booking-date-picker {
  position: relative;
  width: 100%;
  min-width: 0;
}

/* Restaurant availability toolbar — same pill date as browse/booking */
.rest-toolbar-date .booking-date-picker {
  min-width: 11.5rem;
}

.rest-toolbar-date > span:first-child {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.rest-toolbar-date .booking-date-trigger {
  min-height: 2.75rem;
}

.booking-date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem 0.45rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--dur-fast),
    background var(--dur-fast),
    box-shadow var(--dur-fast);
}

.booking-date-trigger:hover,
.booking-date-trigger.is-open {
  border-color: var(--accent-border);
  background: var(--surface);
}

.booking-date-trigger:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.booking-date-trigger:disabled {
  opacity: 0.5;
  cursor: default;
}

.booking-date-trigger-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-date-trigger-value.is-muted {
  color: var(--text-muted);
  font-weight: 500;
}

.booking-date-trigger-icon {
  display: inline-flex;
  color: var(--text-muted);
  flex-shrink: 0;
}

.booking-date-popover {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 40;
  min-width: min(18.5rem, calc(100vw - 2rem));
  width: max(100%, 17.5rem);
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow:
    0 4px 12px color-mix(in srgb, var(--text) 6%, transparent),
    0 18px 40px color-mix(in srgb, var(--text) 12%, transparent);
  box-sizing: border-box;
}

.booking-date-popover.is-open,
.booking-date-popover:not([hidden]) {
  display: block;
}

.booking-date-popover[hidden] {
  display: none !important;
}

/* Dim page while mobile date sheet is open */
.booking-date-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5100;
  margin: 0;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--text) 42%, transparent);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.booking-date-backdrop[hidden] {
  display: none !important;
}

html.date-sheet-open,
html.date-sheet-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Mobile bottom sheet — portaled to body, full usable width, above tab bar */
.booking-date-popover.is-mobile-sheet {
  border-radius: 1.35rem;
  padding: 1.05rem 1rem 1.15rem;
  box-shadow:
    0 8px 28px color-mix(in srgb, var(--text) 14%, transparent),
    0 2px 8px color-mix(in srgb, var(--text) 8%, transparent);
}

.booking-date-popover.is-mobile-sheet .airbnb-cal-day {
  min-height: 2.35rem;
  font-size: 0.9rem;
}

.booking-date-popover.is-mobile-sheet .airbnb-cal-nav-btn {
  width: 2.35rem;
  height: 2.35rem;
}

.booking-date-popover.is-mobile-sheet .airbnb-cal-month {
  font-size: 1.05rem;
}

/* Reuse calendar chrome from browse search */
.booking-date-popover .airbnb-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.booking-date-popover .airbnb-cal-month {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.booking-date-popover .airbnb-cal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
}

.booking-date-popover .airbnb-cal-weekdays,
.booking-date-popover .airbnb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
}

.booking-date-popover .airbnb-cal-wd {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 0.2rem 0;
}

.booking-date-popover .airbnb-cal-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  width: 100%;
  min-height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.booking-date-popover .airbnb-cal-day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.booking-date-popover .airbnb-cal-day:hover:not(:disabled):not(.is-selected) {
  background: var(--surface-muted);
}

.booking-date-popover .airbnb-cal-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1.5px var(--text);
}

.booking-date-popover .airbnb-cal-day.is-selected {
  background: var(--text);
  color: #fff;
  font-weight: 700;
}

.booking-date-popover .airbnb-cal-day:disabled,
.booking-date-popover .airbnb-cal-day.is-disabled {
  color: var(--border-strong);
  cursor: default;
}

.booking-field {
  margin: 0;
}

.field-date-compact {
  min-width: 0;
}

.booking-date-shell {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-sizing: border-box;
  overflow: hidden;
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast);
}

.booking-date-shell input[type="date"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.6rem 2.5rem 0.6rem 0.75rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  line-height: normal;
  color: var(--text);
  box-shadow: none;
  outline: none;
  -webkit-min-logical-width: 0;
  box-sizing: border-box;
}

.booking-date-shell:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.booking-date-shell input[type="date"]:focus {
  box-shadow: none;
  transform: none;
}

.booking-date-shell input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  opacity: 1;
}

.booking-date-shell input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

.booking-field-hint {
  margin: 0.25rem 0 0;
}

.booking-field-hint-full {
  grid-column: 1 / -1;
  margin: 0;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
}

.slot-grid .empty-state-slots {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 7.5rem;
  margin: 0;
  padding: 1.5rem 1.25rem;
  box-sizing: border-box;
  text-align: center;
  border-radius: 1rem;
  border: 1px dashed var(--border);
  background: var(--surface-muted);
}

.slot-grid .empty-state-slots-msg {
  margin: 0;
  max-width: 16rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  width: 100%;
  height: 4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: center;
  transition:
    border-color var(--dur-fast),
    background var(--dur-fast),
    transform var(--dur-fast),
    box-shadow var(--dur-fast);
}

.slot-btn.slot-available {
  border-color: color-mix(in srgb, var(--success) 40%, var(--border));
  background: var(--success-soft);
}

.slot-btn.slot-available:hover:not(:disabled) {
  border-color: var(--success);
  background: var(--success-soft);
  transform: translateY(-2px) scale(1.03);
  box-shadow: none;
}

.slot-btn.slot-available strong {
  color: var(--success);
}

.slot-btn.slot-unavailable {
  opacity: 0.55;
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  transform: translateY(-2px) scale(1.02);
}

.slot-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.slot-btn:disabled {
  cursor: not-allowed;
}

.slot-btn strong {
  font-size: 0.875rem;
  line-height: 1.1;
}

.slot-btn span {
  font-size: 0.625rem;
  line-height: 1.15;
  color: var(--text-muted);
}

.app-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

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

.rest-profile {
  width: 100%;
}

.profile-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.profile-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  width: 100%;
}

.profile-card,
.menu-manager-card {
  width: 100%;
  max-width: 32rem;
}

/* Desktop: details form left, media + team right */
@media (min-width: 900px) {
  .rest-profile .profile-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
    align-items: start;
  }

  .rest-profile .profile-card,
  .rest-profile .menu-manager-card,
  .rest-profile .cover-manager-card,
  .rest-profile .photos-manager-card,
  .rest-profile .staff-card {
    max-width: none;
  }

  .rest-profile .photos-manager-card {
    margin-top: 0;
  }
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-descriptions-field {
  gap: 0.55rem;
}

.profile-desc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
}

.profile-desc-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.profile-desc-pills {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
}

.profile-desc-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.3rem 0.7rem 0.3rem 0.45rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    box-shadow var(--dur-fast);
}

.profile-desc-pill:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.profile-desc-pill.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text) 6%, transparent),
    0 0 0 1px color-mix(in srgb, var(--border) 80%, transparent);
}

.profile-desc-pill-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: inherit;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.profile-desc-pill.is-active .profile-desc-pill-code {
  background: var(--accent-soft);
  color: var(--accent);
}

.profile-desc-pill-label {
  line-height: 1;
}

.profile-desc-pill-short {
  display: none;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.profile-desc-pill-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--success) 20%, transparent);
  flex-shrink: 0;
}

.profile-desc-hint {
  margin: 0;
}

@media (max-width: 768px) {
  .profile-desc-pills {
    flex-wrap: nowrap;
  }

  .profile-desc-pill {
    padding: 0.3rem 0.6rem;
    gap: 0.3rem;
  }

  .profile-desc-pill-code,
  .profile-desc-pill-label {
    display: none;
  }

  .profile-desc-pill-short {
    display: inline;
  }
}

.profile-description-input {
  width: 100%;
  min-height: 7rem;
  resize: vertical;
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  line-height: 1.5;
}


.menu-manager-header h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.menu-manager-header .field-hint {
  margin-bottom: 0.85rem;
}

.menu-manager-empty {
  margin: 0 0 0.85rem;
}

.menu-upload-field {
  margin-top: 0.85rem;
}

.profile-media-actions {
  display: flex;
  flex-direction: column;
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.profile-media-actions--secondary {
  margin-top: 0.65rem;
}

.profile-media-actions.is-disabled {
  opacity: 0.55;
}

.profile-media-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.1rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-media-action:last-child {
  border-bottom: 0;
}

.profile-media-action:active:not(:disabled) {
  background: var(--surface-muted);
}

.profile-media-action:disabled {
  cursor: not-allowed;
}

.profile-media-action--destructive {
  justify-content: center;
  color: var(--danger);
}

.profile-media-action-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: var(--accent-soft);
  flex-shrink: 0;
}

.profile-media-action-icon--library::before {
  content: "";
  width: 1rem;
  height: 0.8rem;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-shadow: inset 0 -0.35rem 0 -2px currentColor;
}

.profile-media-action-icon--camera::before {
  content: "";
  width: 1.1rem;
  height: 0.8rem;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.profile-media-action-icon--camera::after {
  content: "";
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.profile-media-action-icon--camera {
  position: relative;
}

.profile-media-action-text {
  flex: 1;
}

.profile-media-action-chevron {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
}

.menu-manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.field input[type="file"] {
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  margin-right: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.cuisine-field .field-hint {
  margin: 0.2rem 0 0.65rem;
}

.open-hours-editor {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-muted);
}

.open-hours-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.35rem 0.45rem;
  align-items: center;
  padding: 0.3rem 0.45rem;
  border-bottom: 1px solid var(--border);
}

.open-hours-row:last-child {
  border-bottom: none;
}

.open-hours-day {
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.open-hours-closed.rest-closed-toggle {
  height: 2.15rem;
  min-height: 2.15rem;
  padding: 0 0.65rem 0 0.5rem;
  gap: 0.45rem;
  justify-content: flex-start;
  max-width: 100%;
}

.open-hours-closed .rest-closed-toggle-track {
  width: 2.1rem;
  height: 1.2rem;
}

.open-hours-closed .rest-closed-toggle-thumb {
  top: 0.15rem;
  left: 0.15rem;
  width: 0.9rem;
  height: 0.9rem;
}

.open-hours-closed.is-on .rest-closed-toggle-thumb,
.open-hours-closed:has(input:checked) .rest-closed-toggle-thumb {
  transform: translateX(0.9rem);
}

.open-hours-closed .rest-closed-toggle-state {
  font-size: 0.75rem;
}

@media (max-width: 560px) {
  .open-hours-row {
    grid-template-columns: 2.15rem minmax(0, 1fr) auto;
    gap: 0.3rem 0.35rem;
    padding: 0.4rem 0.45rem;
  }

  .open-hours-day {
    font-size: 0.625rem;
  }

  .open-hours-closed.rest-closed-toggle {
    height: 2.45rem;
    min-height: 2.45rem;
    padding: 0 0.5rem 0 0.4rem;
    gap: 0.35rem;
  }

  .open-hours-closed .rest-closed-toggle-state {
    font-size: 0.6875rem;
  }
}

.open-hours-times {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.open-hours-closed-state {
  display: none;
}

.open-hours-row.is-closed .open-hours-times {
  visibility: hidden;
}

.open-hours-sep {
  color: var(--text-muted);
  font-size: 0.6875rem;
  flex-shrink: 0;
  line-height: 1;
}

.open-hours-time-picker {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.open-hours-time-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  width: 100%;
  height: 2.15rem;
  min-height: 2.15rem;
  padding: 0 0.35rem;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: 999px;
  background: var(--surface);
  box-sizing: border-box;
}

.open-hours-time-entry:focus-within {
  border-color: var(--accent-border, var(--accent));
  box-shadow: var(--focus-ring);
}

.open-hours-time-part {
  width: 1.7em;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  -moz-appearance: textfield;
}

.open-hours-time-part::-webkit-outer-spin-button,
.open-hours-time-part::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.open-hours-time-part:focus {
  outline: none;
  box-shadow: none;
  transform: none;
}

.open-hours-time-part:disabled {
  color: var(--text-muted);
}

.open-hours-time-colon {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.open-hours-row.is-closed .open-hours-times .open-hours-time-picker {
  display: none;
}

@media (max-width: 560px) {
  .open-hours-time-entry {
    height: 2.45rem;
    min-height: 2.45rem;
    padding: 0 0.3rem;
  }

  .open-hours-time-part {
    font-size: 1rem;
    width: 1.85em;
  }

  .open-hours-time-colon {
    font-size: 1rem;
  }
}

.cuisine-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cuisine-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.cuisine-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cuisine-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast),
    box-shadow var(--dur-fast);
}

.cuisine-pill:hover span {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text);
}

.cuisine-pill.is-selected span,
.cuisine-pill:has(input:checked) span {
  border-color: transparent;
  background: var(--accent);
    color: #fff;
  box-shadow: var(--shadow-glow);
}

.sidebar {
  position: sticky;
  top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.sidebar-name {
  margin: 0.25rem 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-link {
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 0.65rem;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    transform var(--dur-fast),
    padding-left var(--dur-fast);
}

.sidebar-link:hover {
  background: var(--violet-soft);
  color: var(--violet);
  padding-left: 0.85rem;
}

.sidebar-link.is-active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}

.sidebar-link-label-short {
  display: none;
}

.nav-beta {
  font-style: italic;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.78;
  margin-left: 0.15em;
}

.sidebar-link.is-active .nav-beta,
.rest-bottom-link.is-active .nav-beta {
  opacity: 0.9;
}

.sidebar-link-icon {
  display: none;
  flex-shrink: 0;
  line-height: 0;
}

.sidebar-link-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.topbar-subtitle {
  display: none;
  margin: 0.1rem 0 0;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.rest-section-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.rest-today-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Restaurant availability slots — card list (mobile-first) */
.rest-slots-select-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  margin: 0.85rem 0 0.45rem;
}

.rest-slots-select-bar .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 2rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

.rest-slots-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rest-slot-card {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  grid-template-areas:
    "select body"
    "actions actions";
  gap: 0.55rem 0.5rem;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  box-sizing: border-box;
}

.rest-slot-card.is-selected {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.rest-slot-select {
  grid-area: select;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  cursor: pointer;
}

.rest-slot-select input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.rest-slot-select-mark {
  width: 1.35rem;
  height: 1.35rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 0.35rem;
  background: var(--surface);
  box-sizing: border-box;
}

.rest-slot-select:has(input:checked) .rest-slot-select-mark {
  border-color: var(--accent);
  background: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 8.2 6.6 11.2 12.5 4.8'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.95rem;
}

.rest-slot-select:has(input:focus-visible) .rest-slot-select-mark {
  box-shadow: var(--focus-ring);
}

.rest-slot-card.is-full {
  opacity: 0.88;
}

.rest-slot-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.rest-slot-time-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
}

.rest-slot-time {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.rest-slot-avail {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.rest-slot-avail.is-open {
  color: var(--success);
}

.rest-slot-avail.is-full {
  color: var(--danger);
}

.rest-slot-tables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.rest-slot-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.rest-slot-chip-empty {
  color: var(--text-muted);
  font-weight: 500;
}

.rest-slot-actions {
  grid-area: actions;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.rest-slot-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.5rem;
  justify-content: center;
}

.rest-slot-actions .btn:only-child {
  flex: 1 1 auto;
}

@media (min-width: 769px) {
  .rest-slots-select-bar {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .rest-slots-select-bar .btn {
    min-height: 1.95rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
  }

  .rest-slot-card {
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    grid-template-areas: "select body actions";
    align-items: center;
    gap: 0.75rem 0.85rem;
    padding: 0.85rem 1rem;
  }

  .rest-slot-select {
    align-self: center;
  }

  .rest-slot-body {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    min-width: 0;
  }

  .rest-slot-time-block {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.2rem;
    min-width: 5.5rem;
  }

  .rest-slot-time {
    font-size: 1.05rem;
  }

  .rest-slot-avail {
    text-align: left;
    font-size: 0.6875rem;
  }

  .rest-slot-tables {
    flex: 1 1 auto;
  }

  .rest-slot-actions {
    flex: 0 0 auto;
    width: auto;
    padding-top: 0;
    border-top: none;
    gap: 0.4rem;
  }

  .rest-slot-actions .btn {
    flex: 0 0 auto;
    min-width: 5rem;
    min-height: 2.35rem;
  }
}

.rest-today-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  padding: 0.5rem 0.6rem;
}

.rest-today-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.rest-today-when {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 3rem;
}

.rest-today-time {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.rest-today-date {
  font-size: 0.625rem;
  line-height: 1.2;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.rest-today-info {
  min-width: 0;
}

.rest-today-info strong {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rest-today-info span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rest-today-item .status-pill {
  flex-shrink: 0;
  font-size: 0.5625rem;
  padding: 0.15rem 0.4rem;
}

.rest-today-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.3rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

.rest-today-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.25rem;
  padding: 0.3rem 0.2rem;
  font-size: 0.7rem;
  justify-content: center;
  white-space: nowrap;
}

.status-no_show {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.status-completed {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.empty-state-compact {
  padding: 1rem 0.5rem;
}

.empty-state-compact h3 {
  font-size: 0.95rem;
}

.rest-guest-contact {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

.app-layout.app-layout-rest .stats-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 5.25rem;
  height: 100%;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform var(--dur-med) var(--ease-spring), box-shadow var(--dur-fast);
  box-sizing: border-box;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
  border-color: var(--border-strong);
}

.stat-card-1 {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.stat-card-2 {
  background: var(--olive-soft);
  border-color: color-mix(in srgb, var(--olive) 40%, var(--border));
}

.stat-card-3 {
  background: var(--amber-soft);
  border-color: color-mix(in srgb, var(--amber) 30%, var(--border));
}

.stat-card strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-card-1 strong { color: var(--accent); }
.stat-card-2 strong { color: var(--teal); }
.stat-card-3 strong { color: var(--violet); }

.stat-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.toolbar-row .field-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

/* Availability toolbar: date + closed toggle share one row baseline */
.rest-toolbar {
  align-items: flex-end;
  gap: 0.85rem 1rem;
}

.rest-toolbar-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  min-width: 0;
  flex: 1 1 auto;
}

/* Slots date control — match Add booking party-size control size */
.rest-toolbar-date {
  margin: 0;
  min-width: 0;
  width: 12.5rem;
  max-width: 12.5rem;
  flex: 0 0 12.5rem;
}

.rest-toolbar-date .booking-date-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 2.75rem;
  min-height: 2.75rem;
  box-sizing: border-box;
}

.rest-toolbar-date .booking-date-shell input[type="date"] {
  height: 100%;
  min-height: 2.75rem;
  padding: 0 2.5rem 0 0.75rem;
  font-size: 0.9375rem;
  line-height: normal;
  transform: none;
}

.rest-toolbar-date .booking-date-shell input[type="date"]:focus {
  transform: none;
}

.rest-toolbar-closed-field {
  margin: 0;
  min-width: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rest-toolbar-closed-field > span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
}

.rest-closed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.9rem 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  background: var(--surface);
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  transition:
    border-color var(--dur-fast, 0.15s) ease,
    background-color var(--dur-fast, 0.15s) ease,
    box-shadow var(--dur-fast, 0.15s) ease;
}

.rest-closed-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.rest-closed-toggle-track {
  position: relative;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border-strong) 70%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 80%, transparent);
  transition: background-color var(--dur-fast, 0.15s) ease;
}

.rest-closed-toggle-thumb {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: none;
  transition: transform var(--dur-fast, 0.15s) ease;
}

.rest-closed-toggle-state {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.rest-closed-toggle.is-on,
.rest-closed-toggle:has(input:checked) {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
  background: var(--danger-soft);
}

.rest-closed-toggle.is-on .rest-closed-toggle-track,
.rest-closed-toggle:has(input:checked) .rest-closed-toggle-track {
  background: var(--danger);
  box-shadow: none;
}

.rest-closed-toggle.is-on .rest-closed-toggle-thumb,
.rest-closed-toggle:has(input:checked) .rest-closed-toggle-thumb {
  transform: translateX(1rem);
}

.rest-closed-toggle.is-on .rest-closed-toggle-state,
.rest-closed-toggle:has(input:checked) .rest-closed-toggle-state {
  color: var(--danger);
}

.rest-closed-toggle:focus-within {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

.rest-toolbar-closed-field.is-disabled {
  opacity: 0.72;
}

.rest-toolbar-closed-field.is-disabled .rest-closed-toggle {
  cursor: not-allowed;
}

.slot-template-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: flex-end;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.slot-template-field {
  flex: 1.1 1 0;
  min-width: 0;
  margin: 0;
}

.slot-template-name-field {
  flex: 1.2 1 0;
  min-width: 0;
  margin: 0;
}

.slot-template-actions {
  display: flex;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  gap: 0.4rem;
  align-items: stretch;
}

.slot-template-bar #slot-template-save-btn,
.slot-template-bar #slot-template-delete-btn {
  min-height: 2.75rem;
  height: 2.75rem;
  min-width: 4.25rem;
  padding: 0 0.85rem;
  box-sizing: border-box;
  white-space: nowrap;
}

.slot-schedule-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: end;
}

.slot-schedule-row > .field,
.slot-schedule-row > .slot-schedule-field {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.slot-schedule-row > .field > span:first-child,
.slot-schedule-row > .slot-schedule-field > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Shared outer size for start/end/interval controls */
.slot-schedule-row .slot-time-shell,
.slot-schedule-row .pill-select,
.slot-schedule-row .booking-date-trigger,
.slot-schedule-row input[type="number"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 2.75rem;
  min-height: 2.75rem;
  box-sizing: border-box;
}

.slot-schedule-row .slot-time-shell,
.slot-schedule-row .pill-select,
.slot-schedule-row input[type="number"] {
  display: block;
}

.slot-schedule-row .booking-date-trigger {
  display: flex;
  justify-content: center;
  text-align: center;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.slot-schedule-row .booking-date-trigger::before {
  content: "";
  width: 16px;
  flex: 0 0 16px;
}

.slot-schedule-row .booking-date-trigger-value {
  flex: 1;
  text-align: center;
}

.slot-schedule-row .booking-date-trigger-icon {
  flex: 0 0 16px;
  width: 16px;
}

.slot-schedule-row input[type="number"] {
  padding: 0 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-muted);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
  outline: none;
  transition:
    border-color var(--dur-fast),
    background-color var(--dur-fast),
    box-shadow var(--dur-fast);
}

.slot-schedule-row input[type="number"]::-webkit-outer-spin-button,
.slot-schedule-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.slot-schedule-row input[type="number"]:focus {
  border-color: var(--accent-border);
  background: var(--surface);
  box-shadow: var(--focus-ring);
  transform: none;
}

/* Shell keeps native time pickers from blowing past a fixed box (schedule + single-slot dialog) */
.slot-time-shell {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0;
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast);
}

/* Add/edit one slot — label + time on one row */
#slot-dialog .field.field-seating-time {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}

#slot-dialog .field-seating-time > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

#slot-dialog .field-seating-time .slot-time-shell,
#slot-dialog .field-seating-time .pill-select,
#slot-dialog .field-seating-time .booking-date-trigger {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 2.75rem;
  min-height: 2.75rem;
  box-sizing: border-box;
}

#slot-dialog .field-seating-time .slot-time-shell,
#slot-dialog .field-seating-time .pill-select {
  display: block;
  flex: 1 1 auto;
  width: auto;
}

#slot-dialog .field-seating-time .booking-date-trigger {
  display: flex;
  justify-content: center;
  text-align: center;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

#slot-dialog .field-seating-time .booking-date-trigger::before {
  content: "";
  width: 16px;
  flex: 0 0 16px;
}

#slot-dialog .field-seating-time .booking-date-trigger-value {
  flex: 1;
  text-align: center;
}

#slot-dialog .field-seating-time .booking-date-trigger-icon {
  flex: 0 0 16px;
  width: 16px;
}

.slot-time-shell:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

/* Absolute fill so intrinsic time-input min-width cannot stretch the column */
.slot-time-shell input[type="time"] {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  margin: 0;
  padding: 0 0.45rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  font: inherit;
  font-size: 0.9375rem;
  line-height: normal;
  color: var(--text);
  transform: none;
  -webkit-min-logical-width: 0;
  box-sizing: border-box;
}

.slot-time-shell input[type="time"]:focus {
  border: 0;
  box-shadow: none;
  transform: none;
}

.slot-time-shell input[type="time"]::-webkit-calendar-picker-indicator {
  margin: 0;
  padding: 0;
  width: 0.9rem;
  height: 0.9rem;
  cursor: pointer;
}

.slot-time-shell input[type="time"]::-webkit-datetime-edit,
.slot-time-shell input[type="time"]::-webkit-datetime-edit-fields-wrapper,
.slot-time-shell input[type="time"]::-webkit-datetime-edit-hour-field,
.slot-time-shell input[type="time"]::-webkit-datetime-edit-minute-field,
.slot-time-shell input[type="time"]::-webkit-datetime-edit-ampm-field,
.slot-time-shell input[type="time"]::-webkit-datetime-edit-text {
  padding: 0;
  margin: 0;
  min-width: 0;
}

.slot-bulk-repeat {
  margin-top: 1rem;
}

.slot-bulk-repeat-field {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.slot-bulk-repeat-toggle,
.slot-bulk-repeat-toggle.rest-closed-toggle {
  width: auto;
  max-width: 100%;
}

.slot-bulk-repeat-toggle.is-on,
.slot-bulk-repeat-toggle:has(input:checked) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.slot-bulk-repeat-toggle.is-on .rest-closed-toggle-track,
.slot-bulk-repeat-toggle:has(input:checked) .rest-closed-toggle-track {
  background: var(--accent);
  box-shadow: none;
}

.slot-bulk-repeat-toggle.is-on .rest-closed-toggle-state,
.slot-bulk-repeat-toggle:has(input:checked) .rest-closed-toggle-state {
  color: var(--accent);
}

.slot-bulk-repeat-details {
  margin-top: 0.75rem;
  padding: 0.85rem 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.slot-bulk-repeat-details .field {
  margin: 0 0 0.85rem;
}

.slot-bulk-repeat-details .field:last-child {
  margin-bottom: 0;
}

.slot-bulk-day-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.slot-bulk-day-pill {
  position: relative;
  display: flex;
  flex: 1 1 calc((100% - 2.1rem) / 7);
  min-width: 2.45rem;
  margin: 0;
  cursor: pointer;
}

.slot-bulk-day-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  appearance: none;
}

.slot-bulk-day-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.4rem 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast);
}

.slot-bulk-day-pill:hover span {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text);
}

.slot-bulk-day-pill:has(input:checked) span,
.slot-bulk-day-pill.is-selected span {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.slot-bulk-day-pill:has(input:focus-visible) span {
  box-shadow: var(--focus-ring);
}

.slot-bulk-day-pill.is-closed {
  cursor: not-allowed;
}

.slot-bulk-day-pill.is-closed span,
.slot-bulk-day-pill:has(input:disabled) span {
  opacity: 0.42;
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--text-muted);
  text-decoration: line-through;
}

.slot-bulk-day-pill.is-closed:hover span {
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--text-muted);
}

.field.slot-bulk-weeks-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.field.slot-bulk-weeks-field > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.slot-bulk-weeks-field input[type="number"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 4.5rem;
  min-height: 2.75rem;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.slot-bulk-weeks-field input[type="number"]::-webkit-outer-spin-button,
.slot-bulk-weeks-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.slot-bulk-preview {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.slot-bulk-preview-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.slot-bulk-preview-times {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.slot-bulk-preview-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.reservations-filter {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.reservations-filter-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.range-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.range-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast),
    box-shadow var(--dur-fast);
}

.range-pill:hover {
  border-color: var(--accent-border);
  color: var(--text);
  background: var(--accent-soft);
}

.range-pill.is-active {
  border-color: transparent;
  color: #fff;
  background: var(--accent);
    box-shadow: var(--shadow-glow);
}

.range-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem 0.75rem;
  align-items: end;
}

.range-custom.is-hidden {
  display: none;
}

.range-custom-field,
.range-custom > .field,
.range-custom > .booking-field {
  max-width: none;
  margin: 0;
  min-width: 0;
}

.range-summary {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.range-summary strong {
  color: var(--accent);
  font-weight: 700;
}

.reservations-filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reservations-status-filter {
  margin: 0;
  min-width: 0;
}

.reservations-status-filter select,
.reservations-status-filter .pill-select,
.reservations-status-filter .booking-date-trigger {
  width: 100%;
  min-height: 2.75rem;
}

.reservations-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.reservations-filter-buttons .btn {
  flex: 1 1 auto;
  min-width: 8rem;
}

@media (min-width: 768px) {
  .rest-bookings-card .reservations-filter-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
  }

  .rest-bookings-card .reservations-filter-toolbar .range-pills {
    flex: 1 1 auto;
    min-width: 0;
  }

  .rest-bookings-card .reservations-status-filter {
    flex: 0 0 11rem;
  }

  .rest-bookings-card .reservations-filter-buttons {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .rest-bookings-card .reservations-filter-buttons .btn {
    flex: 0 0 auto;
    min-width: 0;
  }
}

.confirmation-code {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
}

/* My reservations — keep form + list readable on wide desktops */
.guest-mine-page {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.guest-mine-page .page-header {
  text-align: center;
}

.guest-mine-page .page-header p {
  margin-left: auto;
  margin-right: auto;
}

.guest-mine-card {
  width: 100%;
}

.lookup-form {
  margin-bottom: 1rem;
}

.lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11.5rem, 13rem);
  gap: 0.75rem;
  align-items: end;
}



.lookup-field {
  margin: 0;
  min-width: 0;
}

.lookup-field-code > span {
  white-space: nowrap;
}

.lookup-field-code input {
  text-align: center;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.lookup-submit {
  width: 100%;
  margin-top: 0.75rem;
}

.guest-verify-error {
  margin: 0.75rem 0 0;
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 600;
}

.table-actions {
  text-align: right;
  white-space: nowrap;
}

.cancel-by-code {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.cancel-by-code-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.cancel-by-code-desc {
  margin: 0 0 0.9rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.cancel-by-code-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.cancel-by-code-field {
  flex: 1 1 14rem;
  max-width: 18rem;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--surface);
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--dur-fast);
}

.data-table tbody tr:hover {
  background: var(--accent-soft);
}

.data-table th {
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.status-pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-confirmed {
  background: var(--success-soft);
  color: var(--success);
}

.status-cancelled {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-pending,
.status-waitlisted,
.status-waitlist {
  background: var(--pending-soft);
  color: var(--pending);
}

.status-seated {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-no_show {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.status-completed {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.field small {
  font-weight: 400;
  color: var(--text-muted);
}

.field-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.address-autocomplete {
  position: relative;
  width: 100%;
  z-index: 5;
}

.profile-form .field:has(.address-autocomplete) {
  position: relative;
  z-index: 6;
  overflow: visible;
}

.rest-profile .profile-card,
.rest-profile .profile-card .card-body,
.rest-profile .profile-col-main {
  overflow: visible;
}

.address-autocomplete input {
  width: 100%;
}

.address-suggestions {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  max-height: 14rem;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  background: var(--surface);
  box-shadow: var(--shadow-md, 0 12px 32px rgba(26, 21, 18, 0.12));
}

/* Body portal: avoids clipping by profile overflow / stacking contexts */
.address-suggestions--portal {
  position: fixed;
  z-index: 4000;
  top: auto;
  left: auto;
  right: auto;
  max-height: min(14rem, 40vh);
  box-shadow: none;
}

.address-suggestions[hidden] {
  display: none !important;
}

.address-autocomplete input.is-address-loading {
  background-image: none;
  background-size: 200% 100%;
}

.profile-stack,
.profile-col,
.profile-col-main,
.profile-col-side,
.rest-profile .profile-card,
.rest-profile .profile-card .card-body {
  overflow: visible;
}

.address-suggestions li {
  margin: 0;
}

.address-suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
}

.address-suggestions button:hover,
.address-suggestions button:focus-visible {
  background: var(--accent-soft, #fff3eb);
  outline: none;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 24rem;
  width: 100%;
}

.auth-card {
  width: min(100%, 26rem);
  animation: fade-scale-in var(--dur-slow) var(--ease-spring);
}

.auth-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.auth-card .subtitle {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-state h3 {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 1rem;
}

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.capacity-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}

.capacity-item:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.capacity-item label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.capacity-item input {
  text-align: center;
  font-weight: 600;
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}

.capacity-item input::-webkit-outer-spin-button,
.capacity-item input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.capacity-add-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.capacity-add-row input {
  max-width: 6rem;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 2147483646;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  animation: toast-in 0.35s var(--ease-spring);
  pointer-events: none;
}

dialog[open] > .toast {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(22rem, calc(100vw - 2rem));
  text-align: center;
}

.toast.is-error {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
  background: var(--danger-soft);
  color: var(--danger);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 28rem);
}

.modal-wide {
  max-width: min(92vw, 36rem);
}

/* Reservation detail only — a bit wider on desktop */
#reservation-detail-dialog {
  max-width: min(92vw, 32rem);
}

.modal::backdrop {
  background: rgba(26, 21, 18, 0.45);
  animation: backdrop-in 0.28s ease;
}

.modal[open] .modal-card {
  animation: modal-in 0.42s var(--ease-spring) both;
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    /* `none` so fixed popovers are not trapped in a transform containing block */
    transform: none;
  }
}

.modal-card {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.modal-header,
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
}

.modal-header {
  border-bottom: 1px solid var(--border);
  background: var(--accent-soft);
}

.modal-eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.125rem;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
}

.modal-footer {
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  background: var(--surface-muted);
}

/* Author `display: flex` must not beat the HTML hidden attribute */
.modal-header[hidden],
.modal-footer[hidden],
.modal-body[hidden],
[hidden] {
  display: none !important;
}

.modal-footer-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.modal-footer-stack {
  gap: 0.5rem;
}

.app-confirm-message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.app-confirm-extra:not([hidden]) {
  display: block;
  margin-top: 1rem;
}

.app-confirm-type-name {
  margin: 0;
}

.app-confirm-type-name input {
  font-size: 1rem;
}

.floor-template-dialog {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.floor-template-plans,
.floor-template-combined {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.floor-template-plans-label,
.floor-template-combined-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.floor-template-plan-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: min(12.5rem, 36dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.floor-template-plan {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.95rem;
  background: var(--surface-muted);
  cursor: pointer;
}

.floor-template-plan:has(input:checked) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.floor-template-plan.is-empty {
  opacity: 0.58;
  cursor: default;
}

.floor-template-plan input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.floor-template-plan-check {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 0.35rem;
  background: var(--surface);
  box-sizing: border-box;
}

.floor-template-plan:has(input:checked) .floor-template-plan-check {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.2 6.2L4.8 8.8L9.8 3.2' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.75rem;
}

.floor-template-plan:has(input:focus-visible) {
  box-shadow: var(--focus-ring);
}

.floor-template-plan-copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.floor-template-plan-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.floor-template-plan-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.floor-template-combined {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.floor-template-combined.is-empty {
  background: var(--surface-muted);
  border-color: var(--border);
}

.floor-template-combined .floor-summary-totals {
  font-size: 0.9rem;
}

.app-confirm-seated-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-confirm-booked-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.app-confirm-party-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.app-confirm-party-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.app-confirm-party-stepper {
  justify-content: center;
  max-width: 16rem;
  margin: 0 auto;
}

.app-confirm-party-stepper .airbnb-party-btn {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.staff-seated-party-field {
  margin-bottom: 0.75rem;
}

.staff-seated-party-field .airbnb-party-stepper {
  max-width: 16rem;
}

.page-header-with-action {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.page-header-with-action > div {
  flex: 1 1 12rem;
  min-width: 0;
}

.rest-today-pills {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-muted);
  white-space: nowrap;
}

.source-pill.source-restaurant {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.source-pill.source-app {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

/* Staff phone-in / edit booking — same pill controls as guest reschedule */
.staff-booking-fields-row {
  margin-bottom: 0.85rem;
}

.staff-booking-fields-row.is-locked {
  opacity: 0.65;
  pointer-events: none;
}

.staff-booking-times.guest-reschedule-time-popover {
  max-height: 14rem;
}

/* Allow date/time/party popovers to paint outside the staff booking card */
#staff-booking-dialog,
#staff-booking-dialog .modal-card,
#staff-booking-dialog .modal-body,
#staff-booking-dialog .staff-booking-fields-row,
#staff-booking-dialog .booking-date-picker,
#staff-booking-dialog .guest-reschedule-time-picker,
#staff-booking-dialog #staff-party-picker {
  overflow: visible;
}

#staff-booking-dialog .booking-date-popover,
#staff-booking-dialog .guest-reschedule-time-popover,
#staff-booking-dialog .staff-booking-times,
#staff-booking-dialog .staff-booking-party-popover {
  z-index: 120;
}

#staff-booking-dialog .staff-booking-times,
#staff-booking-dialog .staff-booking-party-popover {
  margin-top: 0;
  grid-template-columns: none;
}

/* legacy hooks if any remain */
.staff-booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.staff-booking-grid > .field,
.staff-booking-grid > .staff-booking-field {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.staff-booking-grid > .field > span:first-child,
.staff-booking-grid > .staff-booking-field > span:first-child {
  min-height: 1.25rem;
}

.staff-booking-grid .booking-date-shell,
.staff-booking-grid .staff-booking-field-party select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 2.75rem;
  min-height: 2.75rem;
  box-sizing: border-box;
}

.staff-booking-grid .staff-booking-field-party select {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.25;
}

.staff-booking-grid .booking-date-shell input[type="date"] {
  height: 100%;
  min-height: 2.75rem;
  padding: 0 2.5rem 0 0.75rem;
  font-size: 0.9375rem;
  line-height: normal;
  transform: none;
}

.staff-booking-grid .booking-date-shell input[type="date"]:focus {
  transform: none;
}

.staff-booking-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.staff-booking-time-btn.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-soft);
}

@media (max-width: 768px) {
  .page-header-with-action .btn {
    width: 100%;
  }
}

.modal-form-error {
  width: 100%;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--danger);
  text-align: center;
}

.btn-block {
  width: 100%;
}

.btn-touch {
  min-height: 3rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

/* Admin reservation Cancel: normal table size on desktop; larger hit area on phone only. */
.admin-cancel-res-btn {
  min-height: auto;
  padding: 0.4rem 0.7rem;
  font-size: 0.8125rem;
}

@media (max-width: 900px) {
  .admin-cancel-res-btn {
    min-height: 2.6rem;
    padding: 0.5rem 0.85rem;
    width: 100%;
    max-width: 12rem;
  }
}

.restaurant-cover-hero {
  margin: -0.25rem -0.15rem 0.85rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: var(--restaurant-cover-aspect);
  background: var(--surface-muted);
}

.restaurant-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.restaurant-cover-preview {
  margin-bottom: 0.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: var(--restaurant-cover-aspect);
  background: var(--surface-muted);
}

.waitlist-panel {
  margin-top: 1rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-secondary-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.auth-divider {
  height: 1px;
  margin: 1.25rem 0;
  background: var(--border);
}

.auth-register-hint {
  margin: 0;
  text-align: center;
}

.booking-summary {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-hover);
}

.menu-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.menu-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.menu-uploaded {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.menu-viewer {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.menu-viewer:not(:has(.menu-pdf-frame)) {
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.menu-viewer-compact {
  margin-bottom: 0.5rem;
}

.menu-image,
.menu-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.menu-pdf-frame {
  border: 1px solid #374151;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #374151;
  box-shadow: var(--shadow-md);
}

.menu-pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: #374151;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-pdf-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.menu-pdf-icon {
  display: inline-flex;
  flex-shrink: 0;
  padding: 0.22rem 0.45rem;
  border-radius: 4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.menu-pdf-name {
  color: #f3f4f6;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.menu-pdf-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f9fafb;
}

.menu-pdf-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.menu-pdf-canvas {
  padding: 1.15rem;
  background-color: #d1d5db;
  background: var(--surface-muted);
  background-size: 16px 16px;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
}

.menu-pdf {
  display: block;
  width: 100%;
  height: 38rem;
  min-height: 24rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: none;
}

.menu-pdf-frame.is-compact .menu-pdf {
  height: 16rem;
  min-height: 16rem;
}

.menu-preview {
  display: block;
  width: 100%;
  max-height: 10rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

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

  body::before,
  body::after {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .app-layout.app-layout-rest .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .lookup-row {
    grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 12rem);
    gap: 0.55rem;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .slot-schedule-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .slot-schedule-row > .field,
  .slot-schedule-row > .slot-schedule-field {
    min-width: 0;
    max-width: 100%;
  }

  .slot-schedule-row > .field > span:first-child,
  .slot-schedule-row > .slot-schedule-field > span:first-child {
    font-size: 0.625rem;
    letter-spacing: 0.01em;
  }

  /* Force identical outer boxes on phone (start / end / frequency) */
  .slot-schedule-row .slot-time-shell,
  .slot-schedule-row input[type="number"]#slot-bulk-interval,
  .slot-schedule-row input[type="number"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 2.75rem !important;
    min-height: 2.75rem !important;
    max-height: 2.75rem !important;
    font-size: 0.8125rem !important;
    box-sizing: border-box !important;
  }

  .slot-schedule-row input[type="number"] {
    padding: 0 0.35rem !important;
  }

  .slot-time-shell {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
  }

  /* Full modal width on phone; shell + absolute input still prevent overflow */
  #slot-dialog .field-seating-time .slot-time-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 2.75rem !important;
    min-height: 2.75rem !important;
    max-height: 2.75rem !important;
  }

  .slot-time-shell input[type="time"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 0.25rem !important;
    border: 0 !important;
    font-size: 0.8125rem !important;
    line-height: 2.75rem !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .slot-time-shell input[type="time"]::-webkit-calendar-picker-indicator {
    width: 0.85rem;
    height: 0.85rem;
    margin: 0;
  }

  .slot-time-shell input[type="time"]::-webkit-datetime-edit {
    font-size: 0.8125rem;
    padding: 0;
  }

  .slot-template-bar {
    gap: 0.4rem;
  }

  .slot-template-bar #slot-template-save-btn,
  .slot-template-bar #slot-template-delete-btn {
    min-width: 3.75rem;
    padding: 0 0.65rem;
  }

  .slot-bulk-day-pill {
    flex: 1 1 calc((100% - 1.05rem) / 4);
    min-width: 3.4rem;
  }
}

/* Admin panel */
.sidebar-admin {
  background: var(--text);
  border-color: #3d342c;
  color: var(--bg);
}

.sidebar-admin .sidebar-brand,
.sidebar-admin .sidebar-label {
  color: #d9c9ba;
}

.sidebar-admin .sidebar-name {
  color: #fff9f4;
}

.sidebar-admin .sidebar-link {
  color: #d9c9ba;
}

.sidebar-admin .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff9f4;
}

.sidebar-admin .sidebar-link.is-active {
  background: rgba(122, 39, 49, 0.18);
  color: var(--accent-border);
  box-shadow: none;
}

.sidebar-admin .sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sidebar-admin .sidebar-link-icon {
  display: block;
  color: inherit;
}

.sidebar-admin .sidebar-link-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

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

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

.admin-auth-card h2 {
  margin: 0 0 0.35rem;
}

.admin-auth-card .auth-lead {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Extra space between the last field (password) and the primary action. */
.auth-form > .btn {
  margin-top: 0.35rem;
}

.admin-loading {
  display: grid;
  place-items: center;
  min-height: 40vh;
  color: var(--text-muted);
}

.text-muted {
  color: var(--text-muted);
}

.admin-password-section {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.admin-restaurant-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* —— Admin restaurant list rows —— */
.admin-venue-row {
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.admin-venue-row:hover {
  background: color-mix(in srgb, var(--accent, #0f766e) 6%, transparent);
}

.admin-venue-row:focus-visible {
  outline: 2px solid var(--accent, #0f766e);
  outline-offset: -2px;
}

.admin-venue-name {
  color: var(--accent, #0f766e);
  font-weight: 700;
}

.admin-venue-row:hover .admin-venue-name {
  text-decoration: underline;
}

/* —— Admin restaurant ops page (base = mobile-first) —— */
.admin-ops-page {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 72rem;
  padding-bottom: 0.5rem;
}

.admin-ops-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  margin-bottom: 0.15rem;
}

.admin-ops-back {
  align-self: flex-start;
  margin: 0;
}

.admin-ops-header-main {
  min-width: 0;
}

.admin-ops-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.admin-ops-header h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  word-break: break-word;
}

.admin-ops-desc {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 42rem;
}

.admin-ops-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Avoid stacked .card + .card margin inside the ops grid (breaks desktop columns). */
.admin-ops-grid > .card + .card {
  margin-top: 0;
}

.admin-ops-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  margin: 0;
}

.admin-ops-card:hover {
  box-shadow: none;
}

.admin-ops-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-ops-card .admin-section-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.admin-ops-card-hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.admin-ops-detail-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--surface-2, var(--bg-elevated, transparent));
}

.admin-ops-detail-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.admin-ops-detail-row:last-child {
  border-bottom: 0;
}

.admin-ops-detail-row dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-ops-detail-row dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  word-break: break-word;
}

.admin-ops-detail-link {
  color: var(--accent, #0f766e);
  text-decoration: none;
  font-weight: 600;
}

.admin-ops-detail-link:hover {
  text-decoration: underline;
}

.admin-ops-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.admin-ops-profile-actions .btn {
  width: 100%;
  max-width: 16rem;
  min-height: 2.75rem;
}

.admin-ops-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-ops-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.admin-ops-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.admin-ops-form-actions .btn {
  width: 100%;
  max-width: 16rem;
  min-height: 2.75rem;
}

.admin-doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  min-height: 0;
}

.admin-doc-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface-2, var(--bg-elevated, transparent));
}

.admin-doc-item-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.admin-doc-item-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  word-break: break-word;
}

.admin-doc-item-sub,
.admin-doc-item-file {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  word-break: break-word;
}

.admin-doc-item-when {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-doc-item-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.admin-doc-item-actions .btn {
  min-height: 2.55rem;
  width: 100%;
}

.admin-doc-empty {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 0.65rem;
  text-align: center;
}

.admin-doc-upload {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--surface, #fff) 92%, var(--accent, #0f766e) 8%);
}

.admin-doc-upload .field {
  margin: 0;
}

.admin-doc-upload-btn {
  width: 100%;
  min-height: 2.75rem;
}

.admin-doc-upload input[type="file"] {
  width: 100%;
  max-width: 100%;
  font-size: 0.875rem;
}

/* Mobile list cards for restaurant rows */
@media (max-width: 768px) {
  .admin-main .table-wrap:has(#admin-restaurant-table-body) {
    margin: 0 -0.15rem;
  }

  .data-table-responsive tbody tr.admin-venue-row {
    margin: 0 0 0.7rem;
    padding: 0.15rem 0 0.35rem;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: var(--surface, #fff);
    box-shadow: 0 1px 2px color-mix(in srgb, #000 4%, transparent);
  }

  .data-table-responsive tbody tr.admin-venue-row:last-child {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
  }

  .data-table-responsive tbody tr.admin-venue-row:active {
    background: color-mix(in srgb, var(--accent, #0f766e) 8%, var(--surface, #fff));
  }

  .data-table-responsive tr.admin-venue-row td.td-primary {
    padding-top: 0.75rem;
    padding-bottom: 0.55rem;
  }

  .data-table-responsive tr.admin-venue-row td.td-actions {
    padding-bottom: 0.75rem;
  }

  .admin-ops-page {
    gap: 0.75rem;
    /* Room above bottom admin nav */
    padding-bottom: 1rem;
  }

  .admin-ops-desc {
    font-size: 0.8125rem;
  }

  .admin-ops-card {
    padding: 0.9rem;
  }

  .admin-ops-card-hint {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Compact phones: action buttons stay usable */
@media (max-width: 560px) {
  .admin-restaurant-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    width: 100%;
  }

  .admin-restaurant-actions .admin-venue-btn,
  .admin-restaurant-actions .btn {
    flex: none !important;
    width: 100%;
    min-height: 2.65rem;
    font-size: 0.75rem;
    white-space: normal;
    line-height: 1.2;
    padding: 0.4rem 0.35rem;
  }

  .admin-ops-header h2 {
    font-size: 1.1rem;
  }
}

/* Desktop: single-column ops page, wider readable column */
@media (min-width: 769px) {
  .admin-ops-page {
    gap: 1.1rem;
    max-width: 44rem;
  }

  .admin-ops-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.75rem 1rem;
  }

  .admin-ops-back {
    margin-top: 0.15rem;
  }

  .admin-ops-header h2 {
    font-size: 1.45rem;
  }

  .admin-ops-desc {
    font-size: 0.9rem;
  }

  .admin-ops-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .admin-ops-card {
    padding: 1.15rem 1.25rem;
  }

  .admin-ops-detail-row {
    grid-template-columns: minmax(7.5rem, 9.5rem) 1fr;
    gap: 0.5rem 1rem;
    align-items: baseline;
    padding: 0.7rem 1rem;
  }

  .admin-ops-detail-row dt {
    font-size: 0.75rem;
  }

  .admin-ops-detail-row dd {
    font-size: 0.95rem;
  }

  .admin-ops-profile-actions .btn {
    width: auto;
    min-width: 8rem;
    min-height: 2.5rem;
  }

  .admin-ops-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-ops-field-span {
    grid-column: 1 / -1;
  }

  .admin-ops-form-actions .btn {
    width: auto;
    min-width: 10rem;
  }

  .admin-doc-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
  }

  .admin-doc-item-actions {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    width: auto;
    flex: 0 0 auto;
  }

  .admin-doc-item-actions .btn {
    width: auto;
    min-height: 2.25rem;
    min-width: 5.5rem;
  }

  .admin-doc-upload {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }

  .admin-doc-upload-btn {
    width: auto;
    min-width: 8.5rem;
    min-height: 2.5rem;
    white-space: nowrap;
  }

  .admin-venue-row .admin-restaurant-actions {
    justify-content: flex-end;
  }

  .admin-venue-row .admin-restaurant-actions .btn {
    flex: 0 1 auto;
    min-width: 4.75rem;
  }
}

.data-table .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.admin-section-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.admin-section-desc {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.admin-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.admin-chart-dropdown {
  position: relative;
  flex: 0 1 14rem;
  min-width: 12rem;
}

.admin-chart-range {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.admin-chart-range .range-pills {
  justify-content: flex-end;
}

.admin-chart-range .range-summary {
  text-align: right;
  margin: 0;
  line-height: 1.35;
}

.admin-chart-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-width: 14rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.admin-chart-dropdown-toggle:hover,
.admin-chart-dropdown.is-open .admin-chart-dropdown-toggle {
  border-color: var(--accent-border);
  background: var(--surface);
}

.admin-chart-dropdown-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-chart-dropdown-chevron {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform var(--dur-fast);
}

.admin-chart-dropdown.is-open .admin-chart-dropdown-chevron {
  transform: rotate(180deg);
}

.admin-chart-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow:
    0 4px 12px color-mix(in srgb, var(--text) 6%, transparent),
    0 18px 40px color-mix(in srgb, var(--text) 12%, transparent);
}

.admin-chart-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
}

.admin-chart-dropdown-item:hover {
  background: var(--surface-muted);
}

.admin-chart-dropdown-item-all {
  font-weight: 600;
}

.admin-chart-dropdown-item input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.admin-chart-dropdown-divider {
  height: 1px;
  margin: 0.25rem 0.35rem;
  background: var(--border);
}

#admin-chart-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#admin-chart-content {
  min-height: 1rem;
}

.admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-dashboard-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-aggregate {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  min-width: 0;
}

.admin-aggregate-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  height: 1.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
  box-sizing: border-box;
}

.admin-aggregate-bar.is-empty {
  background: var(--surface-muted);
}

.admin-aggregate-bar.is-compact {
  height: 0.85rem;
  min-width: 0;
  width: 100%;
}

.admin-dashboard-mix-cell {
  width: 9rem;
  min-width: 7rem;
}

.admin-aggregate-segment {
  min-width: 2px;
  height: 100%;
  box-sizing: border-box;
}

.admin-aggregate-segment:first-child {
  border-radius: 999px 0 0 999px;
}

.admin-aggregate-segment:last-child {
  border-radius: 0 999px 999px 0;
}

.admin-aggregate-segment:only-child {
  border-radius: 999px;
}

.admin-aggregate-empty {
  flex: 1 1 auto;
  width: 100%;
  background: var(--border);
}

.admin-aggregate-pending {
  background: var(--olive);
}

.admin-aggregate-seated {
  background: var(--success);
}

.admin-aggregate-cancelled {
  background: var(--danger);
}

.admin-aggregate-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.admin-aggregate-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  min-width: 0;
}

.admin-aggregate-legend-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

.admin-aggregate-legend-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.admin-aggregate-legend-item strong {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-aggregate-swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.admin-dashboard-table-wrap {
  margin-top: 0;
}

.admin-dashboard-table .admin-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.admin-dashboard-table .admin-sort-btn:hover,
.admin-dashboard-table .admin-sort-btn.is-active {
  color: var(--accent);
}

.admin-dashboard-city {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.admin-stat {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-stat-pending {
  color: #0369a1;
  background: rgba(56, 189, 248, 0.14);
}

.admin-stat-seated {
  color: #15803d;
  background: rgba(74, 222, 128, 0.16);
}

.admin-stat-cancelled {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.14);
}



.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

.app-layout.app-layout-rest .stats-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 5.25rem;
  height: 100%;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform var(--dur-med) var(--ease-spring), box-shadow var(--dur-fast);
  box-sizing: border-box;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
  border-color: var(--border-strong);
}

.stat-card-1 {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.stat-card-2 {
  background: var(--olive-soft);
  border-color: color-mix(in srgb, var(--olive) 40%, var(--border));
}

.stat-card-3 {
  background: var(--amber-soft);
  border-color: color-mix(in srgb, var(--amber) 30%, var(--border));
}

.stat-card-4 {
  background: var(--olive-soft);
  border-color: color-mix(in srgb, var(--olive) 30%, var(--border));
}

.stats-row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-card-1 strong { color: var(--accent); }
.stat-card-2 strong { color: var(--teal); }
.stat-card-3 strong { color: var(--violet); }
.stat-card-4 strong { color: var(--sky); }

.stat-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.toolbar-row .field-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.reservations-filter {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.reservations-filter-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.range-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.range-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast),
    box-shadow var(--dur-fast);
}

.range-pill:hover {
  border-color: var(--accent-border);
  color: var(--text);
  background: var(--accent-soft);
}

.range-pill.is-active {
  border-color: transparent;
  color: #fff;
  background: var(--accent);
    box-shadow: var(--shadow-glow);
}

.range-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem 0.75rem;
  align-items: end;
}

.range-custom.is-hidden {
  display: none;
}

.range-custom-field,
.range-custom > .field,
.range-custom > .booking-field {
  max-width: none;
  margin: 0;
  min-width: 0;
}

.range-summary {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.range-summary strong {
  color: var(--accent);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--surface);
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--dur-fast);
}

.data-table tbody tr:hover {
  background: var(--accent-soft);
}

.data-table th {
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.status-pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-confirmed {
  background: var(--success-soft);
  color: var(--success);
}

.status-cancelled {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-pending,
.status-waitlisted,
.status-waitlist {
  background: var(--pending-soft);
  color: var(--pending);
}

.status-seated {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-no_show {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.status-completed {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.field small {
  font-weight: 400;
  color: var(--text-muted);
}

.field-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.auth-layout {
  width: min(100%, 28rem);
  margin: 0 auto;
}

.auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 24rem;
  width: 100%;
}

.auth-card {
  width: min(100%, 26rem);
  animation: fade-scale-in var(--dur-slow) var(--ease-spring);
}

.auth-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.auth-card .subtitle {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-state h3 {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 1rem;
}

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.capacity-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}

.capacity-item:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.capacity-item label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.capacity-item input {
  text-align: center;
  font-weight: 600;
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}

.capacity-item input::-webkit-outer-spin-button,
.capacity-item input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.capacity-add-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.capacity-add-row input {
  max-width: 6rem;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 2147483646;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  animation: toast-in 0.35s var(--ease-spring);
  pointer-events: none;
}

dialog[open] > .toast {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(22rem, calc(100vw - 2rem));
  text-align: center;
}

.toast.is-error {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
  background: var(--danger-soft);
  color: var(--danger);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 28rem);
}

.modal-wide {
  max-width: min(92vw, 36rem);
}

.modal::backdrop {
  background: rgba(26, 21, 18, 0.45);
  animation: backdrop-in 0.28s ease;
}

.modal[open] .modal-card {
  animation: modal-in 0.42s var(--ease-spring) both;
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    /* `none` so fixed popovers are not trapped in a transform containing block */
    transform: none;
  }
}

.modal-card {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.modal-header,
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
}

.modal-header {
  border-bottom: 1px solid var(--border);
  background: var(--accent-soft);
}

.modal-eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.125rem;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
}

.modal-footer {
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  background: var(--surface-muted);
}

.modal-footer-swipe {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 1rem 1.15rem 1.15rem;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.field.is-invalid > span:first-child {
  color: var(--danger);
}

.guest-verify-form {
  display: grid;
  gap: 0.85rem;
  max-width: 22rem;
  margin-bottom: 0.75rem;
}

.guest-verify-note {
  margin: 0 0 1rem;
}

.guest-verify-error {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--danger);
}

.swipe-confirm {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.swipe-confirm-track {
  position: relative;
  height: 3.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.swipe-confirm-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
    pointer-events: none;
  z-index: 0;
  transition: width var(--dur-fast) var(--ease-spring);
}

.swipe-confirm.is-dragging .swipe-confirm-fill {
  transition: none;
}

.swipe-confirm-hint-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  --swipe-fill-width: 0px;
}

.swipe-confirm-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  pointer-events: none;
}

.swipe-confirm-hint-base {
  color: var(--text-muted);
  z-index: 0;
}

.swipe-confirm-hint-lit {
  color: #fff;
  z-index: 1;
  clip-path: polygon(0 0, var(--swipe-fill-width) 0, var(--swipe-fill-width) 100%, 0 100%);
  transition: clip-path var(--dur-fast) var(--ease-spring);
  text-shadow: 0 1px 2px rgba(26, 21, 18, 0.18);
}

.swipe-confirm.is-dragging .swipe-confirm-hint-lit {
  transition: none;
}

.swipe-confirm-thumb {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  width: 2.65rem;
  height: calc(100% - 0.6rem);
  border: 0;
  border-radius: 999px;
  background: var(--accent);
    color: #fff;
  box-shadow: var(--shadow-glow);
  cursor: grab;
  touch-action: none;
  z-index: 2;
  transition:
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-fast),
    background var(--dur-fast);
  will-change: transform;
}

.swipe-confirm-thumb:active,
.swipe-confirm.is-dragging .swipe-confirm-thumb {
  cursor: grabbing;
  box-shadow: none;
}

.swipe-confirm-thumb-icon {
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}

.swipe-confirm.is-ready .swipe-confirm-track {
  border-color: var(--accent-border);
}

.swipe-confirm.is-ready .swipe-confirm-fill {
  opacity: 1;
}

.swipe-confirm.is-disabled .swipe-confirm-track {
  opacity: 0.72;
}

.swipe-confirm.is-disabled .swipe-confirm-thumb {
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.35);
}

.swipe-confirm.is-invalid .swipe-confirm-track {
  animation: swipe-shake 0.45s var(--ease-spring);
}

.swipe-confirm.is-complete .swipe-confirm-thumb {
  cursor: default;
  transform: translateX(var(--swipe-complete-x, 0)) !important;
}

.swipe-confirm.is-complete .swipe-confirm-fill {
  width: 100% !important;
  transition: width var(--dur-med) var(--ease-spring);
}

.swipe-confirm.is-complete .swipe-confirm-hint-wrap {
  --swipe-fill-width: 100% !important;
}

.swipe-confirm.is-complete .swipe-confirm-hint-lit {
  color: #fff;
}

.swipe-confirm-error {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--danger);
  line-height: 1.35;
}

.swipe-confirm-cancel .swipe-confirm-fill {
  background: var(--danger);
}

.swipe-confirm-cancel .swipe-confirm-thumb {
  background: var(--danger);
  box-shadow: none;
}

.swipe-confirm-cancel .swipe-confirm-thumb:active,
.swipe-confirm-cancel.is-dragging .swipe-confirm-thumb {
  box-shadow: none;
}

.swipe-confirm-cancel.is-ready .swipe-confirm-track {
  border-color: #fca5a5;
}

.swipe-confirm-cancel.is-complete .swipe-confirm-hint-wrap {
  --swipe-fill-width: 100% !important;
}

.swipe-confirm-cancel.is-complete .swipe-confirm-hint-lit {
  color: #fff;
}

.confirmation-code-modal .modal-header {
  padding-right: 1.25rem;
}

.confirmation-code-panel {
  text-align: center;
  padding: 1.5rem 1rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  margin: 0.25rem 0 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.confirmation-code-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.confirmation-code-value {
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--font-display);
  /* Keep 8-digit codes inside the modal: large letter-spacing was overflowing on desktop. */
  font-size: clamp(1.65rem, 5.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  /* Optical center (letter-spacing adds trailing space). */
  padding-left: 0.2em;
  color: var(--accent);
  line-height: 1.2;
  user-select: all;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: normal;
}

@media (min-width: 640px) {
  .confirmation-code-value {
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    letter-spacing: 0.22em;
    padding-left: 0.22em;
  }
}

.confirmation-code-note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

.confirmation-code-desc {
  margin: 0;
  text-align: center;
}

/* Booking code dialog: primary Copy code, then Calendar + Reservations side by side */
.booking-code-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

.booking-code-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  width: 100%;
}

.booking-code-actions-row .booking-code-action-secondary {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-code-actions-row .booking-code-action-secondary:hover,
.booking-code-actions-row .booking-code-action-secondary:active {
  background: var(--surface-muted);
  color: var(--text);
  border-color: var(--border-strong);
  transform: none;
}

.swipe-confirm-save .swipe-confirm-fill {
  background: var(--success);
}

.swipe-confirm-save .swipe-confirm-thumb {
  background: var(--success);
}

.swipe-confirm-save .swipe-confirm-thumb:active,
.swipe-confirm-save.is-dragging .swipe-confirm-thumb {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28);
}

.swipe-confirm-save.is-ready .swipe-confirm-track {
  border-color: rgba(34, 197, 94, 0.45);
}

.swipe-confirm-save.is-complete .swipe-confirm-hint-wrap {
  --swipe-fill-width: 100% !important;
}

.swipe-confirm-save.is-complete .swipe-confirm-hint-lit {
  color: #fff;
}

@keyframes swipe-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

.booking-summary {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-hover);
}

.menu-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.menu-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.menu-uploaded {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.menu-viewer {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.menu-viewer:not(:has(.menu-pdf-frame)) {
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.menu-viewer-compact {
  margin-bottom: 0.5rem;
}

.menu-image,
.menu-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.menu-pdf-frame {
  border: 1px solid #374151;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #374151;
  box-shadow: var(--shadow-md);
}

.menu-pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: #374151;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-pdf-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.menu-pdf-icon {
  display: inline-flex;
  flex-shrink: 0;
  padding: 0.22rem 0.45rem;
  border-radius: 4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.menu-pdf-name {
  color: #f3f4f6;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.menu-pdf-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f9fafb;
}

.menu-pdf-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.menu-pdf-canvas {
  padding: 1.15rem;
  background-color: #d1d5db;
  background: var(--surface-muted);
  background-size: 16px 16px;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
}

.menu-pdf {
  display: block;
  width: 100%;
  height: 38rem;
  min-height: 24rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: none;
}

.menu-pdf-frame.is-compact .menu-pdf {
  height: 16rem;
  min-height: 16rem;
}

.menu-preview {
  display: block;
  width: 100%;
  max-height: 10rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.toggle-field {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.toggle-field input {
  accent-color: var(--accent);
}

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

  body::before,
  body::after {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
    padding-bottom: 0.15rem;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-link {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .app-layout:not(.app-layout-admin):not(.app-layout-rest) .sidebar {
    padding: 0.75rem;
  }

  .app-layout:not(.app-layout-admin):not(.app-layout-rest) .sidebar-brand,
  .app-layout:not(.app-layout-admin):not(.app-layout-rest) .sidebar-label,
  .app-layout:not(.app-layout-admin):not(.app-layout-rest) .sidebar-name {
    display: none;
  }

  /* Admin: match restaurant — hide left rail, use bottom tabs */
  .shell.shell--admin:not(.shell--admin-login) {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  .shell.shell--admin .toast {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  .shell.shell--admin .privacy-notice {
    bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px));
  }

  .admin-app .sidebar-admin {
    display: none;
  }

  .shell.shell--admin > .admin-bottom-nav {
    /* Flex: admin tabs stay on one row */
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.08rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    margin: 0;
    padding: 0.28rem 0.3rem calc(0.32rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #3d342c;
    background: rgba(26, 21, 18, 0.96);
    box-shadow: none;
  }

  .admin-bottom-link {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    min-width: 0;
    min-height: 3.1rem;
    padding: 0.22rem 0.08rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #d9c9ba;
    font: inherit;
    font-size: 0.5rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
    transition: background var(--dur-fast), color var(--dur-fast);
  }

  .admin-bottom-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff9f4;
  }

  .admin-bottom-link.is-active {
    background: rgba(122, 39, 49, 0.22);
    color: var(--accent-border);
  }

  .admin-bottom-link .sidebar-link-icon {
    display: block;
  }

  .admin-bottom-link .sidebar-link-icon svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .admin-bottom-link .sidebar-link-label-full {
    display: none;
  }

  .admin-bottom-link .sidebar-link-label-short {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .shell.shell--admin .brand-footer {
    display: none;
  }

  .shell--admin .topbar-subtitle {
    display: block;
    max-width: 9.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
  }

  .shell--admin .topbar-nav-links .btn-nav-logout {
    padding: 0.42rem 0.65rem;
    font-size: 0.6875rem;
  }

  .admin-main .page-header {
    margin-bottom: 0.85rem;
  }

  .admin-main .page-header h2 {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .admin-main .page-header p {
    font-size: 0.875rem;
    max-width: none;
  }

  .admin-main .card-body {
    padding: 0.9rem;
  }

  .admin-main .stats-row {
    gap: 0.65rem;
  }

  .admin-main .stat-card {
    min-height: 4.5rem;
    padding: 0.85rem;
  }

  .admin-main .stat-card strong {
    font-size: 1.35rem;
  }

  .admin-main .stat-card span {
    font-size: 0.75rem;
  }

  .data-table .actions.admin-restaurant-actions,
  .admin-restaurant-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
    justify-content: stretch;
  }

  .data-table .actions.admin-restaurant-actions .admin-venue-btn,
  .data-table .actions.admin-restaurant-actions .btn,
  .admin-restaurant-actions .admin-venue-btn,
  .admin-restaurant-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.6rem;
    width: auto;
    padding: 0.4rem 0.3rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .admin-health-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .admin-health-card-head {
    align-items: center;
  }

  .admin-health-card-head h3 {
    font-size: 0.875rem;
  }

  .admin-chart-toolbar {
    margin-bottom: 0.55rem;
    padding-bottom: 0.55rem;
    gap: 0.55rem;
  }

  .admin-chart-range {
    flex: 0 0 auto;
    width: 100%;
    gap: 0.4rem;
  }

  .admin-chart-range .range-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .admin-chart-range .range-pills::-webkit-scrollbar {
    display: none;
  }

  .admin-chart-range .range-pills .btn,
  .admin-chart-range .range-pills button,
  .admin-chart-range .range-pill {
    flex: 0 0 auto;
    min-height: 2.35rem;
    min-width: 0;
  }

  .admin-chart-range .range-summary {
    text-align: left;
  }

  .admin-section-desc {
    margin-bottom: 0.55rem;
  }

  .admin-dashboard {
    gap: 0.7rem;
  }

  .admin-dashboard-table-wrap {
    margin-inline: -0.15rem;
  }

  .admin-auth-layout {
    padding-top: 0.25rem;
  }

  .admin-auth-card .auth-lead {
    font-size: 0.875rem;
  }

  .profile-card,
  .menu-manager-card {
    max-width: none;
  }

  .rest-profile .page-header p {
    max-width: none;
  }

  .profile-form .profile-save-btn {
    width: 100%;
  }

  .cuisine-picker {
    gap: 0.5rem;
  }

  .cuisine-pill span {
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
  }

  .menu-pdf-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-pdf-actions {
    width: 100%;
  }

  .menu-pdf-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .menu-manager-actions .btn {
    width: 100%;
  }

  .photo-gallery-track,
  .photos-manager-preview {
    scroll-padding-inline: 0.85rem;
    padding: 0.15rem 0.85rem 0.35rem;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
  }

  .photo-gallery-card .card-body,
  .photos-manager-card .card-body {
    overflow: visible;
  }

  .photo-gallery-card .photo-gallery-track,
  .detail-page .photo-gallery-track {
    margin-inline: -0.85rem;
  }

  .photos-manager-preview {
    margin-inline: -0.85rem;
  }

  .photos-manager-hint {
    margin: 0 0 0.65rem;
  }

  .profile-media-action {
    min-height: 3.35rem;
    font-size: 1rem;
  }

  .cover-manager-card .restaurant-cover-preview,
  .menu-manager-card .menu-viewer-compact {
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .menu-pdf-frame.is-compact .menu-pdf {
    height: 12rem;
    min-height: 12rem;
  }

  .menu-viewer-compact .menu-image {
    max-height: 12rem;
    object-fit: contain;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-row-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-layout.app-layout-rest .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-aggregate {
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .admin-aggregate-bar:not(.is-compact) {
    height: 1.85rem;
  }

  .admin-aggregate-legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    width: 100%;
  }

  .admin-aggregate-legend-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 0.8125rem;
  }

  .admin-aggregate-legend-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  .admin-aggregate-legend-label {
    font-weight: 600;
    color: var(--text);
  }

  .admin-aggregate-swatch {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 4px;
  }

  .admin-dashboard-mix-cell {
    width: auto;
    min-width: 0;
  }

  .admin-chart-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-chart-dropdown {
    flex: 0 0 auto;
    flex-basis: auto;
    width: 100%;
    min-width: 0;
  }

  .admin-chart-dropdown-menu[hidden] {
    display: none !important;
  }

  .admin-chart-range .range-pills {
    justify-content: flex-start;
  }

  .admin-chart-range .range-summary {
    text-align: left;
  }

  .toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  #app.page-enter .shell.shell--restaurant > .restaurant-app {
    animation: none;
  }

  .shell.shell--restaurant {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  .shell.shell--restaurant .toast {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  .restaurant-app {
    display: block;
  }

  .restaurant-app .sidebar-rest {
    display: none;
  }

  .shell.shell--restaurant .privacy-notice {
    bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px));
  }

  .shell.shell--restaurant > .rest-bottom-nav {
    /* Flex: Today, Slots, Floor, Bookings, Menu, Profile, Settings */
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.1rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    margin: 0;
    padding: 0.3rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: var(--surface);
    box-shadow: none;
  }

  .rest-bottom-link {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
    min-height: 3.1rem;
    padding: 0.25rem 0.1rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.5625rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
    transition: background var(--dur-fast), color var(--dur-fast);
  }

  .rest-bottom-link:hover {
    background: rgba(250, 246, 241, 0.95);
    color: var(--text);
  }

  .rest-bottom-link.is-active {
    background: var(--accent-soft);
    color: var(--accent-hover);
  }

  .rest-bottom-link .sidebar-link-icon {
    display: block;
  }

  .rest-bottom-link .sidebar-link-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .rest-bottom-link .sidebar-link-label-full {
    display: none;
  }

  .rest-bottom-link .sidebar-link-label-short {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .guest-bottom-nav {
    display: none;
  }

  .shell.shell--guest {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  .shell.shell--guest .toast {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  .shell.shell--guest .privacy-notice {
    bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px));
  }

  .shell.shell--guest .topbar-nav {
    display: none;
  }

  .shell.shell--guest > .guest-bottom-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.15rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    margin: 0;
    padding: 0.35rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: var(--surface);
        box-shadow: none;
  }

  .guest-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 3.1rem;
    padding: 0.3rem 0.2rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    transition: background var(--dur-fast), color var(--dur-fast);
  }

  .guest-bottom-link:active {
    transform: scale(0.97);
  }

  .guest-bottom-link.is-active {
    background: var(--accent-soft);
    color: var(--accent-hover);
  }

  .guest-bottom-link .sidebar-link-icon {
    display: block;
  }

  .guest-bottom-link .sidebar-link-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .guest-bottom-link .sidebar-link-label-full {
    display: none;
  }

  .guest-bottom-link .sidebar-link-label-short {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shell.shell--guest .brand-footer {
    display: none;
  }
}

@media (max-width: 768px) {
  html {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  button,
  .btn,
  a,
  input,
  select,
  textarea,
  .role-card,
  .restaurant-card,
  .slot-btn,
  .rest-bottom-link,
  .guest-bottom-link,
  .admin-bottom-link,
  .lang-dropdown-item {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .shell {
    width: 100%;
    max-width: 100%;
    /* 2.5rem row-gap is fine on desktop; on phones it leaves a large empty band */
    row-gap: 1rem;
    padding:
      calc(0.5rem + env(safe-area-inset-top, 0px))
      max(0.75rem, env(safe-area-inset-left, 0px))
      calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .shell.shell--guest {
    row-gap: 0.75rem;
  }

  .page-header-browse {
    margin-bottom: 0.5rem;
  }

  .page-header-browse p {
    margin-top: 0.25rem;
  }

  .airbnb-search-browse {
    margin-bottom: 0.5rem;
    padding: 0.15rem 0 0.25rem;
  }

  .guest-browse-results-grouped {
    gap: 0.85rem;
  }

  .shell.shell--restaurant,
  .shell.shell--admin:not(.shell--admin-login) {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  .shell.shell--restaurant .toast {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    top: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    /* bottom spacing from .shell row-gap — keep only horizontal bleed */
    margin:
      0
      calc(-1 * max(0.75rem, env(safe-area-inset-left, 0px)))
      0
      calc(-1 * max(0.75rem, env(safe-area-inset-right, 0px)));
    padding:
      calc(0.55rem + env(safe-area-inset-top, 0px))
      max(0.75rem, env(safe-area-inset-right, 0px))
      0.55rem
      max(0.75rem, env(safe-area-inset-left, 0px));
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    box-shadow: none;
  }

  .topbar-main {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.5rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
  }

  .brand h1 {
    font-size: 1.05rem;
  }

  .brand-copy p:not(.topbar-subtitle) {
    display: none;
    max-width: none;
  }

  .shell--restaurant .topbar-subtitle {
    display: block;
    max-width: 10rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
  }

  .topbar-nav {
    flex: 0 0 auto;
    width: auto;
    margin-left: 0;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .topbar-nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
    width: auto;
    padding: 0;
  }

  .topbar-nav-links .btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    padding: 0.42rem 0.7rem;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    background: transparent;
    border-color: transparent;
    border-radius: 999px;
    color: var(--text-secondary);
    box-shadow: none;
    transform: none;
    min-height: 2.35rem;
  }

  .topbar-nav-links .btn-nav:hover {
    background: var(--surface);
    border-color: transparent;
    color: var(--text);
    box-shadow: none;
    transform: none;
  }

  .topbar-nav-links .btn-nav:active {
    transform: scale(0.98);
  }

  .shell--restaurant .topbar-nav-links .btn-nav-logout {
    padding: 0.42rem 0.65rem;
    font-size: 0.6875rem;
  }

  .btn-nav-label-full {
    display: none;
  }

  .btn-nav-label-short {
    display: inline;
  }

  .lang-dropdown-toggle {
    min-width: 0;
    padding: 0.35rem 0.5rem;
    min-height: 2.35rem;
  }

  .lang-dropdown-toggle,
  .lang-dropdown-toggle:hover {
    border: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .guest-browse-search-panel {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .guest-browse-search-panel.is-open {
    box-shadow: var(--shadow-md);
  }

  .guest-browse-toolbar {
    display: block;
  }

  .guest-browse-search-btn {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .guest-browse-search-btn:hover {
    background: var(--surface-muted);
    transform: none;
  }

  .guest-browse-search-panel.is-open .guest-browse-search-btn {
    border-bottom: 1px solid var(--border);
  }

  .guest-browse-filters-panel {
    display: none;
  }

  .guest-browse-search-panel.is-open .guest-browse-filters-panel {
    display: block;
    padding: 0.85rem 0.9rem 1rem;
    animation: rise-in var(--dur-med) var(--ease-spring);
  }

  .guest-browse-filters-panel .guest-browse-filters {
    margin-bottom: 0;
  }

  .guest-browse-filters-panel .guest-filter-pills {
    margin: 0.1rem 0;
  }

  .guest-browse-filters {
    gap: 0.55rem;
  }

  .guest-filter-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.55rem;
  }

  .guest-browse-results-grouped {
    gap: 1rem;
  }

  .guest-browse-results-grouped .cuisine-group {
    padding: 0.9rem 0.85rem 0.95rem;
    background: var(--surface);
  }

  .guest-browse-results-grouped .cuisine-group-head {
    margin-bottom: 0.75rem;
  }

  .guest-browse-results-grouped .cuisine-group-title {
    font-size: 1.05rem;
  }

  .guest-browse-results-grouped .cuisine-group-track {
    display: flex;
    grid-template-columns: none;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.1rem 0.1rem 0.2rem;
    margin: 0;
  }

  .guest-browse-results-grouped .cuisine-group-track::-webkit-scrollbar {
    display: none;
  }

  .guest-browse-results-grouped .restaurant-card {
    flex: 0 0 min(78vw, 17.5rem);
    scroll-snap-align: start;
    min-height: 11.5rem;
    background: var(--surface-muted);
  }

  .guest-browse-results-grouped .restaurant-card:hover {
    transform: none;
  }

  .grid-restaurants {
    grid-template-columns: 1fr;
  }

  .page-header h2 {
    font-size: 1.3rem;
  }

  .card-body {
    padding: 1rem;
  }

  .role-card {
    padding: 1.35rem;
  }

  .range-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .range-pills::-webkit-scrollbar {
    display: none;
  }

  .range-pill {
    flex-shrink: 0;
  }

  .range-custom {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .range-custom-field,
  .range-custom > .field,
  .range-custom > .booking-field {
    max-width: none;
    width: 100%;
  }

  .modal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
    height: auto;
    max-height: none;
  }

  #app-confirm-dialog {
    bottom: var(--app-confirm-keyboard, 0px);
  }

  #app-confirm-dialog .modal-card {
    max-height: min(
      92dvh,
      calc(100dvh - env(safe-area-inset-top, 0px) - var(--app-confirm-keyboard, 0px))
    );
  }

  #reservation-detail-dialog {
    max-width: none;
  }

  .modal[open] .modal-card {
    animation: sheet-up 0.38s var(--ease-spring);
  }

  @keyframes sheet-up {
    from {
      opacity: 0.92;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      /* `none` so fixed date/time popovers position against the viewport */
      transform: none;
    }
  }

  /* Staff sheet: keep body scrollable; date/time/party menus portal onto the dialog */
  #staff-booking-dialog .modal-card {
    overflow: visible;
    max-height: min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
  }

  #staff-booking-dialog .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  #staff-booking-dialog .staff-booking-times.guest-reschedule-time-popover,
  #staff-booking-dialog .staff-booking-party-popover {
    max-height: min(14rem, 50dvh);
  }

  .modal-card {
    width: 100%;
    max-height: min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
    margin: 0;
    border-radius: 1.15rem 1.15rem 0 0;
    border-bottom: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    /* Keep sheet content above the home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
  }

  .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .modal-header,
  .modal-footer {
    flex-shrink: 0;
  }

  .modal-footer {
    flex-wrap: wrap;
    justify-content: stretch;
    /* Extra air above home indicator when footer is visible */
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  .modal-footer .btn {
    flex: 1 1 auto;
    min-width: 7rem;
  }

  /* Reservation reschedule: keep body scrollable so Cancel/Save are reachable */
  #reservation-detail-dialog.is-rescheduling .modal-card {
    overflow: hidden;
  }

  #reservation-detail-dialog.is-rescheduling .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  #reservation-detail-dialog.is-rescheduling .guest-reschedule-actions {
    padding-bottom: 0.35rem;
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: linear-gradient(
      to top,
      var(--surface) 70%,
      color-mix(in srgb, var(--surface) 85%, transparent)
    );
    padding-top: 0.5rem;
    margin-top: 0.25rem;
  }

  .swipe-confirm-track {
    height: 3.5rem;
  }

  .swipe-confirm-thumb {
    width: 2.9rem;
  }

  .toast {
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .btn,
  .btn-nav,
  .sidebar-link,
  .range-pill,
  .restaurant-card,
  .role-card,
  .lang-dropdown-toggle,
  .admin-sort-btn,
  .cuisine-pill span {
    min-height: 2.75rem;
  }

  .btn-sm {
    min-height: 2.5rem;
  }

  .filters input,
  .filters select,
  .field input:not(.open-hours-time-part),
  .field select,
  .capacity-grid input,
  .capacity-add-row input {
    font-size: 1rem;
    min-height: 2.75rem;
  }

  .field textarea {
    font-size: 1rem;
    min-height: 5.5rem;
  }

  /* Don't let global field min-height stretch time inputs past the shell */
  .slot-time-shell input[type="time"] {
    min-height: 0 !important;
    height: 100% !important;
    font-size: 0.8125rem !important;
  }

  .slot-schedule-row .slot-time-shell,
  .slot-schedule-row input[type="number"] {
    height: 2.75rem !important;
    min-height: 2.75rem !important;
    max-height: 2.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #slot-dialog .field-seating-time .slot-time-shell {
    height: 2.75rem !important;
    min-height: 2.75rem !important;
    max-height: 2.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .detail-page,
  .detail-layout,
  .booking-panel,
  .booking-panel .card-body {
    min-width: 0;
    max-width: 100%;
  }

  .booking-panel-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.55rem;
    margin-top: 0.65rem;
  }

  .booking-panel-fields > .booking-field {
    min-width: 0;
    max-width: 100%;
  }

  .guest-filter-row .booking-date-shell,
  .guest-filter-row input[type="number"],
  .booking-panel-fields .booking-field-party select,
  .booking-panel-fields .booking-party-select,
  .booking-panel-fields .pill-select,
  .booking-panel-fields .booking-date-trigger,
  .booking-panel-fields .booking-date-shell,
  .staff-booking-grid .booking-date-shell,
  .staff-booking-grid .staff-booking-field-party select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 2.75rem;
    min-height: 2.75rem;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.25;
  }

  .guest-filter-row input[type="number"],
  .booking-panel-fields .booking-field-party select,
  .booking-panel-fields .booking-party-select,
  .staff-booking-grid .staff-booking-field-party select {
    display: block;
    padding: 0.6rem 0.75rem;
  }

  .booking-panel-fields .booking-party-select {
    padding-right: 2.25rem;
  }

  /* Date calendar must paint above sticky bottom tabs on guest detail */
  .detail-page .booking-date-popover.is-open,
  .detail-page .booking-date-popover:not([hidden]) {
    z-index: 500;
  }

  .guest-filter-row .booking-date-shell input[type="date"],
  .booking-panel-fields .booking-date-shell input[type="date"],
  .staff-booking-grid .booking-date-shell input[type="date"] {
    height: 100%;
    padding: 0 2.5rem 0 0.75rem;
    font-size: 1rem;
    line-height: normal;
  }

  .detail-page .detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.75rem;
    margin-bottom: 0.65rem;
    padding: 0.5rem 0.85rem 0.5rem 0.55rem;
    font-size: 0.9375rem;
    font-weight: 600;
  }

  .detail-page .detail-back::before {
    content: "‹";
    font-size: 1.35rem;
    line-height: 1;
    color: var(--accent);
  }

  .menu-viewer-guest .menu-pdf-canvas {
    position: relative;
    max-height: 13rem;
    padding: 0.85rem;
    overflow: hidden;
  }

  .menu-viewer-guest .menu-pdf-canvas::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.5rem;
    background: var(--border);
    pointer-events: none;
  }

  .menu-viewer-guest .menu-pdf {
    height: 13rem;
    min-height: 13rem;
    pointer-events: none;
  }

  .menu-viewer-guest .menu-pdf-toolbar {
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .menu-viewer-guest .menu-pdf-actions {
    width: 100%;
  }

  .menu-viewer-guest .menu-pdf-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 2.75rem;
  }

  .menu-viewer-guest .menu-image {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .hero {
    gap: 0.85rem;
  }

  .role-card {
    min-height: 6.5rem;
    padding: 1.5rem 1.25rem;
  }

  .role-card:active {
    transform: scale(0.98);
  }

  .home-hero {
    padding: 0.75rem 0 0.5rem;
    margin-bottom: 1.25rem;
  }

  .home-title {
    font-size: 1.65rem;
  }

  .guest-browse-search-btn {
    min-height: 3rem;
  }

  .lookup-submit {
    width: 100%;
  }

  .slot-btn:active:not(:disabled) {
    transform: scale(0.97);
  }

  .btn:active {
    transform: scale(0.98);
  }

  .booking-panel .booking-field-hint {
    display: none;
  }

  .booking-panel .booking-field-hint-full {
    display: block;
    font-size: 0.8125rem;
  }

  .data-table-responsive thead {
    display: none;
  }

  .data-table-responsive tbody tr {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .data-table-responsive tbody tr:last-child {
    border-bottom: 0;
  }

  .data-table-responsive td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 38%) 1fr;
    gap: 0.65rem;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-bottom: 0;
    text-align: right;
  }

  .data-table-responsive td::before {
    content: attr(data-label);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    line-height: 1.3;
  }

  .data-table-responsive td.td-primary {
    display: block;
    text-align: left;
    padding-bottom: 0.65rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid var(--border);
  }

  .data-table-responsive td.td-primary::before {
    display: none;
  }

  .data-table-responsive td.td-actions {
    display: block;
    text-align: left;
    padding-top: 0.65rem;
  }

  .data-table-responsive td.td-actions::before {
    display: block;
    margin-bottom: 0.45rem;
  }

  .data-table-responsive td.td-actions .actions {
    justify-content: flex-start;
  }

  .data-table-responsive td.td-actions:has(.slot-row-actions) {
    text-align: center;
  }

  .data-table-responsive td.td-actions:has(.slot-row-actions)::before {
    text-align: center;
  }

  .data-table-responsive td.td-actions .slot-row-actions {
    justify-content: center;
  }

  .data-table-responsive td.admin-dashboard-mix-cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    text-align: left;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .data-table-responsive td.admin-dashboard-mix-cell::before {
    margin: 0;
  }

  .data-table-responsive td.admin-dashboard-mix-cell .admin-aggregate-bar {
    min-width: 0;
    width: 100%;
    height: 1rem;
  }

  .data-table-responsive td.admin-dashboard-mix-cell .admin-aggregate-bar.is-compact {
    height: 1rem;
  }

  .data-table-responsive td[colspan] {
    display: block;
    text-align: center;
  }

  .data-table-responsive td[colspan]::before {
    display: none;
  }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap-responsive {
    overflow-x: visible;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .shell.shell--restaurant .brand-footer {
    margin-bottom: 0.5rem;
  }

  .rest-main .page-header {
    margin-bottom: 0.85rem;
  }

  .rest-main .page-header h2 {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
  }

  .rest-main .page-header p {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .app-layout.app-layout-rest .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.85rem;
  }

  .app-layout.app-layout-rest .stat-card {
    min-height: 4.75rem;
    height: 100%;
    padding: 0.75rem 0.55rem;
  }

  .app-layout.app-layout-rest .stat-card strong {
    font-size: 1.35rem;
  }

  .app-layout.app-layout-rest .stat-card span {
    font-size: 0.6875rem;
    line-height: 1.25;
  }

  .rest-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .rest-toolbar-lead {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.65rem;
    align-items: end;
  }

  .rest-toolbar-date {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    margin: 0;
  }

  .rest-toolbar-date .booking-date-shell {
    height: 2.75rem;
    min-height: 2.75rem;
  }

  .rest-toolbar-date .booking-date-shell input[type="date"] {
    font-size: 1rem;
    padding: 0 2.5rem 0 0.75rem;
  }

  .rest-toolbar-closed-field {
    width: 100%;
  }

  .rest-closed-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .slot-bulk-repeat-toggle.rest-closed-toggle {
    width: auto;
  }

  .rest-toolbar-actions {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .rest-toolbar-actions .btn {
    justify-content: center;
    min-width: 0;
  }

  .rest-data-table td.td-primary strong {
    font-size: 1rem;
  }

  .rest-row-actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .rest-row-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }

  .rest-data-table td.td-actions .actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .rest-data-table td.td-actions .actions .btn {
    justify-content: center;
    width: 100%;
  }

  /* Slots: two actions centered (not the 3-col booking grid) */
  .rest-data-table td.td-actions .slot-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    grid-template-columns: unset;
  }

  .rest-data-table td.td-actions .slot-row-actions .btn {
    width: auto;
    min-width: 5.5rem;
    flex: 0 1 auto;
  }

  .app-layout.app-layout-rest .reservations-filter {
    gap: 0.65rem;
  }

  .app-layout.app-layout-rest .rest-today-row {
    grid-template-columns: minmax(2.75rem, auto) minmax(0, 1fr) auto;
    gap: 0.35rem;
  }

  .app-layout.app-layout-rest .rest-today-info strong,
  .app-layout.app-layout-rest .rest-today-info span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .brand-footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  body::before,
  body::after {
    opacity: 0.25;
    filter: blur(48px);
  }
}

@media (max-width: 560px) {
  .stats-row,
  .stats-row-4 {
    grid-template-columns: 1fr;
  }

  .app-layout.app-layout-admin .stats-row,
  .app-layout.app-layout-admin .stats-row-4 {
    grid-template-columns: 1fr 1fr;
  }

  .app-layout.app-layout-rest .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .app-layout.app-layout-rest .stat-card {
    min-height: 4.5rem;
    padding: 0.65rem 0.4rem;
  }

  .app-layout.app-layout-rest .stat-card strong {
    font-size: 1.2rem;
  }

  .app-layout.app-layout-rest .stat-card span {
    font-size: 0.625rem;
    line-height: 1.2;
  }

  .app-layout.app-layout-rest .rest-toolbar-actions {
    grid-template-columns: 1fr;
  }

  .admin-main .page-header h2 {
    font-size: 1.15rem;
  }

  .admin-restaurant-actions {
    flex-wrap: nowrap;
  }

  .admin-restaurant-actions .admin-venue-btn,
  .admin-restaurant-actions .btn {
    font-size: 0.68rem;
    padding: 0.35rem 0.25rem;
  }

  .data-table-responsive td.td-actions .admin-restaurant-actions {
    width: 100%;
  }

  .shell--admin .topbar-subtitle {
    max-width: 7.5rem;
  }

  /* Keep Edit / Seated / No show / Cancel in one row on phone bookings & today */
  .rest-today-actions,
  .rest-row-actions,
  .rest-data-table td.td-actions .actions:not(.slot-row-actions),
  .rest-data-table td.td-actions .rest-today-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0.25rem;
  }

  .rest-today-actions .btn,
  .rest-row-actions .btn,
  .rest-data-table td.td-actions .actions:not(.slot-row-actions) .btn,
  .rest-data-table td.td-actions .rest-today-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.5rem;
    font-size: 0.625rem;
    padding: 0.25rem 0.15rem;
    white-space: nowrap;
  }

  .rest-data-table td.td-actions .slot-row-actions {
    display: flex;
    justify-content: center;
    grid-template-columns: unset;
  }

  .rest-data-table td.td-actions .slot-row-actions .btn {
    min-height: 2.5rem;
    width: auto;
    min-width: 5.5rem;
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    white-space: nowrap;
  }

  .rest-dashboard-card .card-body,
  .rest-bookings-card .card-body,
  .rest-slots-card .card-body {
    padding: 0.85rem;
  }

  .rest-slots-select-bar {
    margin-top: 0.75rem;
  }

  .rest-slots-list {
    margin-top: 0.3rem;
    gap: 0.5rem;
  }

  .rest-slot-card {
    padding: 0.7rem 0.75rem;
  }

  .rest-slot-time {
    font-size: 1.05rem;
  }

  .rest-slot-actions .btn {
    min-height: 2.65rem;
    font-size: 0.8125rem;
  }

  .rest-bookings-card .reservations-filter {
    margin-bottom: 0.65rem;
  }

  .rest-section-title {
    margin-bottom: 0.55rem;
    font-size: 0.9375rem;
  }

  .home-hero {
    padding: 1rem 0 0;
  }

  .capacity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stat {
    margin-left: auto;
  }
}

@media (max-width: 380px) {
  .shell {
    width: min(100%, calc(100% - 0.75rem));
  }

  .topbar {
    padding: 0.65rem;
  }

  .brand h1 {
    font-size: 1.05rem;
  }
}

.rest-bottom-nav,
.guest-bottom-nav,
.admin-bottom-nav {
  display: none;
}

.guest-account-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-elevated, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.guest-account-panel--signed-out {
  flex-direction: column;
  align-items: flex-start;
}

.guest-account-prompt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.guest-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.guest-account-greeting {
  margin: 0 0 0.2rem;
  font-weight: 600;
}

.guest-account-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.guest-lookup-details {
  margin-bottom: 1rem;
}

.guest-lookup-details summary {
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.guest-lookup-compact {
  margin-top: 0.5rem;
}

.staff-card {
  margin-top: 0.25rem;
}

/* Legacy SEO body blocks — never show (meta/JSON-LD only now) */
#seo-prerender,
.seo-prerender {
  display: none !important;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Instant boot shell while JS/bootstrap loads (path URLs + cold start) */
.app-boot {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--bg, #f7f3ee);
}

.app-boot-logo {
  width: 3.25rem;
  height: 3.25rem;
  opacity: 0.88;
  animation: app-boot-pulse 1.15s ease-in-out infinite;
}

.app-boot-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0.85rem;
}

@keyframes app-boot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-boot-logo {
    animation: none;
    opacity: 0.9;
  }
}

/* Settings, Team & Automation screen */
.rest-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 42rem;
}

/* Mobile first: stack; desktop: Team+automation left, billing right */
.rest-settings-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.rest-settings-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.rest-settings-col-billing .billing-profile-card {
  height: 100%;
}

@media (min-width: 900px) {
  .rest-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    gap: 1.25rem;
    align-items: start;
    max-width: 64rem;
  }

  .rest-settings-col-billing .billing-profile-card {
    position: sticky;
    top: 1rem;
  }
}

.rest-settings .staff-card,
.rest-settings .review-request-card,
.rest-settings .billing-profile-card,
.rest-settings .booking-reminder-card {
  margin-top: 0;
}

.btn-nav.is-active {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.rest-docs {
  scroll-margin-top: 5.75rem;
}

.rest-docs-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.rest-docs-toc {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 0 1rem;
  padding: 0.05rem 0 0.3rem;
}

.rest-docs-toc::-webkit-scrollbar {
  display: none;
}

.rest-docs-toc-btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.rest-docs-toc-btn:hover {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-hover);
}

.rest-docs-toc-btn.is-active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.rest-docs-toc-label-short {
  display: none;
}

.rest-docs-panel-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.rest-docs-intro,
.rest-docs-body {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.rest-docs-intro + .rest-docs-intro,
.rest-docs-caption .rest-docs-body + .rest-docs-body {
  margin-top: 0.7rem;
}

.rest-docs-intro {
  margin-bottom: 1rem;
  max-width: 42rem;
}

.rest-docs-notes {
  margin-top: 1.15rem;
  max-width: 42rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.rest-docs-notes-title {
  margin: 0 0 0.45rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.rest-docs-notes-body {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.rest-docs-notes-body + .rest-docs-notes-body {
  margin-top: 0.65rem;
}

.rest-docs-figures {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rest-docs-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.rest-docs-shot {
  margin: 0 auto;
  width: 100%;
  max-width: 22rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.rest-docs-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.rest-docs-caption {
  min-width: 0;
}

.rest-docs-figure-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.rest-docs-callouts {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rest-docs-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.45;
}

.rest-docs-n {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.rest-docs-go {
  flex-shrink: 0;
}

@media (min-width: 800px) {
  .rest-docs-figure {
    display: grid;
    grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
    align-items: start;
    gap: 1.15rem;
    padding: 1rem;
  }

  .rest-docs-shot {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .rest-docs-header .rest-docs-go {
    width: 100%;
  }

  .rest-docs-toc {
    margin-bottom: 0.85rem;
  }

  .rest-docs-toc-btn {
    min-height: 2.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  /* Menu / KDS: one compact row so no tab is clipped off-screen. */
  .rest-menu-kds > .rest-docs-toc {
    flex-wrap: nowrap;
    justify-content: stretch;
    overflow: visible;
    gap: 0.3rem;
  }

  .rest-menu-kds > .rest-docs-toc .rest-docs-toc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 0.4rem 0.3rem;
  }

  .rest-menu-kds > .rest-docs-toc .rest-docs-toc-label-full {
    display: none;
  }

  .rest-menu-kds > .rest-docs-toc .rest-docs-toc-label-short {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .rest-docs-intro,
  .rest-docs-body,
  .rest-docs-notes-body {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .rest-docs-figure {
    padding: 0.7rem;
  }
}

/* Profile — Get a review card (also used on settings screen) */
.review-request-card {
  margin-top: 0;
}

.review-request-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.review-request-enable-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
}

.review-request-enable-field > span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
}

.review-request-enable-toggle {
  width: auto;
  max-width: 100%;
}

.review-request-enable-toggle.is-on,
.review-request-enable-toggle:has(input:checked) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.review-request-enable-toggle.is-on .rest-closed-toggle-track,
.review-request-enable-toggle:has(input:checked) .rest-closed-toggle-track {
  background: var(--accent);
  box-shadow: none;
}

.review-request-enable-toggle.is-on .rest-closed-toggle-state,
.review-request-enable-toggle:has(input:checked) .rest-closed-toggle-state {
  color: var(--accent);
}

.review-request-form input:disabled,
.review-request-form .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.review-request-delay-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.booking-reminder-inline {
  display: block;
  line-height: 2.35;
}

.field .booking-reminder-inline,
.field .booking-reminder-inline span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.field .booking-reminder-inline input[type="number"] {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.3rem;
}

.booking-reminder-inline .review-request-delay-suffix {
  white-space: normal;
}

.field .review-request-delay-row input[type="number"]:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not(.open-hours-time-part),
.field .review-request-delay-row input[type="number"]:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.open-hours-time-part):focus {
  width: 3.1rem;
  min-width: 3.1rem;
  max-width: 3.1rem;
  min-height: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  padding: 0.25rem 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.review-request-delay-row input[type="number"]::-webkit-outer-spin-button,
.review-request-delay-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.review-request-delay-suffix {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.review-request-note {
  margin: 0;
}

.automation-example-send {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.automation-example-send .field-label-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.automation-example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.automation-example-row .automation-example-email {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 22rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  font: inherit;
}

.automation-example-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.staff-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.staff-card-header .rest-section-title {
  margin-bottom: 0.25rem;
}

.staff-card-header .field-hint {
  margin: 0;
}

.staff-card-header .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.staff-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* iOS-style grouped contact list */
.staff-native-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: none;
}

.staff-member {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding: 0.7rem 0.75rem 0.7rem 0.85rem;
  background: var(--surface);
  position: relative;
}

.staff-member + .staff-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: 3.65rem;
  right: 0;
  height: 1px;
  background: color-mix(in srgb, var(--border) 92%, transparent);
  pointer-events: none;
}

.staff-member:active {
  background: var(--surface-muted);
}

.staff-member-avatar {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  user-select: none;
}

.staff-member-avatar-manager {
  background: var(--olive);
}

.staff-member-avatar-host {
  background: var(--accent);
}

.staff-member-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.staff-member-topline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.staff-member-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

.staff-member-role {
  flex-shrink: 0;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.staff-member-role-host {
  color: var(--accent-hover);
  background: var(--amber-soft);
}

.staff-member-role-manager {
  color: #0369a1;
  background: #e0f2fe;
}

.staff-member-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--text-muted);
}

.staff-member-delete {
  appearance: none;
  border: none;
  background: color-mix(in srgb, #ef4444 10%, var(--surface-muted));
  color: var(--danger);
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s ease,
    transform 0.12s ease;
}

.staff-member-delete:hover {
  background: color-mix(in srgb, #ef4444 18%, var(--surface-muted));
}

.staff-member-delete:active {
  transform: scale(0.94);
  background: color-mix(in srgb, #ef4444 24%, var(--surface-muted));
}

.staff-add-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.staff-add-modal-body .field-hint {
  margin: 0 0 0.15rem;
}

.staff-add-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: stretch;
  gap: 0.65rem;
}

.staff-add-footer .btn {
  flex: 1 1 0;
  min-width: 0;
}

.staff-empty,
.staff-loading,
.staff-error {
  margin: 0;
  padding: 1.15rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  border-radius: 0.9rem;
  border: 1px dashed var(--border);
  background: var(--surface-muted);
}

@media (max-width: 640px) {
  .staff-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .staff-card-header .btn {
    width: 100%;
  }

  .staff-member {
    min-height: 4.5rem;
    padding: 0.8rem 0.7rem 0.8rem 0.8rem;
    gap: 0.7rem;
  }

  .staff-member-avatar {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 0.82rem;
  }

  .staff-member-delete {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .staff-member-name {
    font-size: 1.02rem;
  }

  .staff-member-email {
    font-size: 0.84rem;
  }
}

@media (min-width: 900px) {
  .staff-member:hover {
    background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
  }
}

.photo-gallery-card,
.photos-manager-card {
  margin-top: 1rem;
}

.photo-gallery-header,
.photos-manager-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.photo-gallery-header h3,
.photos-manager-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.photo-gallery-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.photo-gallery-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.15rem 0.1rem 0.35rem;
  margin-top: 0.75rem;
}

.photo-gallery-track::-webkit-scrollbar {
  display: none;
}

.photo-gallery-item,
.photos-manager-thumb {
  flex: 0 0 min(72vw, 16rem);
  scroll-snap-align: center;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-muted);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.photo-gallery-item img,
.photos-manager-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-gallery-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.photos-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}

.photos-manager-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.photos-manager-thumb-wrap {
  position: relative;
}

.photos-manager-item .photos-manager-thumb {
  flex: 1 1 auto;
  width: 100%;
}

.photos-manager-remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.72);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.photos-manager-slide {
  position: relative;
}

.photos-manager-count {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Full-screen centered photo viewer (not a bottom sheet) */
.photo-lightbox-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  width: min(96vw, 56rem);
  max-width: none;
  margin: auto;
}

.photo-lightbox-dialog::backdrop {
  background: rgba(10, 10, 12, 0.88);
}

.photo-lightbox-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111;
  box-shadow: none;
}

.photo-lightbox-stage {
  user-select: none;
  -webkit-user-select: none;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition:
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-lightbox-stage.is-dragging,
.photo-lightbox-stage.is-swiping {
  transition: none !important;
}

.photo-lightbox-stage.is-animating {
  pointer-events: none;
}

.photo-lightbox-stage.is-dragging {
  cursor: grabbing;
}

.photo-lightbox-figure {
  margin: 0;
}

.photo-lightbox-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  min-height: 12rem;
  background: #111;
  touch-action: none;
  cursor: grab;
  overscroll-behavior: contain;
}

/* Hidden decoder host — keeps next/prev bitmaps in the browser image cache */
.photo-lightbox-preload {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* Off-DOM pool host for pre-decoded lightbox frames (see app.js) */
#photo-lightbox-pool,
.photo-lightbox-pool-img {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.photo-lightbox-stage.is-zoomed .photo-lightbox-viewport {
  cursor: grab;
}

.photo-lightbox-image {
  display: block;
  width: 100%;
  max-height: min(78vh, 42rem);
  object-fit: contain;
  background: #111;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.photo-lightbox-figure figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.photo-lightbox-close,
.photo-lightbox-nav,
.photo-lightbox-zoom-btn {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
}

.photo-lightbox-close {
  top: 0.55rem;
  right: 0.55rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
}

.photo-lightbox-zoom-bar {
  position: absolute;
  z-index: 2;
  top: 0.55rem;
  left: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
}

.photo-lightbox-zoom-btn {
  position: static;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 600;
}

.photo-lightbox-zoom-reset {
  min-width: 2.6rem;
  width: auto;
  padding: 0 0.45rem;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.photo-lightbox-zoom-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.photo-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
}

.photo-lightbox-prev {
  left: 0.55rem;
}

.photo-lightbox-next {
  right: 0.55rem;
}

.photo-lightbox-nav:disabled,
.photo-lightbox-nav.is-hidden {
  opacity: 0.35;
  cursor: not-allowed;
}

.photo-lightbox-nav.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

/* Clickable menu images → same lightbox */
.menu-image-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: inherit;
}

.menu-image-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-image-open .menu-image,
.menu-image-open .menu-preview {
  display: block;
  width: 100%;
  pointer-events: none;
}

/* Override mobile bottom-sheet modal layout — keep photos centered on screen */
@media (max-width: 768px) {
  dialog.photo-lightbox-dialog.modal {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding:
      max(0.5rem, env(safe-area-inset-top, 0px))
      0.65rem
      max(0.75rem, env(safe-area-inset-bottom, 0px)) !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  dialog.photo-lightbox-dialog.modal[open] {
    display: grid !important;
    place-items: center;
  }

  dialog.photo-lightbox-dialog.modal[open] .photo-lightbox-card {
    animation: photo-lightbox-in 0.28s var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1));
    width: min(100%, 36rem);
    max-height: min(90dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    border-radius: 1rem;
    margin: 0;
  }

  @keyframes photo-lightbox-in {
    from {
      opacity: 0;
      transform: scale(0.96);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .photo-lightbox-image {
    max-height: min(72dvh, 34rem);
    width: 100%;
  }

  .photo-lightbox-close {
    top: 0.45rem;
    right: 0.45rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.5rem;
  }

  .photo-lightbox-zoom-bar {
    top: 0.45rem;
    left: 0.45rem;
  }

  .photo-lightbox-zoom-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }

  .photo-lightbox-zoom-reset {
    min-width: 2.85rem;
    font-size: 0.8rem;
  }

  .photo-lightbox-nav {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.75rem;
  }

  .photo-lightbox-prev {
    left: 0.35rem;
  }

  .photo-lightbox-next {
    right: 0.35rem;
  }

  .photo-lightbox-figure figcaption {
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.75rem;
  }
}

.booking-sms-opt-in.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.booking-sms-hint {
  margin-top: 0.35rem;
}

@media (max-width: 900px) {
  .photo-gallery-track,
  .photos-manager-preview {
    scroll-padding-inline: 0.85rem;
  }

  .photo-gallery-card .photo-gallery-track,
  .detail-page .photo-gallery-track,
  .photos-manager-preview {
    margin-inline: -0.85rem;
  }

  .photo-gallery-item,
  .photos-manager-slide {
    flex: 0 0 min(88vw, 22rem);
    scroll-snap-align: center;
  }

  .photos-manager-slide {
    display: flex;
    min-width: 0;
  }

  .photos-manager-slide .photo-gallery-item {
    width: 100%;
  }
}

/* Admin restaurant lifecycle + platform health */
.status-pill.lifecycle-active {
  background: var(--success-soft);
  color: var(--success);
}

.status-pill.lifecycle-pending {
  background: var(--warning-soft, var(--pending-soft));
  color: var(--warning, var(--pending));
}

.status-pill.lifecycle-suspended {
  background: var(--danger-soft);
  color: var(--danger);
}

.profile-status-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.profile-status-label--active {
  color: var(--success);
}

.profile-status-label--pending {
  color: var(--warning, var(--pending));
}

.profile-status-label--suspended {
  color: var(--danger);
}

.stats-row-admin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.75rem;
}

.stat-card-pending.is-attention,
.stat-card-suspended.is-attention {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warning, var(--pending)) 35%, transparent);
}

.stat-card-pending strong {
  color: var(--warning, var(--pending));
}

.stat-card-suspended strong {
  color: var(--danger);
}

.admin-pending-banner {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md, 10px);
  background: var(--warning-soft, var(--pending-soft));
  color: var(--warning, var(--pending));
  font-size: 0.92rem;
  font-weight: 600;
}

.availability-weekly-closed-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md, 10px);
  border: 1px solid color-mix(in srgb, var(--danger) 22%, var(--border));
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}



.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-filter-chips .chip-btn {
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface);
  color: var(--text, #111);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.admin-filter-chips .chip-btn.is-active {
  background: var(--primary, #0f766e);
  border-color: var(--primary, #0f766e);
  color: #fff;
}

.admin-search-field {
  flex: 1 1 12rem;
  min-width: 10rem;
  margin: 0;
}

.admin-search-form {
  display: grid;
  /* Equal columns so From / To are always 50% / 50% */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem 0.65rem;
  margin-bottom: 1rem;
  align-items: end;
}

.admin-search-form > .field,
.admin-search-form > .booking-field {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.admin-search-form .admin-search-q {
  grid-column: 1;
}

.admin-search-form .admin-search-status {
  grid-column: 2;
}

.admin-search-form .booking-field-date {
  min-width: 0;
  width: 100%;
}

.admin-search-form .booking-date-picker,
.admin-search-form .booking-date-trigger {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.admin-search-form .booking-date-trigger-value.is-muted {
  color: var(--text-muted);
  font-weight: 500;
}

.admin-search-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 720px) {
  /* Search | Status | From | To — From and To stay equal (each 1fr) */
  .admin-search-form {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .admin-search-form .admin-search-q,
  .admin-search-form .admin-search-status {
    grid-column: auto;
  }

  .admin-search-actions {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

/* Admin reservations: restaurant-style cards on mobile, table on desktop */
.admin-res-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-res-list .admin-res-row {
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
}

.admin-res-list .rest-today-info strong {
  font-size: 0.8125rem;
}

.admin-billing-intro {
  margin: 0 0 1rem;
}

.admin-billing-views {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1rem;
  overflow: visible;
}

.admin-billing-views .rest-docs-toc-btn {
  flex: 1 1 0;
  min-height: 2.75rem;
  text-align: center;
}

.admin-billing-order-total {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent, #7a2731);
  white-space: nowrap;
}

/* Billing filters: Restaurant | From | To on one row (stack only on very narrow phones). */
.admin-billing-form {
  grid-template-columns: 1fr;
}

.admin-billing-filters-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem 0.75rem;
  align-items: end;
  min-width: 0;
}

.admin-billing-filters-row > .field,
.admin-billing-filters-row > .booking-field {
  min-width: 0;
  margin: 0;
  width: 100%;
}

.admin-billing-form .admin-billing-restaurant .pill-select,
.admin-billing-form .admin-billing-restaurant .booking-date-trigger {
  width: 100%;
  min-height: 2.75rem;
  font-size: 1rem;
}

.admin-billing-form .admin-search-actions {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .admin-billing-filters-row {
    grid-template-columns: 1fr;
  }
}

.admin-billing-fee-card {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(122, 39, 49, 0.18);
  background: linear-gradient(135deg, rgba(122, 39, 49, 0.08), rgba(243, 235, 227, 0.9));
  height: auto;
  min-height: 0;
}

.admin-billing-fee-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-billing-fee-main strong {
  font-size: 0.8125rem;
  color: var(--text-muted, #6b5e54);
}

.admin-billing-fee-amount {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent, #7a2731);
  line-height: 1.15;
}

.admin-billing-generate-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0.85rem 0 1rem;
}

.admin-billing-generate-row .btn {
  width: 100%;
}

.admin-billing-generate-hint {
  margin: 0;
}

@media (min-width: 640px) {
  .admin-billing-generate-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .admin-billing-generate-row .btn {
    width: auto;
    flex: 0 0 auto;
  }

  .admin-billing-generate-hint {
    flex: 1 1 12rem;
  }
}

.admin-billing-fee-hint {
  font-size: 0.8125rem;
  color: var(--text-muted, #6b5e54);
  line-height: 1.35;
}

.admin-billing-qr-charge-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.7rem;
  min-width: 0;
}

.admin-billing-qr-percent {
  margin: 0;
}

.admin-billing-qr-percent-input {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  margin-top: 0.3rem;
  max-width: 10.5rem;
}

.admin-billing-qr-percent-input input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.admin-billing-qr-percent-suffix {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #2b211c);
}

.admin-billing-qr-charge-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 0;
}

.admin-billing-qr-charge-preview {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent, #7a2731);
  line-height: 1.35;
}

.admin-billing-qr-charge-side .btn {
  width: 100%;
  min-height: 2.75rem;
}

@media (min-width: 720px) {
  .admin-billing-qr-charge-row {
    flex-direction: row;
    align-items: end;
    gap: 0.75rem 1.15rem;
  }

  .admin-billing-qr-percent {
    flex: 0 0 auto;
  }

  .admin-billing-qr-charge-side {
    flex: 1 1 auto;
    padding-top: 0;
    align-self: end;
  }

  .admin-billing-qr-charge-side .btn {
    width: auto;
    align-self: flex-start;
  }
}

.admin-billing-empty {
  margin-top: 0.5rem;
}

.admin-billable-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  background: var(--surface-muted, #f3ebe3);
}

.admin-billable-summary-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.admin-billable-summary-main strong {
  font-size: 0.875rem;
}

.admin-billable-summary-main span {
  font-size: 0.8125rem;
  color: var(--text-muted, #6b5e54);
  line-height: 1.35;
}

.admin-billable-summary .btn {
  align-self: stretch;
}

@media (min-width: 640px) {
  .admin-billable-summary {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .admin-billable-summary .btn {
    align-self: center;
    flex-shrink: 0;
  }
}

.admin-res-table-wrap {
  display: none;
}

@media (min-width: 900px) {
  .admin-res-list {
    display: none;
  }

  .admin-res-table-wrap {
    display: block;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Beat .data-table .actions { justify-content: flex-end } so Suspend/Edit/Delete stay centered. */
.data-table .actions.admin-restaurant-actions,
.admin-restaurant-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  width: 100%;
}

.data-table .actions.admin-restaurant-actions .admin-venue-btn,
.data-table .actions.admin-restaurant-actions .btn,
.admin-restaurant-actions .admin-venue-btn,
.admin-restaurant-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

#app-confirm-dialog {
  z-index: 100;
}

#app-confirm-dialog::backdrop {
  z-index: 99;
}

#app-confirm-dialog.is-alert #app-confirm-cancel {
  display: none;
}

#app-confirm-dialog.is-alert .modal-footer {
  justify-content: stretch;
}

#app-confirm-dialog.is-alert .modal-footer .btn {
  flex: 1;
}

.admin-health-note {
  margin: 0 0 1rem;
}

.admin-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

/* Grid siblings must not use stacked .card + .card spacing (it shrinks the first card). */
.admin-health-grid > .card + .card {
  margin-top: 0;
}

.admin-health-card {
  height: 100%;
  min-height: 7.25rem;
  display: flex;
  flex-direction: column;
}

.admin-health-card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-health-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.admin-health-card-head h3 {
  margin: 0;
  font-size: 0.9375rem;
}

.admin-health-detail {
  margin: 0;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.health-badge {
  display: inline-flex;
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.health-badge.health-ok {
  background: var(--success-soft);
  color: var(--success);
}

.health-badge.health-missing {
  background: var(--danger-soft);
  color: var(--danger);
}

.health-badge.health-warn {
  background: #fef3c7;
  color: var(--pending);
}

.admin-health-warnings {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.45;
}




/* F-008 / F-011 service board polish */
.rest-today-notes {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.35;
  font-style: italic;
}

.rest-today-phone {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.rest-today-phone:active,
.rest-today-phone:hover {
  text-decoration: underline;
}

.rest-today-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.rest-today-head .rest-section-title {
  margin: 0;
}

.rest-today-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.toggle-field-sm {
  font-size: 0.8125rem;
  gap: 0.4rem;
}

.rest-today-item-completed {
  opacity: 0.72;
}

/* F-015 light analytics */
.rest-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.rest-analytics-card {
  background: var(--surface-2, #f8fafc);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rest-analytics-card strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.rest-analytics-card span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.rest-analytics-card-wide {
  grid-column: 1 / -1;
}

.rest-analytics-range {
  margin: 0.65rem 0 0;
}

.rest-analytics-loading {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* F-010 guest reschedule — same pill controls as search / booking */
/* Desktop: open popovers upward without clipping. Mobile keeps scroll + safe-area. */
@media (min-width: 720px) {
  #reservation-detail-dialog.is-rescheduling {
    overflow: visible;
  }

  #reservation-detail-dialog.is-rescheduling .modal-card {
    overflow: visible;
  }

  #reservation-detail-dialog.is-rescheduling .modal-body {
    overflow: visible;
    padding-bottom: 0.5rem;
  }

  #reservation-detail-dialog.is-rescheduling .guest-reschedule-panel {
    position: relative;
    z-index: 5;
    overflow: visible;
  }

  #reservation-detail-dialog.is-rescheduling .guest-reschedule-fields-row,
  #reservation-detail-dialog.is-rescheduling .booking-date-picker,
  #reservation-detail-dialog.is-rescheduling .guest-reschedule-time-picker {
    overflow: visible;
  }

  #reservation-detail-dialog.is-rescheduling .booking-date-popover {
    top: auto;
    bottom: calc(100% + 0.4rem);
    z-index: 90;
    left: 0;
    right: auto;
    width: max(100%, 16rem);
    max-width: min(22rem, calc(100vw - 2rem));
  }

  #reservation-detail-dialog.is-rescheduling .guest-reschedule-time-popover {
    top: auto;
    bottom: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    z-index: 90;
  }
}

/* Mobile reschedule: popovers open upward inside the scrollable sheet */
@media (max-width: 719px) {
  #reservation-detail-dialog.is-rescheduling .booking-date-popover,
  #reservation-detail-dialog.is-rescheduling .guest-reschedule-time-popover {
    top: auto;
    bottom: calc(100% + 0.35rem);
    z-index: 30;
    width: 100%;
    max-width: 100%;
  }
}

.guest-reschedule-panel {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border, #e2e8f0);
}

.guest-reschedule-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.guest-reschedule-hint {
  margin: 0;
}

/* Mobile: date + time on one row, party full width. Desktop: three equal columns. */
.guest-reschedule-fields-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "date time"
    "party party";
  gap: 0.75rem;
  align-items: end;
  width: 100%;
}

.guest-reschedule-fields-row > .booking-field-date {
  grid-area: date;
}

.guest-reschedule-fields-row > .booking-field-party {
  grid-area: party;
}

.guest-reschedule-fields-row > .booking-field-time {
  grid-area: time;
}

.guest-reschedule-fields-row > .field {
  margin: 0;
  min-width: 0;
  width: 100%;
}

.guest-reschedule-fields-row .booking-date-picker,
.guest-reschedule-fields-row .booking-date-trigger,
.guest-reschedule-fields-row .booking-party-stepper,
.guest-reschedule-fields-row .guest-reschedule-time-picker {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.guest-reschedule-fields-row .booking-party-stepper .airbnb-party-value-label {
  font-variant-numeric: tabular-nums;
  text-align: center;
}

@media (min-width: 720px) {
  .guest-reschedule-fields-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "date party time";
    gap: 0.65rem 0.75rem;
  }
}

.guest-reschedule-time-picker {
  width: 100%;
}

.guest-reschedule-time-popover {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.45rem;
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.guest-reschedule-time-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--dur-fast),
    color var(--dur-fast);
}

.guest-reschedule-time-option:hover {
  background: var(--surface-muted);
}

.guest-reschedule-time-option.is-selected,
.guest-reschedule-time-option[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
}

.guest-reschedule-time-picker .booking-date-trigger-icon,
.pill-select .booking-date-trigger-icon {
  transition: transform var(--dur-fast);
}

.guest-reschedule-time-picker .booking-date-trigger.is-open .booking-date-trigger-icon,
.pill-select .booking-date-trigger.is-open .booking-date-trigger-icon {
  transform: rotate(180deg);
}

.airbnb-field .booking-date-picker,
.airbnb-field .booking-date-trigger,
.airbnb-field .pill-select,
.field .pill-select,
.field .pill-select .booking-date-trigger {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.guest-reschedule-time-empty {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.guest-reschedule-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
  width: 100%;
}

.guest-reschedule-actions .btn {
  flex: 0 1 auto;
  min-width: 9rem;
  margin: 0;
}

@media (max-width: 719px) {
  .guest-reschedule-actions .btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
  }
}

/* F-016 discovery polish */
.restaurant-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.restaurant-card-topline h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.restaurant-card-open-now {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--success) 35%, transparent);
}

.badge-open-now-strong {
  flex-shrink: 0;
  font-weight: 700;
}

.empty-state-browse {
  padding: 1.5rem 1rem;
  text-align: center;
}

.empty-state-browse .btn {
  margin-top: 0.85rem;
}

.staff-booking-grid.is-locked,
.field.is-locked {
  opacity: 0.65;
  pointer-events: none;
}

@media (min-width: 640px) {
  .rest-analytics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Admin cuisine catalog — compact single-row list */
.admin-cuisine-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.admin-cuisine-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem auto;
  gap: 0.5rem;
  align-items: center;
}

.admin-cuisine-add-form input,
.admin-cuisine-item input[type="text"],
.admin-cuisine-item input[type="number"] {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.3;
}

.admin-cuisine-add-form input:focus,
.admin-cuisine-item input[type="text"]:focus,
.admin-cuisine-item input[type="number"]:focus {
  outline: none;
  border-color: var(--accent-border, var(--accent));
  box-shadow: 0 0 0 3px var(--accent-soft, color-mix(in srgb, var(--accent) 18%, transparent));
}

.admin-cuisine-new-sort,
.admin-cuisine-sort-input {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.admin-cuisine-filters {
  margin: 0;
}

.admin-cuisine-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px);
  background: var(--surface);
  overflow: hidden;
}

.admin-cuisine-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.75rem auto auto;
  align-items: center;
  gap: 0.5rem 0.6rem;
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  position: relative;
}

.admin-cuisine-item + .admin-cuisine-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: color-mix(in srgb, var(--border) 90%, transparent);
  pointer-events: none;
}

.admin-cuisine-item.is-inactive {
  opacity: 0.62;
}

.admin-cuisine-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-cuisine-usage {
  font-size: 0.72rem;
  color: var(--text-muted, var(--text-secondary));
  font-weight: 500;
  padding-left: 0.65rem;
  line-height: 1.2;
}

.admin-cuisine-active-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.admin-cuisine-active-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.admin-cuisine-toggle-ui {
  position: relative;
  width: 2.15rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--border);
  border: 1px solid color-mix(in srgb, var(--border) 80%, var(--text-muted));
  flex-shrink: 0;
  transition:
    background var(--dur-fast, 0.15s),
    border-color var(--dur-fast, 0.15s);
}

.admin-cuisine-toggle-ui::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.12rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  transform: translateY(-50%);
  transition: left var(--dur-fast, 0.15s);
}

.admin-cuisine-active-toggle input:checked + .admin-cuisine-toggle-ui {
  background: var(--accent);
  border-color: transparent;
}

.admin-cuisine-active-toggle input:checked + .admin-cuisine-toggle-ui::after {
  left: calc(100% - 1.05rem);
}

.admin-cuisine-active-toggle input:focus-visible + .admin-cuisine-toggle-ui {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-cuisine-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.admin-cuisine-item-actions .btn {
  padding: 0.28rem 0.55rem;
  font-size: 0.75rem;
}

.admin-cuisine-delete-btn:not(:disabled) {
  color: var(--danger, #b42318);
}

.admin-cuisine-hint {
  margin: 0;
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .admin-cuisine-add-form {
    grid-template-columns: minmax(0, 1fr) 3.75rem;
  }

  .admin-cuisine-add-form .btn {
    grid-column: 1 / -1;
  }

  .admin-cuisine-item {
    grid-template-columns: minmax(0, 1fr) 3.5rem auto;
    grid-template-areas:
      "name name name"
      "sort toggle actions";
  }

  .admin-cuisine-item-main {
    grid-area: name;
  }

  .admin-cuisine-sort-input {
    grid-area: sort;
  }

  .admin-cuisine-active-toggle {
    grid-area: toggle;
    justify-self: center;
  }

  .admin-cuisine-item-actions {
    grid-area: actions;
    justify-self: end;
  }
}

/* ── Admin site policies ─────────────────────────────────────────── */
.admin-policy-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-policy-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto;
  gap: 0.5rem;
  align-items: center;
}

.admin-policy-add-form input[type="text"] {
  min-width: 0;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface-muted);
  font: inherit;
}

.admin-policy-add-footer {
  white-space: nowrap;
}

.admin-policy-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-policy-item {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface);
  overflow: hidden;
}

.admin-policy-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
}

.admin-policy-item-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  min-width: 0;
}

.admin-policy-item-title {
  font-size: 0.95rem;
}

.admin-policy-item-slug {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.admin-policy-lang-dots {
  display: inline-flex;
  gap: 0.25rem;
}

.admin-policy-lang-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--surface-muted);
  color: var(--text-muted);
}

.admin-policy-lang-dot.is-complete {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

.admin-policy-lang-dot.is-partial {
  background: color-mix(in srgb, #d97706 18%, transparent);
  color: #b45309;
}

.admin-policy-lang-dot.is-empty {
  opacity: 0.55;
}

.admin-policy-editor {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0 0.9rem 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.admin-policy-editor-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 7rem auto;
  gap: 0.65rem;
  align-items: end;
  padding-top: 0.75rem;
}

.admin-policy-footer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.admin-policy-body-input {
  width: 100%;
  min-height: 12rem;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
}

.admin-policy-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-policy-delete-btn {
  color: var(--danger, #b42318);
  margin-left: auto;
}

.legal-empty {
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 720px) {
  .admin-policy-add-form {
    grid-template-columns: 1fr;
  }

  .admin-policy-editor-meta {
    grid-template-columns: 1fr;
  }

  .admin-policy-item-header {
    flex-direction: column;
  }
}

.contact-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.contact-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.contact-tab.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text) 8%, transparent),
    0 0 0 1px color-mix(in srgb, var(--border) 80%, transparent);
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.35rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface);
  color: inherit;
  text-align: center;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.contact-row:hover {
  border-color: var(--border-strong, var(--accent-border));
}

.contact-row:active {
  background: var(--surface-muted);
}

.contact-row:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.contact-row-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-row-value {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
  color: var(--accent);
}

/* iOS Safari zooms ~7% when a focused control is under 16px. Landscape phones
   are often wider than 768px, so this must not live only in the phone breakpoint.
   touch-action: manipulation keeps pinch-zoom and drops double-tap zoom. */
@media (hover: none), (pointer: coarse) {
  html {
    touch-action: manipulation;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
  select,
  textarea,
  .floor-plan-dropdown-trigger,
  .slot-time-shell input[type="time"]::-webkit-datetime-edit {
    font-size: 16px !important;
  }
}

.floor-plan-page .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.floor-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floor-plan-select-field {
  margin: 0;
}

.floor-plan-dropdown {
  position: relative;
}

.floor-plan-dropdown-trigger {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.45rem 2.25rem 0.45rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background-color: var(--surface-muted);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238a7d6a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color var(--dur-fast),
    background-color var(--dur-fast),
    box-shadow var(--dur-fast),
    background-image var(--dur-fast);
}

.floor-plan-dropdown-trigger:hover,
.floor-plan-dropdown-trigger:focus,
.floor-plan-dropdown.is-open .floor-plan-dropdown-trigger {
  border-color: var(--accent-border);
  background-color: var(--surface);
  outline: none;
}

.floor-plan-dropdown-trigger:focus-visible {
  box-shadow: var(--focus-ring);
}

.floor-plan-dropdown-trigger:disabled {
  opacity: 0.55;
  cursor: default;
}

.floor-plan-dropdown.is-open .floor-plan-dropdown-trigger {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 6.5L6 1.5L11 6.5' stroke='%238a7d6a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.floor-plan-dropdown-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  min-width: 100%;
  max-height: min(16rem, 50dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow:
    0 4px 12px color-mix(in srgb, var(--text) 6%, transparent),
    0 18px 40px color-mix(in srgb, var(--text) 12%, transparent);
}

.floor-plan-dropdown-menu[hidden] {
  display: none;
}

.floor-plan-dropdown-option {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.floor-plan-dropdown-option:hover,
.floor-plan-dropdown-option:focus-visible {
  background: var(--surface-muted);
  color: var(--text);
  outline: none;
}

.floor-plan-dropdown-option.is-active,
.floor-plan-dropdown-option.is-active:hover,
.floor-plan-dropdown-option.is-active:focus-visible {
  background: var(--accent);
  color: #fff;
}

.floor-toolbar-actions,
.floor-toolbar-io {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  flex: 0 1 auto;
}

.floor-toolbar-io {
  margin-left: auto;
}

.floor-export-dropdown {
  position: relative;
}

.floor-export-menu {
  position: fixed;
  z-index: 40;
  min-width: 13rem;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: #fffdf9;
  box-shadow: 0 8px 22px rgba(60, 28, 28, 0.16);
}

.floor-export-menu[hidden] {
  display: none;
}

.floor-export-menu button {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.floor-export-menu button:hover,
.floor-export-menu button:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.floor-summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.floor-summary-main {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.floor-summary-action .btn {
  width: 100%;
  min-height: 2.75rem;
}

.floor-summary-totals {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.floor-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.floor-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
}

.floor-chip.is-empty {
  font-weight: 500;
  color: var(--text-muted);
}

.floor-add-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
}

.floor-add-tools,
.floor-add-io {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.floor-add-io {
  margin-left: auto;
}

.floor-add-sep {
  align-self: stretch;
  width: 1px;
  min-height: 1.6rem;
  margin: 0.1rem 0.2rem;
  background: var(--border-strong);
}

.floor-spacing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
}

.floor-spacing-toggle.is-on,
.floor-spacing-toggle:has(input:checked) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.floor-spacing-toggle.is-on .rest-closed-toggle-track,
.floor-spacing-toggle:has(input:checked) .rest-closed-toggle-track {
  background: var(--accent);
  box-shadow: none;
}

.floor-spacing-toggle.is-on .rest-closed-toggle-state,
.floor-spacing-toggle:has(input:checked) .rest-closed-toggle-state {
  color: var(--accent);
}

.floor-spacing-cm {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.floor-spacing-cm input {
  width: 4.5rem;
  min-height: 2.75rem;
  padding: 0 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.floor-viewport.is-spacing .floor-obj-table,
.floor-viewport.is-spacing .floor-obj-bar {
  box-shadow: 0 0 0 var(--floor-space-px) rgba(90, 79, 66, 0.22);
}

.floor-empty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.floor-empty-row .field-hint {
  margin: 0;
}

.floor-add-bar .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.floor-add-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.floor-add-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.floor-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(68dvh, 28rem);
  min-height: 16rem;
  overflow: hidden;
  touch-action: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #efe7dc;
  user-select: none;
}

.floor-history {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 6;
  display: flex;
  gap: 0.35rem;
  pointer-events: auto;
  touch-action: manipulation;
}

.floor-zoom {
  top: auto;
  bottom: 0.5rem;
}

.floor-history-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--text) 10%, transparent);
  cursor: pointer;
  transition:
    border-color var(--dur-fast),
    background-color var(--dur-fast),
    color var(--dur-fast),
    opacity var(--dur-fast);
}

.floor-history-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.floor-history-btn:hover:not(:disabled),
.floor-history-btn:focus-visible:not(:disabled) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

.floor-history-btn:focus-visible {
  box-shadow: var(--focus-ring);
}

.floor-history-btn:disabled {
  opacity: 0.38;
  cursor: default;
  box-shadow: none;
}

.floor-world {
  position: relative;
  flex: 0 0 auto;
  transform-origin: 0 0;
}

.floor-viewport.is-measuring {
  cursor: crosshair;
}

.floor-viewport.is-measuring .floor-obj {
  pointer-events: none;
}

.floor-viewport.is-measuring .floor-obj.is-magnet {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, #fff);
  outline-offset: 3px;
}

.floor-canvas {
  position: relative;
  overflow: visible;
}

.floor-obj {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 2px solid #7a2731;
  background: #fff9f4;
  color: #5c1d24;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: grab;
  touch-action: none;
  box-sizing: border-box;
}

.floor-obj-table {
  overflow: visible;
}

.floor-obj-table.is-round {
  border-radius: 50%;
}

.floor-obj-table.is-square,
.floor-obj-table.is-rect {
  border-radius: 0.45rem;
}

.floor-chairs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.floor-chair {
  position: absolute;
  width: 0.62rem;
  height: 0.4rem;
  border: 1.5px solid #7a2731;
  background: #fff9f4;
  border-radius: 0.08rem 0.08rem 0.2rem 0.2rem;
  box-sizing: border-box;
  pointer-events: none;
}

.floor-obj-wall {
  border-color: #4a4038;
  background: #4a4038;
  min-height: 0;
  z-index: 1;
  box-shadow: 0 0 0 0.6px #4a4038;
}

.floor-obj-wall .floor-obj-text {
  display: none;
}

.floor-obj-bar {
  border-color: #6b4a2e;
  background: #c4a574;
  border-radius: 0.4rem;
}

.floor-obj-door,
.floor-obj-window {
  z-index: 4;
  overflow: visible;
  min-width: 0;
  min-height: 0;
  border-radius: 0;
}

.floor-obj-door {
  border: none;
  background: #efe7dc;
  box-shadow: 0 0 0 2px #efe7dc;
}

.floor-door-swing {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  overflow: visible;
  transform-origin: 50% 0;
}

.floor-obj-door.is-hinge-end .floor-door-swing {
  transform: scaleX(-1);
}

.floor-obj-door.is-swing-back .floor-door-swing {
  transform: scaleY(-1);
}

.floor-obj-door.is-hinge-end.is-swing-back .floor-door-swing {
  transform: scale(-1, -1);
}

.floor-door-swing svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: #3a332c;
  stroke-width: 2px;
  stroke-linecap: square;
}

.floor-door-swing path,
.floor-door-swing line {
  vector-effect: non-scaling-stroke;
}

.floor-obj-window {
  border: none;
  background: #4a4038;
}

.floor-window-pane {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: max(100%, 12px);
  transform: translateY(-50%);
  background: #4a4038;
}

.floor-window-pane svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #f6f1ea;
  stroke-width: 2;
  stroke-linecap: butt;
}

.floor-add-bar .btn.is-on,
.floor-add-bar .btn-secondary.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.floor-viewport.is-placing .floor-obj-wall {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

.floor-obj-label {
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  overflow: visible;
}

.floor-obj-label.is-empty .floor-obj-text {
  color: var(--text-muted);
  font-weight: 500;
}

.floor-ruler-tool {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.floor-ruler-dot {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  margin: 0;
  border: 2px solid #fff9f4;
  border-radius: 999px;
  background: #7a2731;
  transform: translate(-50%, -50%);
}

.floor-ruler-dot.is-hover {
  opacity: 0.45;
}

.floor-ruler-dot.is-hover.is-magnet {
  opacity: 1;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 28%, transparent);
}

.floor-ruler-measure {
  position: absolute;
  pointer-events: none;
}

.floor-ruler-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1.5px solid #7a2731;
  pointer-events: none;
}

.floor-ruler-tick {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 0.7rem;
  border-left: 1.5px solid #7a2731;
  transform: translateY(-50%);
  pointer-events: none;
}

.floor-ruler-tick.is-end {
  left: auto;
  right: 0;
}

.floor-ruler-readout {
  position: absolute;
  z-index: 9;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  background: #fffdf9;
  color: #5c1d24;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 0 rgba(60, 28, 28, 0.06);
}

.floor-label-input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0 0.35rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  outline: none;
}

.floor-obj.is-selected {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 2;
}

.floor-obj-label.is-selected {
  outline: none;
}

.floor-obj-door.is-selected,
.floor-obj-window.is-selected {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 5;
}

.floor-obj-window.is-selected {
  outline: none;
}

.floor-obj-window.is-selected .floor-window-pane {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.floor-obj.is-magnet {
  outline: 2px solid var(--teal, #2f6f64);
  outline-offset: 2px;
}

.floor-obj-pop {
  position: absolute;
  z-index: 8;
  user-select: text;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  max-width: calc(100% - 0.5rem);
  padding: 0.4rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fffdf9;
  box-shadow: 0 8px 22px rgba(60, 28, 28, 0.16);
  transform: translate(-50%, -100%);
  touch-action: manipulation;
}

.floor-pop-dims,
.floor-pop-actions,
.floor-pop-table {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.floor-pop-cm {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  padding: 0 0.4rem;
  border-radius: 0.5rem;
  background: var(--accent-soft);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

.floor-pop-cm input {
  width: 3.6rem;
  min-height: 2.35rem;
  border: 0;
  border-radius: 0.35rem;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  text-align: center;
}

.floor-pop-label-field {
  width: min(14rem, 100%);
}

.floor-pop-label-field input[type="text"] {
  width: 8.5rem;
  flex: 1 1 auto;
  text-align: left;
  padding: 0 0.5rem;
}

.floor-pop-table .floor-stepper strong {
  min-width: 1.25rem;
  text-align: center;
}

.floor-pop-btn.is-on {
  background: var(--accent);
  color: #fff;
}

.floor-obj-pop[hidden] {
  display: none !important;
}

.floor-obj-pop.is-below {
  transform: translate(-50%, 0);
}

.floor-obj-pop.is-side {
  transform: translate(0, -50%);
}

.floor-pop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.35rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.floor-pop-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.floor-pop-btn:active {
  transform: scale(0.96);
}

.floor-pop-btn.is-danger {
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
}

.floor-obj-text {
  pointer-events: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.15rem;
}

.floor-obj-table .floor-obj-text {
  position: relative;
  z-index: 1;
  display: block;
  transform: rotate(calc(-1 * var(--rot, 0deg)));
}

.floor-gesture-hint {
  margin: 0;
}

.floor-inspector-hint {
  margin: 0;
}

.floor-inspector-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.floor-inspector-type {
  margin: 0;
  font-weight: 700;
}

.floor-inspector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.floor-stepper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.floor-stepper strong {
  min-width: 1.5rem;
  text-align: center;
}

.floor-shape-pills,
.floor-inspector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media (min-width: 720px) {
  .floor-toolbar {
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .floor-plan-select-field {
    min-width: 14rem;
    max-width: 22rem;
    flex: 1 1 16rem;
  }

  .floor-viewport {
    height: min(70dvh, 36rem);
  }

  .floor-summary {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .floor-summary-action {
    flex: 0 0 auto;
  }

  .floor-summary-action .btn {
    width: auto;
  }
}

/* Digital menu, table QR codes, kitchen display */
.rest-menu-kds > .rest-docs-toc {
  padding-bottom: 0.9rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-strong);
}

.menu-editor {
  display: grid;
  gap: 1rem;
}

.menu-editor .allergen-legend {
  margin: 0;
}

.menu-cat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.85rem;
}

.menu-cat-form .menu-lang-wrap {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.35rem;
}

.menu-cat-form:has(#menu-category-add-cancel) {
  grid-template-columns: 1fr auto auto;
}

.menu-item-lang-field {
  display: grid;
  gap: 0.35rem;
}

.menu-item-lang-field .profile-desc-head {
  justify-content: flex-start;
  gap: 0.55rem 0.75rem;
}

.qr-setup .staff-card-header {
  margin-bottom: 0.85rem;
}

.qr-setup-forms {
  display: grid;
  gap: 0.75rem;
}

.qr-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
  margin: 0;
}

.qr-add-form .field {
  margin: 0;
}

.qr-add-form .btn {
  white-space: nowrap;
  min-height: 2.75rem;
}

.qr-range-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.qr-empty {
  margin: 0.85rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.qr-table-panel {
  display: grid;
  gap: 0.85rem;
}

.qr-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.qr-table-toolbar .rest-section-title {
  margin: 0;
}

.qr-table-toolbar .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.menu-cat-pills,
.gmenu-cats {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.15rem 0 0.45rem;
}

.menu-cat-pills::-webkit-scrollbar,
.gmenu-cats::-webkit-scrollbar {
  display: none;
}

.menu-cat-edit-row,
.menu-item-form-actions,
.menu-item-photo-actions,
.qr-table-actions,
.kds-toolbar,
.menu-dish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.menu-item-form {
  display: grid;
  gap: 0.85rem;
}

.menu-item-form .rest-section-title {
  margin: 0;
}

.menu-item-form .field {
  margin: 0;
}

.menu-item-copy {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

@media (min-width: 720px) {
  .menu-item-copy {
    grid-template-columns: minmax(0, 1.35fr) minmax(9.5rem, 0.9fr);
    align-items: start;
  }

  .menu-item-lang-field {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .menu-item-name-field {
    grid-column: 1;
    grid-row: 2;
  }

  .menu-item-price-field {
    grid-column: 2;
    grid-row: 2;
  }

  .menu-item-desc-field {
    grid-column: 1;
    grid-row: 3;
  }

  .menu-item-cat-field {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
  }
}

.menu-item-main-row {
  display: grid;
  gap: 0.85rem;
}

.menu-item-photo-field .menu-item-photo-pick {
  flex-direction: column;
  align-items: stretch;
}

.menu-item-photo-field .menu-item-photo-preview {
  width: 100%;
  height: 7.5rem;
}

@media (min-width: 720px) {
  .menu-item-main-row {
    grid-template-columns: minmax(0, 1fr) 12.5rem;
    align-items: stretch;
  }

  .menu-item-photo-field {
    display: flex;
    flex-direction: column;
  }

  .menu-item-photo-field .menu-item-photo-row,
  .menu-item-photo-field .menu-item-photo-pick {
    flex: 1;
  }

  .menu-item-photo-field .menu-item-photo-preview {
    flex: 1;
    height: auto;
    min-height: 7.5rem;
  }
}

.menu-item-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.menu-item-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.menu-item-photo-pick {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.menu-item-form-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.menu-item-form-actions .btn-primary {
  min-height: 3rem;
}

.menu-options-fold {
  display: grid;
  gap: 0.9rem;
}

.menu-options-fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
}

.menu-options-fold > summary::-webkit-details-marker,
.menu-options-fold > summary::marker {
  display: none;
}

.menu-options-fold[open] .menu-allergen-chevron::after {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.menu-options-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.menu-opt-stack {
  display: grid;
  gap: 0.75rem;
}

.menu-opt-group {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.menu-opt-label {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.menu-opt-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.5rem;
  gap: 0.5rem;
  align-items: end;
}

.menu-opt-input {
  width: 100%;
  min-height: 2.5rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.7rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
}

.menu-opt-input:focus {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: var(--focus-ring);
}

.menu-opt-group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.menu-opt-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.menu-opt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.28rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
}

.menu-opt-chip.is-on,
.menu-opt-required-chip:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.menu-opt-required-chip {
  margin-left: auto;
}

.menu-opt-required-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-opt-list {
  display: grid;
  gap: 0.35rem;
}

.menu-opt-cols,
.menu-opt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.75rem 2.5rem;
  gap: 0.45rem;
  align-items: center;
}

.menu-opt-cols {
  padding: 0 0.15rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-opt-price {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.5rem;
  padding: 0 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.7rem;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
}

.menu-opt-input-plain {
  width: 100%;
  min-width: 0;
  height: 1.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 650;
  text-align: right;
  box-shadow: none;
}

.menu-opt-input-plain:focus {
  outline: none;
}

.menu-opt-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.menu-opt-x:hover,
.menu-opt-x:focus-visible {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 40%, var(--border));
  outline: none;
}

.menu-opt-add,
.menu-opt-add-group {
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px dashed var(--border-strong);
  border-radius: 0.7rem;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-opt-add {
  justify-self: stretch;
}

.menu-opt-add-group {
  width: 100%;
  margin-top: 0.35rem;
}

.menu-opt-tpl-bar {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.menu-opt-tpl-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-opt-tpl-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.menu-opt-tpl-pill {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}

.menu-opt-tpl-pill .menu-opt-chip {
  border: 0;
  border-radius: 0;
  min-height: 2.15rem;
  padding: 0.3rem 0.65rem 0.3rem 0.85rem;
  background: transparent;
}

.menu-opt-tpl-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  min-width: 2.15rem;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.menu-opt-tpl-x:hover,
.menu-opt-tpl-x:focus-visible {
  color: var(--danger);
  outline: none;
}

.menu-opt-tpl-row {
  display: grid;
  gap: 0.45rem;
}

.menu-opt-tpl-save {
  justify-self: start;
  min-height: 2.3rem;
  padding: 0.2rem 0;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-opt-tpl-select-wrap .menu-opt-input {
  min-height: 2.5rem;
}

@media (min-width: 640px) {
  .menu-opt-tpl-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }
}

.menu-dish-options {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.gmenu-options {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.15rem;
}

html.gmenu-sheet-open {
  overflow: hidden;
}

.gmenu-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
}

.gmenu-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: color-mix(in srgb, var(--text) 45%, transparent);
  cursor: pointer;
}

.gmenu-sheet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: min(94dvh, 44rem);
  overflow: hidden;
  border-radius: 1.15rem 1.15rem 0 0;
  background: #fff;
  box-shadow: 0 -12px 40px color-mix(in srgb, var(--text) 16%, transparent);
}

.gmenu-sheet-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-muted);
}

.gmenu-sheet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gmenu-sheet-head {
  padding: 1rem 1.1rem 0.35rem;
}

.gmenu-sheet-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gmenu-sheet-price {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.gmenu-sheet-head p {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.gmenu-sheet-x {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 92%, transparent);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--text) 12%, transparent);
}

.gmenu-sheet-body {
  overflow: auto;
  padding: 0 1rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.gmenu-sheet-foot {
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--surface);
}

@media (min-width: 720px) {
  .gmenu-sheet {
    place-items: center;
  }

  .gmenu-sheet-card {
    width: min(32rem, calc(100% - 2rem));
    max-height: min(86vh, 40rem);
    border-radius: var(--radius-lg, 1.15rem);
  }
}

.gmenu-opt-title {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 800;
}

.gmenu-opt-choices {
  display: grid;
}

.gmenu-opt-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.gmenu-opt-choice.is-on {
  background: transparent;
}

.gmenu-opt-choice em {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.gmenu-sheet-foot-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gmenu-sheet-qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--accent-soft);
}

.gmenu-sheet-qty button {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
}

.gmenu-sheet-qty span {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
}

.gmenu-sheet-add {
  flex: 1;
  min-height: 2.85rem;
  border-radius: 999px;
}

.gmenu-receipt em {
  display: block;
  font-style: normal;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.allergen-chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.allergen-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.allergen-chip.is-on {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.allergen-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.allergen-chip-n {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.menu-allergen-fold > summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
}

.menu-allergen-fold > summary::-webkit-details-marker,
.menu-allergen-fold > summary::marker {
  display: none;
}

.menu-allergen-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-allergen-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.menu-allergen-selected .allergen-n {
  min-width: 1.4rem;
  height: 1.4rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
}

.menu-allergen-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

.menu-allergen-chevron::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.15rem;
  transition: transform var(--dur-fast);
}

.menu-allergen-fold[open] .menu-allergen-chevron::after {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.menu-allergen-fold .field-hint,
.menu-allergen-fold .allergen-chip-grid {
  margin-top: 0.65rem;
}

.allergen-legend {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.allergen-legend summary {
  cursor: pointer;
  font-weight: 650;
}

.allergen-legend-list {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
}

.menu-dish-list {
  display: grid;
  gap: 0.65rem;
}

.menu-all-sections {
  display: grid;
  gap: 1.35rem;
}

.menu-cat-section + .menu-cat-section {
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.menu-cat-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.menu-cat-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.menu-dish-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.menu-editor .menu-dish-card {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.menu-editor .menu-dish-top strong {
  color: var(--accent);
}

.menu-editor .menu-dish-actions {
  justify-content: flex-end;
}

.menu-empty {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 1.35rem 0.75rem 0.5rem;
  text-align: center;
}

.menu-empty p,
.menu-empty-copy {
  margin: 0;
  color: var(--text-secondary);
}

.menu-add-dish-btn {
  width: 100%;
  margin-top: 0.85rem;
  min-height: 3rem;
}

.wait-editor .staff-card-header {
  align-items: flex-start;
}

.wait-editor .field-hint {
  max-width: 42rem;
}

.wait-cat-count {
  flex-shrink: 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 650;
}

.wait-cat-head {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.wait-cat-head .wait-cat-count {
  margin-left: auto;
}

.wait-mode-hint {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.wait-calib {
  padding: 0.9rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.wait-calc {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  font-weight: 650;
}

.wait-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.wait-stat {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.wait-stat span {
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wait-stat strong {
  font-size: 0.95rem;
}

.wait-stat.is-slow {
  border-color: color-mix(in srgb, var(--pending) 45%, var(--border));
}

.wait-stat.is-fast,
.wait-stat.is-ok {
  border-color: color-mix(in srgb, var(--success) 40%, var(--border));
}

.wait-dish-list {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.wait-dish-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.wait-dish-row:last-child {
  border-bottom: 0;
}

.kitchen-add-form {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.kitchen-list {
  display: grid;
  gap: 0.75rem;
}

.kitchen-card {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.kitchen-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.kitchen-name-field {
  display: grid;
  gap: 0.28rem;
  flex: 1;
  min-width: 0;
}

.kitchen-name-field span {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 650;
}

.kitchen-name-input {
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.7rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.kitchen-name-input:focus {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: var(--focus-ring);
}

.kitchen-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.kds-kitchen-pills {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.kds-kitchen-pills .rest-docs-toc-btn {
  min-height: 2.65rem;
  padding: 0.45rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 650;
}

.wait-item-list {
  display: grid;
  gap: 0.7rem;
}

.wait-item {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.wait-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.wait-item-head h4 {
  margin: 0;
  font-size: 1rem;
}

.wait-now {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

.wait-live-load,
.wait-formula,
.wait-insufficient {
  margin: 0.2rem 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.wait-formula {
  color: var(--text);
}

.wait-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin-top: 0.55rem;
}

.wait-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 650;
}

.wait-sentence {
  margin: 0;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 2.35;
}

.wait-inline-input {
  display: inline-block;
  width: 2.9rem;
  min-height: 2.5rem;
  margin: 0 0.1rem;
  padding: 0.15rem 0.15rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.55rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  text-align: center;
  vertical-align: middle;
  appearance: textfield;
  -moz-appearance: textfield;
}

.wait-inline-input::-webkit-outer-spin-button,
.wait-inline-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.wait-inline-input:focus {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: var(--focus-ring);
}

.gmenu-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.45rem;
  margin-top: 0.3rem;
}

.gmenu-meta .gmenu-allergens {
  margin: 0;
  flex: 1 1 auto;
  white-space: nowrap;
}

.gmenu-wait-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.menu-editor .staff-card-header {
  align-items: flex-start;
}

@media (max-width: 640px) {
  .menu-editor .staff-card-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .menu-editor .staff-card-header .btn {
    width: auto;
  }

  .menu-editor .menu-cat-edit-row {
    width: 100%;
  }
}

.menu-dish-card.no-photo {
  grid-template-columns: 1fr;
}

.menu-dish-photo {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-muted);
}

.menu-dish-photo img,
.menu-item-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-dish-photo.is-empty,
.menu-item-photo-preview.is-empty {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.35rem;
}

.menu-dish-top,
.gmenu-item-top,
.gmenu-total,
.gmenu-receipt li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.menu-dish-body h4,
.gmenu-item-body h3 {
  margin: 0;
  font-size: 1rem;
}

.menu-dish-body p,
.gmenu-desc,
.gmenu-allergens,
.menu-dish-allergens {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.allergen-n {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.15rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.menu-item-photo-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.menu-item-photo-preview {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.menu-item-photo-field .menu-item-photo-preview {
  width: 100%;
  height: 7.5rem;
}

.qr-table-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.qr-table-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem 1rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.qr-table-brand,
.qr-table-powered,
.qr-table-hint {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.qr-table-brand {
  font-weight: 600;
  color: var(--text);
}

.qr-table-card h3 {
  margin: 0.45rem 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
}

.qr-table-code {
  width: min(100%, 13.5rem);
  margin: 0.7rem auto 0.35rem;
  padding: 0.4rem;
  border-radius: 0.85rem;
  background: #fff;
}

.qr-table-code img {
  width: 100%;
  height: auto;
  display: block;
}

.qr-link-pill {
  margin: 0.15rem 0 0.1rem;
  min-height: 2.15rem;
  padding: 0.3rem 0.95rem;
}

.qr-table-powered {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.qr-table-actions {
  display: flex;
  justify-content: stretch;
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.qr-table-actions .btn {
  flex: 1;
  min-height: 2.6rem;
}

.kds-toolbar {
  justify-content: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.65rem 0.85rem;
}

.kds-toolbar .rest-section-title {
  margin: 0;
  flex-shrink: 0;
}

.kds-toolbar-actions,
.kds-toolbar .kds-exit-x {
  margin-left: auto;
}

.kds-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.kds-hide-taken {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.rezzy-switch {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.rezzy-switch-face {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.15rem;
  padding: 0.2rem 0.7rem 0.2rem 0.28rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  box-sizing: border-box;
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast);
}

.rezzy-switch-track {
  position: relative;
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.12rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border-strong) 70%, var(--surface));
  transition: background var(--dur-fast);
}

.rezzy-switch-knob {
  position: absolute;
  top: 0.12rem;
  left: 0.12rem;
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--text) 18%, transparent);
  transition: transform var(--dur-fast) var(--ease-spring);
}

.rezzy-switch-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1;
  white-space: nowrap;
}

.rezzy-switch:has(input:focus-visible) .rezzy-switch-face {
  box-shadow: var(--focus-ring);
}

.rezzy-switch.is-on .rezzy-switch-track,
.rezzy-switch:has(input:checked) .rezzy-switch-track {
  background: var(--accent);
}

.rezzy-switch.is-on .rezzy-switch-knob,
.rezzy-switch:has(input:checked) .rezzy-switch-knob {
  transform: translateX(0.73rem);
}

.rezzy-switch.is-on .rezzy-switch-text,
.rezzy-switch:has(input:checked) .rezzy-switch-text {
  color: var(--text);
}

.kds-hide-taken-copy {
  max-width: 100%;
}

.kds-hide-taken-mins-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.kds-hide-taken .wait-inline-input {
  width: 2.75rem;
  min-height: 2.2rem;
  margin: 0;
}

.kds-hide-taken .wait-inline-input:disabled {
  opacity: 0.55;
}

.kds-exit-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  min-width: 3.25rem;
  min-height: 3.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.kds-exit-x:hover,
.kds-exit-x:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
  outline: none;
}

.kds-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: 100%;
}

.kds-col {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  min-height: 12rem;
  min-width: 0;
}

.kds-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.kds-col-head h3 {
  margin: 0;
  font-size: 1rem;
}

.kds-col-head span {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}

.kds-col-body {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
}

.kds-card {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.kds-card--pending {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.kds-card--preparing {
  border-color: var(--pending);
  background: var(--pending-soft);
}

.kds-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.kds-card-head h3,
.kds-order-n {
  margin: 0;
  font-weight: 400;
}

.kds-card-head h3 {
  font-size: 1.05rem;
}

.kds-order-n {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kds-badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.kds-meta,
.kds-empty,
.kds-note {
  display: block;
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.kds-items {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-weight: 400;
}

.kds-items li {
  margin-bottom: 0.45rem;
}

.kds-items li:last-child {
  margin-bottom: 0;
}

.kds-item-name {
  font-weight: 700;
  color: var(--accent);
}

.kds-qty {
  font-weight: 400;
}

.kds-total {
  margin: 0.55rem 0 0.7rem;
  font-weight: 400;
}

.kds-action-btn {
  min-height: 3.5rem;
  padding: 0.95rem 1.15rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.kds-card .kds-action-btn {
  margin-top: 0.15rem;
}

html.gmenu-page,
html.gmenu-page body {
  overflow-x: hidden;
  max-width: 100%;
  touch-action: manipulation;
}

html.gmenu-page #app {
  overflow-x: hidden;
  max-width: 100%;
}

.shell--guest-menu {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0;
  row-gap: 0;
  background: #fff;
  overflow-x: hidden;
  min-width: 0;
}

.shell--guest-menu .topbar {
  position: absolute;
  top: calc(0.5rem + env(safe-area-inset-top, 0px));
  right: max(0.7rem, env(safe-area-inset-right, 0px));
  left: auto;
  z-index: 6;
  width: auto;
  max-width: calc(100% - 1.4rem);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shell--guest-menu .topbar-end {
  margin-left: 0;
}

.shell--guest-menu .topbar-main,
.shell--guest-menu .brand,
.shell--guest-menu .topbar-nav {
  display: none;
}

.shell--guest-menu .lang-dropdown-toggle {
  min-height: 2.2rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 92%, transparent);
  backdrop-filter: blur(10px);
}

html.gmenu-sheet-open .shell--guest-menu .topbar {
  visibility: hidden;
}

.gmenu {
  padding: 0 1rem 5.5rem;
  background: #fff;
  color: var(--text);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.gmenu-hero {
  margin: 0 -1rem 0.85rem;
}

.gmenu-cover {
  position: relative;
  width: 100%;
  aspect-ratio: var(--restaurant-cover-aspect);
  overflow: hidden;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 75%, #3a1014), color-mix(in srgb, var(--accent) 40%, #1e1a16));
}

.gmenu-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gmenu-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(to top, color-mix(in srgb, #1e1a16 38%, transparent), transparent);
  pointer-events: none;
}

.gmenu-badge {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem auto 0.65rem;
  border-radius: 1.1rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--text) 18%, transparent);
}

.gmenu-hero-copy {
  text-align: center;
  padding: 0.9rem 1rem 0.25rem;
}

.gmenu-hero h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gmenu-hero-meta,
.gmenu-hero-links {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.gmenu-text-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.gmenu-search {
  display: block;
  margin: 0.75rem 0 0.65rem;
}

.gmenu-search input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.55rem 0.95rem 0.55rem 2.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238a7d6a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3Cpath d='M12.5 12.5 16 16'/%3E%3C/svg%3E") 0.85rem 50% no-repeat;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.gmenu-search input:focus {
  outline: none;
  border-color: var(--accent-border);
  background-color: #fff;
}

.gmenu-cats {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  padding: 0.35rem 0 0.55rem;
  margin: 0 -0.15rem;
  min-width: 0;
  max-width: 100%;
}

.gmenu-cat-link {
  flex: 0 0 auto;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gmenu-cat-link:first-child {
  background: var(--accent-soft);
  color: var(--accent);
}

.gmenu-section h2 {
  margin: 1.15rem 0 0.15rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gmenu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.75rem;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid #eee8e0;
  cursor: pointer;
}

.gmenu-item-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
}

.gmenu-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.gmenu-price {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.gmenu-photo {
  position: relative;
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--surface-muted);
}

.gmenu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gmenu-add-btn {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0.45rem;
  background: #fff;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--text) 16%, transparent);
}

.gmenu-add-count {
  font-size: 0.75rem;
  font-weight: 800;
}

.gmenu-eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.gmenu-qty {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.gmenu-qty-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

.gmenu-qty-btn:disabled {
  opacity: 0.4;
}

.gmenu-cartbar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}

.gmenu-thanks,
.gmenu-checkout {
  margin-top: 0.5rem;
}

.gmenu-checkout-actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.gmenu-order-n {
  margin: 1rem 0 0;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}

.gmenu-order-value {
  margin: 0.15rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--accent);
}

.gmenu-receipt {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.gmenu-receipt li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.gmenu-receipt em {
  display: block;
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.shell--guest-menu .brand-footer,
.shell--guest-menu .privacy-notice {
  display: none;
}

html.kds-fullscreen,
html.kds-fullscreen body,
html.kds-fullscreen #app {
  height: 100%;
  overflow: hidden;
}

html.kds-fullscreen .topbar,
html.kds-fullscreen .sidebar-rest,
html.kds-fullscreen .rest-bottom-nav,
html.kds-fullscreen .brand-footer,
html.kds-fullscreen .privacy-notice,
html.kds-fullscreen .page-header,
html.kds-fullscreen .rest-docs-toc,
html.kds-fullscreen .toast {
  display: none !important;
}

html.kds-fullscreen .shell.shell--restaurant {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  row-gap: 0;
  min-height: 100dvh;
}

html.kds-fullscreen .app-layout.app-layout-rest {
  display: block;
  width: 100%;
  max-width: none;
  grid-template-columns: none;
  gap: 0;
}

html.kds-fullscreen .rest-main {
  width: 100%;
  max-width: none;
  padding: 0;
}

html.kds-fullscreen .rest-menu-kds.is-kds-fs {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 0.75rem 1rem 1rem;
  box-sizing: border-box;
}

html.kds-fullscreen .menu-kds-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

html.kds-fullscreen .kds-toolbar {
  flex: 0 0 auto;
  width: 100%;
}

html.kds-fullscreen .kds-hide-taken {
  flex: 0 0 auto;
  width: 100%;
  margin-bottom: 0.65rem;
}

.kds-history {
  display: grid;
  gap: 0.85rem;
}

.kds-history-filters {
  display: grid;
  gap: 0.75rem;
}

.kds-history-q {
  margin: 0;
}

.kds-history-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.kds-history-value-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.kds-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kds-history-actions .btn {
  min-height: 2.75rem;
}

.kds-history-summary {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.kds-history-results {
  display: grid;
  gap: 0.65rem;
}

.kds-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.kds-history-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.kds-history-item-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  width: 100%;
  min-height: 3.1rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.kds-history-item-toggle:hover {
  background: var(--surface-muted);
}

.kds-history-item-lead {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 11rem;
}

.kds-history-item-lead .kds-order-n {
  display: block;
}

.kds-history-item-title {
  font-weight: 700;
  line-height: 1.25;
}

.kds-history-item-when {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.kds-history-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  flex: 1 1 16rem;
  min-width: 0;
}

.kds-history-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.kds-history-item-end {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: auto;
}

.kds-history-item-total {
  font-size: 0.9375rem;
  font-weight: 700;
}

.kds-history-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform var(--dur-fast);
}

.kds-history-item.is-open .kds-history-chevron {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}

.kds-history-item-details {
  padding: 0 0.85rem 0.8rem;
  border-top: 1px solid var(--border);
}

.kds-history-item-details .kds-items {
  margin-top: 0.55rem;
}

@media (min-width: 640px) {
  .kds-history-row {
    grid-template-columns: 1fr 1fr;
  }
}

html.kds-fullscreen .kds-board {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 0.85rem;
}

html.kds-fullscreen .kds-col {
  min-width: 0;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
}

html.kds-fullscreen .kds-col-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  align-content: start;
}

@media (max-width: 560px) {
  .qr-range-form {
    grid-template-columns: 1fr 1fr;
  }

  .qr-range-form button {
    grid-column: 1 / -1;
  }

  .qr-table-toolbar {
    flex-wrap: wrap;
  }

  .qr-table-toolbar .btn {
    width: 100%;
    min-height: 2.85rem;
  }

  .menu-cat-form:has(#menu-category-add-cancel) {
    grid-template-columns: 1fr auto;
  }

  .menu-cat-form #menu-category-add-cancel {
    grid-column: 1 / -1;
  }
}

@media (min-width: 720px) {
  .wait-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .kitchen-add-form {
    grid-template-columns: minmax(12rem, 22rem) auto;
    align-items: end;
  }

  .wait-sentence {
    font-size: 0.9rem;
  }

  .wait-inline-input {
    width: 2.75rem;
    min-height: 2.35rem;
  }

  .gmenu-wait-pill {
    min-height: 1.6rem;
    padding: 0.14rem 0.65rem;
    font-size: 0.75rem;
  }

  .allergen-chip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .qr-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kds-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
  }

  .menu-dish-card {
    grid-template-columns: 7rem 1fr;
  }

  .menu-dish-photo,
  .menu-item-photo-preview {
    width: 7rem;
    height: 7rem;
  }

  .gmenu-item {
    grid-template-columns: 1fr 6.5rem;
  }

  .gmenu-photo {
    width: 6.5rem;
    height: 6.5rem;
  }

  .menu-item-photo-field .menu-item-photo-preview {
    width: 100%;
    height: auto;
    min-height: 7.5rem;
    flex: 1;
  }

  html.kds-fullscreen .kds-board {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 900px) {
  .qr-setup-forms {
    grid-template-columns: minmax(16rem, 22rem) minmax(20rem, 28rem);
    gap: 1.25rem 1.75rem;
    align-items: end;
  }
}

@media (min-width: 1100px) {
  .qr-table-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  html.qr-print .topbar,
  html.qr-print .sidebar-rest,
  html.qr-print .rest-bottom-nav,
  html.qr-print .brand-footer,
  html.qr-print .privacy-notice,
  html.qr-print .page-header,
  html.qr-print .rest-docs-toc,
  html.qr-print .qr-setup,
  html.qr-print .qr-table-toolbar,
  html.qr-print .qr-table-actions,
  html.qr-print .qr-link-pill,
  html.qr-print .field-hint {
    display: none !important;
  }

  html.qr-print .qr-table-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  html.qr-print .qr-table-card {
    break-inside: avoid;
    box-shadow: none;
  }

  html.qr-print .qr-table-code {
    width: 12.5rem;
  }
}
