:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --paper: #fbfcfd;
  --surface: #ffffff;
  --surface-float: rgba(255, 255, 255, 0.88);
  --surface-muted: #eef3f6;
  --ink: #0b2038;
  --muted: #546579;
  --soft: #718197;
  --line: #d8e0e7;
  --line-strong: #bdc9d4;
  --blue: #143d5a;
  --blue-soft: #edf3f7;
  --green: #176b55;
  --red: #c73a3a;
  --orange: #b76512;
  --purple: #6750a4;
  --shadow: 0 12px 32px rgba(11, 32, 56, 0.08);
  --shadow-soft: 0 1px 2px rgba(11, 32, 56, 0.06);
  --shadow-float: 0 24px 60px rgba(11, 32, 56, 0.18);
  --shadow-panel: 0 18px 48px rgba(11, 32, 56, 0.14);
  --radius: 8px;
  --float-radius: 22px;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 13px;
  --text-base: 15px;
  --text-title: 17px;
  --weight-label: 700;
  --weight-strong: 760;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1115;
  --paper: #151922;
  --surface: #171c24;
  --surface-float: rgba(21, 25, 34, 0.88);
  --surface-muted: #202a35;
  --ink: #f3f6f8;
  --muted: #b2bdc9;
  --soft: #8f9baa;
  --line: #2c3643;
  --line-strong: #3a4655;
  --blue: #9ebbd4;
  --blue-soft: #12283d;
  --green: #68b99d;
  --red: #ff7770;
  --orange: #ff9d42;
  --purple: #b7a6ff;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-float: 0 28px 72px rgba(0, 0, 0, 0.48);
  --shadow-panel: 0 18px 54px rgba(0, 0, 0, 0.42);
}

:root[data-alert="prepared"] {
  --bg: #fff7d6;
  --paper: #fffdf1;
  --surface: #fffef8;
  --surface-float: rgba(255, 251, 229, 0.92);
  --surface-muted: #fff0ad;
  --ink: #171717;
  --muted: #514327;
  --soft: #6f5a2c;
  --line: #d6b85f;
  --line-strong: #9f7d14;
  --blue: #171717;
  --blue-soft: #fff0ad;
  --green: #126b4d;
  --orange: #9a4f00;
  --shadow: 0 16px 36px rgba(23, 23, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.civic-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-float);
  box-shadow: 0 1px 0 rgba(11, 32, 56, 0.03);
  backdrop-filter: blur(14px);
}

:root[data-alert="prepared"] .civic-header {
  border-bottom: 3px solid #171717;
  background: rgba(255, 230, 107, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--blue) 94%, #fff);
  color: #fff;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: var(--weight-label);
}

.sync-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(11, 122, 88, 0.36);
  animation: live-pulse 1800ms ease-out infinite;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.section-nav {
  grid-column: 1 / -1;
  order: 3;
  align-items: center;
}

.data-status {
  display: none;
  margin: 0;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.data-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--green);
}

.language-selector,
.theme-toggle,
.alert-mode-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.theme-toggle {
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 36px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.alert-mode-toggle {
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 36px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.alert-mode-toggle[aria-pressed="true"] {
  border-color: #171717;
  background: #171717;
  color: #ffe66b;
}

.theme-toggle[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.language-selector button {
  min-width: 40px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.language-selector button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.workspace {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: 12px;
}

.left-rail {
  order: 3;
  display: grid;
  gap: 10px;
}

.map-workspace {
  order: 1;
  min-width: 0;
}

.detail-rail {
  order: 2;
  position: relative;
  max-height: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px 16px 8px 8px;
  background: var(--surface-float);
  box-shadow: 0 -12px 34px rgba(11, 32, 56, 0.1), var(--shadow);
}

.detail-rail.is-collapsed .selected-event-panel {
  display: none;
}

.detail-rail[hidden] {
  display: none;
}

.assist-panel,
.rail-section,
.event-list,
.info-panel,
.selected-event-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

@supports (backdrop-filter: blur(12px)) {
  .assist-panel,
  .rail-section,
  .event-list,
  .info-panel,
  .detail-rail,
  .map-legend,
  .map-toolbar span,
  .map-toolbar button {
    backdrop-filter: blur(14px);
  }
}

.assist-panel {
  padding: 18px 16px;
  border-left: 4px solid var(--blue);
  background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 9%, transparent), transparent 76%), var(--surface-float);
  color: var(--ink);
}

.assist-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.assist-panel p:first-child {
  margin-bottom: 8px;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.assist-panel h1 {
  margin: 0 0 10px;
  max-width: 12ch;
  font-size: 26px;
  line-height: 1.04;
  letter-spacing: 0;
}

.rail-section {
  padding: 14px;
}

.rail-section h2 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.2;
}

.profile-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  overflow: visible;
  padding: 2px 0 4px;
}

.profile-selector::-webkit-scrollbar,
.poi-filters::-webkit-scrollbar,
.view-tabs::-webkit-scrollbar,
.left-rail::-webkit-scrollbar {
  display: none;
}

.profile-selector button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  flex: 1 1 136px;
  min-height: 48px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  white-space: nowrap;
  text-align: left;
}

