:root {
  --bg: #f4f6f9;
  --bg-white: #ffffff;
  --bg-map: #0b1220;
  --bg-map-deep: #070d18;
  --border: #d7deea;
  --border-strong: #b8c4d8;
  --text: #152033;
  --text-muted: #5b6b84;
  --text-dim: #8090a8;
  --teal: #00a3c4;
  --teal-deep: #007a96;
  --teal-soft: rgba(0, 163, 196, 0.12);
  --network-red: #e11d48;
  --app-magenta: #c026d3;
  --online: #0f9f6e;
  --warning: #d97706;
  --critical: #e11d48;
  --inactive: #64748b;
  --info: #0284c7;
  --header-h: 64px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-map: 0 18px 50px rgba(7, 13, 24, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 40% at 80% -10%, rgba(0, 163, 196, 0.12), transparent 55%),
    linear-gradient(180deg, #eef3f8 0%, var(--bg) 28%, #e9eef5 100%);
  line-height: 1.5;
}

a {
  color: var(--teal-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #0369a1);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
}

.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
  text-decoration: none;
}

.btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-white);
  color: var(--text);
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-header {
  margin-left: 0.35rem;
  background: var(--teal-soft);
  border-color: transparent;
  color: var(--teal-deep);
}

.btn-danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #dbe7f7;
  border-radius: 8px;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Hero */
.page-hero {
  background:
    radial-gradient(ellipse 60% 80% at 10% 20%, rgba(0, 163, 196, 0.22), transparent 50%),
    linear-gradient(135deg, #0b1220 0%, #132238 55%, #0d1a2d 100%);
  color: #e8eef8;
  padding: 2.4rem 0 2rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7dd3e8;
}

.page-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lede {
  margin: 0;
  max-width: 62ch;
  color: #a9bbd4;
  font-size: 0.95rem;
}

.page-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 180px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 0 rgba(15, 159, 110, 0.45);
  animation: pulse 2s ease-out infinite;
}

.live-status[data-status="degraded"] .live-dot {
  background: var(--warning);
}

.live-status[data-status="offline"] .live-dot {
  background: var(--critical);
}

.live-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fa3c1;
  font-weight: 700;
}

.live-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  color: #8fa3c1;
  font-size: 0.88rem;
}

.hero-meta strong {
  color: #e8eef8;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 159, 110, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* Summary */
.summary-strip {
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.summary-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
}

.summary-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

.summary-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.summary-value.accent {
  color: var(--online);
}

.summary-value.compact {
  font-size: 1rem;
}

/* Insights shell */
.insights {
  margin-bottom: 2rem;
}

.insights-shell {
  background: var(--bg-map);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-map);
  border: 1px solid #1a2740;
}

.timeline-bar {
  padding: 1.1rem 1.25rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #101a2d, var(--bg-map));
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
  color: #d7e3f4;
}

.timeline-head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.timeline-head p {
  margin: 0;
  color: #8090a8;
  font-size: 0.82rem;
}

.timeline-stats {
  display: flex;
  gap: 1.1rem;
}

.timeline-stats span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8090a8;
  font-weight: 700;
}

.timeline-stats strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #38bdf8;
}

.chart-canvas-wrap {
  position: relative;
  width: 100%;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
}

.outage-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 140px;
  cursor: crosshair;
}

.outage-chart .grid-line {
  stroke: rgba(148, 163, 184, 0.12);
  stroke-width: 1;
}

.outage-chart .baseline-line {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.7;
}

.outage-chart .hist-bar {
  fill: #38bdf8;
  opacity: 0.85;
}

.outage-chart .hist-bar.hot {
  fill: #fb7185;
}

