:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.1);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.12);
  --good: #30a46c;
  --bad: #d92d20;
  --shadow: 0 24px 70px rgba(28, 38, 58, 0.12);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 18% 12%, rgba(10, 132, 255, 0.15), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(48, 164, 108, 0.12), transparent 25rem),
    linear-gradient(135deg, #fbfbfd 0%, var(--bg) 48%, #eef3f8 100%);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 22px;
  width: min(1540px, calc(100vw - 32px));
  min-height: calc(100dvh - 32px);
  margin: 16px auto;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(28px) saturate(1.35);
}

.sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border-radius: 30px;
  padding: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(145deg, #27272a, #55565b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 24px rgba(17, 24, 39, 0.16);
}

.brand-mark svg {
  width: 25px;
}

.brand p,
.brand span,
.section-label,
.eyebrow {
  margin: 0;
}

.brand p {
  font-size: 15px;
  font-weight: 720;
}

.brand span,
.section-label,
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.control-stack {
  display: grid;
  gap: 22px;
  padding-top: 22px;
}

.control-stack section,
.control-stack label {
  display: grid;
  gap: 8px;
}

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

input[type="number"],
input[type="password"],
input[type="text"],
input:not([type]),
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

select {
  appearance: none;
}

input:focus {
  border-color: rgba(10, 132, 255, 0.5);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: white;
}

label > span {
  color: #57575d;
  font-size: 12px;
  font-weight: 680;
}

.file-drop {
  position: relative;
  padding: 14px;
  border: 1px dashed rgba(29, 29, 31, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.file-drop:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 132, 255, 0.45);
  background: white;
}

.file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.file-drop strong {
  font-size: 14px;
  font-weight: 720;
}

.file-drop.compact {
  padding: 12px;
}

.switch-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  padding: 10px 0 0;
}

.switch-row input {
  width: 38px;
  height: 22px;
  accent-color: var(--accent);
}

.primary-button,
.ghost-button {
  border: 0;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 16px;
  color: white;
  background: #1d1d1f;
  box-shadow: 0 16px 34px rgba(29, 29, 31, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-weight: 760;
}

.primary-button svg {
  width: 20px;
}

.primary-button:active,
.ghost-button:active {
  transform: scale(0.98);
}

.workspace {
  display: grid;
  gap: 22px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 26px 8px 4px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar h1 {
  max-width: 780px;
  margin: 6px 0 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 760;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #3f3f46;
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  animation: breathe 1.8s ease-in-out infinite;
}

.status-pill.loading span {
  background: var(--accent);
}

.status-pill.error span {
  background: var(--bad);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 22px;
}

.map-panel,
.routes-panel,
.packet-panel,
.metric {
  border-radius: 30px;
}

.map-panel {
  overflow: hidden;
}

.map-toolbar,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
}

.map-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.map-toolbar strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 720;
  text-decoration: none;
}

.map-canvas {
  position: relative;
  min-height: 430px;
  margin: 0 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(29, 29, 31, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(29, 29, 31, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #eef2f5, #f8fafc);
  background-size: 58px 58px, 58px 58px, auto;
}

.map-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.apple-map {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
}

.route-shadow,
.route-line {
  fill: none;
  stroke-linecap: round;
}

.route-shadow {
  stroke: rgba(10, 132, 255, 0.12);
  stroke-width: 28;
}

.route-line {
  stroke: var(--accent);
  stroke-width: 7;
  stroke-dasharray: 18 13;
  animation: routeFlow 16s linear infinite;
}

.route-line-real {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.start-pin rect {
  stroke: white;
  stroke-width: 2.5;
}

.map-pin circle {
  fill: #1d1d1f;
  stroke: white;
  stroke-width: 4;
}

.map-pin text {
  fill: white;
  font-size: 11px;
  font-weight: 760;
  text-anchor: middle;
  dominant-baseline: central;
}

.map-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(260px, calc(100% - 36px));
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(24px);
  box-shadow: 0 16px 40px rgba(28, 38, 58, 0.13);
}

.map-card span,
.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.map-card strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
}

.map-card p {
  margin: 6px 0 0;
  color: #54545b;
  font-size: 13px;
  line-height: 1.35;
}

.metrics-panel {
  display: grid;
  gap: 14px;
}

.metric {
  min-height: 96px;
  padding: 18px;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
  font-size: 34px;
  line-height: 1;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 22px;
  padding-bottom: 16px;
}

.panel-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  letter-spacing: 0;
}

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

