:root {
  --chase-gap: 0.75rem;
  --chase-border: rgba(255, 255, 255, 0.22);
}

body.chase-dashboard-page {
  background: var(--bg-dark);
}

body.chase-dashboard-page footer {
  display: none;
}

.chase-dashboard-main {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.chase-dashboard {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: var(--chase-gap);
}

.chase-demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 204, 0, 0.4);
  border-radius: 0px 0px 10px 10px;
  background: rgba(255, 204, 0, 0.16);
  color: var(--text-primary);
  text-align: center;
}

.chase-demo-banner p {
  margin: 0;
  line-height: 1.35;
}

.chase-dashboard__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-bottom: 1px solid var(--chase-border);
}

.chase-dashboard__heading {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 10px;
}

.chase-dashboard__heading h1 {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  margin: 0;
}

.chase-dashboard__heading h1 i {
  font-size: 0.95rem;
  margin-right: 0.35rem;
  color: var(--text-secondary);
}

.chase-dashboard__scope-label {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.chase-dashboard__meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
}

.chase-dashboard__meta-item {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.2rem;
  text-align: left;
}

.chase-dashboard__meta-item dt {
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chase-dashboard__meta-item dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.chase-dashboard__columns {
  display: grid;
  grid-template-columns: minmax(220px, 0.27fr) minmax(0, 1fr) minmax(220px, 0.27fr);
  gap: var(--chase-gap);
  flex: 1;
  min-height: 0;
}

.chase-dashboard__columns--situational {
  grid-template-columns: minmax(220px, 0.27fr) minmax(0, 1fr);
}

.chase-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chase-column--left {
  padding-left: 10px;
  padding-right: 10px;
  margin-right: -12px;
}

.chase-column--right {
  padding-right: 10px;
  padding-top: 10px;
}

body.chase-dashboard-page--finalized .chase-column--right .chase-section--conditions {
  order: 0;
}

body.chase-dashboard-page--finalized .chase-column--right .chase-section--trip {
  order: 1;
}

body.chase-dashboard-page--finalized .chase-column--right .chase-section--weather {
  order: 2;
}

.chase-column--left,
.chase-column--right {
  overflow: auto;
}

.chase-column--center {
  overflow: hidden;
  /* padding: 0px 10px; */
}

.chase-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0 0 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.chase-column > .chase-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.chase-section__title {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.chase-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.chase-section__clock {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.82);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chase-section__note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.chase-dashboard__notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.95rem;
  line-height: 1.45;
}

.chase-dashboard__notice i {
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

.chase-dashboard__notice--info {
  border-color: rgba(255, 204, 0, 0.4);
  background: rgba(255, 204, 0, 0.12);
  color: var(--text-primary);
}

.chase-dashboard__notice--muted {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.35);
  color: var(--text-secondary);
}

.chase-dashboard__notice-meta {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.chase-intent {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chase-intent--readonly .intent-inline__display {
  cursor: default;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.35);
}

.chase-intent--readonly .intent-inline__icon {
  display: none;
}

.chase-intent__label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.chase-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chase-actions__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem auto 0 auto;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  text-decoration: none;
}

.chase-actions__link:hover,
.chase-actions__link:focus,
.chase-actions__link:focus-visible {
  text-decoration: underline;
  color: var(--accent, #facc15);
}

.chase-actions__link i {
  font-size: 0.75rem;
}

.chase-actions--stacked {
  gap: 0.5rem;
}

.chase-actions--stacked .chase-action {
  width: 100%;
  justify-content: flex-start;
}

.chase-action {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.95rem;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.chase-action:hover,
.chase-action:focus {
  border-color: rgba(250, 204, 21, 0.55);
  color: var(--accent, #facc15);
}

.chase-action:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.3);
}

.chase-action[disabled],
.chase-action[disabled]:hover,
.chase-action[disabled]:focus {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(226, 232, 240, 0.45);
  cursor: not-allowed;
  opacity: 0.68;
  box-shadow: none;
}

.chase-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 1rem;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.chase-action:hover .chase-action__icon,
.chase-action:focus .chase-action__icon,
.chase-action:focus-visible .chase-action__icon {
  color: var(--accent, #facc15);
}

.chase-action[disabled] .chase-action__icon,
.chase-action[disabled]:hover .chase-action__icon,
.chase-action[disabled]:focus .chase-action__icon {
  color: rgba(226, 232, 240, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.chase-layers {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chase-layers__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.35rem;
}

.chase-layers__group-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary, rgba(226, 232, 240, 0.7));
}

.chase-base-select {
  display: flex;
  flex-direction: column;
}

.chase-base-select__control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 0.45rem 2.25rem 0.45rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background-color: var(--bg-darkerer);
  color: var(--text-primary);
  color-scheme: dark;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent, #ffcc00) 50%),
    linear-gradient(135deg, var(--accent, #ffcc00) 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) 50%,
    calc(100% - 0.6rem) 50%;
  background-size:
    0.5rem 0.5rem,
    0.5rem 0.5rem;
  background-repeat: no-repeat;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.chase-base-select__control:hover {
  border-color: rgba(255, 204, 0, 0.5);
  background-color: var(--bg-darker);
}

.chase-base-select__control:focus-visible {
  outline: 2px solid var(--accent, #ffcc00);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.25);
}

.chase-layer-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Radar row: toggle on one line, full-width slider immediately below */
.chase-layer-control--with-slider {
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
}

.chase-layer-control--stacked {
  flex-direction: column;
  align-items: flex-start;
}

.chase-layer-control__item {
  width: 100%;
}

.chase-toggle--stacked {
  align-items: flex-start;
  gap: 0.25rem;
}

.chase-layer-control__note {
  display: block;
  color: var(--text-secondary);
  word-break: break-word;
  font-size: 0.85rem;
  margin-left: 1.75rem;
}

.chase-layer-control__toggle {
  flex-shrink: 0;
}

/* ------------------------------------------------------------------
 * Radar opacity slider
 *
 * Layout: sits on its own line below the radar toggle, spans full
 * width. Height is set to the track height only; the thumb overflows
 * visually without adding layout space.
 *
 * Fill: --slider-progress is a 0–1 fraction set by Vue via inline
 * style. The calc() corrects for thumb overhang so the fill tracks
 * the thumb center exactly from min to max.
 *   fill-stop = thumbRadius + progress × (trackWidth − thumbDiameter)
 *             = 0.45rem   + var(--slider-progress) × (100% − 0.9rem)
 * ------------------------------------------------------------------ */
.chase-layer-control__slider {
  --slider-thumb-size: 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 0.3rem;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent, #ffcc00) 0,
    var(--accent, #ffcc00)
      calc(calc(var(--slider-thumb-size) / 2) + var(--slider-progress, 0.5625) * (100% - var(--slider-thumb-size))),
    rgba(148, 163, 184, 0.35)
      calc(calc(var(--slider-thumb-size) / 2) + var(--slider-progress, 0.5625) * (100% - var(--slider-thumb-size)))
  );
  cursor: pointer;
  transition: background 0.1s linear;
}

.chase-layer-control__slider:focus-visible {
  outline: 2px solid var(--accent, #ffcc00);
  outline-offset: 3px;
  border-radius: 999px;
}

.chase-layer-control__slider::-webkit-slider-runnable-track {
  height: 0.3rem;
  border-radius: 999px;
  background: transparent;
}

.chase-layer-control__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--slider-thumb-size);
  height: var(--slider-thumb-size);
  border-radius: 50%;
  background: var(--accent, #ffcc00);
  border: 2px solid rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  margin-top: calc((0.3rem - var(--slider-thumb-size)) / 2);
  cursor: pointer;
}

.chase-layer-control__slider::-moz-range-track {
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.chase-layer-control__slider::-moz-range-progress {
  height: 0.3rem;
  border-radius: 999px;
  background: var(--accent, #ffcc00);
}

.chase-layer-control__slider::-moz-range-thumb {
  width: var(--slider-thumb-size);
  height: var(--slider-thumb-size);
  border-radius: 50%;
  background: var(--accent, #ffcc00);
  border: 2px solid rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.chase-layer-control__slider::-ms-track {
  height: 0.3rem;
  border-radius: 999px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

.chase-layer-control__slider::-ms-fill-lower {
  background: var(--accent, #ffcc00);
  border-radius: 999px;
}

.chase-layer-control__slider::-ms-fill-upper {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.chase-layer-control__slider::-ms-thumb {
  width: var(--slider-thumb-size);
  height: var(--slider-thumb-size);
  border-radius: 50%;
  background: var(--accent, #ffcc00);
  border: 2px solid rgba(15, 23, 42, 0.85);
}

.chase-base-select__control:disabled,
.chase-toggle input:disabled,
.chase-layer-control__slider:disabled,
.chase-placefiles__toggle input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.chase-toggle:has(input:disabled),
.chase-placefiles__toggle:has(input:disabled) {
  color: rgba(226, 232, 240, 0.52);
  cursor: not-allowed;
}

.chase-layer-control__slider:disabled::-webkit-slider-thumb,
.chase-layer-control__slider:disabled::-moz-range-thumb {
  cursor: not-allowed;
}

.chase-toggle.is-active span {
  color: var(--accent);
  font-weight: 600;
}

.chase-toggle:has(input:disabled).is-active span,
.chase-toggle:has(input:disabled) span,
.chase-placefiles__toggle:has(input:disabled) span {
  color: rgba(226, 232, 240, 0.52);
}

.chase-map {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 1px solid var(--chase-border);
  background: var(--map-bg, #04070f);
  --map-controls-offset: 0px;
}

.chase-map__canvas {
  position: relative;
  flex: 1;
  min-height: 0;
}

.chase-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: var(--map-bg, #04070f);
}

.placefile-label {
  color: #e2e8f0;
  font-weight: 600;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.65),
    0 1px 2px rgba(0, 0, 0, 0.8);
}

.placefile-icon-wrapper {
  background: transparent;
  border: none;
}

.placefile-icon {
  display: inline-block;
  background-repeat: no-repeat;
}

.placefile-tooltip.leaflet-tooltip {
  background: rgba(248, 250, 252, 0.96);
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15);
}

.placefile-tooltip__more {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.placefile-tooltip.leaflet-tooltip .leaflet-tooltip-tip {
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.placefile-tooltip--external {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.18);
}

.placefile-tooltip--external .leaflet-tooltip-tip {
  border-color: rgba(59, 130, 246, 0.4);
}

.placefile-tooltip--internal.leaflet-tooltip {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e2e8f0;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.45);
}

.placefile-tooltip--internal .leaflet-tooltip-tip {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.leaflet-tooltip.chase-spotter-tooltip {
  position: relative;
}

.leaflet-tooltip.chase-spotter-tooltip--has-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--chase-spotter-tooltip-avatar, none) no-repeat right center;
  background-size: contain;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to right, rgba(255, 255, 255, 0) 41%, rgba(255, 255, 255, 1) 100%);
  mask-image: linear-gradient(to right, rgba(255, 255, 255, 0) 41%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
}

.chase-spotter-tooltip__text {
  position: relative;
  z-index: 1;
}

.placefile-popup .leaflet-popup-content {
  max-width: min(32rem, calc(100vw - 3rem));
  max-height: min(24rem, calc(100vh - 8rem));
}

.placefile-popup-content {
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: normal;
}

.chase-map__context-menu {
  --context-menu-accent: var(--accent, #ffcc00);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 13rem;
  max-width: min(90%, 18rem);
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.55);
  color: #e2e8f0;
  z-index: 1300;
  pointer-events: auto;
}

.chase-map__context-menu[hidden] {
  display: none !important;
}

.chase-map__context-menu-label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
}

.chase-map__context-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 120ms ease,
    color 120ms ease;
}

.chase-map__context-menu-item:hover,
.chase-map__context-menu-item:focus-visible {
  background: rgba(255, 204, 0, 0.18);
  color: var(--context-menu-accent);
  outline: none;
}

.chase-map__context-menu-item:active {
  background: rgba(255, 204, 0, 0.28);
  color: var(--context-menu-accent);
}

.chase-map__context-menu-item[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}

.chase-map__context-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.16);
  color: var(--context-menu-accent);
  flex-shrink: 0;
}

.chase-map__context-menu-icon .fa-solid {
  font-size: 0.95rem;
}

.chase-map__context-menu-coordinates {
  margin: 0;
  padding: 0 0.65rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.78);
  letter-spacing: 0.01em;
}

.chase-replay {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.5);
  color: #e2e8f0;
  z-index: 1150;
  max-width: min(90%, 32rem);
  pointer-events: auto;
}

.chase-replay[hidden] {
  display: none !important;
}

.chase-replay__control {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 22, 41, 0.92);
  color: #f8fafc;
  font-size: 1.1rem;
  line-height: 1;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.chase-replay__control .fa-solid {
  line-height: 1;
}

.chase-replay__control:hover,
.chase-replay__control:focus-visible {
  background: rgba(30, 41, 59, 0.98);
  border-color: rgba(250, 204, 21, 0.55);
  color: #facc15;
  transform: scale(1.02);
}

.chase-replay__control:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.45);
  outline-offset: 2px;
}

.chase-replay__timeline {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 14rem;
}

.chase-replay__timestamps {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 1rem;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.85);
}

.chase-replay__radar {
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.75);
  text-align: right;
}

.chase-replay__slider {
  width: 100%;
  appearance: none;
  height: 0.35rem;
  border-radius: 999px;
  --slider-thumb-size: 0.9rem;
  --slider-line-inset: calc(var(--slider-thumb-size) * 1.5);
  background:
    linear-gradient(#facc15, #facc15) center / calc(100% - 2 * var(--slider-line-inset)) 2px no-repeat,
    rgba(148, 163, 184, 0.35);
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chase-replay__slider:hover,
.chase-replay__slider:focus-visible {
  background:
    linear-gradient(#facc15, #facc15) center / calc(100% - 2 * var(--slider-line-inset)) 2px no-repeat,
    rgba(148, 163, 184, 0.55);
}

.chase-replay__slider::-webkit-slider-thumb {
  appearance: none;
  width: var(--slider-thumb-size);
  height: var(--slider-thumb-size);
  border-radius: 50%;
  background: #facc15;
  border: 2px solid rgba(15, 23, 42, 0.85);
  box-shadow: 0 2px 6px rgba(2, 6, 23, 0.6);
  transition: transform 0.2s ease;
}

.chase-replay__slider::-moz-range-thumb {
  width: var(--slider-thumb-size);
  height: var(--slider-thumb-size);
  border-radius: 50%;
  background: #facc15;
  border: 2px solid rgba(15, 23, 42, 0.85);
  box-shadow: 0 2px 6px rgba(2, 6, 23, 0.6);
  transition: transform 0.2s ease;
}

.chase-replay__slider:active::-webkit-slider-thumb,
.chase-replay__slider:active::-moz-range-thumb {
  transform: scale(1.12);
}

.chase-replay__speed {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 0 0 auto;
  align-items: flex-end;
}

.chase-replay__speed-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(226, 232, 240, 0.65);
}

.chase-replay__speed-select {
  min-width: 3.8rem;
  padding: 0.7rem 1.45rem 0.7rem 0.5rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 22, 41, 0.92);
  color: #f8fafc;
  font-size: 0.74rem;
  line-height: 1.1;
  width: auto;
}

.chase-replay__speed-select:hover,
.chase-replay__speed-select:focus-visible {
  border-color: rgba(250, 204, 21, 0.5);
}

@media (max-width: 960px) {
  .chase-replay {
    gap: 0.55rem;
    padding: 0.45rem 0.55rem;
    max-width: calc(100% - 1.5rem);
    border-radius: 12px;
  }

  .chase-replay__control {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  .chase-replay__timeline {
    flex: 1 1 11rem;
    min-width: 0;
    gap: 0.18rem;
  }

  .chase-replay__timestamps {
    gap: 0.55rem;
    font-size: 0.76rem;
    justify-content: flex-end;
  }

  .chase-replay__radar {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
  }

  .chase-replay__speed {
    width: auto;
    min-width: 0;
    align-items: flex-end;
    flex: 0 0 auto;
    gap: 0.15rem;
  }

  .chase-replay__speed-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .chase-replay__speed-select {
    min-width: 3.55rem;
    padding: 0.22rem 1.3rem 0.22rem 0.46rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  .chase-replay {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "control timeline speed";
    align-items: center;
    column-gap: 0.45rem;
    row-gap: 0.2rem;
    top: 0.5rem;
    left: 0.5rem;
    max-width: calc(100% - 1rem);
    padding: 0.4rem 0.48rem;
  }

  .chase-replay__control {
    grid-area: control;
    width: 2.05rem;
    height: 2.05rem;
  }

  .chase-replay__timeline {
    grid-area: timeline;
  }

  .chase-replay__timestamps {
    gap: 0.35rem;
  }

  .chase-replay__radar {
    max-width: 34vw;
  }

  .chase-replay__slider {
    --slider-thumb-size: 0.82rem;
  }

  .chase-replay__speed {
    grid-area: speed;
    justify-self: end;
  }

  .chase-replay__speed-label {
    display: none;
  }

  .chase-replay__speed-select {
    min-width: 0;
    max-width: 19vw;
    padding: 0.2rem 1.1rem 0.2rem 0.4rem;
    font-size: 0.66rem;
  }
}

@media (max-width: 640px) {
  .chase-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .chase-section__clock {
    font-size: 0.76rem;
  }
}

.chase-map__controls {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.45);
  z-index: 1100;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.chase-map__control-toggle {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.45);
  z-index: 1120;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.chase-map__fullscreen {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.45);
  z-index: 1115;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.chase-map__fullscreen.is-active,
.chase-map__fullscreen:hover,
.chase-map__fullscreen:focus-visible {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(250, 204, 21, 0.55);
  color: #facc15;
}

.chase-map__fullscreen:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.45);
  outline-offset: 2px;
}

.chase-map__control-toggle:hover,
.chase-map__control-toggle:focus-visible,
.chase-map__control-toggle.is-active {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(250, 204, 21, 0.55);
  color: #facc15;
}

.chase-map__control-toggle:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.45);
  outline-offset: 2px;
}

.chase-map__control {
  cursor: pointer;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 22, 41, 0.9);
  color: #e2e8f0;
  font-size: 0.95rem;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.chase-map__control.is-active {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(250, 204, 21, 0.55);
  color: #facc15;
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.35);
}

