:root {
  --red: #c91f32;
  --gold: #f4c430;
  --green: #167a47;
  --green-dark: #0f3f2f;
  --black: #151515;
  --ink: #202124;
  --muted: #5f6368;
  --surface: #f8fafb;
  --paper: #ffffff;
  --line: #dadce0;
  --blue: #497f9c;
  --blue-soft: #dcecf2;
  --google-blue: #1a73e8;
  --google-blue-soft: #e8f0fe;
  --shadow: 0 1px 2px rgba(60, 64, 67, 0.16), 0 2px 6px rgba(60, 64, 67, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ghana-ribbon {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.35fr;
  height: 8px;
  width: 100%;
}

.ghana-ribbon span {
  display: block;
}

.ribbon-red {
  background: var(--red);
}

.ribbon-gold {
  background: var(--gold);
}

.ribbon-green {
  background: var(--green);
}

.ribbon-black {
  background: var(--black);
}

.site-header {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  background: var(--green-dark);
  color: white;
}

.header-media,
.header-shade {
  position: absolute;
  inset: 0;
}

.header-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.03);
}

.header-shade {
  background:
    linear-gradient(90deg, rgba(6, 21, 15, 0.88), rgba(6, 21, 15, 0.5) 48%, rgba(6, 21, 15, 0.12)),
    linear-gradient(180deg, rgba(6, 21, 15, 0.4), rgba(6, 21, 15, 0.08) 54%, rgba(255, 253, 247, 0.98));
}

.top-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand-mark small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
}

.brand-icon svg {
  fill: currentColor;
  stroke: none;
  color: var(--gold);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 110px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 590px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2.7vw, 1.2rem);
}

.submit-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.hero-copy p.scope-note {
  max-width: 680px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 620;
  backdrop-filter: blur(14px);
}

.hero-copy p.scope-note strong {
  color: white;
  font-weight: 850;
}

.mobile-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  backdrop-filter: blur(18px);
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.tab-button svg {
  width: 18px;
  height: 18px;
}

.tab-button.is-active {
  border-color: transparent;
  background: var(--google-blue-soft);
  color: var(--google-blue);
}

.app-shell {
  display: grid;
  gap: 16px;
  width: min(1180px, calc(100% - 24px));
  margin: -62px auto 48px;
  position: relative;
  z-index: 2;
}

.panel {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.mobile-view {
  display: none;
}

.mobile-view.is-active {
  display: block;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.panel-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.26rem;
  line-height: 1.1;
  font-weight: 760;
}

.export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--google-blue);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 820;
  white-space: nowrap;
}

.export-button:hover {
  background: #185abc;
}

.export-button svg {
  width: 18px;
  height: 18px;
}

.panel-heading .section-kicker {
  color: var(--green);
}

.report-id {
  flex: none;
  padding: 6px 9px;
  border: 1px solid #f1e1a7;
  border-radius: 999px;
  background: #fff8e1;
  color: #6f4d00;
  font-size: 0.74rem;
  font-weight: 800;
}

form {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.field-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-group legend,
.text-field span {
  display: block;
  margin-bottom: 8px;
  color: #3c4043;
  font-size: 0.83rem;
  font-weight: 760;
}

.choice-grid {
  display: grid;
  gap: 8px;
}

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

.choice-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  color: var(--ink);
  font-weight: 720;
}

.choice-card input,
.segmented input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-card:has(input:checked) {
  border-color: var(--google-blue);
  background: #fbfdff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
}

.choice-icon.red {
  background: #fde8e9;
  color: var(--red);
}

.choice-icon.gold {
  background: #fff1bd;
  color: #8a6500;
}

.choice-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.choice-icon.green {
  background: #e4f4e8;
  color: var(--green);
}

.choice-icon.black {
  background: #ececea;
  color: var(--black);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #f1f3f4;
}

.segmented label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
}

.segmented input:checked + span {
  background: white;
  color: var(--google-blue);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.18);
}

.segmented input[value="Urgent"]:checked + span {
  color: var(--red);
}

.segmented input[value="Informational"]:checked + span {
  background: #e6f4ea;
  color: var(--green);
}

