/* Noche TMC. Shared presentation only: permissions and business state stay in JS/API. */
@font-face {
  font-family: "TMC DM Sans";
  src: url("/assets/dm-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --noche-background: #111513;
  --noche-header: #0d110e;
  --noche-surface: #1a201c;
  --noche-raised: #222a23;
  --noche-selected: #303025;
  --noche-gold: #c8a451;
  --noche-gold-hover: #dcbb72;
  --noche-on-gold: #171b15;
  --noche-green-bg: #263c2e;
  --noche-green: #b1d3bc;
  --noche-blue-bg: #25343f;
  --noche-blue: #b5cbdc;
  --noche-amber-bg: #39311f;
  --noche-amber: #e9ca83;
  --noche-red-bg: #3d2928;
  --noche-red: #efb8af;
  --ink: #f1eee5;
  --muted: #a7b0a4;
  --line: #343b32;
  --accent: #d6b369;
  --green: var(--noche-green);
  --red: var(--noche-red);
  color: var(--ink);
  background: var(--noche-background);
  font-family: "TMC DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

body { background: var(--noche-background); color: var(--ink); }
::selection { background: #786334; color: #fff7e3; }
button, input, select, textarea { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--noche-gold-hover);
  outline-offset: 4px;
}
input, select, textarea {
  background: var(--noche-background);
  border-color: #4a5346;
  border-radius: 7px;
  color: var(--ink);
  font-size: 13px;
  min-height: 42px;
  padding: 10px 12px;
}
input::placeholder, textarea::placeholder { color: #97a38f; opacity: 1; }
input:disabled, select:disabled, textarea:disabled { color: var(--muted); background: var(--noche-raised); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--noche-gold); }
option, optgroup { background: var(--noche-surface); color: var(--ink); }
label { color: #ced4c9; font-size: 12px; font-weight: 500; }
fieldset { min-width: 0; border-color: var(--line); }
legend { color: var(--ink); padding: 0 5px; }
a { color: var(--accent); }
summary { cursor: pointer; color: var(--ink); }
summary::marker { color: var(--accent); }
small { font-size: 12px; }
hr { border: 0; border-top: 1px solid var(--line); }

/* Horizontal application shell and the approved TMC / by NETA lockup. */
.shell { display: block; min-height: 100vh; }
.sidebar {
  position: static;
  inset: auto;
  width: 100%;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 15px 24px;
  padding: 24px max(28px, calc((100vw - 1488px) / 2)) 0;
  background: var(--noche-header);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.brand-lockup { width: 246px; max-width: 100%; }
.brand-lockup .tmc-logo { display: block; width: 100%; height: auto; }
.brand-signature {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #d2d4ca;
  font-size: 11px;
  line-height: 1;
  margin-top: 9px;
}
.brand-signature img { display: block; width: 59px; height: auto; }
.topbar-user { display: flex; align-items: center; justify-content: flex-end; }
.sidebar #module-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
  min-width: 0;
}
.sidebar .module-nav {
  width: auto;
  min-height: 45px;
  margin: 0;
  padding: 12px 15px;
  gap: 8px;
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #b6c0af;
  font-size: 13px;
  font-weight: 500;
}
.sidebar .module-nav span { color: #a8b39f; font-size: 16px; }
.sidebar .module-nav:hover { background: #192019; color: var(--ink); }
.sidebar .module-nav.active { background: transparent; border-bottom-color: var(--noche-gold); color: #e6ca8b; }
.sidebar .module-nav.active span { color: #e6ca8b; }
.sidebar .workspace { background: var(--noche-surface); border-color: var(--line); margin: 0; }
.sidebar-caption, .sidebar .workspace p, .nav-label, .side-bottom { color: var(--muted); font-size: 11px; }
.main { width: 100%; max-width: 1544px; margin: 0 auto; padding: 0 28px 32px; }
.topbar { min-height: 53px; border-color: var(--line); }
.crumb { font-size: 12px; color: var(--muted); }
.crumb span { color: #d2d7cd; }
.avatar { width: 37px; height: 37px; background: var(--noche-selected); color: var(--accent); font-size: 12px; }
.user { gap: 11px; flex-wrap: wrap; }
.user-name { color: var(--ink); font-size: 13px; font-weight: 600; }
.user-role { color: var(--muted); font-size: 12px; }
.link, .text-link, .new-contact-toggle { color: var(--accent); font-size: 12px; }
.link:hover, .text-link:hover, .new-contact-toggle:hover { color: #efd69e; }
.heading { margin: 32px 0 24px; align-items: flex-end; }
.heading h1 { font-family: Georgia, "Times New Roman", serif; font-size: 37px; line-height: 1.18; letter-spacing: -.7px; font-weight: 400; }
.heading p { font-size: 13px; margin-top: 9px; color: var(--muted); }
.heading .eyebrow { color: var(--accent); font-size: 11px; font-weight: 500; letter-spacing: 1.7px; margin-bottom: 10px; }
.heading-actions { flex-wrap: wrap; align-items: center; }
h2 { font-size: 20px; letter-spacing: -.4px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
.small { font-size: 12px; }
.eyebrow { font-size: 11px; color: var(--accent); }
.footer { font-size: 11px; color: #9ba794; padding-top: 28px; }
#practice-environment { font-size: 11px; color: #a4ae9b; }

/* Actions retain their semantic colors; gold is the primary operation. */
.btn {
  font-size: 13px;
  font-weight: 600;
  min-height: 40px;
  border-radius: 7px;
  padding: 10px 15px;
  line-height: 1.45;
}
.btn-primary { background: var(--noche-gold); color: var(--noche-on-gold); border: 1px solid var(--noche-gold); }
.btn-primary:hover:not(:disabled) { background: var(--noche-gold-hover); border-color: var(--noche-gold-hover); }
.btn-secondary { background: var(--noche-surface); color: #e2e5dc; border: 1px solid #4a5346; }
.btn-secondary:hover:not(:disabled) { background: #2a3329; border-color: #8a987d; }
.btn-green { color: var(--noche-green); background: var(--noche-green-bg); border: 1px solid #446c50; }
.btn-green:hover:not(:disabled) { background: #334f3c; }
.btn-danger { color: var(--noche-red); background: var(--noche-red-bg); border: 1px solid #79514a; }
.btn-danger:hover:not(:disabled) { background: #503330; }
.btn-sm { font-size: 12px; min-height: 35px; padding: 7px 11px; }
.actions { gap: 9px; align-items: center; }
.actions > label { min-width: 0; }
button:disabled { opacity: .5; }
.close { color: #bdc7b7; min-width: 30px; min-height: 30px; }

/* Shared surfaces cover every current operational module and extension. */
.card, .stat, .module-kpi, .record-block, .message-entry {
  background: var(--noche-surface);
  color: var(--ink);
  border-color: var(--line);
  border-radius: 10px;
}
.card-head { padding: 21px 22px 18px; flex-wrap: wrap; }
.card-head p { color: var(--muted); font-size: 12px; }
.section-pad { padding: 22px; }
.section-title { font-size: 14px; line-height: 1.5; align-items: flex-start; flex-wrap: wrap; }
.section-title span { font-size: 12px; color: var(--muted); }
.section-divider { border-color: var(--line); }
.notes, .readonly, .work-summary, .new-contact-form, .compact-user {
  background: var(--noche-raised);
  color: #c3cbbd;
  font-size: 12px;
  border-radius: 7px;
}
.notes strong, .readonly strong, .work-summary strong, .compact-user strong { color: var(--ink); }
.notes summary { font-weight: 500; }
.record-block[style] { border-color: var(--line) !important; }
.record-title { color: var(--ink); font-size: 13px; }
.record-meta, .row-meta, .module-help, .field-hint, .form-note,
.module-toolbar p, .dependency-box p, .metric-meta, .audit-row p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.field-hint { display: block; }
.compact-user { font-size: 12px; }
.compact-user strong { font-size: 13px; }
.audit-row { border-color: var(--line); }
.audit-row h3 { color: var(--ink); font-size: 13px; }
.coverage-line { border-color: var(--line); color: var(--muted); font-size: 13px; }
.coverage-line strong { color: var(--ink); }
.dependency-icon { color: var(--accent); background: var(--noche-selected); }
.sim-banner { background: #24271e; border-color: var(--line); }
.sim-banner p { color: var(--muted); font-size: 12px; }
.sim-banner strong { color: var(--accent); font-size: 13px; }
.demo-strip, .login-demo, .stage-note { background: var(--noche-amber-bg); color: var(--noche-amber); border-color: #67572e; font-size: 12px; }
.selected-contact, .arrival-note { background: var(--noche-green-bg); color: var(--noche-green); border-color: #3b6046; font-size: 13px; }
.notice.good { background: var(--noche-green-bg); color: var(--noche-green); }
.notice.error { background: var(--noche-red-bg); color: var(--noche-red); }
.login-error, .inline-error { color: var(--noche-red); font-size: 13px; }
.empty { color: var(--muted); font-size: 13px; }
.empty-icon { color: #84917b; }

/* Compact, readable indicators. Unknown values remain visibly unknown. */
.stats, .module-kpis { gap: 16px; }
.stat, .module-kpi { padding: 20px; }
.stat-top, .stat-value span, .stat-note, .module-kpi-label, .module-kpi-note { color: var(--muted); font-size: 12px; }
.stat-icon { background: var(--noche-raised); color: var(--accent); }
.stat-value strong, .module-kpi-value { color: var(--ink); font-weight: 500; }
.module-kpi-value { font-size: 32px; }
.mini-summary { background: transparent; border-color: var(--line); gap: 25px; padding: 20px 22px; }
.mini-summary span { color: var(--muted); font-size: 12px; }
.mini-summary strong { color: var(--ink); font-size: 25px; font-weight: 500; line-height: 1.25; margin-top: 7px; }
.metric-bar-top { color: #c5cdbf; font-size: 13px; }
.metric-bar-track { background: #2c362a; }
.metric-bar-fill { background: var(--noche-gold); }

/* Tables, contact lists, conversation messages and audit trails. */
table { font-size: 13px; }
thead { background: #20271f; color: #b7c1b0; font-size: 11px; letter-spacing: .5px; }
th { color: #b7c1b0; border-color: var(--line); font-weight: 500; }
td { border-color: #2c342b; color: #e0e4d9; }
th, td { padding-top: 14px; padding-bottom: 14px; }
tbody tr[data-reserva]:hover { background: #242c22; }
tbody tr.selected { background: var(--noche-selected); }
tbody tr.selected td:first-child { box-shadow: inset 3px 0 var(--noche-gold); }
.table-wrap { max-width: 100%; border-color: var(--line); }
.table-foot { font-size: 12px; color: var(--muted); gap: 12px; flex-wrap: wrap; border-color: var(--line); }
.guest, .date-strong { color: var(--ink); font-size: 13px; }
.guest-sub, .date-small { color: var(--muted); font-size: 11px; }
.toolbar { gap: 12px; }
.toolbar select, .toolbar input[type="date"], .module-toolbar select { font-size: 13px; }
.toolbar input[type="date"] { width: 160px; }
.search { min-width: 160px; }
.search input { background: var(--noche-background); color: var(--ink); font-size: 13px; border-color: #4a5346; padding-left: 33px; }
.search::before { color: var(--muted); }
.module-row, .contact-choice { color: var(--ink); border-color: var(--line); }
.module-row:hover, .contact-choice:hover { background: #252d23; }
.module-row.chosen, .contact-choice.chosen { background: var(--noche-selected); box-shadow: inset 3px 0 var(--noche-gold); }
.row-title { color: var(--ink); font-size: 14px; }
.contact-choice { font-size: 13px; }
.contact-choice span { color: var(--muted); font-size: 12px; }
.message-log { background: var(--noche-background); }
.message-entry { border-radius: 0 10px 10px 10px; }
.message-text { color: var(--ink); font-size: 14px; }
.message-info { color: var(--muted); font-size: 11px; }
.message-marker span { color: var(--noche-green); font-size: 11px; }
.detail-kicker, .detail-phone, .fact-label, .timeline-head span { color: var(--muted); font-size: 11px; }
.detail-title { color: var(--ink); font-size: 23px; font-weight: 500; }
.detail-facts { gap: 22px; }
.fact-value { color: var(--ink); font-size: 14px; font-weight: 500; }
.detail-head, .timeline-head { border-color: var(--line); }
.event { border-color: var(--line); }
.event::before { background: #77816c; box-shadow: 0 0 0 3px var(--noche-surface); }
.event:first-child::before { background: var(--noche-gold); }
.event-title { color: var(--ink); font-size: 13px; }
.event-meta, .event-change { color: var(--muted); font-size: 11px; }
.event-reason { color: #c4ccbe; font-size: 12px; }
.timeline-item { color: var(--ink); font-size: 13px; border-color: var(--line); }
.timeline-item small { color: var(--muted); font-size: 12px; }

/* Status identity remains distinct on dark surfaces. */
.badge, .pill { font-size: 11px; font-weight: 500; line-height: 1.5; padding: 4px 8px; }
.pill { color: #c6d0be; background: #30382d; }
.badge-confirmada, .pill-green { background: var(--noche-green-bg); color: var(--noche-green); }
.badge-pendiente_confirmacion, .pill-warm { background: var(--noche-amber-bg); color: var(--noche-amber); }
.badge-cancelada, .pill-red { background: var(--noche-red-bg); color: var(--noche-red); }
.badge-llegada, .pill-blue { background: var(--noche-blue-bg); color: var(--noche-blue); }
.badge-no_show { background: var(--noche-red-bg); color: var(--noche-red); }

/* All forms, including those injected by access, recovery and supervision. */
dialog { color: var(--ink); background: var(--noche-surface); border-color: #535e4b; box-shadow: 0 24px 90px #0009; border-radius: 14px; }
dialog::backdrop { background: #050806bd; backdrop-filter: blur(5px); }
.modal-head { border-color: var(--line); padding: 24px 25px 21px; }
.modal-head h2 { font-size: 24px; font-weight: 500; }
.modal-head p { color: var(--muted); font-size: 12px; }
.modal-body { padding: 24px 25px; }
.form-foot { gap: 10px; flex-wrap: wrap; }
.login-brand .brand-lockup { margin: 0 auto; }
.login-brand .brand { color: var(--ink); }
.login-sub { color: var(--muted); font-size: 12px; }
.login-brand { padding-top: 31px; }

/* Reservation board: the existing table and history remain available. */
.operation-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 23px; padding: 0 22px 24px; }
.operation-grid > section, .operation-grid > aside { min-width: 0; }
.operation-filters { align-items: flex-end; }
.period-help { color: var(--muted); font-size: 12px; padding: 13px 22px; }
.noche-view-switch { display: inline-flex; gap: 4px; flex-wrap: wrap; background: var(--noche-background); padding: 4px; border: 1px solid var(--line); border-radius: 8px; }
.noche-view-switch button { font-size: 12px; border: 0; min-height: 33px; padding: 7px 13px; border-radius: 5px; color: #bdc8b4; background: transparent; }
.noche-view-switch button[aria-pressed="true"], .noche-view-switch button.active { background: var(--noche-gold); color: var(--noche-on-gold); }
.noche-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.noche-lane { background: var(--noche-raised); padding: 14px; border-radius: 10px; min-width: 0; }
.noche-lane-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); margin: 0 0 15px; }
.noche-lane-title span { color: var(--muted); font-size: 12px; font-weight: 400; }
.noche-reservation-card { background: var(--noche-surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 12px; min-width: 0; }
.noche-reservation-card:last-child { margin-bottom: 0; }
.noche-reservation-card.selected { border-color: var(--noche-gold); box-shadow: inset 3px 0 var(--noche-gold); }
.noche-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; color: var(--accent); }
.noche-card-head strong { color: var(--accent); font-size: 21px; font-weight: 500; font-variant-numeric: tabular-nums; }
.noche-card-name { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.noche-card-meta { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 6px; overflow-wrap: anywhere; }
.noche-card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.noche-card-foot .btn { min-width: 0; white-space: normal; flex: 1; }
.noche-reservation-card > .btn { display: flex; width: 100%; margin-top: 15px; white-space: normal; }
.noche-lane .empty { padding: 28px 10px; font-size: 12px; }
#reservation-board { min-width: 0; }
#reservation-detail { scroll-margin-top: 24px; }
#reservation-detail:focus { outline-color: var(--noche-gold); }
#period-visits .record-block { background: #1d251e; }
#rules-panel summary, #visits-panel summary, #jornada-panel summary { font-size: 14px; }

@media (min-width: 1101px) {
  #reservation-detail { display: grid; grid-template-columns: minmax(200px, .75fr) minmax(300px, 1.2fr) minmax(240px, 1fr); grid-template-rows: min-content 1fr; align-items: start; }
  #reservation-detail > .empty { grid-column: 1 / -1; }
  #reservation-detail .detail-head { grid-column: 1; grid-row: 1 / span 2; border-bottom: 0; padding: 23px; }
  #reservation-detail .detail-body { grid-column: 2; grid-row: 1 / span 2; border-left: 1px solid var(--line); padding: 23px; }
  #reservation-detail .timeline-head { grid-column: 3; grid-row: 1; border-top: 0; padding: 23px 23px 14px; }
  #reservation-detail .timeline { display: block; grid-column: 3; grid-row: 2; margin-top: 0; padding: 0 23px 23px; }
  #reservation-detail .detail-facts { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1300px) {
  .noche-board:has(> .noche-lane:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .sidebar { padding-left: 24px; padding-right: 24px; }
  .main { margin: 0 auto; width: 100%; padding-left: 24px; padding-right: 24px; }
  .module-layout { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); }
  .content-grid:not(.operation-grid) { grid-template-columns: 1fr; }
  .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { display: block; }
  .event { border-left: 1px solid var(--line); }
  .noche-board { gap: 12px; }
  .noche-lane { padding: 11px; }
  .noche-reservation-card { padding: 14px; }
  .noche-card-foot { align-items: stretch; }
  .noche-card-foot .btn { flex-basis: 100%; }
}

@media (max-width: 900px) {
  .sidebar .module-nav { font-size: 12px; padding: 11px 12px; }
  .module-layout, .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .module-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .noche-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .noche-lane:last-child:nth-child(3) { grid-column: 1 / -1; }
  .noche-lane:last-child:nth-child(3) .noche-reservation-card { max-width: none; }
  .noche-card-foot .btn { flex-basis: auto; }
}

@media (max-width: 700px) {
  .sidebar { display: grid; grid-template-columns: minmax(0, 1fr); padding: 21px 18px 0; gap: 16px; }
  .brand-lockup { width: 235px; }
  .topbar-user { justify-content: flex-start; }
  .sidebar #module-nav { display: none; }
  .sidebar .module-nav { font-size: 12px; padding: 10px 9px; min-height: 41px; gap: 5px; }
  .sidebar .module-nav span { width: 17px; font-size: 14px; }
  .main { width: 100%; margin: 0; padding: 0 18px 26px; }
  .topbar { min-height: 55px; }
  .user .avatar { display: grid; }
  .user-name { max-width: none; overflow: visible; white-space: normal; font-size: 13px; }
  .user .link { font-size: 12px; }
  .mobile-navigation { display: block; margin-top: 17px; }
  .mobile-navigation label { font-size: 11px; color: var(--muted); }
  .mobile-navigation select { font-size: 13px; }
  .heading { flex-wrap: wrap; gap: 16px; margin-top: 25px; }
  .heading h1 { font-size: 31px; }
  .heading p { max-width: none; font-size: 13px; }
  .heading .heading-actions { flex-direction: row; justify-content: flex-start; }
  .heading .btn, .heading .heading-actions .btn { font-size: 13px; padding: 10px 13px; }
  .heading .btn::before { content: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-kpi { padding: 17px; }
  .module-kpi-label, .module-kpi-note, .stat-value span, .stat-note { font-size: 12px; }
  .module-kpi-value { font-size: 28px; }
  .card-head, .section-pad { padding: 18px; }
  .operation-grid { padding: 0 14px 18px; }
  .operation-grid .toolbar { gap: 8px; }
  .toolbar { padding-left: 17px; padding-right: 17px; }
  .toolbar select { max-width: 100%; }
  .operation-filters label { flex: 1 1 170px; }
  .operation-filters label input, .operation-filters label select { width: 100%; }
  .operation-filters .btn { flex: 1 1 auto; }
  .mini-summary { padding: 18px; gap: 19px 24px; }
  .mini-summary span { min-width: 90px; }
  .mini-summary strong { font-size: 24px; }
  .period-help { padding: 12px 18px; }
  .noche-board { grid-template-columns: minmax(0, 1fr); }
  .noche-lane:last-child:nth-child(3) { grid-column: auto; }
  .noche-lane { padding: 14px; }
  .noche-reservation-card { padding: 17px; }
  .noche-card-foot .btn { flex: 1 1 130px; }
  .table-foot { font-size: 12px; padding: 14px 17px; }
  .guest-sub { max-width: none; white-space: normal; overflow: visible; text-overflow: clip; }
  .row-title { flex-wrap: wrap; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span2 { grid-column: auto; }
  .form-foot .btn { white-space: normal; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .modal-head, .modal-body { padding: 21px; }
  .modal-head h2 { font-size: 22px; }
  .footer { font-size: 11px; flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .main { padding-left: 12px; padding-right: 12px; }
  .heading h1 { font-size: 29px; }
  .heading-actions { width: 100%; }
  .heading-actions .btn { flex: 1 1 auto; }
  .card-head > .btn { width: 100%; white-space: normal; }
  .module-kpis, .stats { gap: 9px; }
  .module-kpi, .stat { padding: 13px; }
  .stat-value { flex-wrap: wrap; gap: 5px; }
  .stat-value strong { font-size: 26px; }
  .mini-summary { gap: 18px; }
  .mini-summary span { min-width: 80px; }
  .detail-facts, .module-layout .detail-facts { grid-template-columns: minmax(0, 1fr); }
  .operation-grid { padding-left: 11px; padding-right: 11px; }
  .form-foot > .btn { flex: 1 1 100%; }
  .modal-head, .modal-body { padding: 18px; }
}

@media (pointer: coarse) {
  .btn, .btn-sm, .sidebar .module-nav, .noche-view-switch button, .close, .link, .text-link { min-height: 44px; }
  input, select, textarea { font-size: 16px; min-height: 44px; }
  input[type="checkbox"], input[type="radio"] { min-height: 0; }
}

@media (pointer: coarse), (min-width: 701px) and (max-width: 1100px), (min-width: 1101px) and (max-height: 850px) {
  /* Keep the action bar available on touch screens and shorter PCs. */
  dialog { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; scroll-padding-bottom: 86px; }
  #reservation-form { display: contents; }
  dialog input, dialog select, dialog textarea { font-size: 16px; min-height: 44px; }
  dialog input[type="checkbox"], dialog input[type="radio"] { min-height: 0; }
  dialog .form-foot { position: sticky; bottom: -1px; z-index: 2; padding: 12px 0; background: var(--noche-surface); border-top: 1px solid var(--line); }
  #contact-form .form-foot { position: static; border-top: 0; }
  dialog .form-foot .btn { min-height: 46px; }
  dialog .inline-error { scroll-margin-bottom: 86px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
