:root {
  --bg: #f7f8f4;
  --panel: #ffffff;
  --ink: #1d2522;
  --muted: #66736d;
  --line: #dfe5de;
  --accent: #007c89;
  --accent-strong: #005f69;
  --danger: #bd3f32;
  --danger-dark: #8f2d24;
  --warning: #c27a17;
  --high: #b42318;
  --medium: #e06f18;
  --low: #d6a21e;
  --shadow: 0 12px 32px rgba(16, 31, 28, 0.18);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.map-stage {
  position: relative;
  min-width: 0;
  height: 100%;
}

#map {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #eef2ef;
}

.leaflet-container {
  position: relative;
  overflow: hidden;
  touch-action: none;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  max-width: none;
  user-select: none;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.building-canvas {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 410;
  pointer-events: none;
}

.topbar {
  position: absolute;
  z-index: 500;
  top: 14px;
  left: 14px;
  right: 14px;
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.brand,
.search-box,
.icon-button,
.filters,
.legend,
.kpi-strip,
.search-results {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(223, 229, 222, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px 11px 7px 8px;
  border-radius: 8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: white;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.search-box {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 0 13px;
  border-radius: 8px;
}

.search-box svg {
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-box input::placeholder {
  color: #74817b;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 118px;
  min-height: 48px;
  padding: 0 13px;
  border-radius: 8px;
  border: 0;
  color: white;
  background: var(--accent);
  font-weight: 700;
}

.icon-button:hover {
  background: var(--accent-strong);
}

.icon-button.primary.active {
  background: #1d63d8;
  box-shadow: 0 0 0 3px rgba(29, 99, 216, 0.32);
}

.icon-button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.icon-button.secondary:hover {
  background: #eef6f5;
}

.kpi-strip {
  position: absolute;
  z-index: 450;
  top: 76px;
  left: 14px;
  right: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
}

.kpi-strip article {
  min-width: 0;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.84);
}

.kpi-strip span {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.kpi-strip small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.kpi-strip .warning span {
  color: var(--warning);
}

.kpi-strip .danger span {
  color: var(--danger);
}

.basemap-toggle {
  position: absolute;
  z-index: 460;
  top: 142px;
  right: 14px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(223, 229, 222, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.basemap-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.basemap-toggle button.active {
  color: white;
  background: var(--accent);
}

/* Filtro con/sin nombre, dentro del panel de filtros (layout robusto en cualquier pantalla). */
.filters .name-filter {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.name-filter-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.name-filter-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(223, 229, 222, 0.9);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.6);
}

.name-filter-options button {
  min-height: 34px;
  padding: 0 4px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.name-filter-options button.active {
  color: white;
  background: var(--accent);
}

.basemap-toggle svg {
  width: 17px;
  height: 17px;
}

.filters {
  position: absolute;
  z-index: 450;
  left: 14px;
  bottom: 28px;
  display: grid;
  gap: 9px;
  width: min(620px, calc(100vw - 28px));
  grid-template-columns: minmax(150px, 0.8fr) minmax(190px, 1.2fr);
  padding: 12px;
  border-radius: 8px;
}

.filters label {
  display: grid;
  gap: 5px;
}

.filters span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.filters select,
.filters input,
.dialog-form input,
.dialog-form select,
.dialog-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: white;
}

.filters select {
  padding: 0 10px;
}

.filters input {
  padding: 0 10px;
}

.filters input:disabled {
  color: #8c9691;
  background: #f1f4f2;
}

.legend {
  position: absolute;
  z-index: 450;
  right: 14px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.legend-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #5b665f);
}

.legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.swatch.high {
  background: var(--high);
}

.swatch.medium {
  background: var(--medium);
}

.swatch.low {
  background: var(--low);
}

.swatch.named {
  background: transparent;
  border: 2px solid #0bbbd6;
}

.search-results {
  position: absolute;
  z-index: 700;
  top: 68px;
  left: 174px;
  width: min(560px, calc(100vw - 220px));
  max-height: 340px;
  overflow: auto;
  border-radius: 8px;
}

/* Resultados del buscador de sitios públicos: ancla encima del filtro inferior. */
.place-results {
  top: auto;
  left: 14px;
  right: auto;
  bottom: 96px;
  width: min(620px, calc(100vw - 28px));
}

.map-hint {
  position: absolute;
  z-index: 430;
  left: 50%;
  bottom: 112px;
  width: min(420px, calc(100vw - 28px));
  transform: translateX(-50%);
  padding: 10px 12px;
  border: 1px solid rgba(207, 216, 211, 0.9);
  border-radius: 8px;
  color: #45514d;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.map-hint[hidden] {
  display: none;
}

.result-row {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: white;
}

.result-row:hover {
  background: #f0f6f4;
}

.result-row strong {
  font-size: 14px;
}

.result-row small {
  color: var(--muted);
}

.detail-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  border-left: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.detail-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 13px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-panel h1 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.12;
  letter-spacing: 0;
}

.detail-panel h2 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.2;
}

.icon-only {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: white;
}

.icon-only:hover {
  background: #f2f5f1;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  height: 100%;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 42px;
  height: 42px;
}

/* `display:grid` de los contenedores pisa el atributo `hidden`; lo restauramos
   para que el estado vacío NO aparezca encima del formulario al seleccionar. */
.empty-state[hidden],
.panel-content[hidden] {
  display: none;
}

.empty-callout {
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(180, 35, 24, 0.25);
  background: rgba(224, 111, 24, 0.08);
  color: #7a4a16;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}

.panel-content {
  display: grid;
  gap: 17px;
  padding: 16px 18px 24px;
  overflow: auto;
}

.naming-status,
.local-callout {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

.naming-status {
  color: var(--warning);
  background: #fff5e6;
  border: 1px solid #f2d5a5;
  font-weight: 800;
}

.naming-status.named {
  color: var(--low);
  background: #edf8f2;
  border-color: #bee4cf;
}

.local-callout {
  color: #33413d;
  background: #eef6f5;
  border: 1px solid #cfe4e1;
}

.local-callout p {
  margin: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.metrics div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.metrics span {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.metrics small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.info-list {
  display: grid;
  gap: 7px;
  font-size: 14px;
}

.info-list p {
  margin: 0;
}

.link-button {
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 700;
  text-align: left;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 7px;
  color: #25312d;
  background: #edf2ef;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.tag.empty {
  color: var(--muted);
  background: #f7f8f4;
  border: 1px dashed #cfd8d3;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  font-weight: 800;
}

.action-button:hover {
  background: var(--accent-strong);
}

.action-button.danger,
.dialog-form button.primary.danger {
  background: var(--danger);
}

.action-button.danger:hover,
.dialog-form button.primary.danger:hover {
  background: var(--danger-dark);
}

.action-button.whatsapp {
  background: #1f8f56;
}

.action-button.whatsapp:hover {
  background: #176e43;
}

.action-button.maps {
  background: #1d63d8;
}

.action-button.maps:hover {
  background: #174fab;
}

.report-list {
  display: grid;
  gap: 9px;
}

.report-card {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  background: #fffdfb;
}

.report-card strong,
.report-card small {
  display: block;
}

.report-card small {
  margin-top: 3px;
  color: var(--muted);
}

dialog {
  width: min(520px, calc(100vw - 24px));
  border: 0;
  border-radius: 10px;
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.28);
  padding: 0;
}

dialog::backdrop {
  background: rgba(11, 26, 23, 0.48);
}

/* Formulario mostrado durante el recorrido guiado: visible sobre el fondo oscuro
   de Driver (z 10000) pero debajo de su globo de texto (z 1e9). */
.tour-dialog {
  position: fixed;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 100000;
}

/* Durante el recorrido: sin animaciones de paneles, para que Driver mida bien los
   botones y la luz apunte exacto en cualquier teléfono/resolución. */
body.tour-running .detail-panel,
body.tour-running .filters,
body.tour-running .place-results {
  transition: none !important;
}

/* Durante el recorrido, el panel de ejemplo muestra SOLO métricas + acciones (sin
   secciones largas), así no hay scroll interno y la luz cae exacto en cada botón. */
body.tour-running .detail-panel {
  height: auto;
  max-height: 94dvh;
}

body.tour-running .panel-content {
  overflow: visible;
}

body.tour-running .panel-content > .naming-status,
body.tour-running .panel-content > .info-list,
body.tour-running .panel-content > .local-callout,
body.tour-running .panel-content > .panel-aliases,
body.tour-running .panel-content > .panel-reports {
  display: none;
}

/* Controles de zoom propios (+/-) con indicador del nivel actual. Lado derecho,
   despejado de la barra de filtros inferior. */
.zoom-controls {
  position: absolute;
  z-index: 460;
  right: 14px;
  bottom: 150px;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.zoom-badge {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(223, 229, 222, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(223, 229, 222, 0.9);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  color: var(--ink);
  cursor: pointer;
}

.zoom-btn:hover {
  background: #eef6f5;
}

.zoom-btn svg {
  width: 20px;
  height: 20px;
}

.donate-block {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(240, 185, 11, 0.45);
  background: rgba(240, 185, 11, 0.1);
}

.donate-block p {
  margin: 0;
  font-size: 13px;
  color: #6b5a12;
}

.donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 8px;
  text-decoration: none;
  color: #1c1c0a;
  background: #f0b90b;
  font-weight: 800;
}

.donate-button:hover {
  background: #d9a400;
}

.donate-button svg {
  width: 18px;
  height: 18px;
}

.social-intro {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #6b5a12;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid rgba(223, 229, 222, 0.9);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.social-links a:hover {
  background: #eef6f5;
}

.social-links svg {
  width: 16px;
  height: 16px;
}

.dialog-form {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.dialog-form header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-form h2 {
  margin: 0;
  font-size: 21px;
}

.dialog-form label {
  display: grid;
  gap: 6px;
}

.dialog-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dialog-form input,
.dialog-form select,
.dialog-form textarea {
  padding: 8px 10px;
}

.dialog-form textarea {
  min-height: 84px;
  resize: vertical;
}

.privacy-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #68451d;
  background: #fff5e6;
  font-size: 13px;
}

.dialog-form menu {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.dialog-form menu button {
  min-width: 98px;
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 800;
}

.dialog-form menu button.primary {
  border: 0;
  color: white;
  background: var(--accent);
}

.leaflet-control-attribution {
  font-size: 10px;
}

.leaflet-interactive {
  transition: none;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: absolute;
    z-index: 980;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    height: min(58dvh, 520px);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transform: translateY(calc(100% + 14px));
    transition: transform 180ms ease;
  }

  .detail-panel.open {
    transform: translateY(0);
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .brand {
    display: none;
  }

  .search-results {
    left: 14px;
    top: 68px;
    width: calc(100vw - 28px);
  }

  .kpi-strip {
    top: 76px;
    right: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .basemap-toggle {
    top: 142px;
    right: 10px;
  }

  .filters {
    position: fixed;
    z-index: 950;
    left: 14px;
    right: 14px;
    width: calc(100vw - 28px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    grid-template-columns: minmax(130px, 0.85fr) minmax(170px, 1.15fr);
    transition:
      opacity 140ms ease,
      transform 140ms ease;
  }

  body.detail-active .filters {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 18px));
  }

  .place-results {
    position: fixed;
    left: 14px;
    right: 14px;
    width: calc(100vw - 28px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 92px);
  }

  body.detail-active .place-results {
    display: none;
  }

  .map-hint {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 94px);
  }

  .legend {
    right: 14px;
    bottom: 112px;
  }
}

@media (max-width: 620px) {
  .topbar {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 7px;
  }

  .icon-button {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }

  .icon-button span {
    display: none;
  }

  .kpi-strip {
    left: 10px;
    right: 10px;
    top: 68px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .kpi-strip article {
    min-width: 0;
    padding: 8px 6px;
  }

  .kpi-strip span {
    font-size: 17px;
  }

  .kpi-strip small {
    font-size: 9px;
    white-space: nowrap;
  }

  .basemap-toggle {
    top: 126px;
    right: 10px;
  }

  .basemap-toggle button {
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .filters {
    position: fixed;
    z-index: 950;
    left: 10px;
    right: 10px;
    width: calc(100vw - 20px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    gap: 7px;
    padding: 9px;
    grid-template-columns: minmax(104px, 0.82fr) minmax(136px, 1.18fr);
  }

  .filters select,
  .filters input {
    min-height: 36px;
    font-size: 14px;
  }

  .map-hint {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 88px);
    width: calc(100vw - 20px);
    font-size: 12px;
  }

  .filters span {
    font-size: 10px;
  }

  /* Arriba-derecha, bajo el selector de mapa: ya no queda detrás del panel de filtros. */
  .legend {
    left: auto;
    right: 10px;
    top: 188px;
    bottom: auto;
    flex-flow: column;
    align-items: flex-start;
    gap: 3px;
    max-width: 46vw;
    padding: 6px 9px;
    font-size: 11px;
  }

  .legend-title {
    width: auto;
  }

  body.detail-active .legend {
    display: none;
  }

  .detail-panel {
    left: 6px;
    right: 6px;
    bottom: 6px;
    height: min(64dvh, 560px);
  }

  .actions {
    grid-template-columns: 1fr;
  }
}
