/*
 * TurnoVoz — sistema visual común. Dirección A «Libro de servicio» (design/2026-10-24/selection.md).
 * Retícula de 8 px, paneles con radio y margen interior de 24 px, Inter para la interfaz y Baskerville para títulos.
 * Los módulos consumen estos tokens; support.css y live.css solo añaden piezas propias.
 */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Libre Baskerville (OFL), edición abierta de Baskerville, servida localmente con el nombre de familia del sistema. */
@font-face {
  font-family: "Baskerville";
  src: url("/fonts/libre-baskerville-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Baskerville", "Libre Baskerville", Georgia, serif;
  --size-12: 0.75rem;
  --size-14: 0.875rem;
  --size-16: 1rem;
  --size-20: 1.25rem;
  --size-28: 1.75rem;
  --size-36: 2.25rem;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --radius-panel: 24px;
  --radius-control: 16px;
  --radius-chip: 8px;
  --inset: 24px;
  --control-height: 48px;
  --sidebar-width: 248px;
  --content-max: 1440px;

  --surface-page: #f4f3ef;
  --surface-panel: #ffffff;
  --surface-sunken: #f1f2ed;
  --surface-selected: #e6eee8;
  --ink: #252a25;
  --ink-muted: #596057;
  --line: #dedfd7;
  --line-control: #868c82;
  --accent: #254f3d;
  --accent-hover: #193e2e;
  --accent-ink: #ffffff;
  --accent-soft: #e2ebe4;
  --focus: #2b5fa8;
  --danger-ink: #8a2f25;
  --danger-surface: #f8ebe8;
  --review-ink: #7a5212;
  --review-surface: #f8ebcf;
  --positive-ink: #24573b;
  --positive-surface: #e2efe5;
  --present-ink: #23507f;
  --present-surface: #e3ecf7;
  --seated-ink: #1d446d;
  --seated-surface: #cfddf0;
  --neutral-ink: #4d5157;
  --neutral-surface: #ecece8;
  --closed-ink: #5f625e;

  color-scheme: light;
  background: var(--surface-page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 100%;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100dvh;
  font-size: var(--size-16);
}
h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}
h1 {
  font-family: var(--font-display);
  font-size: var(--size-36);
  font-weight: var(--weight-regular);
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
h2 {
  font-family: var(--font-display);
  font-size: var(--size-20);
  font-weight: var(--weight-regular);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
h3 {
  font-size: var(--size-16);
  font-weight: var(--weight-strong);
  line-height: 1.4;
}
h4,
h5 {
  font-size: var(--size-14);
  font-weight: var(--weight-strong);
  line-height: 1.4;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
:disabled {
  cursor: not-allowed;
}
[aria-busy="true"],
[aria-busy="true"] :disabled {
  cursor: progress;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Shell ---------- */

.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
  padding: 8px 16px;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--size-14);
  font-weight: var(--weight-strong);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.app-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface-page);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: var(--content-max);
  min-height: 80px;
  margin: 0 auto;
  padding: 16px 40px;
}
.brand-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  font-size: var(--size-20);
  font-weight: var(--weight-strong);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-chip);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--size-14);
  letter-spacing: 2px;
}
.brand-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.restaurant-name {
  font-family: var(--font-display);
  font-size: var(--size-20);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.account-identity {
  max-width: 40ch;
  font-size: var(--size-12, 12px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.demo-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-control);
  border-radius: var(--radius-chip);
  color: var(--ink-muted);
  font-size: var(--size-12);
  font-weight: var(--weight-strong);
  letter-spacing: 0.06em;
}
#tagline {
  color: var(--ink-muted);
  font-size: var(--size-14);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-control);
  border-radius: var(--radius-control);
  background: var(--surface-panel);
  font-size: var(--size-14);
  font-weight: var(--weight-medium);
}
.nav-toggle::before {
  content: "";
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow:
    0 -5px 0 currentColor,
    0 5px 0 currentColor;
}
.nav-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
body[data-shell="sidebar"] .nav-toggle {
  display: inline-flex;
}
#navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
body[data-shell="sidebar"] #navigation.is-collapsed {
  display: none;
}
.nav-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.nav-group-label {
  padding: 0 16px 8px;
  color: var(--ink-muted);
  font-size: var(--size-12);
  font-weight: var(--weight-strong);
}
#navigation button {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-chip);
  color: var(--ink);
  font-size: var(--size-14);
  font-weight: var(--weight-medium);
  text-align: left;
}
#navigation button:hover:not(:disabled) {
  background: var(--surface-sunken);
}
#navigation button[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: var(--weight-strong);
}
main {
  container: main / inline-size;
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px 40px 64px;
}
main:focus {
  outline: none;
}
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: var(--size-12);
}