.location-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.secondary-button {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #3c4043;
  box-shadow: 0 1px 1px rgba(60, 64, 67, 0.08);
}

.secondary-button:hover {
  border-color: #c5c9cf;
  background: #f8fafd;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16);
}

.secondary-button.compact {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.8rem;
}

.secondary-button.is-busy {
  color: var(--muted);
}

.text-field {
  display: block;
  min-width: 0;
}

.location-group .text-field {
  margin-top: 10px;
}

.text-field input,
.text-field textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(60, 64, 67, 0.02);
}

.text-field input,
select {
  min-height: 46px;
  padding: 0 12px;
}

.text-field textarea {
  display: block;
  min-height: 92px;
  resize: vertical;
  padding: 12px;
}

.text-field input:focus,
.text-field textarea:focus,
select:focus {
  border-color: var(--google-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.field-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.location-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #f8fafd;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.location-card.has-location {
  border-style: solid;
  border-color: #c8ddca;
  background: #f0f8f1;
  color: #0b5f36;
}

.location-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #a6afa9;
}

.location-card.has-location .location-dot {
  background: var(--green);
}

.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

#formMessage {
  color: var(--green-dark);
  text-align: right;
}

#formMessage.is-error {
  color: var(--red);
}

.submit-button {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  background: #0b8043;
  color: white;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.18), 0 3px 8px rgba(11, 128, 67, 0.18);
}

.submit-button:hover {
  background: #096f3a;
  box-shadow: 0 2px 4px rgba(60, 64, 67, 0.18), 0 4px 10px rgba(11, 128, 67, 0.2);
}

.map-panel {
  overflow: hidden;
}

.map-heading {
  align-items: center;
}

.map-heading select {
  max-width: 150px;
  background: #f8faf6;
  font-size: 0.84rem;
  font-weight: 850;
}

.location-search {
  display: grid;
  gap: 8px;
  padding: 14px 18px 0;
}

.search-field span {
  margin-bottom: 8px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 104px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--google-blue);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 820;
}

.search-button:hover:not(:disabled) {
  background: #185abc;
}

.search-button:disabled {
  cursor: default;
  opacity: 0.7;
}

.search-button svg {
  width: 18px;
  height: 18px;
}

.search-results {
  display: grid;
  gap: 7px;
}

.search-result {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.search-result:hover {
  border-color: #c5c9cf;
  background: #f8fafd;
}

.search-result strong,
.search-result span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.search-result span,
.search-message {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.search-message {
  padding: 9px 11px;
  border: 1px dashed #cdd5cd;
  border-radius: var(--radius);
  background: #f8fafd;
}

.map-canvas {
  position: relative;
  height: min(72vh, 560px);
  min-height: 430px;
  margin: 18px;
  overflow: hidden;
  border: 1px solid #ced8cf;
  border-radius: var(--radius);
  background: #dbe8d9;
}

.map-canvas.is-pinning {
  cursor: crosshair;
  box-shadow: inset 0 0 0 3px rgba(244, 196, 48, 0.68);
}

#osmMap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  background: #dbe8d9;
  color: var(--ink);
  font-family: inherit;
  touch-action: pan-x pan-y;
}

.map-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  background:
    linear-gradient(115deg, rgba(244, 196, 48, 0.22), transparent 34%),
    #e8efe5;
  color: var(--green-dark);
  font-weight: 900;
  text-align: center;
}

.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(20, 34, 28, 0.18);
}

.leaflet-control-zoom a {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(21, 21, 21, 0.12) !important;
  color: var(--green-dark) !important;
  line-height: 36px !important;
}

.leaflet-control-attribution {
  font-size: 0.68rem !important;
}

.leaflet-marker-icon {
  background: transparent;
  border: 0;
}

.issue-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid white;
  border-radius: 50% 50% 50% 6px;
  background: var(--red);
  color: white;
  box-shadow: 0 8px 18px rgba(20, 34, 28, 0.24);
  cursor: pointer;
  transform: rotate(-45deg);
}

.issue-marker svg {
  width: 17px;
  height: 17px;
  transform: rotate(45deg);
}

.issue-marker.rubbish {
  background: #b77d00;
}