.download-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
}

.routes-list {
  display: grid;
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding: 0 14px 14px;
}

.route-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-strong);
  animation: rise 420ms cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--index) * 45ms);
}

.route-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}

.route-card header span,
.more-stops {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.route-card h3 {
  margin: 3px 0 0;
  font-size: 17px;
}

.route-card header > strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.schedule-line {
  margin: -4px 0 12px;
  color: #2f6f4e;
  font-size: 12px;
  font-weight: 760;
}

.route-card ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-card li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
}

.route-card li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: white;
  background: #2f3033;
  font-size: 11px;
  font-weight: 780;
}

.route-card li strong {
  display: block;
  font-size: 14px;
}

.route-card li p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.turnaround-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 7px;
  border: 1px solid rgba(217, 45, 32, 0.18);
  border-radius: 8px;
  color: #9f1f17;
  background: rgba(217, 45, 32, 0.08);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
}

.more-stops {
  margin-top: 12px;
}

.empty-state,
.error-state {
  min-height: 240px;
  place-content: center;
  text-align: center;
}

.empty-state p,
.error-state p {
  margin: 0;
  font-size: 18px;
  font-weight: 760;
}

.empty-state span,
.error-state span {
  color: var(--muted);
  font-size: 13px;
}

.error-state p {
  color: var(--bad);
}

.loading-state div {
  height: 126px;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,.95), rgba(255,255,255,.55));
  background-size: 220% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
}

.packet-panel {
  min-width: 0;
  overflow: hidden;
}

#driver-packet {
  min-height: 620px;
  max-height: 620px;
  margin: 0 14px 14px;
  overflow: auto;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 22px;
  padding: 18px;
  color: #242529;
  background: rgba(255, 255, 255, 0.78);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

@keyframes routeFlow {
  to {
    stroke-dashoffset: -124;
  }
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

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

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.mode-toggle label {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
}

.mode-toggle input {
  display: none;
}

.mode-toggle span {
  font-size: 13px;
  font-weight: 720;
  color: var(--ink);
}

.mode-toggle small {
  font-size: 11px;
  color: var(--muted);
}

.mode-toggle label:has(input:checked) {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.45);
}

.mode-toggle label:has(input:checked) span {
  color: var(--accent);
}

.quality-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 30px;
}

.quality-panel h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.quality-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.quality-metrics > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.quality-metrics dt {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.quality-metrics dd {
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 760;
}

.dropped-list {
  padding: 12px 14px;
  border: 1px solid rgba(217, 45, 32, 0.25);
  border-radius: 18px;
  background: rgba(217, 45, 32, 0.06);
}

.dropped-list p {
  margin: 0 0 6px;
  color: var(--bad);
  font-size: 12px;
  font-weight: 720;
}

.dropped-list ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.45;
}

.lock-badge {
  margin-top: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.lock-badge:hover {
  border-color: rgba(10, 132, 255, 0.4);
  color: var(--accent);
}

.lock-badge.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.stop-controls {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

.bus-picker {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.warn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.warn-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 159, 10, 0.15);
  color: #b76e00;
  font-size: 11px;
  font-weight: 720;
}

.route-deeplink {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}

.route-deeplink:hover {
  background: rgba(10, 132, 255, 0.18);
}

.route-card li > span {
  color: white;
}

@media (max-width: 1120px) {
  .shell,
  .hero-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
  }

  .metrics-panel {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100vw - 20px);
    margin: 10px auto;
  }

  .topbar,
  .map-toolbar,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar h1 {
    font-size: 38px;
  }

  .metrics-panel,
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