.outage-chart .hover-line {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
  pointer-events: none;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: rgba(8, 14, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e8eef8;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transform: translate(-50%, -120%);
}

.chart-tooltip strong {
  color: #38bdf8;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: #8090a8;
  font-variant-numeric: tabular-nums;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chart-legend-item .swatch {
  width: 14px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.chart-legend-item .swatch.reports {
  background: #38bdf8;
}

.chart-legend-item .swatch.baseline {
  background: transparent;
  border-top: 2px dashed #94a3b8;
  height: 0;
}

.chart-legend-item .swatch.network {
  background: var(--network-red);
  border-radius: 50%;
  width: 10px;
  height: 10px;
}

.chart-legend-item .swatch.app {
  background: var(--app-magenta);
  border-radius: 50%;
  width: 10px;
  height: 10px;
}

/* Map split */
.map-split {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  min-height: 460px;
}

.map-panel {
  padding: 1rem 1.15rem 1.1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(ellipse 50% 40% at 50% 45%, rgba(0, 163, 196, 0.08), transparent 60%),
    var(--bg-map-deep);
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.map-toolbar h3 {
  margin: 0;
  color: #d7e3f4;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.map-zoom {
  display: flex;
  gap: 0.35rem;
}

.map-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #060b14;
  height: 420px;
}

.world-map {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

.world-map .land {
  fill: #3a4558;
  stroke: #1a2030;
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.world-map .land.is-affected {
  fill: #4a5568;
}

.world-map .grid {
  stroke: rgba(148, 163, 184, 0.05);
  stroke-width: 1;
}

.outage-pulse {
  pointer-events: auto;
  cursor: pointer;
}

.outage-pulse .pulse-ring {
  fill: none;
  stroke: #c4b5fd;
  stroke-width: 1.5;
  opacity: 0.55;
  transform-origin: center;
  transform-box: fill-box;
  animation: pulseRing 2.4s ease-out infinite;
}

.outage-pulse .pulse-ring.delay-1 {
  animation-delay: 0.4s;
}

.outage-pulse .pulse-ring.delay-2 {
  animation-delay: 0.8s;
}

.outage-pulse .pulse-core {
  fill: #fb7185;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
}

.outage-pulse .pulse-core.app {
  fill: #e879f9;
}

.outage-pulse .pulse-count {
  fill: #0f172a;
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

@keyframes pulseRing {
  0% {
    opacity: 0.65;
    transform: scale(0.72);
  }
  70% {
    opacity: 0;
    transform: scale(1.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.map-node-tip {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  background: rgba(8, 14, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e8eef8;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 8px;
  max-width: 220px;
  transform: translate(-50%, -115%);
}

.map-node-tip strong {
  display: block;
  margin-bottom: 0.15rem;
}

.map-footnote {
  margin: 0.65rem 0 0;
  color: #8090a8;
  font-size: 0.75rem;
}

.events-panel {
  padding: 1rem 1.1rem;
  background: #0e1626;
  color: #d7e3f4;
}

.events-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.events-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.events-count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3e8;
  background: rgba(0, 163, 196, 0.12);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}

.events-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.events-cols h4 {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8090a8;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 340px;
  overflow: auto;
}

.event-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
}

.event-card.network {
  border-left: 3px solid var(--network-red);
}

.event-card.application {
  border-left: 3px solid var(--app-magenta);
}

.event-card .title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.event-card .meta {
  font-size: 0.72rem;
  color: #8090a8;
}

.event-card .body {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #a9bbd4;
}

.empty-events {
  color: #64748b;
  font-size: 0.8rem;
  padding: 0.5rem 0;
}

/* Services */
.services-section {
  margin-bottom: 2rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-links a {
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.quick-links a:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0 0 0.75rem;
  padding: 0.7rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table.services {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

table.services th,
table.services td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table.services th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: #f8fafc;
  font-weight: 700;
}

table.services tbody tr:hover {
  background: #f8fafc;
}

table.services td.name {
  font-weight: 700;
  font-size: 0.88rem;
}

table.services td.issues {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.op-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.op-passed {
  color: var(--online);
}

.op-inactive {
  color: var(--inactive);
}

.op-critical {
  color: var(--critical);
}

.op-warning {
  color: var(--warning);
}

.op-info {
  color: var(--info);
}

/* FAQ */
.faq-section {
  margin-bottom: 3rem;
}

.faq-section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.faq-grid article {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.faq-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.faq-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 1.75rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Overlays / admin */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: min(440px, 100%);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  padding: 1.5rem;
}

.modal h2 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.modal .hint {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.form-field label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.form-field textarea {
  min-height: 88px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.form-error {
  color: #be123c;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  min-height: 1.2em;
}

.admin-overlay .modal {
  width: min(980px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 0;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.admin-header h2 {
  margin: 0;
}

.admin-body {
  padding: 1.25rem;
  display: grid;
  gap: 1.25rem;
}

.admin-section {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
}

.admin-section h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--teal-deep);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.admin-grid .full {
  grid-column: 1 / -1;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.admin-service-row,
.admin-incident-row {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  display: grid;
  gap: 0.65rem;
}

.admin-service-row .row-grid,
.admin-incident-row .row-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr auto;
  gap: 0.5rem;
  align-items: end;
}

.admin-incident-row .row-grid {
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  background: #0f172a;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.ok {
  border-color: #0f9f6e;
}

.toast.err {
  border-color: #e11d48;
}

@media (max-width: 980px) {
  .summary-grid,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-split {
    grid-template-columns: 1fr;
  }

  .map-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 700px) {
  .site-header {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 1rem;
  }

  .summary-grid,
  .faq-grid,
  .events-cols,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-service-row .row-grid,
  .admin-incident-row .row-grid {
    grid-template-columns: 1fr;
  }

  .map-viewport {
    height: 280px;
  }
}