/* Staff y cuentas con pocos destinos: barra superior compacta, sin barra lateral. */
body[data-shell="compact"] .nav-group-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Admin en escritorio: barra lateral agrupada. */
@media (min-width: 1200px) {
  body[data-shell="sidebar"] {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
  }
  body[data-shell="sidebar"] > .app-header {
    position: sticky;
    top: 0;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    height: 100dvh;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  body[data-shell="sidebar"] > main,
  body[data-shell="sidebar"] > footer {
    grid-column: 2;
  }
  body[data-shell="sidebar"] .header-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 32px;
    min-height: 100%;
    padding: 32px 16px;
  }
  body[data-shell="sidebar"] .brand-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 8px;
  }
  body[data-shell="sidebar"] #navigation {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 24px;
  }
  body[data-shell="sidebar"] .nav-group {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }
  body[data-shell="sidebar"] #navigation button {
    width: 100%;
  }
}

/* Admin en tableta y móvil: menú desplegable que empuja el contenido, sin cubrir formularios. */
@media (max-width: 1199.98px) {
  body[data-shell="sidebar"] .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  body[data-shell="sidebar"] .brand-block {
    display: contents;
  }
  body[data-shell="sidebar"] .brand {
    grid-column: 1;
    grid-row: 1;
    flex-wrap: wrap;
    min-width: 0;
    justify-self: start;
  }
  body[data-shell="sidebar"] .brand-context {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  body[data-shell="sidebar"] .nav-toggle {
    grid-column: 2;
    grid-row: 1;
  }
  body[data-shell="sidebar"] #navigation {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    align-items: start;
    gap: 24px;
    padding: 16px 0 8px;
    border-top: 1px solid var(--line);
  }
  body[data-shell="sidebar"] .nav-group {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }
  body[data-shell="sidebar"] #navigation button {
    width: 100%;
  }
  .header-inner,
  main,
  footer {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 699.98px) {
  .header-inner {
    min-height: 64px;
    padding: 8px 16px;
    gap: 8px 16px;
  }
  .brand {
    gap: 8px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: var(--size-12);
  }
  .restaurant-name {
    font-size: var(--size-16);
  }
  #tagline {
    display: none;
  }
  main {
    padding: 24px 16px 48px;
  }
  footer {
    padding: 16px;
  }
  body[data-shell="sidebar"] #navigation {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-shell="compact"] #navigation {
    flex-basis: 100%;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-panel);
  }
  body[data-shell="compact"] .nav-group {
    flex: 1 1 auto;
    flex-wrap: nowrap;
  }
  body[data-shell="compact"] #navigation button {
    flex: 1 1 auto;
    justify-content: center;
    padding: 8px;
    text-align: center;
  }
}

/* ---------- Tipografía y textos ---------- */

