﻿:root {
  --gd-gold: #d4a017;
  --gd-gold-soft: #f5e6b8;
  --gd-dark: #121212;
  --gd-ink: #111827;
  --gd-muted: #6b7280;
  --gd-line: #e5e7eb;
  --gd-canvas: #f3f4f6;
  --gd-surface: #ffffff;
  --gd-sidebar: #0b1220;
  --gd-sidebar-2: #111827;
  --gd-radius: 14px;
  --gd-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --gd-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

/* ??? Site p?blico ??? */
body.gd-public {
  background: var(--gd-dark);
  color: #f4f0e6;
  font-family: var(--gd-font);
}
/* White cards inherit light body text  reset for readable forms/pricing */
body.gd-public .card {
  color: var(--gd-ink);
  background: var(--gd-surface);
}
body.gd-public .card .form-label {
  color: #374151;
}
body.gd-public .card .form-control,
body.gd-public .card .form-select {
  color: var(--gd-ink);
  background-color: #fff;
  border-color: var(--gd-line);
}
body.gd-public .card .form-control::placeholder {
  color: #9ca3af;
  opacity: 1;
}
body.gd-public .card .form-hint,
body.gd-public .card .form-text,
body.gd-public .card .text-secondary {
  color: var(--gd-muted) !important;
}
body.gd-public .card .form-select option {
  color: var(--gd-ink);
  background: #fff;
}
.gd-nav { background: #0c0c0c; }
.gd-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #f0c14b, var(--gd-gold));
  color: #111;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.gd-hero { padding: 3rem 0 2rem; }
.gd-kicker { letter-spacing: .18em; text-transform: uppercase; color: var(--gd-gold); font-size: .8rem; }
.gd-title { font-family: "Playfair Display", Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; }
.gd-tv-mock { background: #000; border-radius: 18px; padding: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.gd-tv-screen {
  aspect-ratio: 9/16; max-height: 420px; margin: 0 auto;
  background: linear-gradient(#f7f3ea, #e8e0d2); color: #111;
  border-radius: 8px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
}
.gd-tv-screen small { letter-spacing: .12em; color: #fff; }
.gd-tv-screen strong { font-size: 1.4rem; color: #fff; }
.gd-tv-screen span { color: var(--gd-gold); font-weight: 700; }

/* ??? Shell SaaS do painel ??? */
body.gd-app {
  font-family: var(--gd-font);
  background: var(--gd-canvas);
  color: var(--gd-ink);
  -webkit-font-smoothing: antialiased;
}
.gd-shell.page { min-height: 100vh; }
.gd-main {
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(212, 160, 23, 0.08), transparent 60%),
    var(--gd-canvas);
}
.gd-container { padding-top: 1.75rem; padding-bottom: 3rem; max-width: 1120px; }

.gd-sidebar {
  background: linear-gradient(180deg, var(--gd-sidebar) 0%, var(--gd-sidebar-2) 100%);
  color: #e5e7eb;
  border-right: 1px solid rgba(255,255,255,.06);
}
.gd-sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.15rem 0.85rem 1rem;
}
.gd-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  padding: 0.35rem 0.55rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.gd-brand .gd-logo { color: #fff; }
.gd-brand-space {
  flex: 1 1 100%;
  font-size: 0.78rem;
  color: rgba(229,231,235,.65);
  padding-left: 0.15rem;
  margin-top: -0.15rem;
}
.gd-nav-label {
  margin: 0 0.7rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}
.gd-sidebar .navbar-nav {
  gap: 0.2rem;
  padding: 0 0.25rem;
}
.gd-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #c4c9d4;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background .15s ease, color .15s ease;
}
.gd-sidebar .nav-link i {
  font-size: 1.15rem;
  opacity: 0.9;
}
.gd-sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.gd-sidebar .nav-link.active {
  color: #111;
  background: linear-gradient(135deg, #f0c14b, var(--gd-gold));
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(212, 160, 23, 0.28);
}
.gd-sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.gd-sidebar-foot {
  margin-top: auto;
  padding: 1rem 0.7rem 0.35rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.gd-plan-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.16);
  color: #f0c14b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.gd-plan-state {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #9ca3af;
}
.gd-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}
.gd-logout:hover { color: #fff; }

@media (min-width: 992px) {
  .navbar-vertical.gd-sidebar { width: 16.5rem; }
  .page-wrapper { margin-left: 16.5rem; }
}

/* Page chrome */
.gd-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.gd-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gd-muted);
}
.gd-page-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gd-ink);
}
.gd-page-sub {
  margin: 0.35rem 0 0;
  color: var(--gd-muted);
  font-size: 0.95rem;
}
.gd-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.gd-btn i { font-size: 1.05rem; }
.gd-btn-primary {
  background: linear-gradient(135deg, #f0c14b, var(--gd-gold));
  color: #111;
  box-shadow: 0 8px 18px rgba(212, 160, 23, 0.28);
}
.gd-btn-primary:hover {
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(212, 160, 23, 0.35);
}
.gd-btn-ghost {
  background: var(--gd-surface);
  border-color: var(--gd-line);
  color: var(--gd-ink);
}
.gd-btn-ghost:hover {
  color: var(--gd-ink);
  background: #fafafa;
}
.gd-btn-block { width: 100%; }

/* Override Tabler warning buttons in panel */
body.gd-app .btn-warning {
  background: linear-gradient(135deg, #f0c14b, var(--gd-gold));
  border-color: transparent;
  color: #111 !important;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(212, 160, 23, 0.22);
}
body.gd-app .btn {
  border-radius: 10px;
  font-weight: 600;
}
body.gd-app .card {
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  box-shadow: var(--gd-shadow);
  background: var(--gd-surface);
}
body.gd-app .card-header {
  background: transparent;
  border-bottom-color: var(--gd-line);
}
body.gd-app h1, body.gd-app .h1 {
  letter-spacing: -0.03em;
  font-weight: 800;
}
body.gd-app .alert.gd-alert,
body.gd-app .alert {
  border-radius: 12px;
  border: 1px solid transparent;
}

/* Stats */
.gd-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.gd-stat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  background: var(--gd-surface);
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  box-shadow: var(--gd-shadow);
}
.gd-stat-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f8f1db;
  color: #9a7408;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.gd-stat-warn .gd-stat-icon {
  background: #fff1f0;
  color: #b42318;
}
.gd-stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gd-muted);
  letter-spacing: 0.01em;
}
.gd-stat-value {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 0.1rem;
}