.issue-marker.drainage {
  background: var(--blue);
}

.issue-marker.building {
  background: var(--green);
}

.issue-marker.obstruction {
  background: #222222;
}

.issue-marker.draft {
  background: var(--blue);
  animation: pulsePin 1.4s ease-in-out infinite;
}

.issue-marker.selected {
  outline: 3px solid rgba(244, 196, 48, 0.72);
}

@keyframes pulsePin {
  0%,
  100% {
    box-shadow: 0 8px 18px rgba(20, 34, 28, 0.24), 0 0 0 0 rgba(73, 127, 156, 0.45);
  }
  50% {
    box-shadow: 0 8px 18px rgba(20, 34, 28, 0.24), 0 0 0 10px rgba(73, 127, 156, 0);
  }
}

.map-mode-banner {
  position: absolute;
  z-index: 500;
  left: 50%;
  display: none;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(15, 63, 47, 0.94);
  color: white;
  box-shadow: 0 10px 24px rgba(20, 34, 28, 0.2);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.map-canvas.is-pinning .map-mode-banner {
  display: block;
}

.selected-report {
  min-height: 92px;
  margin: 0 18px 18px;
}

.selected-report-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.selected-report-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 760;
}

.selected-report-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.report-coordinates {
  font-variant-numeric: tabular-nums;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.google-map-link,
.copy-coords-button,
.evidence-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
}

.google-map-link {
  border: 1px solid transparent;
  background: var(--google-blue);
  color: white;
}

.google-map-link:hover {
  background: #185abc;
}

.copy-coords-button {
  border: 1px solid var(--line);
  background: white;
  color: #3c4043;
  cursor: pointer;
}

.copy-coords-button:hover {
  background: #f8fafd;
}

.evidence-link {
  border: 1px solid #c8ddca;
  background: #f0f8f1;
  color: #0b5f36;
}

.evidence-link:hover {
  background: #e6f4ea;
}

.selected-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-chip,
.report-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f3f4;
  color: #3c4043;
  font-size: 0.72rem;
  font-weight: 760;
}

.mini-chip.severity-informational,
.report-chip.severity-informational {
  background: var(--google-blue-soft);
  color: var(--google-blue);
}

.mini-chip.severity-urgent,
.report-chip.severity-urgent {
  background: #fde8e9;
  color: var(--red);
}

.false-alarm-chip,
.false-alarm-label {
  background: #fff8e1;
  color: #6f4d00;
}

.stats-strip {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.2fr;
  gap: 8px;
  padding: 18px 18px 0;
}

.stat-filter {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.stat-filter:hover {
  border-color: #c5c9cf;
  background: #f8fafd;
}

.stat-filter.is-active {
  border-color: var(--google-blue);
  background: var(--google-blue-soft);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.08);
}

.stat-filter[data-severity="Urgent"] strong {
  color: var(--red);
}

.stat-filter[data-severity="Urgent"].is-active {
  border-color: #efb9bd;
  background: #fde8e9;
  box-shadow: 0 0 0 3px rgba(201, 31, 50, 0.08);
}

.stat-filter[data-severity="Informational"].is-active {
  border-color: #c5d7fb;
  background: var(--google-blue-soft);
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  color: var(--google-blue);
  font-size: 1.25rem;
  line-height: 1;
}

.stats-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(0.66rem, 2.25vw, 0.72rem);
  font-weight: 850;
  line-height: 1.15;
}

.report-list {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 18px 18px;
}

.export-row {
  padding: 0 18px 18px;
}

.feed-message {
  padding: 0 18px 18px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 760;
}

.feed-message:empty {
  display: none;
}

.feed-message.is-error {
  color: var(--red);
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #3c4043;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 780;
  white-space: nowrap;
}

.pagination-button:hover:not(:disabled) {
  border-color: #c5c9cf;
  background: #f8fafd;
}

.pagination-button:disabled {
  cursor: default;
  opacity: 0.46;
}

.pagination-button svg {
  width: 17px;
  height: 17px;
}

.page-status {
  min-width: max-content;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-align: center;
}

.report-card {
  min-width: 0;
}