.page-header,
.inbox-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 16px;
}
.page-header > div:first-child,
.inbox-heading > div:first-child {
  min-width: 0;
}
.inbox-heading .eyebrow + h1 {
  margin-top: 8px;
}
.inbox-heading .muted {
  margin: 8px 0 0;
}
.page-subtitle {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: var(--size-16);
  font-variant-numeric: tabular-nums;
}
.page-intro {
  max-width: 80ch;
}
.eyebrow {
  color: var(--ink-muted);
  font-size: var(--size-12);
  font-weight: var(--weight-strong);
  letter-spacing: 0.06em;
}
.lead {
  max-width: 440px;
  color: var(--ink-muted);
  line-height: 1.7;
}
.muted {
  margin: 8px 0 16px;
  color: var(--ink-muted);
  font-size: var(--size-14);
  line-height: 1.6;
}
.hint {
  color: var(--ink-muted);
  font-size: var(--size-14);
  font-weight: var(--weight-regular);
  line-height: 1.5;
}
.notice {
  margin: 16px 0;
  padding: 16px;
  border-radius: var(--radius-control);
  background: var(--surface-sunken);
  font-size: var(--size-14);
  line-height: 1.6;
}
.error {
  margin: 16px 0;
  padding: 16px;
  border-left: 4px solid var(--danger-ink);
  border-radius: var(--radius-chip);
  background: var(--danger-surface);
  color: var(--danger-ink);
  font-size: var(--size-14);
  line-height: 1.6;
}
.loading {
  padding: 16px 24px;
  border-radius: var(--radius-control);
  background: var(--surface-sunken);
  color: var(--ink-muted);
  font-size: var(--size-14);
}
.empty {
  padding: 24px;
  color: var(--ink-muted);
  font-size: var(--size-14);
}
.empty h2 {
  margin-bottom: 8px;
  color: var(--ink);
}
.empty .secondary {
  margin-top: 16px;
}

/* ---------- Componentes ---------- */

.panel {
  min-width: 0;
  padding: var(--inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-panel);
}
.panel > h2 {
  margin-bottom: 16px;
}
.panel > .eyebrow + h2 {
  margin-top: 8px;
}
fieldset {
  display: grid;
  gap: 24px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: var(--size-14);
  font-weight: var(--weight-medium);
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: var(--size-14);
  font-weight: var(--weight-medium);
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  padding: 11px 16px;
  border: 1px solid var(--line-control);
  border-radius: var(--radius-control);
  background: var(--surface-panel);
  font-size: var(--size-16);
  font-weight: var(--weight-regular);
  line-height: 1.5;
}
textarea {
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  flex: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}
input:disabled,
select:disabled,
textarea:disabled {
  background: var(--surface-sunken);
  color: var(--ink-muted);
}
input::placeholder,
textarea::placeholder {
  color: #6b7169;
}
.fields-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.schedule-check {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  font-weight: var(--weight-regular);
}
.table-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.table-choices legend {
  width: 100%;
}
.table-choices label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-panel);
  font-weight: var(--weight-regular);
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control-height);
  padding: 8px 24px;
  border-radius: var(--radius-control);
  font-size: var(--size-14);
  line-height: 1.4;
  text-align: center;
}
.primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: var(--weight-strong);
}
.primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
.secondary {
  border: 1px solid var(--line-control);
  background: var(--surface-panel);
  color: var(--ink);
  font-weight: var(--weight-medium);
}
.secondary:hover:not(:disabled) {
  background: var(--surface-sunken);
}
.primary:disabled {
  background: var(--neutral-surface);
  color: var(--neutral-ink);
}
.secondary:disabled {
  border-color: var(--line);
  background: var(--surface-sunken);
  color: var(--ink-muted);
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: var(--size-14);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button:disabled {
  color: var(--ink-muted);
  text-decoration: none;
}
fieldset > .primary,
fieldset > .secondary {
  justify-self: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-chip);
  background: var(--neutral-surface);
  color: var(--neutral-ink);
  font-size: var(--size-12);
  font-weight: var(--weight-strong);
  line-height: 1.3;
}
.badge[data-status="held"] {
  border: 1px dashed var(--review-ink);
  background: var(--surface-panel);
  color: var(--review-ink);
}
.badge[data-status="pending_review"] {
  background: var(--review-surface);
  color: var(--review-ink);
}
.badge[data-status="confirmed"] {
  background: var(--positive-surface);
  color: var(--positive-ink);
}
.badge[data-status="arrived"] {
  background: var(--present-surface);
  color: var(--present-ink);
}
.badge[data-status="seated"] {
  background: var(--seated-surface);
  color: var(--seated-ink);
}
.badge[data-status="cleaning"] {
  background: var(--neutral-surface);
  color: var(--neutral-ink);
}
.badge[data-status="completed"],
.badge[data-status="cancelled"],
.badge[data-status="no_show"],
.badge[data-status="expired"],
.badge[data-status="replaced"],
.badge[data-state="closed"] {
  border-color: var(--line-control);
  background: var(--surface-panel);
  color: var(--closed-ink);
}
.badge[data-severity="critical"] {
  background: var(--danger-surface);
  color: var(--danger-ink);
}
.badge[data-severity="warning"] {
  background: var(--review-surface);
  color: var(--review-ink);
}