/* Panels */
.gd-dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1rem;
}
.gd-panel {
  background: var(--gd-surface);
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  box-shadow: var(--gd-shadow);
  overflow: hidden;
}
.gd-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.15rem 1.2rem 0.85rem;
  border-bottom: 1px solid var(--gd-line);
}
.gd-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.gd-panel-sub {
  margin: 0.2rem 0 0;
  color: var(--gd-muted);
  font-size: 0.84rem;
}
.gd-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #8a6a00;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  white-space: nowrap;
}
.gd-link:hover { color: #6d5400; }

.gd-kiosk-list { padding: 0.35rem 0; }
.gd-kiosk-item {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--gd-line);
}
.gd-kiosk-item:last-child { border-bottom: 0; }
.gd-kiosk-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.gd-kiosk-meta h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}
.gd-kiosk-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #9a7408;
  background: #f8f1db;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
}
.gd-kiosk-url {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--gd-line);
  font-size: 0.8rem;
  color: #374151;
  overflow-wrap: anywhere;
}
.gd-kiosk-hint {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--gd-muted);
}
.gd-kiosk-hint code {
  font-size: 0.78rem;
  background: #f3f4f6;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.gd-panel-qr .gd-qr-box {
  padding: 1.25rem 1.2rem 1.35rem;
  text-align: center;
}
.gd-qr-frame {
  display: inline-flex;
  padding: 0.85rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--gd-line);
  box-shadow: inset 0 0 0 6px #fafafa;
  margin-bottom: 0.85rem;
}
.gd-qr-caption {
  margin: 0 0 0.9rem;
  color: var(--gd-muted);
  font-size: 0.86rem;
}
.gd-empty {
  padding: 1.5rem 1.2rem;
  text-align: center;
  color: var(--gd-muted);
}

@media (max-width: 991.98px) {
  .gd-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .gd-stat-grid { grid-template-columns: 1fr; }
}

/* Forms / checkbox helpers (unchanged behaviour) */
.gd-form .gd-checkbox-list,
.gd-form ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gd-form .gd-checkbox-item,
.gd-form ul li label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  position: static;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.gd-form .gd-checkbox-item input[type="checkbox"],
.gd-form ul li input[type="checkbox"] {
  position: static;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  float: none;
}
.gd-form .gd-checkbox-item span {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.gd-allergen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.45rem 0.75rem;
}
.gd-allergen-grid .gd-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
}
.gd-allergen-grid .gd-checkbox-item input[type="checkbox"] {
  position: static;
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
}

.gd-thumb-cell {
  width: 88px;
  min-width: 88px;
  vertical-align: middle !important;
}
.gd-thumb {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  background: #ece7dc;
  flex-shrink: 0;
}
.gd-thumb-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #666;
  text-transform: uppercase;
}

.gd-ecran-card .gd-ecran-layout {
  padding: .75rem .9rem;
  border-radius: 10px;
  background: #f8f1db;
  border-left: 4px solid var(--gd-gold);
}
.gd-ecran-layout-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gd-ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.gd-ecran-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  border-radius: 8px;
  background: #f3f4f6;
  font-size: .9rem;
  font-weight: 600;
}
.gd-ecran-chip-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #888;
}
.gd-layout-guide {
  padding: .85rem 1rem;
  border-radius: 10px;
  background: #f8f1db;
  border-left: 4px solid var(--gd-gold);
}

