:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17211d;
  background: #eef2ee;
  --green: #087f5b;
  --ink-muted: #52615a;
  --panel: rgba(255, 255, 252, 0.95);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
button { font: inherit; }

.app-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.topbar {
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding-top: calc(0.75rem + env(safe-area-inset-top));
  padding-right: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-right));
  padding-bottom: 0.75rem;
  padding-left: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-left));
  color: #f7fbf8;
  background: #12372a;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.05; }
.eyebrow { margin-bottom: 0.2rem; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.76; }
.actions { display: flex; align-items: center; gap: 0.5rem; }
button { border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 0.58rem 0.9rem; color: inherit; background: rgba(255,255,255,0.1); cursor: pointer; }
.header-action { display: grid; min-height: 42px; padding: 0.58rem 0.9rem; place-items: center; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; color: inherit; background: rgba(255,255,255,0.1); font-weight: 650; text-decoration: none; }
button:hover, button:focus-visible, .header-action:hover, .header-action:focus-visible { background: rgba(255,255,255,0.2); outline: 2px solid #ffe066; outline-offset: 2px; }

.map-region, #map { position: relative; min-height: 0; height: 100%; }
.leaflet-pane.terrain-pane { filter: saturate(0.15) brightness(1.12) contrast(0.86); }
.leaflet-pane.protected-pane,
.leaflet-pane.protected-pane canvas.leaflet-tile { pointer-events: auto !important; }
.selection-summary, .status, .offline-status, .position-readout, .map-button, .area-toggle-button, .color-scheme-button {
  position: absolute;
  z-index: 3;
}
.selection-summary, .status {
  left: 1rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid rgba(18,55,42,0.14);
  border-radius: 0.6rem;
  background: var(--panel);
  box-shadow: 0 5px 18px rgba(10,35,25,0.14);
  backdrop-filter: blur(8px);
}
.selection-summary {
  top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(34rem, calc(100% - 6rem));
  align-items: center;
  gap: 0.75rem;
}
.selection-summary[hidden] { display: none; }
.selection-summary-copy { min-width: 0; }
.selection-summary-title {
  margin: 0;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 780;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selection-summary-meta { margin: 0.16rem 0 0; color: var(--ink-muted); font-size: 0.7rem; }
.open-details-button {
  min-height: 38px;
  padding: 0.4rem 0.72rem;
  border-color: #146c52;
  color: white;
  background: #087f5b;
  font-size: 0.76rem;
  font-weight: 750;
}
.status { bottom: 3.6rem; margin: 0; max-width: min(27rem, calc(100% - 5.5rem)); font-size: 0.84rem; transition: opacity 250ms; }
.status.quiet { opacity: 0; pointer-events: none; }
.offline-status {
  right: 4.8rem;
  bottom: 3.65rem;
  left: auto;
  margin: 0;
  padding: 0.4rem 0.68rem;
  border: 1px solid rgba(104,73,0,0.28);
  border-radius: 999px;
  color: #523a00;
  background: rgba(255,243,191,0.97);
  box-shadow: 0 4px 15px rgba(10,35,25,0.16);
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.offline-status[hidden] { display: none; }

.map-button {
  z-index: 4;
  right: 1rem;
  bottom: 3.6rem;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(18,55,42,0.25);
  border-radius: 50%;
  color: #12372a;
  background: rgba(255,255,252,0.96);
  box-shadow: 0 5px 18px rgba(10,35,25,0.2);
}
.map-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.map-button .location-dot { fill: currentColor; stroke: none; }
.map-button[aria-pressed="true"] { color: white; background: #1864ab; }
.map-button[aria-pressed="true"]::after {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 50%;
  background: #51cf66;
  content: "";
}

.area-toggle-button, .color-scheme-button {
  z-index: 4;
  top: 5.15rem;
  right: 0.65rem;
  min-height: 40px;
  padding: 0.48rem 0.7rem;
  border: 1px solid rgba(18,55,42,0.25);
  border-radius: 0.55rem;
  color: #12372a;
  background: rgba(255,255,252,0.96);
  box-shadow: 0 5px 18px rgba(10,35,25,0.2);
  font-size: 0.75rem;
  font-weight: 750;
}
.color-scheme-button { top: 8.15rem; }
.area-toggle-button[aria-pressed="false"] { color: #52615a; background: rgba(238,242,238,0.96); }

.position-readout {
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 40px;
  align-items: center;
  gap: clamp(0.35rem, 2vw, 1.5rem);
  padding-top: 0.45rem;
  padding-right: calc(0.75rem + env(safe-area-inset-right));
  padding-bottom: calc(0.45rem + env(safe-area-inset-bottom));
  padding-left: calc(0.75rem + env(safe-area-inset-left));
  border-top: 1px solid rgba(18,55,42,0.16);
  color: #243a30;
  background: rgba(255,255,252,0.94);
  box-shadow: 0 -4px 18px rgba(10,35,25,0.1);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
}
.position-readout span { min-width: 0; text-align: center; white-space: nowrap; }
.position-readout b { margin-right: 0.18rem; color: var(--ink-muted); font-size: 0.67rem; text-transform: uppercase; }
.park-status {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 40px;
  left: 0;
  min-height: 38px;
  margin: 0;
  padding: 0.58rem max(0.75rem, env(safe-area-inset-right)) 0.58rem max(0.75rem, env(safe-area-inset-left));
  overflow-x: auto;
  border-top: 1px solid rgba(18,55,42,0.18);
  color: #243a30;
  background: rgba(255,255,252,0.97);
  box-shadow: 0 -3px 14px rgba(10,35,25,0.1);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
}
.park-status[hidden] { display: none; }
.park-status.inside { color: #0b502d; background: rgba(214,250,225,0.98); }
.park-status.possible { color: #684900; background: rgba(255,243,191,0.98); }
.park-status.unavailable { color: #52615a; }
.membership-active .map-button,
.membership-active .status,
.membership-active .offline-status { bottom: 6.15rem; }
.offline-active .status { bottom: 6.15rem; }
.membership-active.offline-active .status { bottom: 8.65rem; }
.membership-active .maplibregl-ctrl-bottom-left,
.membership-active .maplibregl-ctrl-bottom-right,
.membership-active .leaflet-bottom { bottom: 80px; }
.maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right,
.leaflet-bottom { bottom: 42px; }

.details {
  position: absolute;
  z-index: 5;
  top: 92px;
  right: 1rem;
  width: min(390px, calc(100% - 2rem));
  max-height: calc(100% - 150px);
  padding: 1rem;
  overflow: auto;
  border: 1px solid rgba(18,55,42,0.14);
  border-radius: 0.85rem;
  background: var(--panel);
  box-shadow: 0 12px 40px rgba(10,35,25,0.22);
  transform: translateX(calc(100% + 2rem));
  transition: transform 220ms ease;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(10px);
}
.details.open { visibility: visible; transform: translateX(0); pointer-events: auto; }
.details-heading { display: flex; justify-content: space-between; gap: 1rem; }
.details h2 { margin-bottom: 0.35rem; }
.details-intro { color: var(--ink-muted); }
.close-details-button {
  display: grid;
  flex: 0 0 auto;
  align-self: flex-start;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border-color: #b7c2bc;
  border-radius: 50%;
  color: #243a30;
  background: white;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}
.site-card { padding: 0.85rem 0; border-top: 1px solid #dfe6e1; }
.site-card h3 { margin-bottom: 0.65rem; font-size: 1rem; }
.ohff-details { margin-top: 0.9rem; padding-top: 0.85rem; border-top: 2px solid rgba(0,95,102,0.24); }
.ohff-details h3 { margin-bottom: 0.5rem; color: #005f66; }
.ohff-record + .ohff-record { margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px solid #dfe6e1; }
.wwff-live { margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px dashed #c9d4cd; }
.wwff-live h4 { margin: 0 0 0.4rem; color: #005f66; font-size: 0.85rem; }
.wwff-activations-title { margin: 0.5rem 0 0.25rem; font-size: 0.8rem; font-weight: 600; }
.wwff-activation-list { margin: 0; padding-left: 1.1rem; font-size: 0.8rem; }
.overlap-details { margin-top: 1rem; padding-top: 0.85rem; border-top: 2px solid rgba(106,27,154,0.2); }
.overlap-details h3 { margin-bottom: 0.55rem; color: #4b176d; }
.overlap-message { margin: 0; color: var(--ink-muted); font-size: 0.82rem; }
.overlap-message.error { color: #8b2c2c; }
.overlap-list { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.overlap-list a {
  display: grid;
  min-height: 44px;
  align-content: center;
  gap: 0.12rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(106,27,154,0.2);
  border-radius: 0.55rem;
  color: #4b176d;
  background: rgba(156,54,181,0.06);
  text-decoration: none;
}
.overlap-list a:hover, .overlap-list a:focus-visible { border-color: #6a1b9a; background: rgba(156,54,181,0.12); outline: 2px solid #ffe066; outline-offset: 1px; }
.overlap-list a span { font-size: 0.84rem; font-weight: 700; }
.overlap-list a small { color: var(--ink-muted); font-size: 0.7rem; }
.external-links { margin-top: 1rem; padding-top: 0.85rem; border-top: 2px solid rgba(18,55,42,0.18); }
.external-links h3 { margin-bottom: 0.55rem; color: #12372a; }
.external-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.external-link-grid a {
  display: grid;
  min-height: 44px;
  align-content: center;
  gap: 0.12rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(18,55,42,0.22);
  border-radius: 0.55rem;
  color: #12372a;
  background: rgba(18,55,42,0.06);
  text-decoration: none;
}
.external-link-grid a:hover, .external-link-grid a:focus-visible {
  border-color: #12372a;
  background: rgba(18,55,42,0.12);
  outline: 2px solid #ffe066;
  outline-offset: 1px;
}
.external-link-grid a span { font-size: 0.82rem; font-weight: 750; }
.external-link-grid a small { overflow: hidden; color: var(--ink-muted); font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
dl { margin: 0; }
.field { display: grid; grid-template-columns: 7.4rem 1fr; gap: 0.7rem; margin: 0.32rem 0; font-size: 0.84rem; }
dt { color: var(--ink-muted); }
dd { margin: 0; overflow-wrap: anywhere; }

footer {
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 1rem;
  color: #e8f0eb;
  background: #12372a;
  font-size: 0.7rem;
}

@media (max-width: 640px) {
  .app-shell { grid-template-rows: auto 1fr; }
  .topbar {
    min-height: 60px;
    padding-top: calc(0.48rem + env(safe-area-inset-top));
    padding-right: calc(0.7rem + env(safe-area-inset-right));
    padding-bottom: 0.48rem;
    padding-left: calc(0.7rem + env(safe-area-inset-left));
  }
  .topbar .eyebrow { margin-bottom: 0.08rem; font-size: 0.58rem; }
  h1 { font-size: 1.18rem; }
  .actions button, .header-action { min-height: 44px; padding: 0.42rem 0.75rem; }
  .selection-summary {
    top: 0.55rem;
    left: calc(0.55rem + env(safe-area-inset-left));
    gap: 0.5rem;
    width: auto;
    max-width: calc(100% - 4.8rem - env(safe-area-inset-left) - env(safe-area-inset-right));
    padding: 0.44rem 0.5rem;
  }
  .selection-summary-title { font-size: 0.74rem; }
  .selection-summary-meta { margin-top: 0.12rem; font-size: 0.62rem; }
  .open-details-button { min-height: 38px; padding: 0.35rem 0.62rem; font-size: 0.7rem; }
  .status { bottom: calc(3.65rem + env(safe-area-inset-bottom)); left: calc(0.55rem + env(safe-area-inset-left)); max-width: calc(100% - 4.8rem - env(safe-area-inset-left) - env(safe-area-inset-right)); padding: 0.5rem 0.6rem; font-size: 0.76rem; }
  .offline-status { right: calc(4.4rem + env(safe-area-inset-right)); bottom: calc(3.65rem + env(safe-area-inset-bottom)); max-width: calc(100% - 5rem - env(safe-area-inset-left) - env(safe-area-inset-right)); overflow: hidden; font-size: 0.66rem; text-overflow: ellipsis; }
  .map-button { right: calc(0.65rem + env(safe-area-inset-right)); bottom: calc(3.55rem + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  .area-toggle-button { top: 4.85rem; right: calc(0.65rem + env(safe-area-inset-right)); min-height: 38px; padding: 0.42rem 0.58rem; font-size: 0.68rem; }
  .color-scheme-button { top: 7.65rem; right: calc(0.65rem + env(safe-area-inset-right)); min-height: 38px; padding: 0.42rem 0.58rem; font-size: 0.68rem; }
  .position-readout { gap: 0.15rem; min-height: 45px; padding-top: 0.38rem; padding-right: calc(0.55rem + env(safe-area-inset-right)); padding-left: calc(0.55rem + env(safe-area-inset-left)); font-size: clamp(0.6rem, 2.3vw, 0.69rem); }
  .position-readout span { display: grid; gap: 0.08rem; text-align: center; }
  .position-readout b { margin: 0; font-size: 0.58rem; }
  .park-status { bottom: calc(45px + env(safe-area-inset-bottom)); min-height: 38px; padding: 0.56rem calc(0.55rem + env(safe-area-inset-right)) 0.56rem calc(0.55rem + env(safe-area-inset-left)); font-size: 0.74rem; text-align: left; }
  .membership-active .map-button,
  .membership-active .status,
  .membership-active .offline-status { bottom: calc(6.15rem + env(safe-area-inset-bottom)); }
  .offline-active .status { bottom: calc(6.15rem + env(safe-area-inset-bottom)); }
  .membership-active.offline-active .status { bottom: calc(8.65rem + env(safe-area-inset-bottom)); }
  .membership-active .maplibregl-ctrl-bottom-left,
  .membership-active .maplibregl-ctrl-bottom-right,
  .membership-active .leaflet-bottom { bottom: calc(83px + env(safe-area-inset-bottom)); }
  .maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right,
  .leaflet-bottom { bottom: calc(45px + env(safe-area-inset-bottom)); }
  .details { top: auto; right: 0; bottom: calc(45px + env(safe-area-inset-bottom)); width: 100%; max-height: 54%; padding-right: calc(1rem + env(safe-area-inset-right)); padding-left: calc(1rem + env(safe-area-inset-left)); border-radius: 1rem 1rem 0 0; visibility: hidden; transform: translateY(calc(100% + 45px + env(safe-area-inset-bottom))); pointer-events: none; }
  .membership-active .details { bottom: calc(83px + env(safe-area-inset-bottom)); }
  .details.open { visibility: visible; transform: translateY(0); pointer-events: auto; }
  footer { display: none; }
  .app-shell.reported-location-active { grid-template-rows: auto 1fr auto; }
  .reported-location-active footer { display: flex; flex-direction: column; gap: 0.3rem; max-height: 26dvh; overflow: auto; padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)); }
  .reported-location-active footer > span:not(#reported-location-info):not(#reported-grid-membership) { display: none; }
}

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

/* Bulletin board: left-hand panel on desktop, full-screen sheet on mobile. */
.actions .bulletin-toggle { display: grid; flex: none; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; place-items: center; }
.bulletin-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bulletin-toggle[aria-expanded="true"] { background: rgba(255, 224, 102, 0.28); border-color: #ffe066; }
.bulletin {
  position: absolute;
  z-index: 3;
  top: 1rem;
  bottom: 4.2rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  width: min(23rem, calc(100% - 2rem));
  padding: 0.9rem 1rem 1rem;
  overflow: hidden;
  color: var(--ink, #12251c);
  border: 1px solid rgba(18,55,42,0.14);
  border-radius: 0.8rem;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(10,35,25,0.2);
  backdrop-filter: blur(8px);
}
.bulletin[hidden] { display: none; }
.bulletin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.bulletin h2 { margin: 0; font-size: 1.15rem; }
.bulletin .eyebrow { margin-bottom: 0.1rem; color: var(--ink-muted); }
.bulletin-close { min-width: 44px; min-height: 44px; padding: 0; border-color: rgba(18,55,42,0.25); border-radius: 50%; color: #12372a; background: #fff; font-size: 1.6rem; line-height: 1; }
.bulletin-close:hover, .bulletin-close:focus-visible { background: #e8f1ec; }
.bulletin-status { margin: 0.5rem 0 0; color: var(--ink-muted); font-size: 0.82rem; }
.bulletin-status[hidden] { display: none; }
.bulletin-status button { margin-left: 0.4rem; min-height: 38px; color: #12372a; border-color: rgba(18,55,42,0.3); background: #fff; }
.bulletin-body { flex: 1; min-height: 0; margin: 0.4rem -0.2rem 0; padding: 0.2rem 0.45rem 0.2rem 0.2rem; overflow-y: auto; overscroll-behavior: contain; }
.bulletin-section { padding: 0.7rem 0; border-top: 1px solid #dfe6e1; }
.bulletin-section:first-child { border-top: 0; }
.bulletin-section h3 { margin: 0 0 0.45rem; color: #005f66; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.bulletin-list { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.bulletin-row { display: grid; width: 100%; min-height: 44px; gap: 0.1rem; padding: 0.4rem 0.6rem; border: 1px solid #dfe6e1; border-radius: 0.5rem; color: inherit; background: rgba(255,255,255,0.7); font: inherit; text-align: left; }
.bulletin-row:hover, .bulletin-row:focus-visible { background: #e8f1ec; outline: 2px solid #005f66; outline-offset: -1px; }
.bulletin-row b { font-size: 0.82rem; }
.bulletin-row small { color: var(--ink-muted); font-size: 0.7rem; }
.bulletin-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin: 0; }
.bulletin-tile { padding: 0.45rem 0.6rem; border-radius: 0.5rem; background: #eef4f0; }
.bulletin-tile dt { color: var(--ink-muted); font-size: 0.68rem; }
.bulletin-tile dd { margin: 0; font-size: 1.25rem; font-weight: 750; }
.bulletin-tile dd small { margin-left: 0.25rem; color: var(--ink-muted); font-size: 0.7rem; font-weight: 600; }
.bulletin-years { display: grid; gap: 0.2rem; margin: 0; padding: 0; list-style: none; font-size: 0.74rem; }
.bulletin-years li { display: grid; grid-template-columns: 2.4rem 1fr 2.2rem; align-items: center; gap: 0.4rem; }
.bulletin-years i { display: block; height: 0.7rem; border-radius: 0.2rem; background: #087f5b; }
.bulletin-years output { text-align: right; font-variant-numeric: tabular-nums; }
.bulletin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
#bulletin-never-result:not(:empty) { margin-top: 0.25rem; }
.bulletin-actions button { min-height: 44px; padding: 0.5rem 1rem; color: #12372a; border-color: rgba(18,55,42,0.3); background: #fff; font-size: 0.8rem; }
.bulletin-actions button:hover, .bulletin-actions button:focus-visible { background: #e8f1ec; outline: 2px solid #005f66; outline-offset: 1px; }
.bulletin-note { margin: 0.5rem 0 0; color: var(--ink-muted); font-size: 0.7rem; }
.map-region.bulletin-open .selection-summary { left: calc(2rem + min(23rem, calc(100% - 2rem))); width: min(34rem, calc(100% - 28rem)); }
.map-region.bulletin-open .status { left: calc(2rem + min(23rem, calc(100% - 2rem))); }

/* Callsign profile (shares the bulletin panel styling). */
.profile-form { margin-top: 0.6rem; }
.profile-form label { display: block; margin-bottom: 0.25rem; color: var(--ink-muted); font-size: 0.74rem; }
.profile-form-row { display: flex; gap: 0.5rem; }
.profile-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 0.75rem; border: 1px solid rgba(18,55,42,0.3); border-radius: 0.5rem; color: #12251c; background: #fff; font: inherit; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.profile-form input::placeholder { text-transform: none; letter-spacing: 0; }
.profile-form input:focus-visible { outline: 2px solid #005f66; outline-offset: 1px; }
.profile-form button { min-height: 44px; padding: 0.5rem 1rem; color: #fff; border-color: #087f5b; background: #087f5b; font-weight: 650; }
.profile-form button:hover, .profile-form button:focus-visible { background: #066a4c; outline: 2px solid #005f66; outline-offset: 1px; }
.profile-filter { display: flex; gap: 0.35rem; margin: 0.4rem 0 0.5rem; }
.profile-filter button { flex: 1; min-height: 44px; padding: 0.3rem 0.4rem; color: #12372a; border-color: rgba(18,55,42,0.3); background: #fff; font-size: 0.78rem; }
.profile-filter button[aria-pressed="true"] { color: #fff; border-color: #12372a; background: #12372a; }
.profile-legend { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; margin: 0.3rem 0 0; color: var(--ink-muted); font-size: 0.74rem; }
.profile-legend i { display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.3rem; border: 1.5px solid #3b2f00; border-radius: 50%; vertical-align: -1px; }
.profile-forget { margin-top: 0.4rem; min-height: 44px; color: #8b2c2c; border-color: rgba(139,44,44,0.35); background: #fff; font-size: 0.8rem; }
.profile-forget:hover, .profile-forget:focus-visible { background: #fbeeee; outline: 2px solid #8b2c2c; outline-offset: 1px; }

@media (max-width: 640px) {
  .actions .bulletin-toggle { padding: 0; }
  .bulletin {
    position: fixed;
    z-index: 20;
    inset: 0;
    width: auto;
    padding: calc(0.8rem + env(safe-area-inset-top)) calc(1rem + env(safe-area-inset-right)) calc(0.8rem + env(safe-area-inset-bottom)) calc(1rem + env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    background: #fbfcfa;
    box-shadow: none;
    backdrop-filter: none;
  }
  .map-region.bulletin-open .selection-summary { left: calc(0.55rem + env(safe-area-inset-left)); width: auto; }
  .map-region.bulletin-open .status { left: calc(0.55rem + env(safe-area-inset-left)); }
}
@media (max-width: 420px) {
  /* Four header buttons leave little room: drop the eyebrow line. */
  .topbar .eyebrow { display: none; }
}
