:root {
  --bg: #eef7f6;
  --panel: #ffffff;
  --ink: #12303a;
  --muted: #5c7479;
  --line: #cfe1df;
  --green: #168765;
  --amber: #c98519;
  --red: #c14d3f;
  --blue: #1c78a5;
  --teal: #119a9a;
  --sky: #dff4f6;
  --leaf: #e4f5ea;
  --street: #f2efe5;
  --shadow: 0 18px 40px rgba(18, 48, 58, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 10%, rgba(22, 135, 101, 0.12), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(28, 120, 165, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(239, 249, 248, 0.98), rgba(247, 250, 247, 0.97) 54%, rgba(242, 239, 229, 0.92)),
    repeating-linear-gradient(90deg, rgba(18, 48, 58, 0.035) 0 1px, transparent 1px 44px);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(238, 247, 246, 0.3), rgba(238, 247, 246, 0.9) 72%),
    url("assets/clean-air-watermark.png") center top / cover no-repeat;
  opacity: 0.46;
  transform: scale(1.02);
  animation: watermarkDrift 28s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 68% 30%, rgba(193, 77, 63, 0.08), transparent 17%),
    radial-gradient(circle at 16% 74%, rgba(28, 120, 165, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(238, 247, 246, 0.88));
  pointer-events: none;
}

@keyframes watermarkDrift {
  from {
    background-position: center top;
    filter: saturate(0.96) brightness(1.02);
  }
  to {
    background-position: center 18px;
    filter: saturate(1.05) brightness(1);
  }
}

@keyframes softRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes plumeBreathe {
  0% {
    transform: rotate(23deg) scale(0.98);
    filter: blur(2px);
  }
  50% {
    transform: rotate(25deg) scale(1.08);
    filter: blur(3.5px);
  }
  100% {
    transform: rotate(23deg) scale(1);
    filter: blur(2px);
  }
}

@keyframes sensorPulse {
  0%,
  100% {
    box-shadow: 0 12px 26px rgba(18, 48, 58, 0.22), 0 0 0 0 rgba(193, 77, 63, 0.22);
  }
  50% {
    box-shadow: 0 12px 26px rgba(18, 48, 58, 0.22), 0 0 0 10px rgba(193, 77, 63, 0);
  }
}

@keyframes roadMist {
  from {
    opacity: 0.25;
    transform: translateX(-18px);
  }
  to {
    opacity: 0.5;
    transform: translateX(18px);
  }
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding: 18px;
  animation: softRise 520ms ease both;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 16px;
  max-width: 1480px;
  border: 1px solid rgba(207, 225, 223, 0.9);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(223, 244, 246, 0.78)),
    linear-gradient(180deg, transparent, rgba(228, 245, 234, 0.34));
  box-shadow: var(--shadow);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.65rem, 2.5vw, 2.45rem);
  line-height: 1;
}

h2 {
  font-size: 1rem;
}

.topbar-actions,
.button-row,
.legend,
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.submission-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.submission-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 10px;
  text-decoration: none;
}

.status-pill,
.section-heading > span,
.legend span,
#offlineBadge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 10px;
}

.pulse {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(45, 138, 104, 0.14);
}

.primary-button,
.secondary-button,
.icon-button {
  border: 0;
  border-radius: 6px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 800;
}

.primary-button {
  background: linear-gradient(135deg, #12303a, #168765);
  color: white;
  box-shadow: 0 8px 18px rgba(22, 135, 101, 0.22);
}

.secondary-button,
.icon-button {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, white, #f7fbf9);
  color: var(--ink);
}

.icon-button {
  width: 44px;
  padding: 0;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.62fr);
  grid-template-areas:
    "map controls"
    "forecast dispatch";
  gap: 16px;
  max-width: 1480px;
  margin: 0 auto;
}

.workspace > *,
.product-card,
.page-hero,
.solution-hero,
.solution-section,
.arch-hero,
.architecture-board,
.detail-panel,
.doc-hero,
.doc-section {
  animation: softRise 560ms ease both;
}

.map-panel,
.control-panel,
.forecast-panel,
.dispatch-panel,
.panel-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 253, 251, 0.96)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.map-panel {
  grid-area: map;
  overflow: hidden;
}

.control-panel {
  grid-area: controls;
  display: grid;
  gap: 12px;
  padding: 12px;
  box-shadow: none;
}

.forecast-panel {
  grid-area: forecast;
  padding: 16px;
}

.dispatch-panel {
  grid-area: dispatch;
  padding: 16px;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.map-toolbar p,
.section-heading p,
.dispatch-card p,
.upload-box p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.legend-dot {
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
}

.legend-dot.watch {
  background: var(--amber);
}

.legend-dot.suspected {
  background: #d76332;
}

.legend-dot.confirmed {
  background: var(--red);
}

.city-map {
  position: relative;
  min-height: 575px;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 28%, rgba(201, 77, 63, 0.16), transparent 16%),
    linear-gradient(35deg, rgba(22, 135, 101, 0.16), transparent 38%),
    linear-gradient(145deg, transparent 0 54%, rgba(28, 120, 165, 0.16) 55% 68%, transparent 69%),
    linear-gradient(180deg, #e6f6f7, #eef3ea 54%, #eee6d5);
}

.leaflet-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  background: #dff4f6;
  font: inherit;
}