/* ?? Lista de ecr?s + pr?-visualiza??o TV ?? */
.gd-page-head-note {
  color: var(--gd-muted);
  font-size: 0.9rem;
  padding-top: 0.35rem;
}
.gd-ecrans-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gd-ecran-card {
  width: 100%;
}
.gd-ecran-head-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.gd-ecran-head-row h2 {
  margin: 0;
}
.gd-ecran-badge-ok {
  background: #d1fae5;
  color: #065f46;
}
.gd-ecran-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(14rem, 18rem);
  gap: 1.25rem 1.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .gd-ecran-main {
    grid-template-columns: auto 1fr;
  }
  .gd-ecran-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: end;
    border-top: 1px solid var(--gd-line);
    padding-top: 1rem;
  }
}
@media (max-width: 640px) {
  .gd-ecran-main {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .gd-tv-preview { align-items: flex-start; }
  .gd-ecran-side {
    grid-template-columns: 1fr;
  }
}
.gd-tv-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.gd-tv-bezel {
  padding: 0.4rem;
  border-radius: 12px;
  background: #1f2937;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}
.gd-tv-screen {
  overflow: hidden;
  border-radius: 6px;
  width: 5.6rem;
  height: 9.4rem;
  background: #111;
}
.gd-tv-preview.is-horizontal .gd-tv-screen {
  width: 9.4rem;
  height: 5.6rem;
}
.gd-tv-preview.tema-claro .gd-tv-screen {
  background: #f4f1ea;
}
.gd-tv-preview.tema-negro .gd-tv-screen {
  background: #121212;
}
.gd-tv-preview-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}
.gd-ecran-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.gd-ecran-limite {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
}
.gd-ecran-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.gd-ecran-cat {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
}
.gd-ecran-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  padding-left: 1.15rem;
  border-left: 1px solid var(--gd-line);
}
@media (max-width: 960px) {
  .gd-ecran-side {
    padding-left: 0;
    border-left: 0;
  }
}
.gd-ecran-access {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0;
  border-top: 0;
}
.gd-ecran-code {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #9a7408;
  line-height: 1.1;
}
.gd-ecran-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gd-ecran-actions .btn {
  font-weight: 700;
}

