@media (max-width: 980px) {
  .welcome-card {
    grid-template-columns: 1fr 42%;
  }

  .welcome-copy {
    padding: 38px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-content-grid .data-card:last-child {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 52px;
    --nav-height: 66px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .map-header .brand-copy,
  .brand-url {
    display: none;
  }

  .welcome-card {
    width: calc(100vw - 28px);
    min-height: calc(100dvh - 28px);
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 34%;
    border-radius: 30px;
  }

  .welcome-copy {
    padding: 30px 26px 20px;
  }

  .welcome-title {
    margin-top: 20px;
    font-size: clamp(2.7rem, 16vw, 4.8rem);
  }

  .welcome-visual {
    min-height: 0;
  }

  .welcome-stat {
    min-width: 132px;
    padding: 12px;
  }

  .welcome-stat strong {
    font-size: 1.2rem;
  }

  .map-page,
  .dashboard-page,
  .community-page {
    padding: max(6px, env(safe-area-inset-top)) 8px max(6px, env(safe-area-inset-bottom));
    gap: 6px;
  }

  .community-page {
    grid-template-rows: auto minmax(0, 1fr) var(--nav-height);
  }

  .community-header h1 {
    font-size: 1.35rem;
  }

  .community-header > div > p:last-child {
    max-width: 32ch;
    font-size: .74rem;
  }

  .points-badge {
    min-height: 38px;
    padding: 0 10px;
  }

  .map-header-actions .icon-button:first-child {
    display: none;
  }

  .map-toolbar {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .filter-row {
    margin-inline: -8px;
    padding-inline: 8px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .chip {
    min-height: 34px;
    padding: 0 11px;
    font-size: .74rem;
  }

  .search-input {
    min-height: 42px;
    padding-left: 44px;
    font-size: .84rem;
  }

  .search-box svg {
    left: 14px;
    width: 20px;
  }

  .map-stage {
    min-height: 260px;
    border-radius: 20px;
  }

  .map-view-switch {
    top: 8px;
    width: 210px;
    padding: 3px;
  }

  .map-view-switch button {
    min-height: 34px;
    padding-inline: 10px;
    font-size: .74rem;
  }

  .globe-live-card {
    top: 54px;
    left: 8px;
    padding: 7px 9px;
    border-radius: 13px;
  }

  .globe-live-card strong {
    font-size: .72rem;
  }

  .globe-live-card small {
    font-size: .56rem;
  }

  .globe-activity {
    top: 56px;
    right: 8px;
    gap: 4px;
  }

  .globe-activity span {
    min-width: 42px;
    padding: 5px 6px;
    font-size: 0;
    border-radius: 11px;
  }

  .globe-activity b {
    font-size: .78rem;
  }

  .globe-legend {
    left: 8px;
    bottom: 8px;
    gap: 8px;
    padding: 7px 9px;
    font-size: .58rem;
  }

  .globe-hint {
    bottom: 52px;
    font-size: .56rem;
  }

  .beach-detail {
    top: auto;
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
    border-radius: 22px;
  }

  .beach-cover {
    display: none;
  }

  .beach-detail-body {
    padding: 14px;
  }

  .beach-detail p {
    display: none;
  }

  .beach-detail-actions {
    margin-top: 12px;
  }

  .map-controls {
    right: 8px;
    bottom: 8px;
    gap: 6px;
  }

  .map-control {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .coast-map-summary {
    top: 8px;
    left: 8px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .coast-map-summary strong {
    font-size: .7rem;
  }

  .coast-map-summary small {
    max-width: 190px;
    overflow: hidden;
    font-size: .54rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .coast-tour-panel {
    left: 8px;
    bottom: 8px;
    width: calc(100% - 100px);
    gap: 5px;
  }

  .coast-tour-button {
    min-height: 40px;
    padding: 5px 10px 5px 8px;
    border-radius: 14px;
  }

  .coast-tour-button > svg {
    width: 19px;
  }

  .coast-tour-button strong {
    font-size: .68rem;
  }

  .coast-tour-button small {
    font-size: .54rem;
  }

  .coast-shortcuts button {
    min-height: 28px;
    padding-inline: 8px;
    font-size: .58rem;
  }

  .orbit-hint {
    display: none;
  }

  .map-stage.is-orbit-view .map-controls {
    right: 8px;
    bottom: 8px;
    grid-template-columns: repeat(2, 36px);
    gap: 5px;
  }

  .map-stage.is-orbit-view .map-control {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .webgl-map .maplibregl-ctrl-bottom-right {
    right: 88px;
    bottom: 0;
  }

  .webgl-map .maplibregl-ctrl-attrib {
    max-width: calc(100vw - 112px);
    font-size: 8px;
  }

  .bottom-nav {
    padding: 3px;
    border-radius: 20px;
  }

  .nav-item {
    min-height: 48px;
    font-size: .62rem;
  }

  .nav-item--add {
    width: 48px;
    height: 48px;
  }

  .nav-item--add span {
    display: none;
  }

  .marker {
    width: 34px;
    height: 34px;
    border-width: 3px;
  }

  .beach-map-marker {
    width: 34px;
    height: 34px;
    border-width: 3px;
  }

  .beach-map-marker:hover,
  .beach-map-marker.is-active {
    width: 39px;
    height: 39px;
  }

  .map-label {
    font-size: .72rem;
    letter-spacing: .12em;
  }

  .dashboard-header .brand-copy {
    display: none;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 54px minmax(0, 1fr);
    gap: 8px;
  }

  .dashboard-sidebar {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-content: stretch;
    padding: 5px;
    gap: 4px;
    border-radius: 20px;
  }

  .dashboard-tab {
    justify-content: center;
    min-height: 42px;
    padding: 0 6px;
    border-radius: 14px;
    font-size: 0;
  }

  .dashboard-tab svg {
    width: 22px;
    height: 22px;
  }

  .dashboard-panel {
    padding: 12px;
    border-radius: 22px;
  }

  .panel-heading p {
    display: none;
  }

  .metric-grid {
    gap: 8px;
  }

  .metric-card {
    padding: 12px;
    border-radius: 18px;
  }

  .metric-card-value strong {
    font-size: 1.55rem;
  }

  .data-card {
    padding: 12px;
    border-radius: 18px;
  }

  .activity-item:nth-child(n+4) {
    display: none;
  }

  .data-table th:nth-child(3),
  .data-table td:nth-child(3) {
    display: none;
  }

  .settings-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .setting-card {
    min-height: 68px;
    padding: 12px;
  }

  .consent-backdrop {
    padding: 10px;
  }

  .consent-card {
    padding: 18px;
    border-radius: 22px;
  }

  .consent-options {
    grid-template-columns: 1fr;
  }

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

@media (max-height: 720px) and (min-width: 761px) {
  .welcome-card {
    min-height: calc(100dvh - 34px);
  }

  .welcome-title {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
  }

  .welcome-text {
    margin-bottom: 18px;
  }

  .metric-card {
    padding: 12px;
  }

  .metric-card-value strong {
    font-size: 1.6rem;
  }
}