.leaflet-control-attribution {
  font-size: 10px;
}

.leaflet-op-marker {
  display: grid;
  min-width: max-content;
  min-height: 30px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.1;
  padding: 6px 9px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(18, 48, 58, 0.22);
}

.leaflet-op-marker.dump {
  border-color: #7d4d2d;
  background: #7d4d2d;
  color: white;
}

.leaflet-op-marker.school {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.leaflet-op-marker.clinic {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.leaflet-op-marker.sensor {
  border-color: var(--green);
}

.leaflet-op-marker.sensor.hot {
  border-color: var(--red);
  animation: sensorPulse 1.8s ease-in-out infinite;
}

.leaflet-op-marker.asset {
  background: #f9fcfb;
}

.leaflet-op-marker.report {
  border-color: var(--amber);
  background: var(--amber);
  color: white;
}

.city-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(18, 48, 58, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 48, 58, 0.06) 1px, transparent 1px);
  background-size: 68px 68px;
  pointer-events: none;
}

.city-map::after {
  content: "ward grid · sensors · smoke plume · municipal assets";
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 8;
  border: 1px solid rgba(18, 48, 58, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 8px 10px;
}

.north-label {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(23, 32, 38, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  font-weight: 900;
  z-index: 5;
}

.wind-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 6;
  border-radius: 6px;
  background: rgba(23, 32, 38, 0.88);
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 9px 12px;
}

.landmark {
  position: absolute;
  z-index: 7;
  border-radius: 6px;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 9px;
  box-shadow: 0 8px 20px rgba(23, 32, 38, 0.18);
  opacity: 0;
  pointer-events: none;
}

.landmark.dump {
  left: 67%;
  top: 20%;
  background: #7d4d2d;
}

.landmark.school {
  left: 40%;
  top: 67%;
  background: var(--blue);
}

.landmark.hospital {
  left: 20%;
  top: 32%;
  background: var(--teal);
}

.asset-marker,
.sensor-marker,
.report-marker {
  position: absolute;
  z-index: 9;
  border-radius: 6px;
  box-shadow: 0 12px 26px rgba(23, 32, 38, 0.22);
  font-size: 0.76rem;
  font-weight: 900;
}

.asset-marker {
  display: grid;
  place-items: center;
  width: 54px;
  height: 32px;
  background: white;
  border: 2px solid var(--ink);
  opacity: 0;
  pointer-events: none;
}

.asset-marker.mist {
  left: 14%;
  top: 76%;
}

.asset-marker.crew {
  left: 7%;
  top: 18%;
}

.asset-marker.dispatched {
  animation: assetMove 900ms ease forwards;
}

@keyframes assetMove {
  to {
    left: 61%;
    top: 34%;
  }
}

.sensor-marker {
  left: 55%;
  top: 52%;
  display: grid;
  gap: 3px;
  min-width: 108px;
  background: #ffffff;
  border: 2px solid var(--green);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
}

.sensor-marker.hot {
  border-color: var(--red);
  animation: sensorPulse 1.8s ease-in-out infinite;
}

.sensor-marker span {
  color: var(--muted);
  font-size: 0.68rem;
}

.report-marker {
  left: 70%;
  top: 31%;
  background: var(--amber);
  color: white;
  padding: 8px 10px;
  opacity: 0;
  pointer-events: none;
}

.hidden {
  display: none;
}

.plume {
  position: absolute;
  left: 52%;
  top: 28%;
  z-index: 4;
  width: 360px;
  height: 170px;
  border-radius: 50%;
  transform: rotate(23deg);
  opacity: 0;
  background: radial-gradient(ellipse at 12% 42%, rgba(193, 77, 63, 0.52), rgba(201, 133, 25, 0.26) 43%, rgba(92, 116, 121, 0.08) 62%, transparent 74%);
  filter: blur(2px);
  transition: opacity 350ms ease;
}

.plume.active {
  opacity: 1;
  animation: plumeBreathe 5.8s ease-in-out infinite;
}

.grid-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.cell {
  position: absolute;
  border: 1px solid rgba(23, 32, 38, 0.08);
  border-radius: 4px;
  background: rgba(22, 135, 101, 0.11);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cell:hover,
.product-card:hover,
.dispatch-card:hover,
.reason-grid div:hover {
  transform: translateY(-2px);
}

.cell.watch {
  background: rgba(197, 129, 28, 0.42);
}

.cell.suspected {
  background: rgba(215, 99, 50, 0.5);
}

.cell.confirmed {
  background: rgba(201, 79, 69, 0.62);
  box-shadow: 0 0 0 2px rgba(201, 79, 69, 0.28);
}

.cell.target {
  transform: scale(1.04);
}

.panel-block {
  padding: 14px;
  box-shadow: none;
}

.section-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.section-heading > div {
  min-width: 0;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
}

.upload-box {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcfb, #eef7f1);
  padding: 10px;
}

.photo-sample {
  min-height: 64px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.78), transparent 18%),
    radial-gradient(circle at 52% 34%, rgba(193, 77, 63, 0.42), transparent 22%),
    linear-gradient(150deg, #b9d6d8 0 34%, #778489 35% 53%, #3f4741 54% 71%, #6b4d2d 72% 100%);
}

.score-ring {
  display: grid;
  width: 128px;
  height: 128px;
  margin: 8px auto 14px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, white 0 58%, transparent 59%),
    conic-gradient(var(--green) 0 12%, #e2e8eb 12% 100%);
}

.score-ring div {
  display: grid;
  gap: 2px;
  text-align: center;
}

.score-ring strong {
  font-size: 1.55rem;
}

.score-ring span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.evidence-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.evidence-list li span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--line);
}