/* Mini mocks por layout */
.gd-tv-screen .pv-line,
.gd-tv-screen .pv-row {
  display: block;
  height: 0.28rem;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.35;
  width: 100%;
}
.gd-tv-screen .pv-line.short { width: 42%; opacity: 0.55; height: 0.34rem; }
.gd-tv-screen .pv-line.mid { width: 68%; }
.gd-tv-preview.tema-claro .gd-tv-screen { color: #1f2937; }
.gd-tv-preview.tema-negro .gd-tv-screen { color: #f3f4f6; }

.pv-mag {
  display: grid;
  grid-template-rows: 45% 1fr;
  height: 100%;
  gap: 0.25rem;
  padding: 0.3rem;
}
.gd-tv-preview.is-horizontal .pv-mag {
  grid-template-rows: 1fr;
  grid-template-columns: 48% 1fr;
}
.pv-mag-hero,
.pv-slide-photo,
.pv-feature-photo,
.pv-carta-photo,
.pv-cafe-hero {
  border-radius: 4px;
  background: linear-gradient(135deg, #c4a35a 0%, #8b7355 55%, #5c4a3a 100%);
}
.gd-montra-brand .pv-mag-hero,
.gd-montra-brand .pv-slide-photo,
.gd-montra-brand .pv-feature-photo,
.gd-montra-brand .pv-carta-photo,
.gd-montra-brand .pv-cafe-hero {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--pv-brand, #c9a227) 55%, #fff) 0%,
    color-mix(in srgb, var(--pv-brand, #c9a227) 25%, #333) 100%
  );
}
.gd-montra-brand.tema-negro .pv-mag-hero,
.gd-montra-brand.tema-negro .pv-slide-photo,
.gd-montra-brand.tema-negro .pv-feature-photo,
.gd-montra-brand.tema-negro .pv-carta-photo,
.gd-montra-brand.tema-negro .pv-cafe-hero {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--pv-brand, #c9a227) 45%, #1a1a1a) 0%,
    color-mix(in srgb, var(--pv-brand, #c9a227) 15%, #0a0a0a) 100%
  );
}
.gd-montra-brand .pv-line.short {
  color: var(--pv-brand, #c9a227);
  opacity: 0.85;
}
.gd-aspeto-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .gd-aspeto-body {
    grid-template-columns: 1fr;
  }
  .gd-aspeto-preview-wrap {
    justify-self: center;
  }
}
.gd-aspeto-ecras-callout {
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px dashed var(--gd-line);
  background: #fafafa;
}
.gd-aspeto-ecras-callout strong {
  display: block;
  margin-bottom: 0.25rem;
}
.gd-tv-preview.tema-negro .pv-mag-hero,
.gd-tv-preview.tema-negro .pv-slide-photo,
.gd-tv-preview.tema-negro .pv-feature-photo,
.gd-tv-preview.tema-negro .pv-carta-photo,
.gd-tv-preview.tema-negro .pv-cafe-hero {
  background: linear-gradient(135deg, #6b5a3e 0%, #3f3428 60%, #1f1a14 100%);
}
.pv-mag-side,
.pv-slide-list,
.pv-carta-list,
.pv-lista,
.pv-cols,
.pv-lousa,
.pv-cafe-body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.15rem 0.1rem;
}
.pv-slide {
  display: grid;
  grid-template-rows: 42% 1fr;
  height: 100%;
  gap: 0.25rem;
  padding: 0.3rem;
}
.gd-tv-preview.is-horizontal .pv-slide {
  grid-template-rows: 1fr;
  grid-template-columns: 46% 1fr;
}
.pv-grid,
.pv-vitrine {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 0.22rem;
  height: 100%;
  padding: 0.3rem;
}
.gd-tv-preview.is-horizontal .pv-grid {
  grid-template-columns: repeat(4, 1fr);
}
.gd-tv-preview.is-horizontal .pv-vitrine {
  grid-template-columns: repeat(4, 1fr);
}
.pv-vitrine {
  grid-template-columns: repeat(3, 1fr);
}
.pv-grid span,
.pv-vitrine span,
.pv-cafe-grid span {
  display: block;
  border-radius: 3px;
  background: linear-gradient(160deg, #d4b978, #9a7b2e);
  opacity: 0.85;
}
.gd-tv-preview.tema-negro .pv-grid span,
.gd-tv-preview.tema-negro .pv-vitrine span,
.gd-tv-preview.tema-negro .pv-cafe-grid span {
  background: linear-gradient(160deg, #5a4a2e, #2a2418);
  opacity: 1;
}
.pv-lista {
  height: 100%;
  padding: 0.45rem 0.4rem;
  gap: 0.32rem;
}
.pv-row {
  height: 0.38rem !important;
  opacity: 0.28 !important;
}
.pv-cols {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  padding: 0.35rem;
  gap: 0.35rem;
}
.gd-tv-preview.is-horizontal .pv-cols {
  grid-template-columns: 1fr 1fr 1fr;
}
.pv-cols > div,
.pv-lousa > div {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.pv-feature {
  position: relative;
  height: 100%;
}
.pv-feature-photo {
  position: absolute;
  inset: 0;
  border-radius: 0;
}
.pv-feature-cap {
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  bottom: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pv-feature-cap .pv-line {
  background: #fff;
  opacity: 0.9;
}
.pv-carta {
  display: grid;
  grid-template-rows: 36% 1fr;
  height: 100%;
  gap: 0.25rem;
  padding: 0.3rem;
}
.gd-tv-preview.is-horizontal .pv-carta {
  grid-template-rows: 1fr;
  grid-template-columns: 40% 1fr;
}
.pv-lousa {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  padding: 0.4rem;
  gap: 0.4rem;
}
.gd-tv-preview.tema-claro .layout-lousa {
  background: #f7f3e8;
}
.gd-tv-preview.tema-negro .layout-lousa {
  background: #1a1f18;
}
.pv-cafe {
  display: grid;
  grid-template-rows: 32% 1fr;
  height: 100%;
}
.pv-cafe-hero { border-radius: 0; }
.pv-cafe-body { padding: 0.35rem; gap: 0.35rem; }
.pv-cafe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  flex: 1;
}
.pv-cafe-grid span { min-height: 1.1rem; }

/* ?? Defini??es ?? */
.gd-page-lead {
  margin: 0.35rem 0 0;
  color: var(--gd-muted);
  font-size: 0.95rem;
  max-width: 40rem;
}
.gd-settings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 820px;
}
.gd-settings-card {
  background: var(--gd-surface);
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  box-shadow: var(--gd-shadow);
  overflow: hidden;
}
.gd-settings-card-head {
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid var(--gd-line);
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}
.gd-settings-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gd-ink);
}
.gd-settings-card-head p {
  margin: 0.3rem 0 0;
  color: var(--gd-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.gd-settings-card-body {
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gd-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}
.gd-field .form-label {
  font-weight: 700;
  font-size: 0.82rem;
  color: #374151;
  margin: 0;
}
.gd-settings .form-control,
.gd-settings .form-select {
  width: 100%;
  max-width: 100%;
  min-height: 2.5rem;
}
.gd-field-color input[type="color"] {
  width: 100%;
  max-width: 8rem;
  height: 2.5rem;
  padding: 0.25rem;
  border-radius: 8px;
}
.gd-i18n-fold {
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  background: #fafafa;
}
.gd-i18n-fold > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.86rem;
  color: #4b5563;
  list-style: none;
}
.gd-i18n-fold > summary::-webkit-details-marker { display: none; }
.gd-i18n-fold > summary::before {
  content: "? ";
  color: var(--gd-gold);
}
.gd-i18n-fold[open] > summary::before { content: "? "; }
.gd-i18n-fold[open] > summary { margin-bottom: 0.75rem; }
.gd-i18n-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gd-settings .form-check {
  min-height: 0;
  padding-left: 0;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.gd-settings .form-check-input {
  float: none;
  margin-left: 0;
  margin-top: 0;
  position: static;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.gd-settings .form-check-label {
  margin: 0;
}
.gd-check-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.gd-check-list li {
  margin: 0;
}
.gd-check-list label,
.gd-check-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gd-ink);
  cursor: pointer;
  line-height: 1.35;
}
.gd-check-list input[type="checkbox"],
.gd-check-item input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: #2563eb;
}
.gd-check-list-single {
  margin-top: 0;
}
.gd-settings-card-body .form-hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--gd-muted);
}
.gd-layout-guide-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a7b2e;
  margin-bottom: 0.25rem;
}
.gd-layout-guide-limite {
  margin: 0 0 0.2rem;
  font-weight: 800;
  color: var(--gd-ink);
}
.gd-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-start;
  padding: 0.35rem 0 1rem;
}
.gd-btn-save {
  min-width: 11rem;
  padding: 0.7rem 1.25rem;
}

/* Editar / novo prato */
.gd-item-form {
  max-width: 760px;
}
.gd-form-alert {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--gd-radius);
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.92rem;
  font-weight: 600;
}
.gd-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .gd-field-row { grid-template-columns: 1fr; }
}
.gd-photo-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
}
@media (max-width: 560px) {
  .gd-photo-block { grid-template-columns: 1fr; }
}
.gd-photo-preview {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gd-line);
  background: #ece7dc;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}