.profile-selector button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.profile-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid currentColor;
  border-radius: 7px;
}

.profile-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.profile-copy strong,
.profile-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-copy strong {
  font-size: 13px;
  line-height: 1.15;
}

.profile-copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.profile-selector button[aria-pressed="true"] .profile-copy span {
  color: rgba(255, 255, 255, 0.82);
}

.profile-impact {
  margin: 8px 0 0;
  padding: 9px 10px;
  border: 1px solid rgba(13, 59, 102, 0.16);
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.switch-control {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--blue);
}

.switch-control::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
}

.switch-control.is-muted {
  background: #7890a8;
}

.filter-row[aria-checked="false"] .switch-control {
  background: #7890a8;
}

.filter-row[aria-checked="false"] .switch-control::after {
  right: auto;
  left: 3px;
}

.alternative-toolbar {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.poi-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
  padding-bottom: 3px;
}

.poi-filters button {
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.poi-filters button {
  padding: 0 10px;
}

.poi-filters button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(13, 59, 102, 0.1);
}

.source-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.source-note h2,
.source-note p {
  margin: 0;
}

.source-note h2 {
  color: var(--ink);
}

.source-note a {
  display: inline-flex;
  margin-top: 8px;
}

.source-attribution {
  margin: 0;
  padding: 0 3px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.35;
}

.status-dot {
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(11, 122, 88, 0.1);
}

.zbe-checker {
  display: grid;
  gap: 8px;
}