.review-body {
  overflow: hidden;
}

.review-shell {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 16px;
  width: calc(100vw - 24px);
  height: calc(100dvh - 24px);
  margin: 12px;
}

.review-sidebar,
.review-map-wrap {
  min-height: 0;
  border-radius: 24px;
}

.review-sidebar {
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  overflow: hidden;
}

.review-controls {
  display: grid;
  gap: 12px;
}

.review-toggle {
  display: grid;
  gap: 8px;
  padding: 8px 0;
}

.review-toggle label {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 680;
}

.review-upload,
.playback-panel,
.review-summary,
.issue-list {
  padding: 14px;
  border-radius: 18px;
  box-shadow: none;
}

.review-upload h2,
.playback-panel h2,
.review-summary h2,
.issue-list h2,
.review-map-toolbar h1 {
  margin: 4px 0 0;
  letter-spacing: 0;
}

.review-summary h2 {
  font-size: 17px;
  line-height: 1.2;
}

.review-summary dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 0;
}

.review-summary div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.62);
}

.review-summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.review-summary dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 760;
}

.playback-controls {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
  align-items: end;
}

.playback-panel .primary-button {
  min-height: 42px;
  border-radius: 14px;
}

.follow-toggle {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 680;
}

.playback-panel progress {
  width: 100%;
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 29, 31, .1);
}

.playback-panel progress::-webkit-progress-bar {
  background: rgba(29, 29, 31, .1);
}

.playback-panel progress::-webkit-progress-value {
  background: var(--accent);
}

.playback-panel progress::-moz-progress-bar {
  background: var(--accent);
}

.playback-panel p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.review-upload-form {
  display: grid;
  gap: 10px;
}

.upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.review-upload .primary-button,
.review-upload .ghost-button {
  min-height: 40px;
  border-radius: 14px;
}

.review-upload p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.issue-list {
  min-height: 0;
  overflow: auto;
}

.panel-head.compact {
  padding-bottom: 10px;
}

.issue-card {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(217, 45, 32, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.issue-card button {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.issue-card strong {
  display: block;
  font-size: 13px;
}

.issue-card span,
.issue-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.review-map-wrap {
  position: relative;
  overflow: hidden;
}

.review-map-toolbar {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  pointer-events: none;
}

.review-map-toolbar > * {
  pointer-events: auto;
}

.review-map-toolbar h1 {
  font-size: 24px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
}

.review-map {
  width: 100%;
  height: 100%;
}

.route-marker {
  background: transparent;
  border: 0;
}

.route-marker span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(29, 29, 31, .22);
  color: white;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.route-marker.bus-marker span {
  width: 34px;
  height: 34px;
  box-shadow: 0 0 0 7px rgba(48, 164, 108, .22), 0 8px 20px rgba(29, 29, 31, .24);
}

.review-legend {
  position: absolute;
  z-index: 5;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.84);
  color: #3f3f46;
  font-size: 12px;
  font-weight: 720;
}

.review-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-line {
  width: 24px;
  height: 4px;
  border-radius: 999px;
}

.legend-line.strict {
  background: #0a84ff;
}

.legend-line.free {
  background: #ff9f0a;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-dot.issue {
  background: var(--bad);
}

.legend-dot.stop {
  background: #1d1d1f;
}

@media (max-width: 860px) {
  .review-body {
    overflow: auto;
  }

  .review-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .review-sidebar {
    overflow: visible;
  }

  .review-map-wrap {
    min-height: 70dvh;
  }
}

.login-body {
  display: grid;
  place-items: center;
  padding: 18px;
}

.login-card {
  display: grid;
  gap: 22px;
  width: min(430px, 100%);
  padding: 24px;
  border-radius: 26px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.login-form input {
  width: 100%;
}

.form-error {
  margin: 0;
  color: var(--bad);
  font-size: 13px;
  font-weight: 720;
}