.chase-map__control.is-active:hover,
.chase-map__control.is-active:focus-visible {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(250, 204, 21, 0.65);
  color: #facc15;
}

.chase-map__control:hover,
.chase-map__control:focus-visible {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(250, 204, 21, 0.55);
  color: #facc15;
}

.chase-map__control:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.45);
  outline-offset: 2px;
}

.chase-map__control[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.6);
  color: rgba(226, 232, 240, 0.6);
}

.chase-map__geocode {
  position: relative;
}

.chase-map__geocode-panel {
  position: fixed;
  top: 0;
  right: calc(100% + 0.55rem);
  width: min(22rem, calc(100vw - 8rem));
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 55%);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.52);
  z-index: 1160;
}

.chase-map__geocode-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.45rem;
  align-items: stretch;
}

.chase-map__geocode-input {
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0.72rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(9, 14, 28, 0.92);
  color: #f8fafc;
  font-size: 0.88rem;
}

.chase-map__geocode-input::placeholder {
  color: rgba(226, 232, 240, 0.55);
}

.chase-map__geocode-input:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.45);
  outline-offset: 2px;
  border-color: rgba(250, 204, 21, 0.55);
}

.chase-map__geocode-submit,
.chase-map__geocode-action,
.chase-temp-pin-popup__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.chase-map__geocode-submit:hover,
.chase-map__geocode-submit:focus-visible,
.chase-map__geocode-action:hover,
.chase-map__geocode-action:focus-visible,
.chase-temp-pin-popup__remove:hover,
.chase-temp-pin-popup__remove:focus-visible {
  background: rgba(250, 204, 21, 0.2);
  border-color: rgba(250, 204, 21, 0.55);
  color: #fef3c7;
}

