/* ============================================================
   Cores das marcas
   Skoretech (extraídas de skoretech.com.br): azul #002975 / #001a4a, verde #34a348
   BC3 Soluções: ajuste --bc3-primary / --bc3-accent com as cores oficiais
   ============================================================ */
:root {
  --sk-navy: #002975;
  --sk-navy-dark: #001a4a;
  --sk-green: #34a348;
  --sk-green-dark: #2a8a3b;
  --sk-gray: #4c5159;

  --bc3-primary: #0d597f;   /* azul oficial BC3 (logo do helpdesk BC3) */
  --bc3-accent: #4c5159;

  /* Escala tipográfica (mesmos tamanhos do Tailwind) */
  --font-sans: "Poppins", ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  --text-xs: .75rem;    /* 12px */
  --text-sm: .875rem;   /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem;  /* 36px */

  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #737981;
  --border: #dce3ec;
  --danger: #b94a48;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(0, 26, 74, .12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html {
  -webkit-text-size-adjust: 100%; /* iPhone não aumenta o texto ao girar */
  text-size-adjust: 100%;
}
/* sem zoom de toque duplo no iPhone (arrastar e tocar no calendário continuam normais) */
body, button, a, input, textarea, select, label, .fc { touch-action: manipulation; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2 { color: var(--sk-navy-dark); margin: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
code { background: #eef4ff; padding: 1px 5px; border-radius: 4px; }

/* ---------- inputs & botões ---------- */
label, legend { font-weight: 600; font-size: var(--text-sm); color: var(--sk-gray); }
input, textarea, select {
  width: 100%;
  font: inherit;
  font-size: max(16px, var(--text-base)); /* iPhone dá zoom em campo com fonte < 16px — nunca diminuir */
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--sk-green);
  box-shadow: 0 0 0 3px rgba(52, 163, 72, .18);
}
.btn {
  font: inherit; font-weight: 700; font-size: var(--text-base);
  border: 0; border-radius: 10px;
  padding: 11px 18px; cursor: pointer;
  transition: background .15s, transform .05s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-primary { background: var(--sk-green); color: #fff; }
.btn-primary:hover { background: var(--sk-green-dark); }
.btn-ghost { background: transparent; color: var(--sk-navy); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: #eef4ff; }
.btn-danger { background: transparent; color: var(--danger); border: 1.5px solid #ecc8c7; }
.btn-danger:hover { background: #fbeeee; }
.btn-link { background: none; color: var(--sk-navy); padding: 6px; font-weight: 600; }
.btn-sm { padding: 7px 12px; font-size: var(--text-sm); }
.icon-btn { background: none; border: 0; font-size: var(--text-2xl); line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }

.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spacer { flex: 1; }
.form-msg { min-height: 1.2em; margin: 0; font-size: var(--text-sm); color: var(--danger); }
.form-msg.ok { color: var(--sk-green-dark); }
.dialog .form-msg:empty, #bk-owner:empty { display: none; }

/* ---------- marcas ---------- */
.brands { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-logo-bc3 { height: 36px; }
.brand-logo-h5 { height: 30px; }
.brand-sep { width: 1px; height: 26px; background: var(--border); }
.brand-bc3 { font-weight: 800; font-size: var(--text-lg); color: var(--bc3-primary); letter-spacing: .02em; white-space: nowrap; }
.brand-bc3 small { font-weight: 600; color: var(--bc3-accent); font-size: var(--text-xs); }

/* ---------- login ---------- */
.login {
  min-height: 100%;
  display: grid; place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(1200px 500px at 110% -10%, rgba(52,163,72,.25), transparent 60%),
    linear-gradient(160deg, var(--sk-navy-dark), var(--sk-navy));
}
.login-card {
  width: 100%; max-width: 410px;
  background: var(--surface);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--sk-green);
}
.login-card .brands { margin-bottom: 22px; justify-content: center; flex-wrap: wrap; gap: 10px 12px; }
.login-card .brand-logo { height: 22px; }
.login-card .brand-logo-bc3 { height: 30px; }
.login-card .brand-logo-h5 { height: 24px; }
.login-card .brand-sep { height: 22px; }
.login-card h1 { font-size: var(--text-2xl); margin-bottom: 4px; }
.login-card p.muted { margin: 0 0 18px; }
.code-input { font-size: var(--text-3xl); letter-spacing: .5em; text-align: center; font-weight: 800; color: var(--sk-navy); }

/* ---------- app ---------- */
.app { height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px;
  background: var(--surface);
  border-bottom: 4px solid var(--sk-green);
}
.topbar-title {
  flex: 1; font-weight: 800; color: var(--sk-navy); font-size: var(--text-lg);
  padding-left: 16px; border-left: 1px solid var(--border);
}
.topbar-user { display: flex; align-items: center; gap: 8px; }
.user-email { color: var(--sk-gray); font: inherit; font-size: var(--text-sm); font-weight: 600; background: none; border: 0; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.user-email:hover { background: #eef4ff; }

.dialog-wide { width: min(680px, calc(100vw - 24px)); }
.dialog-wide.xl { width: min(920px, calc(100vw - 24px)); }

/* ---------- aba E-mail ---------- */
.panel { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.panel h3 { margin: 0; font-size: var(--text-sm); font-weight: 700; color: var(--sk-navy-dark); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: 1 / -1; }
.row.wrap { flex-wrap: wrap; align-items: center; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; padding-bottom: 12px; }
.check input { width: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.mode-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-pick label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; color: var(--text); font-size: var(--text-sm); }
.mode-pick input { width: auto; margin: 0; accent-color: var(--sk-green); }
.mode-pick label:has(input:checked) { border-color: var(--sk-green); background: rgba(52,163,72,.06); font-weight: 700; }
.howto { background: #f7f9fc; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.howto ol { margin: 8px 0 4px; padding-left: 20px; font-size: var(--text-xs); line-height: 1.6; color: var(--sk-gray); }
.howto li { margin-bottom: 6px; }
.howto pre { margin: 6px 0 0; background: #0f172a; color: #e2e8f0; padding: 10px; border-radius: 8px; font-size: 11px; overflow-x: auto; white-space: pre; }
.result { margin: 0; padding: 8px 12px; border-radius: 8px; font-size: var(--text-sm); line-height: 1.45; word-break: break-word; }
.result.ok { background: #ecfdf3; color: #166534; }
.result.err { background: #fef2f2; color: #b91c1c; }
.mail-status { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: var(--text-sm); font-weight: 600; }
.mail-status.ok { background: #ecfdf3; color: #166534; }
.mail-status.warn { background: #fffbeb; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; border-radius: 6px; padding: 1px 6px; font-size: var(--text-xs); font-weight: 700; margin-left: 6px; }
.filters { gap: 4px 12px; }
.link { background: none; border: 0; padding: 2px 0; font: inherit; font-size: var(--text-xs); font-weight: 600; color: var(--sk-navy); cursor: pointer; }
.link:hover { text-decoration: underline; }
.link.active { color: var(--sk-green-dark); text-decoration: underline; }
.link.danger { color: var(--danger); }
.out-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; max-height: 50vh; overflow: auto; }
.out-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: var(--text-sm); }
.out-list li:last-child { border-bottom: 0; }
.out-list .subj { font-weight: 600; color: var(--sk-navy-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out-list .meta { color: var(--muted); font-size: var(--text-xs); }
.out-list .err { grid-column: 1 / -1; color: #b91c1c; font-size: var(--text-xs); background: #fef2f2; border-radius: 6px; padding: 6px 8px; word-break: break-word; }
.out-list .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.out-list .side .acts { display: flex; gap: 6px; }
.out-list .side .btn { padding: 4px 10px; font-size: var(--text-xs); }
.pill { border-radius: 6px; padding: 2px 8px; font-size: var(--text-xs); font-weight: 700; white-space: nowrap; }
.pill.SENT { background: #dcfce7; color: #166534; }
.pill.PENDING { background: #f1f5f9; color: #334155; }
.pill.FAILED { background: #fee2e2; color: #991b1b; }
.pill.LOGGED { background: #fef3c7; color: #92400e; }
.tabs { display: flex; gap: 4px; background: #e6ecf5; padding: 4px; border-radius: 12px; }
.tabs button { flex: 1; font: inherit; font-weight: 700; font-size: var(--text-sm); border: 0; background: transparent; color: var(--sk-gray); padding: 8px; border-radius: 9px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--sk-navy-dark); box-shadow: 0 1px 4px rgba(0,26,74,.12); }
.grid-user { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.grid-room { display: grid; grid-template-columns: 1fr 150px 54px; gap: 8px; }
input[type="color"] { padding: 3px; height: 46px; cursor: pointer; }
.allow-list .who { display: flex; flex-direction: column; min-width: 0; }
.allow-list .who strong { font-weight: 700; color: var(--sk-navy-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.allow-list .who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.allow-list .who em { color: var(--danger); font-style: normal; font-size: var(--text-xs); }
.allow-list .acts { display: flex; gap: 6px; flex: none; align-items: center; }
.allow-list .btn-ghost { padding: 4px 10px; font-size: var(--text-xs); }
.allow-list li.off { opacity: .55; }
.allow-list .swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; margin-right: 10px; }
.allow-list .left { display: flex; align-items: center; min-width: 0; }

.toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px;
  padding: 12px 20px 4px;
}
.room-filter {
  display: inline-flex; background: #e6ecf5; padding: 4px; border-radius: 12px; gap: 4px;
  overflow-x: auto; max-width: 100%;
}
.room-filter button {
  font: inherit; font-weight: 700; font-size: var(--text-sm);
  border: 0; background: transparent; color: var(--sk-gray);
  padding: 8px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.room-filter button[aria-selected="true"] { background: #fff; color: var(--sk-navy-dark); box-shadow: 0 1px 4px rgba(0,26,74,.12); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.hint { margin: 0; font-size: var(--text-sm); color: var(--muted); }

.cal-wrap { flex: 1; min-height: 0; padding: 8px 20px 20px; }
#calendar {
  height: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 1px 6px rgba(0, 26, 74, .06);
}

.fab {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  border: 0; background: var(--sk-green); color: #fff;
  font-size: var(--text-3xl); line-height: 1; cursor: pointer;
  box-shadow: 0 6px 18px rgba(52,163,72,.45);
  display: none; z-index: 5;
}

/* ---------- FullCalendar tema ---------- */
.fc {
  --fc-border-color: #e3e8ef;
  --fc-button-bg-color: #fff;
  --fc-button-border-color: var(--border);
  --fc-button-text-color: var(--sk-navy);
  --fc-button-hover-bg-color: #eef4ff;
  --fc-button-hover-border-color: var(--border);
  --fc-button-active-bg-color: var(--sk-navy);
  --fc-button-active-border-color: var(--sk-navy);
  --fc-today-bg-color: rgba(52, 163, 72, .07);
  --fc-now-indicator-color: var(--sk-green);
  --fc-highlight-color: rgba(52, 163, 72, .22);
  --fc-event-border-color: transparent;
  font-size: var(--text-sm);
}
.fc .fc-button { font-weight: 700; border-radius: 9px !important; padding: .45em .8em; box-shadow: none !important; text-transform: capitalize; }
.fc .fc-button-group { gap: 4px; }
.fc .fc-button-primary:not(:disabled).fc-button-active { color: #fff; }
.fc .fc-toolbar-title { font-size: var(--text-lg); font-weight: 800; color: var(--sk-navy-dark); }
.fc .fc-toolbar-title::first-letter { text-transform: uppercase; }
.short-name { display: none; }
.fc .fc-col-header-cell-cushion { color: var(--sk-gray); font-weight: 700; text-transform: capitalize; padding: 8px 4px; }
.fc .fc-timegrid-slot-label-cushion { color: var(--muted); font-size: var(--text-xs); }
.fc .fc-timegrid-slot { height: 2.1em; }
.fc .fc-daygrid-day-number { color: var(--sk-gray); font-weight: 600; }
.fc-event { border-radius: 7px !important; padding: 1px 3px; cursor: pointer; }
.fc-event.other { opacity: .78; }
.fc-event.mine { box-shadow: inset 3px 0 0 rgba(255,255,255,.75); }
.ev-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-meta { font-size: var(--text-xs); opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc .fc-highlight { border-radius: 6px; }

/* visão Lista (agenda do mês) */
.fc .fc-list { border-radius: 10px; overflow: hidden; }
.fc .fc-list-day-cushion { background: #f3f6fb; padding: 8px 14px; }
.fc .fc-list-day-text { display: inline-block; color: var(--sk-navy-dark); font-weight: 700; text-decoration: none; }
.fc .fc-list-day-text::first-letter { text-transform: uppercase; }
.fc .fc-list-event { cursor: pointer; }
.fc .fc-list-event td { padding: 10px 14px; vertical-align: middle; }
.fc .fc-list-event-time { color: var(--sk-gray); font-weight: 600; white-space: nowrap; font-size: var(--text-sm); }
.fc .fc-list-event-title { color: var(--text); }
.fc .fc-list-event-title .ev-title { font-weight: 700; color: var(--sk-navy-dark); white-space: normal; }
.fc .fc-list-event-title .ev-meta { color: var(--muted); opacity: 1; white-space: normal; font-size: var(--text-xs); }
.fc .fc-list-event-dot { border-width: 6px; border-radius: 50%; }
.fc .fc-list-event:hover td { background: #f7f9fc; }
.fc .fc-list-empty { background: #fff; color: var(--muted); }

/* bolinha do mês no celular */
.ev-dot { display: block; width: 8px; height: 8px; border-radius: 50%; }

/* fundo não rola enquanto um modal está aberto */
html:has(dialog[open]) { overflow: hidden; }

/* ---------- dialogs ---------- */
.dialog {
  width: min(520px, calc(100vw - 24px));
  border: 0; border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow);
  color: var(--text);
}
.dialog::backdrop { background: rgba(0, 26, 74, .45); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { font-size: var(--text-xl); }
.dialog-actions { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.room-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.room-pick legend { margin-bottom: 6px; }
.room-pick label {
  flex: 1; min-width: 150px;
  display: flex; align-items: center; gap: 8px;
  padding: 11px 12px; border: 1.5px solid var(--border); border-radius: 10px;
  cursor: pointer; color: var(--text); font-size: var(--text-sm);
}
.room-pick input { width: auto; margin: 0; accent-color: var(--sk-green); }
.room-pick label:has(input:checked) { border-color: var(--sk-green); background: rgba(52,163,72,.06); }
details summary { cursor: pointer; color: var(--sk-navy); font-weight: 600; font-size: var(--text-sm); padding: 4px 0; }
details textarea { margin-top: 8px; }

.allow-list { list-style: none; margin: 0; padding: 0; max-height: 45vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.allow-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: var(--text-sm); }
.allow-list li:last-child { border-bottom: 0; }
.allow-list .tag { font-size: var(--text-xs); font-weight: 700; color: var(--sk-navy); background: #eef4ff; border-radius: 6px; padding: 2px 6px; }
.allow-list button { padding: 4px 10px; font-size: var(--text-xs); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px);
  background: var(--sk-navy-dark); color: #fff;
  padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow);
  font-weight: 600; font-size: var(--text-sm); max-width: calc(100vw - 32px);
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .topbar { padding: 8px 12px; gap: 8px; }
  .topbar-title { display: none; }
  .brands { gap: 8px; }
  .brand-logo { height: 20px; }
  .brand-logo-bc3 { height: 26px; }
  .brand-logo-h5 { height: 20px; }
  .topbar .brand-logo { height: 16px; }
  .topbar .brand-logo-bc3 { height: 22px; }
  .topbar .brand-logo-h5 { height: 17px; }
  .topbar .brand-sep { height: 18px; }
  .topbar .brands { gap: 6px; }
  .brand-bc3 { font-size: var(--text-base); }
  .topbar .brand-bc3 small { display: none; }
  .topbar .brands { flex: 1; min-width: 0; }
  .topbar-user { gap: 6px; }
  .topbar-user .btn-sm { padding: 6px 10px; font-size: var(--text-xs); }
  .full-name { display: none; }
  .short-name { display: inline; }
  .user-email { display: none; }
  .toolbar { padding: 10px 16px 2px; }
  .room-filter { width: 100%; }
  .room-filter button { flex: 1; justify-content: center; padding: 8px 6px; font-size: var(--text-xs); }
  .hint { font-size: var(--text-xs); }
  .cal-wrap { padding: 6px 8px 8px; }
  #calendar { padding: 6px; border-radius: 10px; }
  .fc { font-size: var(--text-xs); }
  .fc .fc-toolbar { gap: 6px; }
  .fc .fc-toolbar-title { font-size: var(--text-base); }
  .fc .fc-header-toolbar { margin-bottom: .6em !important; }
  .fab { display: block; }
  .grid-2, .grid-user { grid-template-columns: 1fr; }
  .grid-room { grid-template-columns: 1fr 54px; }
  .grid-room #room-name { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .out-list li { grid-template-columns: 1fr; }
  .out-list .side { flex-direction: row; align-items: center; justify-content: space-between; }
  .allow-list li { flex-wrap: wrap; }
  /* mês no celular: bolinhas lado a lado; tocar em qualquer lugar do dia abre o dia */
  .fc-dayGridMonth-view .fc-daygrid-day-events { display: flex; flex-wrap: wrap; gap: 3px; padding: 2px 4px 4px; min-height: 0; }
  .fc-dayGridMonth-view .fc-daygrid-event-harness { margin: 0 !important; position: static !important; visibility: visible !important; }
  .fc-dayGridMonth-view .fc-daygrid-event { background: none !important; border: 0 !important; padding: 0; margin: 0 !important; pointer-events: none; box-shadow: none; }
  .fc-dayGridMonth-view .fc-daygrid-day-bottom { display: none; }
  .fc-dayGridMonth-view .fc-daygrid-day-number { font-size: var(--text-sm); padding: 4px 6px; }
  .fc-dayGridMonth-view .fc-daygrid-day-frame { min-height: 0; }
  .fc .fc-list-event td { padding: 10px; }
  .fc .fc-list-table { margin-bottom: 76px; } /* espaço para o botão + não cobrir o último item */

  /* modal em tela cheia no celular: não "pula" quando o teclado abre ou ao trocar de campo */
  .dialog, .dialog-wide, .dialog-wide.xl {
    width: 100%; max-width: 100%;
    height: 100%; max-height: 100%;
    margin: 0; inset: 0;
    border-radius: 0;
    padding: 0 16px calc(12px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
  .dialog .dialog-head {
    position: sticky; top: 0; z-index: 3;
    background: #fff;
    margin: 0 -16px; padding: calc(12px + env(safe-area-inset-top)) 16px 10px;
    border-bottom: 1px solid var(--border);
  }
  .dialog-actions {
    position: sticky; bottom: calc(-12px - env(safe-area-inset-bottom)); z-index: 3;
    background: #fff;
    margin: 4px -16px 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
  }
  .dialog-actions .btn { flex: 1; }
  .dialog-actions .spacer { display: none; }
  #form-booking { min-height: 100%; }
  #form-booking .dialog-actions { margin-top: auto; }
}