.evidence-list li.active {
  color: var(--ink);
  font-weight: 700;
}

.evidence-list li.active span {
  background: var(--green);
}

.button-row {
  flex-wrap: wrap;
}

.button-row button {
  flex: 1 1 150px;
}

canvas {
  display: block;
  width: 100%;
  height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfefd, #f7fbf9);
}

.reason-grid,
.dispatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.reason-grid div,
.dispatch-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfefd, #f7fbf9);
  padding: 12px;
}

.reason-grid span,
.dispatch-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.reason-grid strong,
.dispatch-card strong {
  font-size: 0.95rem;
}

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

.product-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 18px 70px;
  animation: softRise 520ms ease both;
}

.page-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  padding: 0 12px;
  text-decoration: none;
}

.page-hero,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 253, 251, 0.96)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.page-hero {
  margin-bottom: 16px;
  padding: 34px;
}

.page-hero h1 {
  margin-top: 8px;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  line-height: 1.02;
}

.page-hero p {
  max-width: 900px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

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

.product-card {
  padding: 22px;
}

.product-card.wide {
  grid-column: 1 / -1;
}

.product-card h2 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.product-card p,
.product-card li {
  color: var(--muted);
  line-height: 1.55;
}

.product-card code {
  color: var(--ink);
  font-weight: 800;
}

.text-area {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  margin: 0 0 12px;
  padding: 10px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.metric-row:first-of-type {
  padding-top: 0;
}

.metric-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.metric-row span {
  color: var(--muted);
  font-weight: 800;
}

.metric-row strong {
  text-align: right;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

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

.enterprise-list li {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfefd, #f7fbf9);
  padding: 12px;
}

.enterprise-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.pipeline span {
  display: grid;
  min-height: 80px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbf9, #eef7f1);
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  padding: 10px;
}

.map-key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 12px 0;
}

.map-key-row input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 0 10px;
}

.google-map,
.fallback-map {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.fallback-map {
  display: grid;
  align-content: center;
  gap: 8px;
  background:
    radial-gradient(circle at 68% 30%, rgba(193, 77, 63, 0.16), transparent 18%),
    linear-gradient(135deg, #dff4f6, #eef3ea 52%, #eee6d5);
  padding: 24px;
  text-align: center;
}

.fallback-map strong {
  font-size: 1.35rem;
}

.fallback-map span {
  color: var(--muted);
}

.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  align-items: end;
  justify-items: end;
  background: rgba(18, 48, 58, 0.22);
  padding: 18px;
  pointer-events: none;
}

.tour-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9000;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink), var(--green));
  color: white;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(18, 48, 58, 0.28);
  padding: 0 18px;
}

.tour-overlay.hidden {
  display: none;
}

.tour-card {
  width: min(430px, calc(100vw - 28px));
  border: 1px solid rgba(207, 225, 223, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(18, 48, 58, 0.28);
  padding: 16px;
  pointer-events: auto;
}

.tour-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tour-topline > span {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 950;
}

.tour-close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
}

.tour-card h2 {
  margin-top: 6px;
  font-size: 1.2rem;
}

.tour-card p {
  margin: 8px 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.tour-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4efed;
  margin-bottom: 14px;
}

.tour-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 180ms ease;
}

.tour-focus {
  position: relative;
  z-index: 9999;
  outline: 4px solid rgba(22, 135, 101, 0.42);
  outline-offset: 6px;
  box-shadow: 0 0 0 10px rgba(22, 135, 101, 0.09), var(--shadow);
}

@media (max-width: 720px) {
  .tour-overlay {
    justify-items: center;
    padding: 10px;
  }

  .tour-card {
    width: 100%;
  }
}

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

@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 1fr;
    grid-template-areas:
      "map"
      "controls"
      "forecast"
      "dispatch";
  }

  .control-panel {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .app-shell {
    padding: 10px;
  }

  .topbar,
  .map-toolbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions,
  .legend {
    justify-content: flex-start;
    width: 100%;
  }

  .submission-links {
    width: 100%;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .control-panel,
  .reason-grid,
  .dispatch-grid,
  .product-grid,
  .pipeline,
  .map-key-row {
    grid-template-columns: 1fr;
  }

  .city-map {
    min-height: 470px;
  }
}