.chase-map__geocode-submit[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.chase-map__geocode-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(148, 163, 184, 0.75);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.chase-map__geocode-help:hover,
.chase-map__geocode-help:focus-visible {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.55);
  color: #cbd5e1;
}

.chase-map__geocode-feedback {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.84);
}

.chase-map__geocode-feedback--error {
  color: #fca5a5;
}

.chase-map__geocode-candidates {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.chase-map__geocode-candidate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.chase-map__geocode-candidate:hover,
.chase-map__geocode-candidate:focus-visible {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.9);
}

.chase-map__geocode-candidate-label {
  font-size: 0.82rem;
  font-weight: 600;
}

.chase-map__geocode-candidate-meta {
  font-size: 0.74rem;
  color: rgba(148, 163, 184, 0.92);
}

.chase-map__geocode-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.chase-map__geocode-action {
  flex: 1 1 0;
  padding-inline: 0.7rem;
}

.chase-temp-pin-popup-wrap .leaflet-popup-content-wrapper {
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.5);
}

.chase-temp-pin-popup-wrap .leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.96);
}

.chase-temp-pin-popup {
  width: 13rem;
  box-sizing: border-box;
}

.chase-temp-pin-popup__title {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
}

.chase-temp-pin-popup__meta {
  margin: 0.35rem 0 0 !important;
  font-size: 0.76rem;
  text-transform: capitalize;
  color: rgba(148, 163, 184, 0.95);
}