/* Pares etiqueta/valor: una columna de lectura; referencias y contactos largos parten línea. */
.summary {
  margin: 16px 0;
  border-top: 1px solid var(--line);
  font-size: var(--size-14);
}
.summary > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 4px 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.summary dt {
  color: var(--ink-muted);
}
.summary dd {
  margin: 0;
  font-weight: var(--weight-medium);
  overflow-wrap: anywhere;
}

details {
  border-bottom: 1px solid var(--line);
  font-size: var(--size-14);
}
details > summary {
  padding: 12px 0;
  cursor: pointer;
  font-weight: var(--weight-medium);
}
details > p {
  padding-bottom: 16px;
  color: var(--ink-muted);
}

.list-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.guest {
  font-size: var(--size-16);
  font-weight: var(--weight-medium);
  overflow-wrap: anywhere;
}
.list-meta {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: var(--size-14);
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.audit {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.audit ol {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.audit li {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: var(--size-14);
}
.audit strong {
  color: var(--ink);
  font-weight: var(--weight-medium);
}

/* Barra de guardado: el botón sigue dentro del fieldset que se deshabilita y el estado queda a su lado. */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-panel);
}
.form-actions > [role="status"] {
  flex: 1 1 280px;
  margin: 0;
}
.form-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.panel .form-actions {
  margin: 8px calc(-1 * var(--inset)) calc(-1 * var(--inset));
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-panel) var(--radius-panel);
}
@media (min-width: 700px) and (min-height: 600px) {
  html {
    scroll-padding-bottom: 120px;
  }
  .form-actions {
    position: sticky;
    bottom: 16px;
    z-index: 1;
  }
  .panel .form-actions {
    bottom: 0;
  }
}

/* ---------- Acceso ---------- */

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 448px);
  align-items: center;
  gap: 64px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 0;
}
.intro h1 {
  margin: 16px 0 24px;
}
.manifesto {
  margin-top: 32px;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  color: var(--ink-muted);
  font-size: var(--size-14);
}
.login-panel {
  display: grid;
  gap: 16px;
  width: 100%;
}
.login-panel > * {
  margin: 0;
}
.login-panel > h2 {
  font-size: var(--size-28);
}
.login-panel .primary {
  width: 100%;
  margin-top: 8px;
}
.login-panel .primary span {
  margin-left: auto;
}
.support-link {
  font-size: var(--size-14);
  text-align: center;
}
.support-link a {
  display: inline-block;
  padding: 12px 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.support-link a:hover {
  color: var(--accent-hover);
}

/* ---------- Demo heredada de solicitudes ---------- */

.request-layout,
.inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 48px;
}
.request-layout h1 {
  margin: 16px 0 24px;
}
.request-layout .primary,
.recovery .primary {
  width: 100%;
}
.request-layout .primary span {
  margin-left: auto;
}
.voice-note {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius-panel);
  background: var(--accent-soft);
  font-size: var(--size-14);
}
.voice-note p {
  margin-top: 8px;
  line-height: 1.7;
}
.faq {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.faq .muted {
  margin-bottom: 16px;
}
.steps {
  display: flex;
  gap: 24px;
  margin: 0 0 32px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: var(--size-12);
  list-style: none;
}
.steps [aria-current="step"] {
  color: var(--accent);
  font-weight: var(--weight-strong);
}
#schedule-help {
  margin-top: -16px;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--positive-surface);
  color: var(--positive-ink);
  font-size: var(--size-20);
}
.reference {
  margin-bottom: 32px;
  overflow-wrap: anywhere;
}
.guest-name {
  overflow-wrap: anywhere;
}
.recovery h2 {
  margin-bottom: 16px;
}
.inbox-layout {
  margin-top: 24px;
  gap: 24px;
}
.request-list {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-panel);
}
.request-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.request-list li + li {
  border-top: 1px solid var(--line);
}
.request-list button {
  width: 100%;
  padding: 24px;
  border-left: 4px solid transparent;
  text-align: left;
}
.request-list button:hover {
  background: var(--surface-sunken);
}
.request-list button[aria-pressed="true"] {
  border-left-color: var(--accent);
  background: var(--surface-selected);
}
.request-list button:focus-visible {
  outline-offset: -3px;
}