.gd-photo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gd-photo-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.gd-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .gd-toggle-row { grid-template-columns: 1fr; }
}
.gd-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--gd-line);
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.gd-toggle:hover {
  border-color: #d4b45a;
  background: #fffef8;
}
.gd-toggle:has(input:checked) {
  border-color: #c9a227;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}
.gd-toggle input {
  position: static;
  float: none;
  margin: 0.2rem 0 0;
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
}
.gd-toggle span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  line-height: 1.35;
}
.gd-toggle strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gd-ink);
}
.gd-toggle small {
  font-size: 0.8rem;
  color: var(--gd-muted);
  line-height: 1.35;
}
.gd-item-form .gd-allergen-grid {
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.5rem;
}
.gd-item-form .gd-allergen-grid .gd-check-item {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--gd-line);
  border-radius: 10px;
  background: #fff;
}
.gd-item-form .gd-allergen-grid .gd-check-item:has(input:checked) {
  border-color: #c9a227;
  background: #fffbeb;
}
.gd-item-form textarea.form-control {
  min-height: 5.5rem;
  resize: vertical;
}

/* ?? Subscri??o ?? */
.gd-bill-status {
  max-width: 100%;
  margin-bottom: 1.25rem;
}
.gd-bill-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 720px) {
  .gd-bill-status-grid { grid-template-columns: 1fr; }
}
.gd-bill-status-value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gd-ink);
  letter-spacing: -0.02em;
}
.gd-bill-portal {
  margin-top: 0.25rem;
}
.gd-btn-secondary {
  background: #fff;
  border: 1px solid var(--gd-line);
  color: var(--gd-ink);
  font-weight: 700;
}
.gd-btn-secondary:hover {
  background: #f8f8f8;
  border-color: #cfcfcf;
}
.gd-bill-plans-head {
  margin: 0 0 0.85rem;
}
.gd-bill-plans-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gd-ink);
}
.gd-bill-plans-head p {
  margin: 0.3rem 0 0;
  color: var(--gd-muted);
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 40rem;
}
.gd-bill-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 980px) {
  .gd-bill-plans-grid { grid-template-columns: 1fr; }
}
.gd-bill-plan {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.gd-bill-plan .gd-settings-card-body {
  flex: 1;
}
.gd-bill-plan.is-featured {
  border-color: #e6c76a;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), var(--gd-shadow);
}
.gd-bill-plan.is-current .gd-settings-card-head {
  background: linear-gradient(180deg, #f8f1db 0%, #fff 100%);
}
.gd-bill-plan-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.gd-bill-plan-title h2 {
  margin: 0;
}
.gd-bill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--gd-gold);
  color: #1a1a1a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.gd-bill-badge-muted {
  background: #e5e7eb;
  color: #374151;
}
.gd-bill-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.gd-bill-price-main {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gd-ink);
  line-height: 1;
}
.gd-bill-price-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gd-muted);
}
.gd-bill-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.gd-bill-features li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.35;
}
.gd-bill-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gd-gold);
}
.gd-bill-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}
.gd-bill-actions .btn {
  width: 100%;
  font-weight: 700;
  padding: 0.65rem 0.9rem;
}
.gd-bill-plan .gd-check-item {
  margin-top: 0.15rem;
  font-size: 0.84rem;
}