.chase-temp-pin-popup__warnings {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
  color: #fcd34d;
  font-size: 0.76rem;
}

.chase-temp-pin-popup__warnings li + li {
  margin-top: 0.2rem;
}

.chase-temp-pin-popup__remove {
  width: 100%;
  margin-top: 0.65rem;
}

.chase-map__legend {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.78);
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.8rem;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.45);
  z-index: 1100;
}

.chase-map:fullscreen,
.chase-map:-webkit-full-screen,
.chase-map--fullscreen {
  z-index: 1300;
  background: #000;
}

.chase-map:fullscreen .chase-map__canvas,
.chase-map:-webkit-full-screen .chase-map__canvas,
.chase-map--fullscreen .chase-map__canvas {
  flex: 1;
}

.chase-map:fullscreen .chase-map__legend,
.chase-map:-webkit-full-screen .chase-map__legend,
.chase-map--fullscreen .chase-map__legend {
  bottom: 1rem;
}

.chase-map__legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 0.9rem;
  row-gap: 0.35rem;
}

.chase-map__legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.chase-map__legend-swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

.chase-map__legend-swatch--start {
  background: #22c55e;
}

.chase-map__legend-swatch--current {
  background: radial-gradient(circle at 35% 35%, #fde047 0%, #f59e0b 100%);
}

.chase-map__legend-line {
  width: 1.65rem;
  height: 0.3rem;
  border-radius: 999px;
}

.chase-map__legend-line--trail {
  background: linear-gradient(90deg, #facc15 0%, #f59e0b 100%);
  box-shadow: 0 0 4px rgba(250, 204, 21, 0.35);
}

.chase-map__legend-line--exclusion {
  border-top: 2px dashed rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 4px rgba(248, 113, 113, 0.35);
  position: relative;
  top: 2px;
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
  z-index: 1000;
}

.chase-connection-warning {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 176, 31, 0.9);
  color: #1b1b1b;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1100;
}

.chase-connection-warning__icon {
  font-size: 1rem;
}

.chase-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chase-stats__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.chase-stats__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chase-stats__item dt {
  color: var(--text-secondary);
  font-weight: 500;
}

.chase-stats__item dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.chase-stats--compact .chase-stats__item {
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .chase-stats--responsive {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .chase-stats--responsive .chase-stats__item {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.25rem;
  }

  .chase-stats--responsive .chase-stats__item dd {
    font-size: 1rem;
    text-align: left;
    width: 100%;
  }

  .chase-stats--responsive.chase-stats--trip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .chase-stats--responsive {
    grid-template-columns: 1fr;
  }
}

/* nws bulletin popup */

/* Base popup container */
.leaflet-popup-content-wrapper {
  background: #1e293b; /* dark slate background */
  color: #f8fafc; /* light text */
  border-radius: 0.75rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem;
  font-family: "Inter", system-ui, sans-serif;
}

/* Popup content with scroll + sizing */
.leaflet-popup-content {
  max-width: 300px;
  max-height: 300px;
  overflow-y: auto; /* vertical scroll if needed */
  overflow-x: hidden; /* no horizontal scroll */
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Title (optional in your popup HTML) */
.leaflet-popup-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #facc15; /* accent yellow */
}

/* Popup tip (arrow) */
.leaflet-popup-tip {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Close button */
.leaflet-popup-close-button {
  color: #f8fafc;
  font-size: 1.2rem;
  padding: 0.25rem;
  transition: color 0.2s ease;
}
.leaflet-popup-close-button:hover {
  color: #facc15;
}

/* markers */

.chase-marker-current {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at center, #fde047 0%, #f59e0b 100%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.chase-marker-start {
  width: 16px;
  height: 16px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

/* Base pin (teardrop shape) */
.chase-pin {
  --pin-color: #38bdf8;
  --pin-stroke: #fff;
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid var(--pin-stroke, #fff);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
  overflow: visible;
}

.chase-pin::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background-color: var(--pin-color, #38bdf8);
  background-image:
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, 0.75) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
}

.chase-pin__content,
.chase-pin__glyph {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  pointer-events: none;
  border-radius: 50%;
}

.chase-pin__content--icon {
  font-size: 1rem;
  line-height: 1;
}

.chase-pin__content--icon i {
  pointer-events: none;
}

.chase-spotter-dot.leaflet-div-icon {
  background: transparent;
  border: none;
  width: 14px;
  height: 14px;
  position: relative;
  margin: 0 !important;
}

.chase-spotter-dot--stream,
.chase-pin-icon--spotter.chase-spotter-icon--stream {
  cursor: pointer;
}

.chase-spotter-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent, #ffcc00);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  box-shadow: 0 4px 8px rgba(2, 6, 23, 0.35);
  pointer-events: none;
  z-index: 2;
}

.chase-spotter-badge i {
  pointer-events: none;
}

.chase-spotter-dot__inner {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  border: 2px solid var(--chase-spotter-stroke, rgba(255, 255, 255, 0.75));
  background: var(--chase-spotter-fill, rgba(15, 23, 42, 0.6));
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.35);
}

.chase-spotter-circle.leaflet-div-icon {
  background: transparent;
  border: none;
  width: 30px;
  height: 30px;
  position: relative;
  margin: 0 !important;
}

.chase-spotter-circle--stream {
  cursor: pointer;
}

.chase-spotter-circle__profile {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  border: 3px solid var(--chase-spotter-stroke, rgba(255, 255, 255, 0.75));
  background: var(--chase-spotter-fill, rgba(15, 23, 42, 0.6));
  box-shadow:
    0 8px 16px rgba(15, 23, 42, 0.28),
    0 0 0 2px rgba(248, 250, 252, 0.85);
  color: #f8fafc;
}

.chase-spotter-circle__profile--has-image {
  background: rgba(15, 23, 42, 0.14);
}

.chase-spotter-circle__profile--has-initials {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.chase-spotter-circle__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.chase-spotter-circle__initials {
  font-size: 0.74rem;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
}

.chase-spotter-circle__fallback {
  width: 44%;
  height: 44%;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.6);
}

.chase-pin-icon--spotter {
  overflow: visible;
}

.chase-pin-icon--spotter .chase-pin {
  width: 36px;
  height: 36px;
}

.chase-spotter-pin__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem;
  box-sizing: border-box;
  pointer-events: none;
}

.chase-spotter-pin__profile {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.35);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.chase-spotter-pin__profile--has-image {
  background: rgba(15, 23, 42, 0.2);
  box-shadow: none;
}

.chase-spotter-pin__profile--has-initials {
  background: rgba(15, 23, 42, 0.78);
}

.chase-spotter-pin__profile--empty {
  background: rgba(148, 163, 184, 0.45);
  color: rgba(15, 23, 42, 0.85);
}

.chase-spotter-pin__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.chase-spotter-pin__initials {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.55);
}