.report-card-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.report-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.report-card-tools {
  display: grid;
  grid-auto-rows: 38px;
  gap: 6px;
}

.report-tool-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #3c4043;
  cursor: pointer;
}

.report-tool-button:hover {
  border-color: #c5c9cf;
  background: #f8fafd;
}

.flag-report-button {
  color: #6f4d00;
}

.delete-report-button {
  color: var(--red);
}

.report-tool-button svg {
  width: 18px;
  height: 18px;
}

.report-card-main:hover {
  border-color: #c5c9cf;
  background: #f8fafd;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
}

.report-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.report-title,
.report-description,
.report-place,
.false-alarm-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-title {
  color: var(--ink);
  font-size: 0.93rem;
}

.report-description,
.report-place,
.report-time,
.false-alarm-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.false-alarm-label {
  justify-self: start;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  color: #6f4d00;
}

.report-time {
  white-space: nowrap;
}

.empty-state {
  padding: 18px;
  border: 1px dashed #cdd5cd;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1180px, calc(100% - 24px));
  margin: -18px auto 42px;
  padding: 16px 2px 0;
  border-top: 1px solid #e5e7eb;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 740;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #3c4043;
  font-size: 0.82rem;
  font-weight: 780;
  text-decoration: none;
}

.footer-links a:hover {
  border-color: #c5c9cf;
  background: #f8fafd;
}

.footer-links svg {
  width: 17px;
  height: 17px;
}

.confirm-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(32, 33, 36, 0.48);
}

.confirm-modal {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(20, 34, 28, 0.24);
}

.confirm-modal h2,
.confirm-modal p {
  margin: 0;
}

.confirm-modal h2 {
  color: var(--ink);
  font-size: 1.08rem;
}

.confirm-modal p {
  color: var(--muted);
  font-size: 0.9rem;
}

.confirm-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #3c4043;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.confirm-cancel,
.confirm-accept {
  min-height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 820;
}

.confirm-cancel {
  border: 1px solid var(--line);
  background: #ffffff;
  color: #3c4043;
}

.confirm-accept {
  border: 1px solid transparent;
  background: var(--google-blue);
  color: #ffffff;
}

.confirm-accept.danger {
  background: var(--red);
}

@media (min-width: 760px) {
  .site-header {
    min-height: 470px;
  }

  .hero-copy {
    padding-top: 58px;
  }

  .mobile-tabs {
    display: none;
  }

  .app-shell {
    grid-template-columns: minmax(310px, 0.9fr) minmax(390px, 1.3fr);
    align-items: start;
    margin-top: -76px;
  }

  .mobile-view,
  .mobile-view.is-active {
    display: block;
  }

  .feed-panel {
    grid-column: 1 / -1;
  }

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

  .stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-canvas {
    height: 520px;
    min-height: 520px;
  }
}

@media (min-width: 1040px) {
  .app-shell {
    grid-template-columns: 360px minmax(420px, 1fr) 330px;
  }

  .feed-panel {
    grid-column: auto;
  }

  .report-list {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-header {
    min-height: 500px;
  }
}

@media (max-width: 759px) {
  .feed-panel.mobile-view.is-active {
    margin-top: 12px;
  }

  .feed-panel .panel-heading {
    align-items: flex-start;
    flex-direction: row;
  }
}

@media (max-width: 420px) {
  .top-nav,
  .hero-copy {
    width: min(100% - 24px, 1180px);
  }

  .brand-mark small {
    display: none;
  }

  .hero-copy {
    padding-top: 30px;
  }

  .app-shell {
    width: min(100% - 16px, 1180px);
  }

  .panel-heading,
  form,
  .stats-strip,
  .report-list,
  .pagination-bar,
  .export-row {
    padding-left: 14px;
    padding-right: 14px;
  }

  .type-grid {
    grid-template-columns: 1fr;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-button {
    width: 100%;
  }

  .choice-card {
    min-height: 58px;
  }

  .map-canvas {
    margin: 14px;
    height: min(68vh, 480px);
    min-height: 420px;
  }

  .selected-report {
    margin-left: 14px;
    margin-right: 14px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 16px, 1180px);
  }

  .footer-links {
    justify-content: flex-start;
  }
}