.zbe-checker label {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.zbe-checker select {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.zbe-result {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(11, 122, 88, 0.2);
  border-radius: 7px;
  background: rgba(11, 122, 88, 0.08);
  color: var(--green);
  font-size: 12px;
  line-height: 1.35;
}

.zbe-result[data-level="review"] {
  border-color: rgba(183, 101, 18, 0.28);
  background: rgba(183, 101, 18, 0.1);
  color: var(--orange);
}

.zbe-result[data-level="restricted"] {
  border-color: rgba(183, 101, 18, 0.32);
  background: rgba(183, 101, 18, 0.12);
  color: var(--orange);
}

.zbe-checker a {
  font-size: 12px;
}

.view-tabs {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}

.view-tabs button {
  position: relative;
  min-height: 44px;
  padding: 0 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}

.view-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.view-tabs button[aria-pressed="true"] {
  color: var(--blue);
}

.view-tabs button[aria-pressed="true"]::after {
  background: var(--blue);
}

.map-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.map-shell[hidden],
.view-panel[hidden] {
  display: none;
}

.map-toolbar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.map-toolbar span,
.map-toolbar button {
  pointer-events: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.map-toolbar span {
  padding: 7px 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.map-toolbar button {
  min-height: 32px;
  padding: 0 11px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.map-canvas {
  height: min(56vh, 520px);
  min-height: 360px;
  background: #e7eef2;
}

:root[data-theme="dark"] .maplibregl-canvas {
  filter: invert(0.9) hue-rotate(180deg) saturate(0.78) brightness(0.82);
}

.map-help {
  margin: 8px 2px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.map-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  max-width: min(280px, calc(100% - 24px));
  padding: 12px 13px;
  border: 1px solid rgba(11, 32, 56, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.2;
  box-shadow: var(--shadow-soft);
}

.map-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.legend-dot,
.legend-line,
.legend-zone {
  flex: 0 0 auto;
}

.legend-dot {
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 999px;
}

.legend-event {
  background: var(--green);
}

.legend-alternative {
  background: var(--purple);
}

.legend-line {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--orange);
}

.legend-zone {
  width: 18px;
  height: 13px;
  border: 1px solid var(--orange);
  border-style: dashed;
  border-radius: 4px;
  background: rgba(183, 101, 18, 0.1);
}

.map-event-tray {
  display: none;
}

.map-shell.is-expanded {
  position: fixed;
  inset: 10px;
  z-index: 60;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(11, 32, 56, 0.2);
}

.map-shell.is-expanded .map-canvas {
  height: calc(100vh - 20px);
  min-height: 0;
}

.map-shell.is-expanded + .map-event-tray {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 16px;
  z-index: 66;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 2px 2px;
}

.map-event-tray button {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 210px;
  max-width: 280px;
  padding: 9px 10px;
  border: 1px solid rgba(11, 32, 56, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.map-event-tray button[aria-pressed="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(13, 59, 102, 0.12), var(--shadow-soft);
}

.map-event-tray strong,
.map-event-tray small {
  display: block;
}

.map-event-tray strong {
  font-size: 12px;
  line-height: 1.2;
}

.map-event-tray small {
  color: var(--muted);
  font-size: 11px;
}

.tray-marker {
  width: 17px;
  height: 17px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(11, 32, 56, 0.18);
}

.tray-marker.is-mid {
  background: var(--orange);
}

.tray-marker.is-high {
  background: var(--red);
}

.event-list,
.info-panel {
  padding: 14px;
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(11, 32, 56, 0.28);
  pointer-events: none;
}

.info-panel:not([hidden]) {
  display: grid;
  width: 100%;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

body.has-section-tab .workspace {
  display: block;
  max-width: 1040px;
  padding: 18px;
}

body.has-section-tab .left-rail,
body.has-section-tab .detail-rail,
body.has-section-tab .map-shell,
body.has-section-tab .map-event-tray,
body.has-section-tab .map-help {
  display: none;
}

body.has-section-tab .map-workspace {
  width: 100%;
}

body.has-section-tab .info-panel:not([hidden]) {
  max-height: none;
  margin: 0 auto;
  overflow: visible;
}

.panel-close {
  display: none;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: start;
  margin-bottom: 12px;
}

.section-heading .eyebrow,
.section-heading h2,
.section-heading p {
  grid-column: 1;
}

.event-panel-toggle {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-heading h2,
.panel-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.16;
}

.panel-heading {
  max-width: 64ch;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  font-size: clamp(24px, 2.2vw, 32px);
}

.section-heading p:last-child,
.panel-heading p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.event-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.local-delta-notice {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--blue-soft) 82%, var(--surface-float));
  box-shadow: 0 10px 26px rgba(11, 32, 56, 0.1);
  color: var(--ink);
}

.local-delta-notice[hidden] {
  display: none;
}

.local-delta-notice strong {
  font-size: 12px;
  line-height: 1.2;
}

.local-delta-notice span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.event-list.is-collapsed .event-stack {
  display: none;
}

.event-list.is-collapsed .local-delta-notice {
  display: none;
}

.event-list.is-collapsed .section-heading {
  margin-bottom: 0;
}

.event-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.event-card[data-selected="true"] {
  border-color: color-mix(in srgb, var(--blue) 18%, var(--line));
  background: color-mix(in srgb, var(--blue-soft) 82%, var(--surface));
  box-shadow: 0 14px 34px rgba(11, 32, 56, 0.15);
  transform: translateY(-1px);
}

.event-card[data-severity="3"] {
  border-left-color: var(--orange);
}

.event-card[data-severity="4"],
.event-card[data-severity="5"] {
  border-left-color: var(--red);
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  color: var(--soft);
  font-size: var(--text-xs);
  line-height: 1.28;
}

.veracity-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 3px 6px;
  border: 1px solid rgba(11, 122, 88, 0.2);
  border-radius: 999px;
  background: rgba(11, 122, 88, 0.08);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.detail-veracity {
  margin-top: 2px;
}

.event-trust-line {
  color: var(--green);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  line-height: 1.28;
}

.source-strip span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.event-header > div {
  min-width: 0;
}

.event-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  text-transform: uppercase;
}

.severity-badge,
.detail-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(11, 122, 88, 0.24);
  border-radius: 5px;
  background: rgba(11, 122, 88, 0.08);
  color: var(--green);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
}

.event-card[data-severity="3"] .severity-badge {
  border-color: rgba(183, 101, 18, 0.28);
  background: rgba(183, 101, 18, 0.1);
  color: var(--orange);
}

.event-card[data-severity="4"] .severity-badge,
.event-card[data-severity="5"] .severity-badge,
.detail-status.is-high {
  border-color: rgba(199, 58, 58, 0.3);
  background: rgba(199, 58, 58, 0.1);
  color: var(--red);
}

.event-card h3 {
  margin: 5px 0 0;
  font-size: var(--text-title);
  font-weight: var(--weight-strong);
  line-height: 1.22;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.skeleton-card {
  display: grid;
  gap: 10px;
  min-width: 260px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.skeleton-card span,
.skeleton-card strong,
.skeleton-card p,
.skeleton-card i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--surface-muted), var(--line), var(--surface-muted));
  background-size: 220% 100%;
  animation: skeleton-sweep 1100ms ease-in-out infinite;
}

.skeleton-card strong {
  width: 70%;
  height: 20px;
}

.skeleton-card p {
  width: 92%;
}

.skeleton-card i {
  width: 58%;
  height: 42px;
  border-radius: 7px;
}

.event-distance {
  color: var(--muted);
  font-size: var(--text-md);
  font-weight: var(--weight-label);
  white-space: nowrap;
}

.event-card p {
  margin: 0;
}

.event-description {
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.38;
}

.event-location {
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--weight-strong);
  line-height: 1.34;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.key-data {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(13, 59, 102, 0.2);
  border-radius: 7px;
  background: var(--blue-soft);
}

.key-data-icon {
  color: var(--blue);
  font-weight: 900;
}

.key-data p {
  min-width: 0;
  margin: 0;
}

.key-data strong,
.key-data span {
  display: block;
  overflow-wrap: break-word;
  word-break: normal;
}

.key-data strong {
  font-size: var(--text-md);
  font-weight: var(--weight-strong);
}

.key-data span {
  color: var(--muted);
  font-size: var(--text-sm);
}

.mode-guidance {
  padding: 8px 10px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  color: var(--ink);
  font-size: 12px;
}

.card-actions,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feedback-button,
.snapshot-button,
.detail-link {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.feedback-group {
  display: flex;
  gap: 10px;
  margin-left: 0;
}

.feedback-button {
  min-width: 52px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 7px;
  font-weight: 800;
}

.feedback-button span + span {
  margin-left: 5px;
}

.snapshot-button {
  min-height: 38px;
  padding: 0 12px;
  border-color: var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.feedback-button[data-selected="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.selected-event-panel {
  display: grid;
  gap: 18px;
  max-height: 100%;
  overflow-y: auto;
  padding: 56px 20px 20px;
  border: 0;
  box-shadow: none;
}

.detail-panel-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-float);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.selected-event-panel h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.18;
  font-weight: var(--weight-strong);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.detail-meta,
.detail-list,
.detail-block {
  display: grid;
  gap: 8px;
}

.detail-meta p,
.detail-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  overflow-wrap: break-word;
  word-break: normal;
}

.detail-list {
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 2px;
  padding: 9px 0;
}

.detail-list dt {
  color: var(--soft);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.detail-block {
  padding-top: 14px;
}

.detail-block h3 {
  margin: 0;
  font-size: 14px;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 7px;
}

.primary-admin-link {
  min-height: 46px;
  width: 100%;
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(183, 101, 18, 0.28);
}

.primary-admin-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.empty-state {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  line-height: 1.45;
}

.info-panel {
  display: grid;
  gap: 16px;
}

.info-section {
  display: grid;
  gap: 8px;
  max-width: 66ch;
}

.info-accordion {
  display: grid;
  gap: 8px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.info-accordion summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.info-accordion[open] summary {
  margin-bottom: 8px;
}

.info-section h3 {
  margin: 0;
  font-size: 15px;
}

.source-list,
.method-list,
.faq-list {
  display: grid;
  gap: 8px;
}

.source-row,
.map-explainer,
.faq-item,
.limitation-list li {
  border-top: 1px solid var(--line);
}

.source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.source-row strong,
.source-row span,
.source-row small {
  display: block;
}

.source-row span,
.source-row small,
.dataset-list,
.method-list,
.info-copy,
.limitation-list,
.map-explainer p,
.faq-item p {
  color: var(--muted);
  line-height: 1.6;
}

.source-row a {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  white-space: nowrap;
}

.source-health {
  padding: 8px 0 2px;
}

.health-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.health-row {
  display: grid;
  grid-template-columns: auto minmax(120px, 0.9fr) minmax(180px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.health-led {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent);
}

.health-row[data-health="review"] .health-led {
  background: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 18%, transparent);
}

.health-row[data-health="quiet"] .health-led,
.health-row[data-health="warn"] .health-led {
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(84, 103, 122, 0.14);
}

.health-row strong,
.health-row small {
  color: var(--ink);
}

.health-row span:not(.health-led),
.health-row small {
  color: var(--muted);
  line-height: 1.35;
}

.dataset-list {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
}

.dataset-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding-left: 0;
}

.dataset-icon {
  display: inline-grid;
  place-items: center;
  min-width: 31px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue-soft) 78%, transparent);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.method-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: method-step;
}

.method-list li {
  position: relative;
  padding: 0 0 12px 34px;
  border-bottom: 1px solid var(--line);
  counter-increment: method-step;
}

.method-list li::before {
  content: counter(method-step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.info-copy {
  margin: 0;
}

.limitation-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.limitation-list li,
.map-explainer,
.faq-item {
  padding: 10px 0;
}

.map-explainer strong,
.faq-item strong {
  display: block;
  color: var(--ink);
}

.map-explainer p,
.faq-item p {
  margin: 4px 0 0;
}

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

.info-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.urban-pulse {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
  padding: 18px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.urban-pulse h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.02;
}

.urban-pulse p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.urban-pulse dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.urban-pulse dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.urban-pulse dt {
  color: var(--muted);
  font-size: 12px;
}

.urban-pulse dd {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.admin-deeplink {
  padding: 8px 10px;
  border-left: 3px solid var(--orange);
  background: color-mix(in srgb, var(--orange) 9%, transparent);
  color: var(--ink) !important;
  font-size: 12px;
}

.info-metrics div {
  min-width: 110px;
  padding: 0;
}

.info-metrics strong,
.info-metrics span {
  display: block;
}

.info-metrics strong {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.info-metrics span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.maplibregl-popup-content {
  max-width: 230px;
  padding: 10px 11px;
  border-radius: 7px;
  color: var(--ink);
  font: 12px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.map-popup-title {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.map-popup-meta {
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

@media (max-width: 719px) {
  .urban-pulse,
  .health-row {
    grid-template-columns: 1fr;
  }

  .health-row {
    gap: 5px;
  }

  .source-row a {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

@media (min-width: 720px) {
  .data-status {
    display: block;
  }

  .event-stack {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (min-width: 1180px) {
  body:not(.has-section-tab) {
    overflow: hidden;
  }

  .civic-header {
    grid-template-columns: 320px minmax(360px, 1fr) auto;
    min-height: 72px;
    padding: 0 28px;
  }

  .section-nav {
    grid-column: auto;
    order: initial;
    justify-content: center;
    align-self: stretch;
  }

  .info-panel:not([hidden]) {
    border-radius: var(--float-radius);
    background: var(--surface-float);
    box-shadow: var(--shadow-panel);
  }

  .workspace {
    position: relative;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr) 350px;
    grid-template-rows: minmax(680px, calc(100vh - 72px));
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 72px);
    padding: 0;
    overflow: hidden;
  }

  .left-rail,
  .map-workspace,
  .detail-rail {
    order: initial;
  }

  .map-workspace {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 0;
  }

  .left-rail,
  .detail-rail {
    position: relative;
    z-index: 10;
    align-self: start;
    margin-top: 18px;
    max-height: calc(100vh - 120px);
    overflow: auto;
  }

  .left-rail {
    grid-column: 1;
    grid-row: 1;
    width: 292px;
    margin-left: 16px;
    scrollbar-width: none;
  }

  .detail-rail {
    position: absolute;
    grid-column: 1 / -1;
    grid-row: 1;
    left: 326px;
    right: 374px;
    bottom: 28px;
    width: auto;
    margin: 0;
    max-height: 292px;
    overflow: hidden;
    border: 1px solid rgba(11, 32, 56, 0.08);
    border-radius: var(--float-radius);
    background: color-mix(in srgb, var(--surface-float) 94%, transparent);
    box-shadow: 0 -18px 42px rgba(11, 32, 56, 0.13), 0 10px 30px rgba(11, 32, 56, 0.08);
  }

  .detail-rail.is-collapsed {
    left: auto;
    width: max-content;
    min-width: 0;
    max-height: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .detail-panel-toggle {
    top: 10px;
    right: 14px;
    min-height: 36px;
    border-color: rgba(11, 32, 56, 0.14);
    background: color-mix(in srgb, var(--surface-float) 96%, transparent);
  }

  .selected-event-panel {
    grid-template-columns: minmax(190px, 0.9fr) minmax(210px, 0.95fr) minmax(285px, 1.15fr);
    align-items: start;
    gap: 12px 18px;
    max-height: 292px;
    overflow-y: auto;
    padding: 54px 16px 14px;
  }

  .selected-event-panel h2 {
    font-size: clamp(21px, 1.55vw, 27px);
  }

  .selected-event-panel .detail-meta {
    grid-column: 1;
    grid-row: 1;
  }

  .selected-event-panel .detail-list {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .selected-event-panel .detail-block {
    padding-top: 0;
    border-top: 0;
  }

  .selected-event-panel .detail-block:nth-of-type(1) {
    grid-column: 3;
    grid-row: 1;
  }

  .selected-event-panel .detail-block:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2;
    padding-top: 10px;
    border-top: 1px solid rgba(11, 32, 56, 0.12);
  }

  .selected-event-panel .detail-block:nth-of-type(3) {
    grid-column: 3;
    grid-row: 2;
    padding-top: 10px;
    border-top: 1px solid rgba(11, 32, 56, 0.12);
  }

  .detail-meta,
  .detail-list,
  .detail-block {
    gap: 7px;
  }

  .detail-list div {
    padding: 6px 0;
  }

  .detail-block {
    padding-top: 10px;
  }

  .detail-block p,
  .detail-list dd {
    line-height: 1.32;
  }

  .detail-actions {
    gap: 6px;
  }

  .feedback-button {
    min-height: 44px;
  }

  .map-toolbar {
    left: 326px;
    right: 520px;
  }

  .map-legend {
    left: 326px;
  }

  .map-help {
    left: 326px;
    right: 520px;
    max-width: 560px;
  }

  .event-list {
    left: auto;
    right: 16px;
    top: 18px;
    bottom: auto;
    width: min(376px, calc(100vw - 356px));
    padding: 12px;
  }

  .event-list .section-heading {
    margin-bottom: 8px;
  }

  .event-list .section-heading p:last-child {
    display: none;
  }

  .event-list .section-heading > p:not(.eyebrow) {
    display: none;
  }

  .event-stack {
    max-height: min(430px, calc(100vh - 360px));
  }

  .event-card {
    gap: 5px 10px;
    padding: 10px 9px 10px 12px;
  }

  .event-card h3 {
    font-size: 15px;
  }

  .key-data span {
    font-size: 10.5px;
  }

  .info-panel:not([hidden]) {
    padding: clamp(26px, 4vw, 46px);
  }

  .info-panel {
    gap: 22px;
  }

  .info-section,
  .panel-heading {
    max-width: 66ch;
  }

  .source-row {
    padding: 16px 0;
  }

  .method-list li {
    padding-bottom: 15px;
  }

  .info-copy {
    max-width: 68ch;
  }

  .assist-panel,
  .rail-section,
  .event-list,
  .info-panel,
  .selected-event-panel {
    border-color: rgba(11, 32, 56, 0.08);
    border-radius: var(--float-radius);
    background: var(--surface-float);
    box-shadow: var(--shadow-panel);
  }

  .assist-panel {
    background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 12%, transparent), transparent 78%), var(--surface-float);
    color: var(--ink);
  }

  .assist-panel h1 {
    max-width: 13ch;
    font-size: 23px;
  }

  .assist-panel p {
    color: var(--muted);
  }

  .assist-panel p:first-child {
    color: var(--blue);
  }

  .profile-selector {
    display: grid;
    gap: 8px;
    overflow: visible;
  }

  .profile-selector button {
    width: 100%;
  }

  .map-canvas {
    height: calc(100vh - 72px);
    min-height: 680px;
  }

  .map-shell {
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .map-toolbar {
    top: 20px;
  }

  .map-shell.is-expanded .map-toolbar {
    left: 20px;
    right: 20px;
    z-index: 70;
  }

  .map-toolbar span,
  .map-toolbar button,
  .map-legend {
    background: var(--surface-float);
    border-radius: 14px;
    box-shadow: var(--shadow-panel);
  }

  .map-legend {
    left: 326px;
    top: 154px;
    bottom: auto;
    max-width: 360px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px 15px;
  }

  .map-help {
    position: absolute;
    left: 326px;
    right: 374px;
    top: 66px;
    z-index: 5;
    width: fit-content;
    max-width: 560px;
    margin: 0;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-float);
    box-shadow: var(--shadow-panel);
  }

  .event-list {
    position: absolute;
    left: auto;
    right: 16px;
    top: 18px;
    bottom: auto;
    z-index: 11;
    width: min(376px, calc(100vw - 356px));
    max-height: calc(100vh - 120px);
    overflow: hidden;
    padding: 12px;
    border: 1px solid rgba(11, 32, 56, 0.08);
  }

  .event-list .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 14px;
    align-items: end;
  }

  .event-list .section-heading .eyebrow {
    grid-column: 1 / -1;
  }

  .event-list .section-heading p:last-child {
    display: none;
  }

  .event-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-height: min(430px, calc(100vh - 360px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 4px 2px 0;
    scrollbar-color: var(--blue) rgba(11, 32, 56, 0.12);
    scrollbar-width: thin;
  }

  .event-stack::-webkit-scrollbar {
    width: 9px;
  }

  .event-stack::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(11, 32, 56, 0.14);
  }

  .event-stack::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--blue);
  }

  .event-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    padding: 10px 9px 10px 12px;
    border: 0;
    border-left: 4px solid var(--green);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .event-card + .event-card {
    border-top: 1px solid var(--line);
  }

  .event-card[data-selected="true"] {
    background: color-mix(in srgb, var(--blue-soft) 74%, var(--surface-float));
    box-shadow: 0 14px 34px rgba(11, 32, 56, 0.18);
    transform: translateY(-1px);
  }

  .event-card .source-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .event-card .source-strip span:last-child {
    display: none;
  }

  .event-card .source-strip span:first-child {
    display: none;
  }

  .event-header {
    grid-column: 1;
    min-width: 0;
  }

  .event-distance {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-weight: var(--weight-label);
  }

  .event-card h3 {
    margin-top: 2px;
    font-size: 15px;
    line-height: 1.24;
  }

  .event-description {
    display: none;
  }

  .key-data {
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .key-data-icon {
    display: none;
  }

  .key-data strong {
    font-size: var(--text-sm);
  }

  .key-data span {
    display: inline;
    font-size: var(--text-xs);
  }

  .card-actions {
    display: none;
  }

  .detail-list div,
  .detail-block {
    border-color: rgba(11, 32, 56, 0.12);
  }

  .detail-actions {
    display: grid;
    grid-template-columns: minmax(132px, 0.75fr) auto;
    gap: 10px;
    align-items: stretch;
  }

  .detail-actions .feedback-group {
    grid-column: auto;
  }

  .detail-actions .snapshot-button {
    width: 100%;
    min-height: 42px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .event-card,
  .feedback-button,
  .snapshot-button,
  .profile-selector button,
  .poi-filters button {
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
  }

  .event-card:hover,
  .feedback-button:hover,
  .snapshot-button:hover {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sync-chip::before,
  .skeleton-card span,
  .skeleton-card strong,
  .skeleton-card p,
  .skeleton-card i {
    animation: none;
  }
}

@keyframes skeleton-sweep {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 122, 88, 0.36);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(11, 122, 88, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(11, 122, 88, 0);
  }
}
