:root {
  --bg: #f6f7f8;
  --card: #fff;
  --text: #1f2937;
  --muted: #667085;
  --line: #e5e7eb;
  --danger: #b42318;
  --warning: #f79009;
  --week: #fdb022;
  --season: #1570ef;
  --old: #98a2b3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100vw;
}

header {
  padding: 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0 0 6px;
  font-size: 22px;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 12px;
  padding: 12px;
}

#map {
  width: 100%;
  height: calc(100vh - 124px);
  min-height: 620px;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #ddd;
}

aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 1px 8px rgba(16,24,40,.05);
}

.filters,
.map-options,
.type-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.control-label {
  margin: 0 0 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.filters {
  margin-bottom: 10px;
}

.type-filters {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 10px;
}

.map-options {
  margin-top: 10px;
}

button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

.filters button,
.type-filters button {
  width: 100%;
  height: 40px;
  min-width: 0;
  padding: 0 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  line-height: 1;
  white-space: nowrap;
}

.type-filters button {
  gap: 4px;
  height: 36px;
  padding: 0 5px;
  border-radius: 10px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.type-filters button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eaecf0;
  color: #344054;
  font-size: 10px;
}

.type-filters button:not(.active) {
  opacity: .52;
}

button.active {
  border-color: var(--danger);
  color: var(--danger);
  font-weight: 700;
}

.type-filters button.active {
  border-color: #344054;
  background: #f2f4f7;
  color: #101828;
}

.type-filters .type-sighting span { background: #d1e9ff; color: #175cd3; }
.type-filters .type-camera span { background: #ebe9fe; color: #5925dc; }
.type-filters .type-trace span { background: #ffead5; color: #b93815; }
.type-filters .type-capture span { background: #fee4e2; color: #b42318; }

.layer-control-label {
  margin-top: 12px;
}

.layer-option {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #f9fafb;
  color: #344054;
  cursor: pointer;
}

.layer-option:has(input:checked) {
  border-color: #b42318;
  background: #fff4f3;
}

.regional-layer-option:has(input:checked) {
  border-color: #175cd3;
  background: #eff8ff;
}

.regional-layer-option input {
  accent-color: #175cd3;
}

.layer-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--danger);
}

.layer-option span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.layer-option strong {
  font-size: 12px;
  line-height: 1.2;
}

.layer-option small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.6;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.quick-actions button {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  color: #344054;
  font-weight: 700;
  background: #f9fafb;
}

.quick-actions button:hover {
  border-color: #d0d5dd;
  background: #fff;
}

.near-status {
  margin: 8px 0 0;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
  background: var(--old);
}

.legend .new::before { background: var(--danger); }
.legend .recent::before { background: var(--warning); }
.legend .week::before {
  background: var(--week);
  border: 1px solid #111827;
}
.legend .season::before {
  background: var(--season);
  opacity: .55;
}

.heat-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.regional-layer-status {
  margin: 6px 0 0;
  color: #175cd3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.regional-layer-status:empty {
  display: none;
}

.regional-layer-status.error {
  color: var(--danger);
}

.regional-point-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.regional-point-legend[hidden],
.regional-point-legend span[hidden] {
  display: none;
}

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

.point-key {
  width: 10px;
  height: 10px;
  border: 2px solid;
  border-radius: 50%;
}

.point-key.shelter { border-color: #175cd3; background: #84caff; }
.point-key.emergency { border-color: #b54708; background: #fec84b; }
.point-key.welfare { border-color: #7f56d9; background: #bdb4fe; }
.point-key.toilet { border-color: #0e7090; background: #67e3f9; }
.point-key.phone { border-color: #027a48; background: #6ce9a6; }
.point-key.aed { border-color: #b42318; background: #fda29b; border-radius: 3px; }
.point-key.wifi { border-color: #175cd3; background: #53b1fd; border-radius: 3px; }

.type-chip.type-shelter {
  border-color: #84adff;
  background: #eff8ff;
  color: #175cd3;
}

.type-chip.type-emergency {
  border-color: #fec84b;
  background: #fffaeb;
  color: #b54708;
}

.type-chip.type-welfare {
  border-color: #bdb4fe;
  background: #f4f3ff;
  color: #6938ef;
}

.shelter-marker-shell {
  background: transparent;
  border: 0;
}

.shelter-map-marker {
  display: block;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 2px solid #175cd3;
  border-radius: 50%;
  background: #84caff;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .3);
}

.shelter-map-marker.emergency {
  border-color: #b54708;
  background: #fec84b;
}

.shelter-map-marker.welfare {
  width: 16px;
  height: 16px;
  margin: -1px;
  border-color: #7f56d9;
  background: #bdb4fe;
}

.shelter-popup {
  min-width: 245px;
  max-width: 300px;
}

.shelter-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 7px;
}

.hazard-heading {
  margin-top: 9px;
  margin-bottom: 4px;
  color: #344054;
  font-size: 11px;
  font-weight: 700;
}

.hazard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 7px;
}

.hazard-chip {
  padding: 3px 6px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.hazard-chip.is-supported {
  border-color: #6ce9a6;
  background: #ecfdf3;
  color: #027a48;
}

.hazard-chip.is-unsupported {
  border-color: #d0d5dd;
  background: #f9fafb;
  color: #667085;
}

.shelter-caution {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #eaecf0;
  color: #667085;
  font-size: 10px;
  line-height: 1.45;
}

.type-chip.type-toilet {
  border-color: #67e3f9;
  background: #ecfdff;
  color: #0e7090;
}

.type-chip.type-phone {
  border-color: #6ce9a6;
  background: #ecfdf3;
  color: #027a48;
}

.type-chip.type-aed {
  border-color: #fda29b;
  background: #fff1f0;
  color: #b42318;
}

.type-chip.type-wifi {
  border-color: #84caff;
  background: #eff8ff;
  color: #175cd3;
}

.phone-marker {
  display: grid;
  place-items: center;
  border: 2px solid #027a48;
  border-radius: 50%;
  background: #6ce9a6;
  color: #054f31;
  box-shadow: 0 2px 7px rgba(16, 24, 40, .28);
  font-size: 17px;
  font-weight: 800;
}

.phone-availability {
  margin-top: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #fffaeb;
  color: #7a2e0e;
  font-size: 11px;
  font-weight: 700;
}

.aed-marker {
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 7px;
  outline: 2px solid #b42318;
  background: #d92d20;
  color: #fff;
  box-shadow: 0 2px 7px rgba(16, 24, 40, .32);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.aed-availability {
  margin-top: 7px;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
}

.aed-note {
  margin-top: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #fff1f0;
  color: #7a271a;
  font-size: 11px;
  font-weight: 700;
}

.wifi-marker {
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 7px;
  outline: 2px solid #175cd3;
  background: #1570ef;
  color: #fff;
  box-shadow: 0 2px 7px rgba(16, 24, 40, .3);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.wifi-details {
  margin-top: 7px;
  color: #1849a9;
  font-size: 11px;
  line-height: 1.5;
}

.wifi-disaster-note {
  margin-top: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #eff8ff;
  color: #1849a9;
  font-size: 11px;
  font-weight: 700;
}

.facility-details {
  margin-top: 5px;
  color: #344054;
  font-size: 11px;
}

.position-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.data-source-link {
  margin-top: 8px;
  font-size: 11px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 275px);
  overflow: auto;
}

.item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  cursor: pointer;
}

.item:hover { border-color: #d0d5dd; }
.item.old { opacity: .56; }
.item.season {
  opacity: .78;
  border-style: dashed;
}

.item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.item-badges {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.type-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  padding: 1px 7px;
  background: #f9fafb;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.type-chip.type-sighting { border-color: #84adff; background: #eff4ff; color: #175cd3; }
.type-chip.type-camera { border-color: #bdb4fe; background: #f4f3ff; color: #5925dc; }
.type-chip.type-trace { border-color: #f7b27a; background: #fef6ee; color: #b93815; }
.type-chip.type-capture { border-color: #fda29b; background: #fff1f0; color: #b42318; }
.type-chip.type-unknown { border-color: #d0d5dd; background: #f2f4f7; color: #667085; }

.badge {
  flex: 0 0 auto;
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  background: var(--old);
}

.badge.new { background: var(--danger); }
.badge.recent { background: var(--warning); }
.badge.week { background: var(--week); }
.badge.season { background: var(--season); }

.loc {
  color: #344054;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}

.time,
.body,
.weather,
.distance {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.weather {
  margin-top: 4px;
  color: #344054;
  font-weight: 700;
}

.distance {
  margin-top: 3px;
  color: #175cd3;
  font-weight: 700;
}

.body {
  margin-top: 6px;
  display: -webkit-box;
  overflow: hidden;
  color: #344054;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.links {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #f9fafb;
  color: #175cd3;
  font-weight: 700;
  text-decoration: none;
}

.links a:hover {
  border-color: #84adff;
  background: #eff4ff;
}

.empty {
  color: var(--muted);
  font-size: 13px;
  padding: 12px;
}

.custom-marker {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 4px solid #fff;
  outline: 2px solid rgba(0,0,0,.72);
  box-shadow:
    0 2px 10px rgba(0,0,0,.42),
    0 0 0 3px rgba(255,255,255,.25);
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.custom-marker span {
  display: block;
  font-size: 13px;
  line-height: 1;
  transform: translateX(-0.04em);
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}

.custom-marker.new {
  width: 40px;
  height: 40px;
  background: var(--danger);
  border-width: 5px;
  outline-color: rgba(180,35,24,.95);
  animation: markerPulse 1.8s ease-out infinite;
}

.custom-marker.new span {
  font-size: 16px;
}

.custom-marker.recent {
  width: 34px;
  height: 34px;
  background: var(--warning);
  color: #111827;
  outline-color: rgba(17,24,39,.85);
}

.custom-marker.recent span,
.custom-marker.week span {
  text-shadow: none;
}

.custom-marker.week {
  width: 31px;
  height: 31px;
  background: var(--week);
  color: #111827;
  outline-color: rgba(17,24,39,.75);
}

.custom-marker.season {
  width: 25px;
  height: 25px;
  background: var(--season);
  color: #fff;
  border-width: 3px;
  outline-color: rgba(21,112,239,.9);
  box-shadow:
    0 2px 8px rgba(0,0,0,.32),
    0 0 0 3px rgba(21,112,239,.22);
}

.custom-marker.season span {
  font-size: 12px;
}

.custom-marker.old {
  width: 23px;
  height: 23px;
  background: #667085;
  color: #fff;
  border-width: 3px;
  outline-color: rgba(71,84,103,.75);
}

.custom-marker.old span {
  font-size: 11px;
}

@keyframes markerPulse {
  0% {
    box-shadow:
      0 2px 10px rgba(0,0,0,.42),
      0 0 0 0 rgba(180,35,24,.50);
  }

  72% {
    box-shadow:
      0 2px 10px rgba(0,0,0,.42),
      0 0 0 13px rgba(180,35,24,0);
  }

  100% {
    box-shadow:
      0 2px 10px rgba(0,0,0,.42),
      0 0 0 0 rgba(180,35,24,0);
  }
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(17,24,39,.35);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: #111827;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  font-weight: 800;
}

.sponsor-panel h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.sponsor-panel h2 {
  margin: 0 0 10px;
  font-size: 14px;
}

.sponsor-panel a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #f9fafb;
  color: #111827;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid #e5e7eb;
}

.sponsor-panel a:hover {
  background: #fff7ed;
  border-color: #fdba74;
}

.seo-content {
  max-width: 980px;
  margin: 4px auto 32px;
  padding: 20px 16px 28px;
  border-top: 1px solid var(--line);
  color: #344054;
}

.seo-content h2 {
  margin: 22px 0 8px;
  font-size: 18px;
  color: #111827;
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content h3 {
  margin: 18px 0 4px;
  font-size: 15px;
  color: #111827;
}

.seo-content p,
.seo-content li {
  font-size: 14px;
  line-height: 1.8;
}

.seo-content ul {
  padding-left: 1.4em;
}

.site-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fafb;
}

.site-actions-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.site-actions-copy strong {
  color: #111827;
  font-size: 14px;
}

.site-actions-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.site-action-buttons {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.site-action-buttons button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  color: #344054;
  font-weight: 800;
}

.site-action-buttons button:hover {
  border-color: #98a2b3;
  background: #fff;
}

.seo-note {
  color: #667085;
  font-size: 13px;
}

.footer {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: #667085;
}

.footer span,
.footer a {
  display: inline-block;
  margin: 0 8px 8px;
}

.footer a {
  color: #667085;
  text-decoration: none;
}

.footer a:hover {
  color: #111827;
}

.latest-alert {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7f1d1d, #b91c1c);
  color: #fff;
  box-shadow: 0 4px 18px rgba(127,29,29,.25);
  cursor: pointer;
}

.latest-alert:focus-visible {
  outline: 3px solid rgba(180,35,24,.28);
  outline-offset: 3px;
}

.latest-label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.latest-time {
  font-size: 13px;
  opacity: .92;
}

.latest-location {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.notice-panel {
  background: #fffbfa;
  border-color: #fecdca;
}

.notice-panel p {
  margin: 0;
  color: #7a271a;
  font-size: 12px;
  line-height: 1.6;
}

.month-history {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.month-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.month-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.month-bar {
  display: grid;
  gap: 5px;
  justify-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
}

.month-bar span {
  display: block;
  width: 100%;
  max-width: 26px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #fda29b, #b42318);
  opacity: .62;
}

.month-bar small {
  font-size: 10px;
  line-height: 1;
}

.weather-stats {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.weather-stats:empty {
  display: none;
}

.weather-stats-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.weather-chart {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.weather-chart:last-child {
  margin-bottom: 0;
}

.weather-chart-title {
  color: #344054;
  font-size: 11px;
  font-weight: 700;
}

.weather-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 20px;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.weather-row-label,
.weather-row-count {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.weather-row-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-row-count {
  text-align: right;
}

.weather-row-track {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
}

.weather-row-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #84caff, #175cd3);
}

@media (max-width: 1100px) {

  .wrap {
    display: block;
    padding: 8px 8px 12px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  #map {
    width: 100%;
    max-width: none;
    height: min(60svh, 520px);
    min-height: 390px;
    min-width: 0;
    margin-bottom: 0;
    border-radius: 12px;
  }

  .list {
    max-height: none;
  }

  aside {
    width: 100%;
    max-width: none;
    margin-top: 10px;
  }

  header {
    padding: 10px 10px 8px;
  }

  h1 {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 2px;
  }

  .lead {
    font-size: 11px;
    line-height: 1.45;
  }

  .panel {
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 1px 6px rgba(16,24,40,.04);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .filters,
  .map-options,
  .type-filters {
    gap: 7px;
    width: 100%;
    max-width: 100%;
    justify-self: start;
  }

  .type-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .type-filters button {
    flex: 0 0 auto;
    width: auto;
    min-width: 64px;
  }

  .filters {
    margin-top: 6px;
    margin-bottom: 8px;
  }

  .quick-actions {
    gap: 7px;
    margin-top: 8px;
  }

  .quick-actions button {
    height: 38px;
    font-size: 12px;
  }

  .filters button,
  .type-filters button {
    height: 38px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .map-options {
    margin-top: 8px;
  }

  .layer-option {
    min-height: 54px;
  }

  .filters button.active {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
  }

  .legend {
    margin-top: 8px;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 4px 8px;
    font-size: 10px;
  }

  .legend span::before {
    width: 8px;
    height: 8px;
    margin-right: 4px;
  }

  .meta {
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    margin: 4px 0 0;
  }

  .near-status {
    font-size: 11px;
  }

  .heat-note {
    display: none;
  }

  .item {
    border-radius: 12px;
    padding: 12px;
  }

  .links a {
    min-height: 34px;
    padding: 0 12px;
  }

  .sponsor-panel {
    margin-top: 8px;
  }

  .latest-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 10px;
    align-items: center;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff4f3;
    color: #7a271a;
    border: 1px solid #fecdca;
    box-shadow: none;
  }

  .latest-alert:active {
    transform: translateY(1px);
  }

  .latest-label {
    grid-row: 1 / span 2;
    margin: 0;
    padding: 4px 8px;
    background: var(--danger);
    color: #fff;
    letter-spacing: 0;
  }

  .latest-body {
    min-width: 0;
  }

  .latest-time {
    color: #912018;
    font-size: 11px;
    opacity: 1;
  }

  .latest-location {
    margin-top: 1px;
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
  }

  .notice-panel {
    padding: 10px 12px;
  }

  .month-history {
    margin-top: 10px;
  }

  .weather-stats {
    margin-top: 10px;
  }

  .seo-content {
    margin: 4px 8px 22px;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .seo-content h2 {
    margin: 16px 0 6px;
    font-size: 15px;
    line-height: 1.45;
  }

  .seo-content h2:first-child {
    margin-top: 0;
  }

  .seo-content p,
  .seo-content li {
    font-size: 12px;
    line-height: 1.7;
  }

  .seo-content p {
    margin: 0 0 10px;
  }

  .seo-content ul {
    margin: 8px 0 10px;
    padding-left: 1.25em;
  }

  .site-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0 18px;
    padding: 12px;
  }

  .site-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-action-buttons:has(#installButton:not([hidden])) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-action-buttons button {
    width: 100%;
    padding: 0 10px;
  }

  .seo-note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .footer {
    padding: 12px 20px 22px;
  }
}
