/* Mobile layout: up to 767px. */
@media (max-width: 767px) {
  .map-shell {
    height: auto;
    overflow: visible;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    min-height: auto;
    padding: 10px;
  }

  .brand-block {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .brand-logo {
    width: 52px;
    height: 40px;
  }

  .topbar h1 {
    max-width: none;
    font-size: 19px;
    line-height: 1.12;
  }

  .toolbar,
  .table-controls {
    grid-template-columns: 1fr;
  }

  .toolbar {
    gap: 8px;
    padding: 9px;
  }

  .filter-field label {
    font-size: 10px;
  }

  .filter-field .dash-dropdown,
  .search-field input,
  button {
    min-height: 40px;
  }

  .point-source-filter,
  .uf-filter,
  .pmsb-filter,
  button {
    width: 100%;
  }

  #main-tabs {
    padding: 8px 10px;
  }

  .content-tab {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0;
    height: 36px !important;
    padding: 0 12px !important;
  }

  .map-workspace {
    grid-template-columns: 1fr;
  }

  .map-panel,
  .map-loading,
  .municipality-map {
    min-height: 58vh;
    height: 58vh;
  }

  .detail-panel {
    min-height: auto;
    max-height: none;
    padding: 12px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .table-workspace {
    height: auto;
    padding: 10px;
    overflow: visible;
  }

  .metric {
    padding: 9px 11px;
  }

  .metric strong {
    font-size: 21px;
  }
}