.chase-spotter-pin__fallback {
  width: 44%;
  height: 44%;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.55);
}

.broadcast-stream-popup {
  color: var(--text);
  border-radius: 16px;
}

.broadcast-stream-popup .leaflet-popup-content-wrapper {
  background: var(--bg-panel, #10141e);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.55);
  padding: 0;
  overflow: hidden;
}

.broadcast-stream-popup .leaflet-popup-content {
  margin: 0;
  width: auto;
}

.broadcast-stream-popup .leaflet-popup-tip {
  background: var(--bg-panel, #10141e);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.broadcast-stream-popup__content {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.broadcast-stream-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.broadcast-stream-popup__title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #cbd5f5);
  margin: 0;
}

.broadcast-stream-popup__close {
  border: none;
  background: transparent;
  color: var(--text, #f8fafc);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.broadcast-stream-popup__close:hover,
.broadcast-stream-popup__close:focus-visible {
  color: var(--accent, #ffcc00);
}

.broadcast-stream-popup__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #010409;
}

.broadcast-stream-popup__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  background: #000;
  display: block;
}

.chase-pin-icon {
  overflow: visible;
}

.chase-pin__remove {
  position: absolute;
  top: -0.55rem;
  right: -0.55rem;
  width: 1.35rem;
  height: 1.35rem;
  border: none;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  cursor: pointer;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.6);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.chase-pin__remove i {
  pointer-events: none;
  font-size: 0.8rem;
}

.chase-pin__remove:hover,
.chase-pin__remove:focus {
  background: rgba(248, 113, 113, 0.95);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.95);
}

.chase-pin-tooltip.leaflet-tooltip {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.45);
}

.chase-pin-tooltip.leaflet-tooltip .leaflet-tooltip-tip {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

/* Color variations */
.chase-pin--blue {
  --pin-color: #38bdf8;
}
.chase-pin--green {
  --pin-color: #22c55e;
}
.chase-pin--red {
  --pin-color: #ef4444;
}
.chase-pin--yellow {
  --pin-color: #facc15;
}
.chase-pin--purple {
  --pin-color: #a855f7;
}

.chase-intent-popup {
  pointer-events: none;
}

.chase-intent-popup .leaflet-popup-content-wrapper {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.chase-intent-popup .leaflet-popup-content {
  margin: 0;
  max-width: none;
  max-height: none;
  overflow: visible;
}

.chase-intent-popup .leaflet-popup-tip {
  display: none;
}

.chase-intent-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.86));
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.45);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  max-width: 18rem;
  word-break: break-word;
}