/* ?? Ementa ?? */
.gd-ementa-filters {
  margin-bottom: 1rem;
}
.gd-ementa-filters-body {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)) auto;
  gap: 0.75rem 0.85rem;
  align-items: end;
}
@media (max-width: 1100px) {
  .gd-ementa-filters-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gd-ementa-search { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .gd-ementa-filters-body { grid-template-columns: 1fr; }
}
.gd-ementa-filters .form-control,
.gd-ementa-filters .form-select {
  min-height: 2.45rem;
  width: 100%;
}
.gd-ementa-filter-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding-bottom: 0.15rem;
}
.gd-ementa-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gd-muted);
}
.gd-ementa-reorder-hint {
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.gd-ementa-reorder-hint.is-muted {
  opacity: 0.55;
}
.gd-sala-reorder-hint {
  margin: 0 0 0.75rem;
}
.gd-ementa-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gd-drag-handle {
  flex-shrink: 0;
  appearance: none;
  border: 0;
  background: transparent;
  color: #9ca3af;
  padding: 0.15rem 0.25rem;
  cursor: grab;
  line-height: 1;
  border-radius: 6px;
}
.gd-drag-handle:hover {
  color: #6b7280;
  background: #f3f4f6;
}
.gd-drag-handle:active {
  cursor: grabbing;
}
.gd-cat-head .gd-drag-handle-cat {
  align-self: flex-start;
  margin-top: 0.15rem;
}
.gd-item-row.is-dragging,
.gd-cat-card.is-dragging,
.gd-sala-cat-block.is-dragging,
.gd-sala-ementa-item.is-dragging {
  opacity: 0.55;
  outline: 2px dashed #93c5fd;
  outline-offset: 2px;
}
.gd-reorder-nudge {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}
.gd-reorder-nudge-btn {
  appearance: none;
  border: 1px solid var(--gd-line);
  background: #fff;
  color: #6b7280;
  font-size: 0.65rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  cursor: pointer;
}
.gd-reorder-nudge-btn:hover {
  background: #f9fafb;
  color: #374151;
}
.gd-cat-card .gd-settings-card-body {
  gap: 0;
  padding: 0;
}
.gd-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.gd-cat-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.gd-cat-title-row h2 {
  margin: 0;
  margin-right: 0.15rem;
}
.gd-cat-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.gd-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.gd-lang.is-ok {
  background: #d1fae5;
  color: #065f46;
}
.gd-item-reorder-col,
.gd-cat-reorder-col {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.gd-item-reorder-col .gd-reorder-nudge,
.gd-cat-reorder-col .gd-reorder-nudge {
  flex-shrink: 0;
}
.gd-item-table-head {
  display: grid;
  grid-template-columns: 3.25rem 4.5rem minmax(0, 1fr) 6.5rem minmax(14rem, 18rem);
  gap: 0.75rem;
  padding: 0.55rem 1.15rem;
  border-bottom: 1px solid var(--gd-line);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  background: #fafafa;
}
.gd-item-row {
  display: grid;
  grid-template-columns: 3.25rem 4.5rem minmax(0, 1fr) 6.5rem minmax(14rem, 18rem);
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--gd-line);
}
.gd-item-row:last-child {
  border-bottom: 0;
}
.gd-item-row.is-esgotado {
  opacity: 0.72;
}
.gd-item-row.is-esgotado .gd-item-name {
  text-decoration: line-through;
}
.gd-item-thumb .gd-thumb {
  width: 64px;
  height: 64px;
}
.gd-item-name {
  display: inline-block;
  font-weight: 800;
  color: var(--gd-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.gd-item-name:hover {
  color: #9a7408;
}
.gd-item-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}
.gd-flag {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.7rem;
  font-weight: 700;
}
.gd-flag.is-gold { background: #f8f1db; color: #9a7408; }
.gd-flag.is-danger { background: #fee2e2; color: #b91c1c; }
.gd-flag.is-warn { background: #ffedd5; color: #c2410c; }
.gd-flag.is-ok { background: #d1fae5; color: #065f46; }
.gd-flag.is-on { background: #dbeafe; color: #1d4ed8; }
.gd-flag.is-off { background: #f3f4f6; color: #9ca3af; }
.gd-item-desc {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: var(--gd-muted);
  line-height: 1.35;
}
.gd-item-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gd-ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.gd-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.gd-item-actions form {
  margin: 0;
}
.gd-toggle {
  appearance: none;
  border: 1px solid var(--gd-line);
  background: #fff;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border-radius: 7px;
  line-height: 1.2;
  cursor: pointer;
  min-width: 4.6rem;
  text-align: center;
}
.gd-toggle:hover {
  border-color: #c4c4c4;
  background: #fafafa;
}
.gd-toggle.is-on {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.gd-toggle.is-on[title*='esgotado'],
.gd-item-actions form:first-child .gd-toggle.is-on {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}
.gd-item-actions form:nth-child(2) .gd-toggle.is-on {
  background: #f8f1db;
  border-color: #e6c76a;
  color: #9a7408;
}
.gd-toggle.is-danger {
  color: #b91c1c;
  border-color: #fecaca;
  min-width: auto;
}
.gd-toggle.is-danger:hover {
  background: #fef2f2;
}
.gd-cat-empty {
  padding: 1rem 1.15rem;
}
.gd-ementa-empty {
  text-align: center;
  padding: 1.5rem;
}
@media (max-width: 900px) {
  .gd-item-table-head { display: none; }
  .gd-item-row {
    grid-template-columns: 3.25rem 4rem 1fr;
    grid-template-areas:
      'drag thumb info'
      'drag thumb price'
      'actions actions actions';
  }
  .gd-item-row > .gd-item-reorder-col { grid-area: drag; align-self: center; }
  .gd-item-thumb { grid-area: thumb; }
  .gd-item-info { grid-area: info; }
  .gd-item-price { grid-area: price; }
  .gd-item-actions {
    grid-area: actions;
    justify-content: flex-start;
  }
}
/* ?? Sala (acesso rpido telemvel) ?? */
.gd-sala-body {
  margin: 0;
  min-height: 100dvh;
  background: #0f172a;
  color: #f8fafc;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  padding-bottom: 5.5rem;
}
.gd-sala-top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(180deg, #0f172a 70%, rgba(15, 23, 42, 0.92));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.gd-sala-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.gd-sala-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
}
.gd-sala-top h1 {
  margin: 0.15rem 0 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.gd-sala-top-actions {
  display: flex;
  gap: 0.4rem;
}
.gd-sala-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1.2rem;
}
.gd-sala-lead {
  margin: 0.45rem 0 0.85rem;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.35;
}
.gd-sala-filters {
  display: grid;
  gap: 0.55rem;
}
.gd-sala-search,
.gd-sala-select {
  width: 100%;
  min-height: 2.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #f8fafc;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-weight: 600;
}
.gd-sala-select option { color: #0f172a; }
.gd-sala-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
}
.gd-sala-chip input { accent-color: #f59e0b; width: 1.05rem; height: 1.05rem; }
.gd-sala-chip.is-on {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde68a;
}
.gd-sala-count {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}
.gd-sala-main {
  padding: 0.85rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 40rem;
  margin: 0 auto;
}
.gd-sala-group h2 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.gd-sala-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.gd-sala-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.gd-sala-item.is-esgotado {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}
.gd-sala-item-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1;
}
.gd-sala-thumb {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e293b;
}
.gd-sala-thumb-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #94a3b8;
  text-transform: uppercase;
}
.gd-sala-item-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.gd-sala-item-text strong,
.gd-sala-item-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  color: #f8fafc;
}
.gd-sala-item-title {
  display: inline-block;
  text-decoration: none;
}
.gd-sala-item-title:visited,
.gd-sala-item-title:hover,
.gd-sala-item-title:active {
  color: #f8fafc;
  text-decoration: none;
}
.gd-sala-item-title:active {
  opacity: 0.85;
}
.gd-sala-item.is-esgotado .gd-sala-item-text strong,
.gd-sala-item.is-esgotado .gd-sala-item-title {
  text-decoration: line-through;
  opacity: 0.85;
}
.gd-sala-tag {
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}
.gd-sala-item form { margin: 0; flex-shrink: 0; }
.gd-sala-toggle {
  appearance: none;
  border: 0;
  min-width: 6.5rem;
  min-height: 3.1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: #f59e0b;
  color: #111827;
  font-weight: 800;
  font-size: 0.88rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  cursor: pointer;
  line-height: 1.1;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
}
.gd-sala-toggle i { font-size: 1.15rem; }
.gd-sala-toggle.is-on {
  background: #22c55e;
  color: #052e16;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.25);
}
.gd-sala-toggle:active { transform: scale(0.97); }
.gd-sala-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #94a3b8;
}
.gd-sala-empty a { color: #fbbf24; font-weight: 700; }
.gd-sala-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  padding: 0.55rem 0.5rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}
.gd-sala-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem;
  border-radius: 12px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
}
.gd-sala-dock a i { font-size: 1.25rem; }
.gd-sala-dock a.is-active {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}
.gd-sala-dash-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--gd-radius);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  text-decoration: none;
  border: 1px solid #334155;
  margin-bottom: 1rem;
}
.gd-sala-dash-card:hover { color: #fff; border-color: #f59e0b; }
.gd-sala-dash-card strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.gd-sala-dash-card span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: #94a3b8;
}
.gd-sala-dash-card i {
  font-size: 1.75rem;
  color: #fbbf24;
}
.gd-sala-alert {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fde68a;
  line-height: 1.35;
}
.gd-sala-alert a { color: #fbbf24; font-weight: 800; }
.gd-sala-alert.is-error {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}
.gd-sala-alert.is-success {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}
.gd-sala-field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fca5a5;
}
.gd-sala-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.gd-sala-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-height: 5.25rem;
  padding: 1rem 0.95rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f8fafc;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.1s;
}
.gd-sala-action:active { transform: scale(0.98); }
.gd-sala-action i {
  font-size: 1.45rem;
  color: #fbbf24;
}
.gd-sala-action strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.gd-sala-action span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.3;
}
.gd-sala-action.is-primary {
  grid-column: 1 / -1;
  min-height: 5.75rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(255,255,255,0.06) 100%);
  border-color: rgba(245, 158, 11, 0.45);
}
.gd-sala-action.is-primary i { color: #f59e0b; }
.gd-sala-action.is-wide { grid-column: 1 / -1; }
.gd-sala-tv-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gd-sala-tv-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 700;
}
.gd-sala-tv-row:active { background: rgba(255,255,255,0.08); }
.gd-sala-tv-name {
  font-size: 0.95rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gd-sala-tv-code {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
}
.gd-sala-tv-row > i {
  font-size: 1.1rem;
  color: #64748b;
}

/* ?? Hor?rios do ecr? ?? */
.gd-horario-row {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gd-line);
}
.gd-horario-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}
.gd-horario-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.65rem;
}
@media (max-width: 640px) {
  .gd-horario-grid { grid-template-columns: 1fr 1fr; }
  .gd-horario-del { grid-column: 1 / -1; }
}
.gd-check-list-compact {
  max-height: 9rem;
  overflow: auto;
  padding: 0.35rem 0.15rem;
  border: 1px solid var(--gd-line);
  border-radius: 8px;
  background: #fafafa;
}
.gd-check-list-compact .gd-check-item {
  font-size: 0.84rem;
  padding: 0.2rem 0.45rem;
}
.gd-horario-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #f8f1db;
  color: #9a7408;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Sala  formulrios e ementa mobile */