/* ---------- Reservas ---------- */

.bookings > [role="status"] {
  margin: 0;
}
.booking-updated {
  margin-top: 8px;
}
.booking-label-short {
  display: none;
}
.booking-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 24px 0;
}
.booking-views {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-panel);
}
.booking-views .secondary {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-muted);
}
.booking-views .secondary[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: var(--weight-strong);
}
.booking-toolbar {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 16px;
}
.booking-toolbar > label {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.booking-toolbar > label input {
  width: auto;
  min-width: 176px;
}
.booking-search {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}
.booking-search label {
  flex: 1 1 280px;
}
.booking-flow {
  margin-bottom: 24px;
}
.booking-flow:empty {
  display: none;
}
.booking-flow .panel {
  display: grid;
  gap: 16px;
}
.booking-flow .panel > * {
  margin: 0;
}
.booking-receipt[data-tone="review"] {
  border-left: 4px solid var(--review-ink);
}
.booking-receipt[data-tone="confirmed"] {
  border-left: 4px solid var(--positive-ink);
}
.booking-receipt > .primary {
  justify-self: start;
}
.booking-receipt > .text-button {
  justify-self: start;
}
.booking-editor > form > fieldset {
  gap: 24px;
}
.booking-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.booking-options:empty {
  display: none;
}
.booking-options h3,
.booking-options p {
  flex-basis: 100%;
  margin: 0;
}
.booking-dietary {
  display: grid;
  gap: 16px;
}
.booking-dietary .adaptation-card > .text-button {
  justify-self: start;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "list"
    "detail"
    "blocks";
  align-items: start;
  gap: 24px;
}
.booking-list {
  grid-area: list;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-panel);
}
.booking-list:focus-visible {
  outline-offset: -3px;
}
.booking-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.booking-list li + li {
  border-top: 1px solid var(--line);
}
.booking-service {
  padding: 8px 24px;
  background: var(--surface-sunken);
  color: var(--ink-muted);
  font-size: var(--size-14);
  font-weight: var(--weight-strong);
}
.booking-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  width: 100%;
  min-height: 64px;
  padding: 8px 24px 8px 20px;
  border-left: 4px solid transparent;
  text-align: left;
}
.booking-row:hover {
  background: var(--surface-sunken);
}
.booking-row[aria-pressed="true"] {
  border-left-color: var(--accent);
  background: var(--surface-selected);
}
.booking-row[aria-pressed="true"] .badge {
  border-color: currentColor;
}
.booking-row:focus-visible {
  outline-offset: -3px;
}
.booking-time {
  display: grid;
  font-variant-numeric: tabular-nums;
}
.booking-hour {
  font-size: var(--size-20);
  font-weight: var(--weight-strong);
  line-height: 1.2;
}
.booking-date {
  color: var(--ink-muted);
  font-size: var(--size-14);
}
.booking-summary {
  display: grid;
  min-width: 0;
}
.booking-row .list-meta {
  margin: 0;
}
.booking-alert {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
  color: var(--danger-ink);
  font-size: var(--size-14);
  font-weight: var(--weight-medium);
}
.booking-alert::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: currentColor;
}
.booking-row .badge {
  justify-self: end;
  white-space: nowrap;
}
.booking-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}
.booking-pager p {
  color: var(--ink-muted);
  font-size: var(--size-14);
}