.chase-intent-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.86));
  border-left: 1px solid rgba(148, 163, 184, 0.55);
  border-bottom: 1px solid rgba(148, 163, 184, 0.55);
  transform: translateX(-50%) rotate(45deg);
}

.chase-intent-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chase-intent-bubble.is-hiding {
  opacity: 0;
  transform: translateY(4px) scale(0.96);
}

.chase-intent-bubble__icon {
  font-size: 1rem;
  line-height: 1;
}

.chase-intent-bubble__text {
  font-size: 0.8rem;
  font-weight: 600;
  color: inherit;
}

.chase-dashboard-page .intent-inline__display {
  justify-content: space-between;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.chase-dashboard-page .intent-inline__display:hover,
.chase-dashboard-page .intent-inline__display:focus {
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.2);
}

.chase-dashboard-page .intent-inline__display:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.3);
}

.chase-dashboard-page .intent-inline__input {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
  font-size: 0.95rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.chase-dashboard-page .intent-inline__input:focus {
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.25);
}

.chase-dashboard-page .intent-inline--loading::after {
  border-color: var(--accent) transparent transparent transparent;
}

#chaseFuelHistoryModal > .modal__dialog {
  max-height: 70%;
  overflow-y: scroll;
}

.point-sounding-modal .modal__dialog--point-sounding {
  width: min(92vw, 74rem);
  max-height: 90vh;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.point-sounding-modal__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.85);
  width: fit-content;
  margin: 0 auto;
  max-height: 90vh;
}