.gd-sala-messages { padding: 0 1rem; }
.gd-sala-form { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 1rem; }
.gd-sala-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1rem;
}
.gd-sala-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #f8fafc;
}
.gd-sala-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
  font-size: 0.85rem;
}
.gd-sala-field input,
.gd-sala-field select,
.gd-sala-field textarea,
.gd-sala-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(15,23,42,0.85);
  color: #f8fafc;
  font-size: 1rem;
}
.gd-sala-checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gd-sala-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #e2e8f0;
  font-size: 0.88rem;
}
.gd-sala-check-block { margin-top: 0.75rem; }
.gd-sala-submit {
  width: 100%;
  padding: 0.85rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0f172a;
  font-weight: 800;
  font-size: 1rem;
}
.gd-sala-back, .gd-sala-link-btn {
  display: inline-block;
  text-align: center;
  color: #fbbf24;
  font-weight: 700;
  text-decoration: none;
}
.gd-sala-danger {
  width: 100%;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(248,113,113,0.5);
  background: transparent;
  color: #fca5a5;
  font-weight: 700;
}
.gd-sala-meta { color: #94a3b8; font-size: 0.85rem; margin: 0.35rem 0; }
.gd-sala-meta-foot { margin-top: 1.25rem; }
.gd-sala-meta a { color: #fbbf24; }
.gd-sala-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.gd-sala-cat-head h2 { margin: 0; }
.gd-sala-actions-compact { margin-bottom: 1rem; }
.gd-sala-ementa-item { flex-wrap: wrap; }
.gd-sala-ementa-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
  padding: 0 0.75rem 0.65rem 4.5rem;
}
.gd-sala-mini {
  min-height: 2.25rem;
  padding: 0 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(15,23,42,0.6);
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.78rem;
}
.gd-sala-mini.is-on {
  background: rgba(245,158,11,0.25);
  border-color: #f59e0b;
  color: #fde68a;
}
.gd-sala-empty-inline { color: #94a3b8; font-size: 0.88rem; padding: 0.5rem 0; }
.gd-sala-tag.is-muted { opacity: 0.65; }
.gd-sala-tv-static { cursor: default; }
.gd-sala-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.gd-sala-horario {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.gd-sala-form-inline { margin: 1rem 0; }

/* Onboarding wizard (dark public shell).
   Tabler/Bootstrap .btn is inline-flex + white-space:nowrap, so multi-line
   layout labels with <br>/<small> overflow and collide across the grid. */
body.gd-onboard .gd-onboard-wrap {
  max-width: 720px;
}
body.gd-onboard .gd-onboard-choice-btn,
body.gd-onboard .gd-onboard-layout-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.35rem;
  height: 100%;
  white-space: normal;
  text-align: left;
  overflow: hidden;
  line-height: 1.35;
  min-width: 0;
}
body.gd-onboard .gd-onboard-choice-btn {
  align-items: center;
  text-align: center;
}
body.gd-onboard .gd-onboard-choice-title,
body.gd-onboard .gd-onboard-layout-name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
body.gd-onboard .gd-onboard-choice-sub,
body.gd-onboard .gd-onboard-layout-desc {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.85;
  overflow-wrap: anywhere;
}
body.gd-onboard .gd-onboard-layout-meta {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
  overflow-wrap: anywhere;
}
body.gd-onboard .gd-onboard-tema label.btn {
  white-space: normal;
}