.booking-detail {
  grid-area: detail;
  display: grid;
  align-content: start;
  gap: 16px;
}
.booking-detail > * {
  margin: 0;
}
.booking-back {
  justify-self: start;
}
.booking-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.booking-detail-head h2 {
  min-width: 0;
  font-size: var(--size-28);
  line-height: 1.2;
}
.booking-detail h2:focus {
  outline: none;
}
.booking-detail h2:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.booking-keyline {
  margin-top: -8px;
  color: var(--ink-muted);
  font-size: var(--size-16);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.booking-detail form fieldset {
  gap: 16px;
}
.booking-detail .primary,
.booking-detail > .secondary {
  width: 100%;
}
.booking-dietary-summary {
  display: grid;
  gap: 8px;
}
.booking-dietary-summary > * {
  margin: 0;
}
.booking-detail .audit {
  margin: 0;
  padding-top: 16px;
}
.booking-detail .audit > .hint {
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.booking-blocks {
  grid-area: blocks;
  min-width: 0;
}
.booking-blocks:empty {
  display: none;
}
.booking-blocks .panel > h2 {
  margin-bottom: 8px;
}
.booking-block {
  display: grid;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.booking-block > p {
  margin: 0;
}
.booking-block form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}
.booking-block form label {
  flex: 1 1 240px;
}
.booking-blocks details {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.booking-blocks details form {
  padding-bottom: 8px;
}
.booking-blocks details fieldset {
  gap: 16px;
}

@container main (min-width: 840px) {
  .booking-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "list detail"
      "blocks detail";
  }
  .booking-blocks {
    align-self: start;
  }
  .booking-back {
    display: none;
  }
}
@container main (max-width: 699px) {
  .bookings .page-header {
    display: flex;
    align-items: center;
    gap: 8px 16px;
  }
  .bookings .page-header > div:first-child {
    display: contents;
  }
  .bookings .page-header h1 {
    flex: 1 1 auto;
    overflow-wrap: normal;
  }
  .bookings .page-subtitle {
    flex: 1 1 100%;
    order: 1;
    margin-top: 0;
  }
  .bookings .page-header > .booking-refresh {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 16px;
  }
  .booking-label-full {
    display: none;
  }
  .booking-label-short {
    display: inline;
  }
  .booking-toolbar-row {
    align-items: stretch;
    gap: 16px;
    margin: 16px 0;
  }
  .booking-views {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    scroll-padding: 4px;
    scrollbar-width: thin;
  }
  .booking-views .secondary {
    flex: 1 0 auto;
    padding: 0 8px;
    white-space: nowrap;
    scroll-margin: 4px;
  }
  .booking-toolbar {
    flex: 1 1 100%;
    align-items: stretch;
    gap: 8px;
  }
  .booking-toolbar > .secondary {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px;
  }
  .booking-toolbar > label {
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    white-space: normal;
  }
  .booking-toolbar > label input {
    flex: 1 1 10rem;
    width: auto;
    min-width: 0;
  }
  .booking-search {
    flex: none;
    width: 100%;
  }
  .booking-search label {
    flex: 1 1 100%;
  }
  .booking-search .secondary {
    flex: 1 1 auto;
  }
  .booking-block form {
    flex-direction: column;
    align-items: stretch;
  }
  .booking-pager .secondary {
    width: 100%;
  }
}
@container main (max-width: 559px) {
  .booking-row {
    grid-template-columns: 4rem minmax(0, 1fr);
    min-height: 56px;
    padding: 16px 16px 16px 12px;
  }
  .booking-row .badge {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .booking-service {
    padding: 8px 16px;
  }
}

/* ---------- Formularios de configuración ---------- */

.inventory form > fieldset,
.schedule-editor form > fieldset,
.menu-editor form > fieldset {
  gap: 24px;
}
.inventory-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.inventory-section-heading h2,
.inventory-section-heading h3 {
  margin: 0;
}
.inventory-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.inventory-table .text-button {
  grid-column: 1 / -1;
  justify-self: start;
}
.inventory-combination {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.inventory-combination > .text-button {
  justify-self: start;
}
.inventory-combination-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.inventory .panel > .notice,
.inventory .panel > .muted,
.inventory .panel > .hint {
  margin: 0 0 16px;
}
.inventory fieldset > .notice {
  margin: 0;
}
@container main (min-width: 760px) {
  .inventory-table {
    grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.25fr) auto;
    padding: 8px 0;
  }
  .inventory-table .text-button {
    grid-column: auto;
    min-height: var(--control-height);
  }
  /* Rejilla compacta: las etiquetas de la primera fila hacen de cabecera; las demás siguen asociadas al campo. */
  .inventory-table ~ .inventory-table .field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .inventory-table ~ .inventory-table {
    border-top-style: dashed;
  }
  .inventory-combination-fields {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.schedule-durations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 16px;
}
.schedule-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.schedule-fields > label:first-child {
  grid-column: 1 / -1;
}
.service-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 16px;
  padding: 24px;
  border-radius: var(--radius-control);
  background: var(--surface-sunken);
}
.service-card > .text-button {
  justify-self: start;
}
.schedule-exception {
  min-width: 0;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.schedule-exception .actions {
  flex-wrap: wrap;
}
.schedule-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.schedule-days legend {
  width: 100%;
}
.schedule-days .schedule-check {
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-panel);
}
.schedule-editor .panel > .muted,
.schedule-editor .panel > .notice {
  margin: 0 0 16px;
}
.schedule-editor .panel > .hint {
  margin-top: 8px;
}

.dish-card {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.dish-card > .text-button {
  justify-self: start;
}
.adaptation-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-control);
  background: var(--surface-sunken);
}
.adaptation-card > .text-button {
  justify-self: start;
}
.menu-editor .notice,
.menu-editor .hint {
  margin: 0;
}
.menu-editor .panel > h2 + label {
  margin-top: 8px;
}
.menu-editor .panel > .hint {
  margin-top: 8px;
}
.menu-preview {
  margin-top: 24px;
}
.menu-info {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.menu-info > * {
  margin: 0;
}

.policy-editor > .panel,
.policy-editor form.panel {
  max-width: 960px;
}
.policy-editor fieldset > .hint {
  margin-top: -16px;
}

@container main (max-width: 699px) {
  .fields-row,
  .schedule-durations {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .schedule-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-card,
  .adaptation-card {
    padding: 16px;
  }
  .form-actions {
    padding: 16px;
  }
  .form-actions .primary,
  .form-actions .secondary,
  .form-actions-buttons {
    width: 100%;
  }
}

/* ---------- Conversaciones ---------- */

.calls-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin: 24px 0;
}
.calls-toolbar > label {
  flex: 1 1 224px;
  max-width: 320px;
}
.calls-metrics {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: var(--radius-panel);
  background: var(--surface-sunken);
  font-size: var(--size-14);
  font-variant-numeric: tabular-nums;
}
.calls-metrics > * {
  margin: 0;
}
.calls-metrics:empty {
  display: none;
}
.calls-layout {
  display: grid;
  align-items: start;
  gap: 24px;
}
.calls-list,
.calls-detail {
  min-width: 0;
}
.calls-list:empty,
.calls-detail:empty {
  display: none;
}
.calls-list {
  padding: 0;
  overflow: hidden;
}
.calls-detail {
  display: grid;
  gap: 16px;
}
.calls-detail > * {
  margin: 0;
}
.calls-detail > h3:focus {
  outline: none;
}
.calls-detail > h3:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.call-summary {
  margin: 8px 0 0;
}
.call-summary-group {
  display: grid;
  gap: 8px;
}
.call-summary-group + .call-summary-group {
  margin-top: 16px;
}
.call-summary-group > .muted {
  margin: 0;
}
.call-booking-state {
  display: grid;
  gap: 8px;
}
.call-booking-state > * {
  margin: 0;
}
.call-transcript {
  max-width: 100%;
  min-width: 0;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.call-turn {
  padding: 8px 0;
}
.call-turn h5 {
  margin: 0 0 8px;
  color: var(--accent);
}
.call-turn p {
  margin: 0;
  white-space: pre-wrap;
}
.call-tool-detail {
  max-width: 100%;
  min-width: 0;
}
.call-tool-detail pre {
  max-height: 320px;
  margin: 0 0 16px;
  padding: 16px;
  overflow: auto;
  border-radius: var(--radius-control);
  background: var(--surface-sunken);
  font-size: var(--size-14);
}
audio {
  max-width: 100%;
}
@container main (min-width: 960px) {
  .calls-layout:has(> .calls-detail:not(:empty)) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }
}

/* ---------- Equipo, cuenta y tarjetas de registro ---------- */

.account-form {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-panel);
}
.account-form > * {
  margin: 0;
}
.account-form > .primary,
.account-form > .secondary {
  justify-self: start;
}
.account-form h3 {
  overflow-wrap: anywhere;
}
.account-content {
  display: grid;
  gap: 24px;
}
.account-content > p {
  margin: 0;
}
.account-content > form:not([data-account]) {
  max-width: 720px;
}
.account-page > .account-form {
  max-width: 560px;
}
.account-page > [role="status"]:empty {
  display: none;
}
@container main (min-width: 880px) {
  .account-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-content > :not([data-account]) {
    grid-column: 1 / -1;
  }
}

/* Filas de conversación (panel admin y portal de soporte): lista separada por líneas, no tarjetas. */
.call-row {
  gap: 8px;
  padding: 24px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.call-row:first-child {
  border-top: 0;
}
.call-row h3 {
  font-size: var(--size-16);
}
.call-row > p {
  font-size: var(--size-14);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* ---------- Estado del servicio ---------- */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}
.status-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-panel);
}
.status-card h3 {
  color: var(--ink-muted);
  font-size: var(--size-14);
  font-weight: var(--weight-medium);
}
.status-state {
  font-size: var(--size-16);
  font-weight: var(--weight-strong);
  overflow-wrap: anywhere;
}
.status-card[data-tone="ok"] .status-state {
  color: var(--positive-ink);
}
.status-card[data-tone="warning"] {
  border-color: #ecdcc0;
  background: #fbf5ea;
}
.status-card[data-tone="warning"] .status-state {
  color: var(--review-ink);
}
.status-card[data-tone="critical"] {
  border-color: #ebcdc7;
  background: var(--danger-surface);
}
.status-card[data-tone="critical"] .status-state {
  color: var(--danger-ink);
}
.status-card[data-tone="unknown"] {
  border-style: dashed;
  border-color: var(--line-control);
}
.status-card[data-tone="unknown"] .status-state {
  color: var(--ink-muted);
}
.operations-panel .loading {
  margin-top: 24px;
}
.ops-alerts {
  padding: var(--inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-panel);
}
.ops-alerts:empty {
  display: none;
}
.ops-alerts .muted {
  margin: 8px 0 16px;
}
.ops-alert-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ops-alert {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.ops-alert strong {
  font-size: var(--size-14);
  font-weight: var(--weight-medium);
  overflow-wrap: anywhere;
}

/* ---------- Telefonía ---------- */

.phone-layout {
  display: grid;
  align-items: start;
  gap: 24px;
}
.phone-setup {
  display: grid;
  gap: 16px;
}
.phone-setup > * {
  margin: 0;
}
.phone-setup .summary dd {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Marca neutra: relleno = configurado, hueco = sin configurar, discontinuo = desconocido. Nunca color de éxito. */
.phone-setup .summary dd::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink-muted);
  border-radius: 50%;
}
.phone-setup .summary dd[data-state="set"]::before {
  background: var(--ink-muted);
}
.phone-setup .summary dd[data-state="unknown"]::before {
  border-style: dashed;
}
.phone-transfer form > fieldset {
  gap: 16px;
}
.phone-transfer form > h2 {
  margin-bottom: 8px;
}
.phone-transfer form > .muted {
  margin: 0 0 24px;
}
.phone-transfer fieldset > .hint {
  margin-top: -8px;
}
.phone-transfer fieldset > .notice {
  margin: 0;
}
@container main (min-width: 960px) {
  .phone-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }
}

/* ---------- Adaptaciones por ancho disponible ---------- */

@container main (max-width: 759px) {
  .login-layout,
  .request-layout,
  .inbox-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .login-layout {
    padding: 0;
  }
  .request-layout .lead {
    max-width: none;
  }
  .steps {
    justify-content: space-between;
    gap: 8px;
  }
}
@container main (max-width: 559px) {
  h1 {
    font-size: var(--size-28);
  }
  .panel {
    padding: 16px;
  }
  .panel .form-actions {
    margin: 8px -16px -16px;
  }
  .page-header > .secondary,
  .inbox-heading > .secondary {
    width: 100%;
  }
  .booking-detail-head h2 {
    font-size: var(--size-20);
  }
  .summary > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