.point-sounding-modal__image {
  display: block;
  height: auto;
  max-height: 90vh;
}

.point-sounding-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #0f172a;
  cursor: pointer;
  font-size: 1.2rem;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.point-sounding-modal__close:hover,
.point-sounding-modal__close:focus {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.point-sounding-modal__close i {
  pointer-events: none;
}

.point-sounding-modal__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.point-sounding-modal__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: flex-start;
  align-items: flex-start;
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.5) 55%, rgba(15, 23, 42, 0) 100%);
  color: #f8fafc;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.55);
  pointer-events: none;
}

.point-sounding-modal__overlay-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.18);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.point-sounding-modal__overlay-text {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  max-width: 28rem;
  font-weight: 500;
}

.fuel-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fuel-history-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.fuel-history-list__item.is-highlighted {
  border-color: var(--accent, #ffcc00);
  box-shadow:
    0 0 0 2px rgba(255, 204, 0, 0.45),
    0 12px 24px rgba(15, 23, 42, 0.5);
  background: rgba(15, 23, 42, 0.75);
}

.fuel-history-list__item.is-highlighted .fuel-history-list__time,
.fuel-history-list__item.is-highlighted .fuel-history-list__type {
  color: var(--accent, #ffcc00);
}

.fuel-history-list__item.is-highlighted .fuel-history-list__fuel-type {
  color: #fff;
}

.fuel-history-list__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.fuel-history-list__time {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.fuel-history-list__type {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.fuel-history-list__fuel-type {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fuel-history-list__metrics {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.fuel-history-list__metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.4rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}

.fuel-history-list__metric-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.fuel-history-list__metric-value {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1280px) {
  .chase-dashboard__columns {
    grid-template-columns: minmax(200px, 0.3fr) minmax(0, 1fr) minmax(200px, 0.3fr);
  }

  .chase-dashboard__columns--situational {
    grid-template-columns: minmax(200px, 0.3fr) minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .chase-dashboard-main {
    padding: 0.75rem;
  }

  .chase-demo-banner {
    align-items: center;
  }

  .chase-dashboard__columns {
    display: flex;
    flex-direction: column;
    gap: var(--chase-gap);
  }

  .chase-column {
    padding: 0;
    min-width: 0;
    width: 100%;
  }

  .chase-column--center {
    order: 0;
    min-height: 380px;
    overflow: visible;
  }

  .chase-column--left {
    order: 1;
    padding: 0;
  }

  .chase-column--right {
    order: 2;
    padding: 0;
  }

  .chase-column--left,
  .chase-column--right {
    overflow: visible;
  }

  .chase-intent,
  .chase-section {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(0, 0, 0, 0.92));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65);
  }

  .chase-section {
    border-bottom: none;
  }

  .chase-column > .chase-section:last-child {
    padding-bottom: 0.75rem;
  }

  .chase-map {
    min-height: 45vh;
  }

  .chase-map__control-toggle {
    display: inline-flex;
  }

  .chase-map__controls {
    top: auto;
    bottom: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.4rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(120%);
    z-index: 1110;
  }

  .chase-map__controls.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .chase-map__geocode-panel {
    top: auto;
    bottom: calc(100% + 0.5rem);
    right: 0;
    width: min(22rem, calc(100vw - 1rem));
  }

  .chase-map__legend {
    display: none;
  }

  .chase-map__control-toggle.is-active {
    transform: translateY(-6.1rem);
  }

  .chase-map__controls > .chase-map__control,
  .chase-map__controls > .chase-map__geocode,
  .chase-map__controls > .chase-map__geocode > .chase-map__control {
    width: 100%;
  }

  .chase-map__control,
  .chase-map__controls > .chase-map__geocode > .chase-map__control {
    height: 2.55rem;
  }

  .chase-map__geocode-input {
    font-size: 16px;
  }
}

@media (min-width: 981px) {
  .chase-map__fullscreen {
    top: auto;
    bottom: 0.75rem;
  }
}

@media (max-width: 480px) {
  .chase-map {
    min-height: 50vh;
  }

  .chase-map__control-toggle,
  .chase-map__fullscreen {
    width: 2.5rem;
    height: 2.5rem;
  }

  .chase-map__controls {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    gap: 0.35rem;
    padding: 0.35rem;
  }

  .chase-map__control,
  .chase-map__controls > .chase-map__geocode > .chase-map__control {
    height: 2.4rem;
    font-size: 0.9rem;
  }

  .chase-map__fullscreen {
    top: auto;
    right: 0.75rem;
    bottom: calc(0.5rem + 2.5rem + 0.45rem);
  }

  .chase-map__geocode-actions {
    flex-direction: column;
  }

  .chase-map__control-toggle.is-active {
    transform: translateY(-5.85rem);
  }
}
.fuel-stop-form {
  gap: 0.75rem;
}

.fuel-stop-form__grid {
  display: grid;
  gap: 0.75rem;
}

.fuel-stop-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (min-width: 600px) {
  .fuel-stop-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Replay-locked overlay — shown when a finalized session exceeds the plan's
   max_replay_sessions limit. */
.replay-locked-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.replay-locked-overlay__card {
  background: var(--bg-dark, #1a1a2e);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 90vw;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.replay-locked-overlay__icon {
  color: var(--text-secondary, #888);
  margin-bottom: 1rem;
}

.replay-locked-overlay__heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.replay-locked-overlay__message {
  color: var(--text-secondary, #aaa);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.replay-locked-overlay__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.replay-locked-overlay__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ----------------------------------------------------------------------
 * Chase Dash — Placefiles section (Vue ChasePlacefileControls.vue)
 * Tighter, more deliberate layout than the legacy stacked toggles.
 * --------------------------------------------------------------------- */

.chase-section--placefiles {
  position: relative;
}

.chase-placefiles__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.chase-placefiles__manage {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent, #ffcc00);
  text-decoration: none;
  border-radius: 4px;
  padding: 0.1rem 0.25rem;
}

.chase-placefiles__manage:hover,
.chase-placefiles__manage:focus-visible {
  text-decoration: underline;
  outline: none;
}

.chase-placefiles__manage.is-disabled,
.chase-placefiles__discover.is-disabled,
.chase-placefiles__handle[aria-disabled="true"] {
  color: rgba(226, 232, 240, 0.45);
  cursor: not-allowed;
  opacity: 0.68;
  text-decoration: none;
}

.chase-placefiles__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chase-placefiles__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.4rem 0.25rem 0.15rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease;
  min-width: 0;
}

.chase-placefiles__row:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.chase-placefiles__row--dragging {
  opacity: 0.55;
}

.chase-placefiles__row--drop-target {
  background-color: rgba(255, 204, 0, 0.08);
  border-color: rgba(255, 204, 0, 0.4);
}

.chase-placefiles__handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.5rem;
  flex-shrink: 0;
  cursor: grab;
  color: var(--text-secondary, #94a3b8);
  border-radius: 4px;
  -webkit-user-select: none;
  user-select: none;
}

.chase-placefiles__handle:hover,
.chase-placefiles__handle:focus-visible {
  color: var(--text-primary, #f8fafc);
  background-color: rgba(255, 255, 255, 0.06);
  outline: none;
}

.chase-placefiles__handle:active {
  cursor: grabbing;
}

.chase-placefiles__handle svg {
  width: 0.65rem;
  height: 0.95rem;
  fill: currentColor;
}

.chase-placefiles__toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  margin: 0;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--text-primary, #f8fafc);
}

.chase-placefiles__toggle input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--accent, #ffcc00);
}

.chase-placefiles__label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.chase-placefiles__empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary, #94a3b8);
}

.chase-placefiles__discover {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-end;
  margin-top: 0.1rem;
  padding: 0.25rem 0.45rem;
  font-size: 0.78rem;
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  border-radius: 4px;
  border: 1px dashed transparent;
}

.chase-placefiles__discover i {
  font-size: 0.85em;
  color: var(--accent, #ffcc00);
}

.chase-placefiles__discover:hover,
.chase-placefiles__discover:focus-visible {
  color: var(--text-primary, #f8fafc);
  border-color: rgba(255, 204, 0, 0.35);
  outline: none;
}

@media (max-width: 768px) {
  .chase-placefiles__row {
    padding: 0.35rem 0.4rem 0.35rem 0.15rem;
  }

  .chase-placefiles__handle {
    width: 1.5rem;
    height: 1.75rem;
  }

  .chase-placefiles__handle svg {
    width: 0.75rem;
    height: 1.05rem;
  }
}

/* Source origin icon shown next to each placefile name in the sidebar */
.placefile-source-icon {
  flex-shrink: 0;
  font-size: 0.75em;
  opacity: 0.55;
}

.placefile-source-icon--placehub {
  color: var(--accent-yellow, #fbbf24);
}

.placefile-source-icon--custom {
  color: var(--accent-blue, #60a5fa);
}
