.hex-find {
  padding: 0;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  --hex-compare-recent: #e44b4b;
  --hex-compare-earlier: #2b7de9;
  --hex-compare-recent-soft: rgba(228, 75, 75, 0.15);
  --hex-compare-earlier-soft: rgba(43, 125, 233, 0.15);
  --hex-sev-fatal: #ff1744;
  --hex-sev-serious: #ff9800;
  --hex-sev-moderate: #666666;
}

.hex-find__header {
  display: none;
}

.hex-find__title {
  font-size: 1.7rem;
  margin: 0;
  color: #1f1f1f;
}

.hex-find__subtitle {
  margin: 0.35rem 0 0;
  color: #5f5f5f;
  font-size: 0.95rem;
}

.hex-find__search {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  padding: 0.55rem;
  margin: 0.5rem 0.75rem 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 4;
}

.hex-find__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hex-find__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a7a7a;
  margin-bottom: 0.35rem;
}

.hex-find__search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hex-find__menu-toggle {
  border: 1px solid #d5d5d5;
  background: #fff;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  cursor: pointer;
}

.hex-find__menu-toggle i {
  font-size: 1.25rem;
  line-height: 1;
}

.hex-find__input-clear {
  border: 1px solid #d5d5d5;
  background: #fff;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #333;
  cursor: pointer;
}

.hex-find__input-clear i {
  font-size: 1.1rem;
  line-height: 1;
}

.hex-find__input-clear[hidden] {
  display: none !important;
}

.hex-find__input {
  flex: 1;
  min-width: 0;
  border: 1px solid #bdbdbd;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}


.hex-find__results {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: calc(100% - 0.25rem);
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 0.75rem 0.5rem;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  display: grid;
  gap: 0.4rem;
  max-height: 45vh;
  overflow: auto;
  z-index: 5;
  border: 1px solid #ededed;
  list-style: none;
  margin: 0;
}

.hex-find__results-close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  border: none;
  background: #f3f3f3;
  color: #555;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hex-find__result-item--selectable {
  cursor: pointer;
  border-radius: 10px;
  padding: 0.45rem 0.35rem;
}

@media (hover: hover) {
  .hex-find__result-item--selectable:hover {
    background: #f7f7f7;
  }
}

.hex-find__results-group {
  border-top: 1px solid #ececec;
  padding-top: 0.5rem;
}

.hex-find__results-title {
  font-size: 0.8rem;
  color: #7a7a7a;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hex-find__result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 0.95rem;
  color: #232323;
}

.hex-find__result-meta {
  font-size: 0.8rem;
  color: #6a6a6a;
}

.hex-find__result-item button {
  border: none;
  background: #ffebe8;
  color: #bb2d2d;
  font-weight: 700;
  border-radius: 999px;
  width: 28px;
  height: 28px;
}

.hex-find__results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.hex-find__results--header {
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  max-height: 50vh;
  z-index: 1001;
}

.hex-find__map {
  position: relative;
  z-index: 1;
  margin: 0.65rem 0.75rem 0.75rem;
  height: auto;
  min-height: 0;
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e2e2;
}

.hex-find__map.hex-find__map--paint {
  touch-action: none;
  overscroll-behavior: contain;
}

.hex-find__map.hex-find__map--paint .mapboxgl-canvas {
  touch-action: none;
}

.hex-find__map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.hex-find__map-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 240px;
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  font-size: 0.78rem;
  line-height: 1.35;
  color: #1f2937;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
  --hex-tooltip-accent: var(--hex-sev-moderate);
}

.hex-find__map-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hex-find__map-tooltip[data-severity="fatal"] {
  --hex-tooltip-accent: var(--hex-sev-fatal);
}

.hex-find__map-tooltip[data-severity="serious"] {
  --hex-tooltip-accent: var(--hex-sev-serious);
}

.hex-find__map-tooltip[data-severity="moderate"] {
  --hex-tooltip-accent: var(--hex-sev-moderate);
}

.hex-find__map-tooltip-title {
  font-weight: 600;
  font-size: 0.82rem;
  color: #111827;
}

.hex-find__map-tooltip-meta {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hex-find__map-tooltip-meta::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--hex-tooltip-accent);
}

.hex-find__map-tooltip-summary {
  margin-top: 0.35rem;
  color: #4b5563;
  white-space: pre-line;
}

.hex-find__box-select {
  position: absolute;
  border: 2px solid rgba(255, 73, 73, 0.9);
  background: rgba(255, 73, 73, 0.12);
  border-radius: 10px;
  pointer-events: none;
  z-index: 6;
}

.hex-find__box-actions {
  position: absolute;
  top: 6.9rem;
  left: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  display: grid;
  gap: 0.4rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  z-index: 7;
}

.hex-find__box-actions-count {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-weight: 600;
}

.hex-find__box-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hex-find__box-action {
  border: 1px solid #d5d5d5;
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
}

.hex-find__box-action:hover {
  border-color: #bdbdbd;
  background: #f7f7f7;
}

.hex-find__box-action--danger {
  border-color: #ef4444;
  background: #fee2e2;
  color: #b91c1c;
}

.hex-find__box-action--danger:hover {
  background: #fecaca;
}

.hex-find__map-controls {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}

.hex-find__map-action {
  border: 1px solid #d5d5d5;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.hex-find__map-action.is-active {
  border-color: #bdbdbd;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  background: #f7f7f7;
}

.hex-find__map-action--danger {
  border-color: #8f1111;
  background: #b81919;
  color: #fff;
}

.hex-find__map-action--danger.is-active {
  border-color: #6e0c0c;
  background: #9f0f0f;
  color: #fff;
}

.hex-find__map-action[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.hex-find__clear-wrap {
  position: absolute;
  top: 3.1rem;
  left: 0.75rem;
  right: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  pointer-events: auto;
}


.hex-find__map-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #b01818;
  background: rgba(255, 245, 245, 0.95);
  z-index: 10;
}

.hex-find__bottom {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  margin: 0;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  border-radius: 16px;
  background: #151515;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  z-index: 6;
}

.hex-find__bottom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hex-find__bottom-header .hex-find__go {
  margin-left: auto;
  padding: 0.5rem 1.2rem;
}

.hex-find__window-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9c9c9;
}

.hex-find__info-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  border-radius: 999px;
  width: 18px;
  height: 18px;
}

.hex-find__info-fab i {
  font-size: 0.95rem;
  line-height: 1;
}

.hex-find__info-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hex-find__modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.hex-find__modal:target {
  display: block;
}

.hex-find__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hex-find__modal-panel {
  position: relative;
  background: #fff;
  color: #1f1f1f;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin: 12vh 1.25rem 0;
  max-width: 36rem;
  max-height: 75vh;
  overflow: auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.hex-find__modal-panel h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.hex-find__modal-panel p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.hex-find__modal-panel p:last-of-type {
  margin-bottom: 1rem;
}

.hex-find__modal-close {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: #1a3c7c;
  text-decoration: none;
}

@media (min-width: 720px) {
  .hex-find__modal-panel {
    margin: 12vh auto 0;
  }
}

.hex-find__totals {
  display: grid;
  width: 100%;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.hex-find__totals-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.hex-find__totals-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font: inherit;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.hex-find__totals-item[data-tooltip] {
  cursor: help;
}

.hex-find__totals button.hex-find__totals-item[data-tooltip] {
  cursor: pointer;
}

.hex-find__totals span.hex-find__totals-item[data-tooltip] {
  cursor: default;
}

.hex-find__totals-item[data-tooltip]::after {
  content: none;
}

.hex-find__totals-item[data-tooltip]:hover::after,
.hex-find__totals-item[data-tooltip]:focus::after,
.hex-find__totals-item[data-tooltip]:focus-visible::after,
.hex-find__totals-item[data-tooltip]:focus-within::after {
  opacity: 0;
}

.hex-find__chip[data-tooltip]::after {
  content: none;
}

.hex-find__tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  padding: 0.45rem 0.6rem;
  border-radius: 0.45rem;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: pre-line;
  max-width: min(260px, calc(100vw - 2rem));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.hex-find__tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hex-find__totals strong {
  font-size: 1.05rem;
  margin-left: 0;
}

.hex-find__totals-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hex-find__totals-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.hex-find__totals-icon img {
  width: 16px;
  height: 16px;
  filter: invert(1);
}

.hex-find__totals-icon i {
  font-size: 0.9rem;
  line-height: 1;
}

.hex-find__totals-item--icon {
  padding: 0.2rem 0.4rem;
}

.hex-find__totals-item[data-crash-metric="crashes"] {
  --hex-sev-color: #f2f2f2;
}

.hex-find__totals-item[data-crash-metric="injuries"] {
  --hex-sev-color: #f9c74f;
}

.hex-find__totals-item[data-crash-metric="moderate"] {
  --hex-sev-color: #f8961e;
}

.hex-find__totals-item[data-crash-metric="serious"] {
  --hex-sev-color: #f3722c;
}

.hex-find__totals-item[data-crash-metric="deaths"] {
  --hex-sev-color: #c1121f;
}

.hex-find__totals-item[data-crash-row] {
  cursor: pointer;
}

.hex-find__totals-item[data-crash-row]:hover {
  transform: translateY(-1px);
}

.hex-find__totals-item.is-active {
  border-color: var(--hex-sev-color, rgba(255, 255, 255, 0.7));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.15);
}

.hex-find__totals-item.is-active .hex-find__totals-icon {
  color: var(--hex-sev-color, #fff);
}

.hex-find__hint {
  margin: 0;
  font-size: 0.75rem;
  color: #b6b6b6;
}

.hex-find__breakdown {
  display: grid;
  gap: 0.35rem;
}

.hex-find__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #f2f2f2;
}

.hex-find__chips--bottom {
  margin-top: 0.4rem;
}

@media (max-width: 480px) {
  .hex-find__chips--bottom {
    margin-top: 0.55rem;
  }
}

@media (max-width: 360px) {
  .hex-find__totals-row {
    gap: 0.35rem;
  }

  .hex-find__chip {
    padding: 0.16rem 0.4rem;
  }
}

.hex-find__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font: inherit;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.hex-find__chip[data-tooltip] {
  cursor: help;
}

.hex-find__chip[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  padding: 0.4rem 0.55rem;
  border-radius: 0.45rem;
  background: #111;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.25;
  white-space: pre-line;
  text-align: left;
  min-width: 140px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 20;
}

.hex-find__chip[data-tooltip]:hover::after,
.hex-find__chip[data-tooltip]:focus::after,
.hex-find__chip[data-tooltip]:focus-visible::after,
.hex-find__chip[data-tooltip]:focus-within::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hex-find__totals span.hex-find__chip[data-tooltip] {
  cursor: default;
}

.hex-find__totals .hex-find__chip[data-tooltip]::after {
  content: none;
}

.hex-find__chip[data-mode-toggle],
.hex-find__chip[data-age-toggle] {
  cursor: pointer;
}

.hex-find__chip[data-mode-toggle]:hover,
.hex-find__chip[data-age-toggle]:hover {
  transform: translateY(-1px);
}

.hex-find__chip.is-active {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.16);
}

.hex-find__chip--age {
  border-color: rgba(30, 106, 216, 0.5);
  color: #b6d2ff;
  background: rgba(30, 106, 216, 0.12);
}

.hex-find__chip--age.is-active {
  border-color: rgba(30, 106, 216, 0.95);
  color: #e1edff;
  background: rgba(30, 106, 216, 0.24);
}

.hex-find__chip--highway {
  border-color: rgba(255, 214, 153, 0.5);
  color: #ffe3b5;
  background: rgba(255, 214, 153, 0.14);
}

.hex-find__chip--highway.is-active {
  border-color: rgba(255, 214, 153, 0.95);
  color: #fff1d6;
  background: rgba(255, 214, 153, 0.28);
}

.hex-find__chip strong {
  font-weight: 700;
}

.hex-find__chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.hex-find__chip-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hex-find__chip-icon img {
  width: 16px;
  height: 16px;
  filter: invert(1);
}

.hex-find__chip-icon i {
  font-size: 0.95rem;
  line-height: 1;
}

.hex-find__breakdown--panel .hex-find__chips {
  color: #1d1d1d;
}

.hex-find__breakdown--panel .hex-find__chip {
  background: #f4f4f4;
  border: 1px solid #e1e1e1;
}

.hex-find__breakdown--panel .hex-find__chip-icon img {
  filter: none;
}

.hex-find__go {
  background: #ff4949;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.hex-find__go[disabled] {
  background: #3a3a3a;
  color: #bdbdbd;
  cursor: not-allowed;
}

.hex-find__bottom--idle {
  background: #1b1b1b;
}

.hex-find__step {
  transition: opacity 0.2s ease;
}

.hex-find [hidden] {
  display: none !important;
}

.hex-find__step[data-step="1"] {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  box-sizing: border-box;
  --hex-bottom-offset: calc(9.5rem + env(safe-area-inset-bottom));
  padding-bottom: var(--hex-bottom-offset);
}

.hex-find__step[data-step="2"] {
  padding: 1rem 1rem calc(7.5rem + env(safe-area-inset-bottom));
}

.hex-find__results-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.hex-find__results-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.hex-find__results-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hex-find__actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hex-find__map-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}

.hex-find__results-row .hex-find__map-actions {
  margin-left: auto;
}

.hex-find__results-subtitle {
  margin: 0.25rem 0 0;
  color: #6a6a6a;
  font-size: 0.9rem;
}

.hex-find__selection-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f1f1f;
}

.hex-find__compare {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}

.hex-find__panel--filters {
  margin-bottom: 1rem;
}
.hex-find__range {
  background: #fff;
  border-radius: 16px;
  padding: 0.9rem;
  border: 1px solid #ececec;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.hex-find__range-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.hex-find__range-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.hex-find__range-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #6a6a6a;
  text-align: right;
}

.hex-find__range-sliders {
  display: grid;
  gap: 0.4rem;
}

.hex-find__range-slider {
  position: relative;
  margin-bottom: 44px;
  overflow: visible;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

.hex-find__range-slider.noUi-target {
  height: 6px;
  background: #ededed;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  box-shadow: none;
  box-sizing: border-box;
}

.hex-find__range-slider.noUi-horizontal {
  height: 6px;
}

.hex-find__range-slider .noUi-connect {
  background: #e44b4b;
}

.hex-find__range-slider .noUi-handle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: grab;
  top: -4px;
  right: -7px;
  touch-action: none;
}

.hex-find__range-slider .noUi-handle::before,
.hex-find__range-slider .noUi-handle::after {
  display: none;
}

.hex-find__range[data-period="recent"] .noUi-connect {
  background: var(--hex-compare-recent);
}

.hex-find__range[data-period="earlier"] .noUi-connect {
  background: var(--hex-compare-earlier);
}

.hex-find__range-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.hex-find__range-slider .noUi-pips {
  color: #7d7d7d;
  font-size: 0.65rem;
  padding-top: 4px;
}

.hex-find__range-slider .noUi-pips-horizontal {
  padding: 6px 0 0;
  height: 34px;
  top: 10px;
}

.hex-find__range-slider .noUi-marker {
  background: #c0c0c0;
}

.hex-find__range-slider .noUi-marker-large {
  height: 8px;
}

.hex-find__range-slider .noUi-marker-sub {
  height: 3px;
}

.hex-find__range-slider .noUi-marker-horizontal.noUi-marker {
  width: 1px;
}

.hex-find__range-slider .noUi-value {
  transform: translate(-50%, 2px);
}

@media (max-width: 720px) {
  .hex-find__range-slider {
    margin-bottom: 10px;
  }

  .hex-find__range-slider .noUi-pips {
    display: none;
  }
}

.hex-find__range-inputs label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #6a6a6a;
}

.hex-find__range-inputs input[type="month"] {
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  font-size: 0.85rem;
}

.hex-find__compare-note {
  margin: 0.2rem 0 0.75rem;
  font-size: 0.85rem;
  color: #5e5e5e;
}

.hex-find__compare-note[hidden] {
  display: none;
}

.hex-find__controls {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hex-find__summary-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hex-find__compare-stack {
  display: grid;
  gap: 0.6rem;
  margin: 0.35rem 0 0.55rem;
}

.hex-find__compare-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.hex-find__compare-block[data-period="recent"] {
  order: 1;
}

.hex-find__compare-block--comparison {
  display: none;
  order: 2;
}

.hex-find__controls.is-compare-active .hex-find__compare-block--comparison {
  display: flex;
}

.hex-find__summary-card {
  background: #121212;
  color: #fff;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

.hex-find__summary-card[data-period="recent"] {
  border-top: 3px solid var(--hex-compare-recent);
}

.hex-find__summary-card[data-period="earlier"] {
  border-top: 3px solid var(--hex-compare-earlier);
}

.hex-find__summary-card--inline {
  margin-top: 0;
}

.hex-find__summary-title {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.hex-find__summary-card .hex-find__totals-row {
  gap: 0.5rem;
}

.hex-find__summary-card .hex-find__totals strong {
  font-size: 1rem;
}

.hex-find__controls.is-compare-active .hex-find__summary-card .hex-find__totals-item[data-compare-trend],
.hex-find__controls.is-compare-active .hex-find__summary-card .hex-find__chip[data-compare-trend] {
  z-index: 0;
}

.hex-find__controls.is-compare-active .hex-find__summary-card .hex-find__totals-item[data-compare-trend]::before,
.hex-find__controls.is-compare-active .hex-find__summary-card .hex-find__chip[data-compare-trend]::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--hex-compare-halo, transparent), 0 0 18px var(--hex-compare-halo-soft, transparent);
  pointer-events: none;
  z-index: -1;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
}

.hex-find__back {
  border: 1px solid #d5d5d5;
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

.hex-find__compare-toggle {
  border: 1px solid #e0e0e0;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.hex-find__print {
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.hex-find__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.hex-find__card {
  background: #fff;
  border-radius: 16px;
  padding: 0.9rem;
  border: 1px solid #ececec;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.hex-find__card-label {
  margin: 0;
  font-size: 0.8rem;
  color: #7a7a7a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hex-find__card-value {
  margin: 0.4rem 0 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.hex-find__panel {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid #ececec;
  margin-bottom: 0.8rem;
}

.hex-find__panel--timeline {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.hex-find__panel--timeline .metric-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hex-find__panel--timeline .metric-card > summary {
  flex: 0 0 auto;
}

.hex-find__panel--timeline .metric-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.hex-find__timeline-strip {
  margin: 0.6rem 0 0.8rem;
  padding: 0.7rem 0.8rem 1.6rem;
  border-radius: 12px;
  border: 1px solid #e3e6ea;
  background: #f6f7f9;
  display: grid;
  gap: 0.5rem;
}

.hex-find__timeline-strip.is-animating .hex-find__timeline-track,
.hex-find__timeline-strip.is-animating .hex-find__timeline-axis,
.hex-find__timeline-strip.is-animating .hex-find__timeline-ticks {
  animation: hex-timeline-zoom 0.28s ease;
}

@keyframes hex-timeline-zoom {
  0% {
    opacity: 0;
    transform: translateY(6px) scaleY(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.hex-find__timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.hex-find__timeline-focus {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #3c4654;
  font-size: 0.7rem;
  font-weight: 600;
}

.hex-find__timeline-focus-label {
  white-space: nowrap;
}

.hex-find__timeline-focus-clear {
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #2b3645;
  cursor: pointer;
}

.hex-find__timeline-focus-clear:hover {
  background: #e1e7ef;
}

.hex-find__timeline-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d6dce5;
  background: #fff;
  color: #3a4250;
  border-radius: 999px;
  padding: 0.25rem 0.7rem 0.25rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.hex-find__timeline-filter::before {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: var(--hex-filter-color, #9aa3af);
  box-shadow: 0 0 0 2px #fff;
}

.hex-find__timeline-filter input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hex-find__timeline-filter-label {
  white-space: nowrap;
}

.hex-find__timeline-filter:hover {
  border-color: var(--hex-filter-color, #a5afbe);
  transform: translateY(-1px);
}

.hex-find__timeline-filter.is-active {
  border-color: var(--hex-filter-color, #7a8696);
  background: var(--hex-filter-soft, rgba(0, 0, 0, 0.04));
  color: #1f1f1f;
  font-weight: 600;
}

.hex-find__timeline-filter--crash {
  --hex-filter-color: #5f6775;
  --hex-filter-soft: rgba(120, 130, 145, 0.15);
}

.hex-find__timeline-filter--press {
  --hex-filter-color: var(--hex-compare-earlier);
  --hex-filter-soft: var(--hex-compare-earlier-soft);
}

.hex-find__timeline-strip-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
}

.hex-find__timeline-lanes {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 0;
  height: 44px;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a7a7a;
  font-weight: 600;
  line-height: 1;
}

.hex-find__timeline-lane {
  display: flex;
  align-items: center;
}

.hex-find__timeline-lane:nth-child(1) {
  color: var(--hex-sev-fatal);
}

.hex-find__timeline-lane:nth-child(2) {
  color: var(--hex-sev-serious);
}

.hex-find__timeline-lane:nth-child(3) {
  color: var(--hex-sev-moderate);
}

.hex-find__timeline-lane:nth-child(4) {
  color: var(--hex-compare-earlier);
}

.hex-find__timeline-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hex-find__timeline-strip-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b6b;
  font-weight: 600;
}

.hex-find__timeline-strip-window {
  font-size: 0.78rem;
  color: #1f1f1f;
  font-weight: 600;
}

.hex-find__timeline-track {
  position: relative;
  height: 44px;
  border-radius: 0;
  background: #e5e9ef;
  --hex-window-start: 32%;
  --hex-window-width: 36%;
  --hex-lane-height: 11px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--hex-lane-height) - 1px),
    rgba(210, 216, 226, 0.7) calc(var(--hex-lane-height) - 1px),
    rgba(210, 216, 226, 0.7) var(--hex-lane-height)
  );
  overflow: visible;
}

.hex-find__timeline-axis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.15rem;
  height: 1rem;
  pointer-events: none;
  font-size: 0.6rem;
  color: #7a8696;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hex-find__timeline-axis-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.hex-find__timeline-axis-label.is-edge-left {
  transform: translateX(0);
}

.hex-find__timeline-axis-label.is-edge-right {
  transform: translateX(-100%);
}

.hex-find__timeline-axis-tick {
  position: absolute;
  top: -0.35rem;
  width: 1px;
  height: 0.35rem;
  background: #c4ccd7;
}

.hex-find__timeline-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  border-radius: 0;
  background: #d2d8e2;
  transform: translateY(-50%);
  opacity: 0.3;
}

.hex-find__timeline-window-frame {
  position: absolute;
  top: 0;
  left: var(--hex-window-start, 0%);
  width: var(--hex-window-width, 100%);
  height: 100%;
  border-radius: 0;
  border: 0;
  background: var(--hex-window-color-soft, var(--hex-compare-recent-soft));
  transform: none;
  box-shadow: none;
  transition: left 0.3s ease, width 0.3s ease;
}

.hex-find__timeline-window-frame::before,
.hex-find__timeline-window-frame::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--hex-window-color, var(--hex-compare-recent));
}

.hex-find__timeline-window-frame::before {
  left: 0;
}

.hex-find__timeline-window-frame::after {
  right: 0;
}

.hex-find__timeline-window-frame--recent {
  --hex-window-color: var(--hex-compare-recent);
  --hex-window-color-soft: var(--hex-compare-recent-soft);
  z-index: 2;
}

.hex-find__timeline-window-frame--earlier {
  --hex-window-color: var(--hex-compare-earlier);
  --hex-window-color-soft: var(--hex-compare-earlier-soft);
  opacity: 0.9;
  z-index: 1;
}

.hex-find__timeline-ticks {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.hex-find__timeline-tick {
  position: absolute;
  top: var(--hex-tick-row, 50%);
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--hex-sev-moderate);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.hex-find__timeline-tick::after {
  content: '';
  position: absolute;
  inset: -5px;
}

.hex-find__timeline-tick.is-active {
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.hex-find__timeline-tick--recent {
  background: var(--hex-sev-moderate);
}

.hex-find__timeline-tick--earlier {
  background: var(--hex-compare-earlier);
}

.hex-find__timeline-tick--sev-5 {
  --hex-tick-row: 12.5%;
  background: var(--hex-sev-fatal);
}

.hex-find__timeline-tick--sev-4 {
  --hex-tick-row: 37.5%;
  background: var(--hex-sev-serious);
}

.hex-find__timeline-tick--sev-3 {
  --hex-tick-row: 62.5%;
  background: var(--hex-sev-moderate);
}

.hex-find__timeline-tick--press {
  --hex-tick-row: 87.5%;
  border-radius: 999px;
  background: var(--hex-compare-earlier);
  opacity: 0.7;
}

.hex-find__timeline-tick--compare {
  background: var(--hex-compare-earlier);
}

.hex-find__panel--timeline [data-hex-timeline-list] {
  position: relative;
  padding-left: 1.4rem;
  margin-left: 0.1rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.hex-find__panel--timeline [data-hex-timeline-list]::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: #e1e6ee;
}

.hex-find__timeline-item {
  position: relative;
  --hex-tl-color: #9aa3af;
}

.hex-find__timeline-item[data-month]::before {
  margin: 0.6rem 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a7a7a;
  font-weight: 600;
}

.hex-find__panel--timeline [data-hex-timeline-list] > .hex-find__timeline-item:first-child::before {
  margin-top: 0;
}

.hex-find__timeline-item--sev-5 {
  --hex-tl-color: var(--hex-sev-fatal);
}

.hex-find__timeline-item--sev-4 {
  --hex-tl-color: var(--hex-sev-serious);
}

.hex-find__timeline-item--sev-3 {
  --hex-tl-color: var(--hex-sev-moderate);
}

.hex-find__timeline-item--press {
  --hex-tl-color: var(--hex-compare-earlier);
}

.hex-find__timeline-item--compare {
  --hex-tl-color: var(--hex-compare-earlier);
}

.hex-find__timeline-marker {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 0.2rem;
  background: var(--hex-tl-color);
  display: inline-flex;
  margin-right: 0.55rem;
  margin-top: 0.25rem;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px #fff;
}

.hex-find__timeline-item--press .hex-find__timeline-marker {
  border-radius: 999px;
}

.hex-find__timeline-summary {
  border-radius: 10px;
  transition: background 0.15s ease;
  padding: 0.35rem 0.5rem;
}

.hex-find__timeline-summary:hover {
  background: rgba(0, 0, 0, 0.03);
}

.hex-find__timeline-item.is-active .hex-find__timeline-summary {
  background: rgba(0, 0, 0, 0.05);
}

.hex-find__timeline-item.is-active .hex-find__timeline-marker {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--hex-tl-color);
}

.hex-find__timeline-row .timeline-icon {
  color: #6f7783;
  opacity: 0.75;
}

.hex-find__timeline-row .timeline-icon svg,
.hex-find__timeline-row .timeline-icon i {
  width: 1rem;
  height: 1rem;
}

.hex-find__panel h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.hex-find__panel [data-hex-timeline] .timeline-count {
  display: inline-block;
  margin-left: 0.15em;
  font-size: 0.65em;
  line-height: 1;
  position: relative;
  top: -0.45em;
}

.hex-find__panel [data-hex-timeline][open] [data-hex-timeline-summary] {
  display: none;
}

.hex-find__overlap-status,
.hex-find__overlap-note {
  margin: 0.35rem 0;
}

.hex-find__overlap-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.hex-find__overlap-group-title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6d6d6d;
}

.hex-find__overlap-line {
  margin: 0 0 0.4rem;
  line-height: 1.45;
  color: #1d1d1d;
}

.hex-find__overlap-link {
  font-weight: 600;
  color: #1d1d1d;
  text-decoration: none;
  font-size: 0.92rem;
}

.hex-find__overlap-link:hover {
  text-decoration: underline;
}

.hex-find__overlap-pol {
  font-size: 0.82rem;
  color: #6a6a6a;
}

.hex-find__crash-grid {
  display: grid;
  gap: 0.9rem;
}

.hex-find__metrics-grid {
  display: grid;
  gap: 0.8rem;
}

.hex-find__metrics-col {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  align-items: start;
}

.hex-find__metrics-col .hex-find__panel {
  margin-bottom: 0;
}

.hex-find__crash-card {
  border-radius: 14px;
  padding: 0.9rem;
  border: 1px solid #e5e5e5;
  background: #fbfbfb;
  display: grid;
  gap: 0.75rem;
}

.hex-find__crash-period {
  margin: 0;
  font-size: 0.85rem;
  color: #6a6a6a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.hex-find__crash-rows {
  display: grid;
  gap: 0.4rem;
}

.hex-find__crash-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.95rem;
  color: #1d1d1d;
}

.hex-find__crash-row[data-tooltip] {
  cursor: help;
}

.hex-find__crash-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f2f2f;
}

.hex-find__crash-icon img {
  width: 18px;
  height: 18px;
}

.hex-find__crash-icon i {
  font-size: 1rem;
}

.hex-find__crash-label {
  font-weight: 500;
}

.hex-find__crash-value {
  font-weight: 700;
  font-size: 1rem;
}

.hex-find__crash-delta {
  font-weight: 600;
  font-size: 0.8rem;
  color: #6b6b6b;
  text-align: right;
  min-width: 3.5rem;
}

.hex-find__crash-delta.is-empty {
  display: none;
}

.hex-find__crash-delta[data-trend="up"] {
  color: #ef4e16;
}

.hex-find__crash-delta[data-trend="down"] {
  color: #177245;
}

.hex-find__crash-delta[data-trend="flat"],
.hex-find__crash-delta[data-trend="none"] {
  color: #6b6b6b;
}

body:not(.is-hex-print) .hex-find__crash-value,
body:not(.is-hex-print) .hex-find__crash-delta {
  display: none;
}

body:not(.is-hex-print) .hex-find__crash-row {
  grid-template-columns: 24px minmax(0, 1fr);
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body:not(.is-hex-print) .hex-find__crash-row:hover {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
}

.hex-find__crash-row[data-crash-metric="crashes"] {
  --hex-sev-color: #2b2b2b;
  --hex-sev-bg: rgba(43, 43, 43, 0.06);
}

.hex-find__crash-row[data-crash-metric="injuries"] {
  --hex-sev-color: #f9c74f;
  --hex-sev-bg: rgba(249, 199, 79, 0.2);
}

.hex-find__crash-row[data-crash-metric="moderate"] {
  --hex-sev-color: #f8961e;
  --hex-sev-bg: rgba(248, 150, 30, 0.2);
}

.hex-find__crash-row[data-crash-metric="serious"] {
  --hex-sev-color: #f3722c;
  --hex-sev-bg: rgba(243, 114, 44, 0.2);
}

.hex-find__crash-row[data-crash-metric="deaths"] {
  --hex-sev-color: #c1121f;
  --hex-sev-bg: rgba(193, 18, 31, 0.16);
}

body:not(.is-hex-print) .hex-find__crash-row.is-active {
  border-color: var(--hex-sev-color, #2b2b2b);
  background: var(--hex-sev-bg, rgba(0, 0, 0, 0.06));
}

body:not(.is-hex-print) .hex-find__crash-row.is-active .hex-find__crash-icon {
  color: var(--hex-sev-color, #2b2b2b);
}

.hex-find__crash-filters {
  display: grid;
  gap: 0.35rem;
}

.hex-find__crash-filter-label {
  margin: 0;
  font-size: 0.78rem;
  color: #6a6a6a;
}

.hex-find__crash-modes {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hex-find__mode-toggle {
  border: 1px solid rgba(239, 78, 22, 0.3);
  background: #fff;
  color: #2f2f2f;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hex-find__mode-toggle:hover {
  border-color: rgba(239, 78, 22, 0.6);
  transform: translateY(-1px);
}

.hex-find__mode-toggle.is-active {
  background: rgba(239, 78, 22, 0.15);
  border-color: rgba(239, 78, 22, 0.9);
}

.hex-find__mode-toggle .hex-find__chip-icon {
  width: 18px;
  height: 18px;
}

.hex-find__age-toggle {
  border: 1px solid rgba(30, 106, 216, 0.35);
  background: #fff;
  color: #1e6ad8;
  border-radius: 999px;
  min-width: 36px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hex-find__age-toggle:hover {
  border-color: rgba(30, 106, 216, 0.7);
  transform: translateY(-1px);
}

.hex-find__age-toggle.is-active {
  background: rgba(30, 106, 216, 0.16);
  border-color: rgba(30, 106, 216, 0.9);
  color: #144a99;
}

.hex-find__crash-range {
  margin: 0;
  font-size: 0.82rem;
  color: #6a6a6a;
}

.hex-find__placeholder {
  color: #6a6a6a;
  margin: 0.5rem 0 0;
}

.hex-find__recent {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.hex-find__recent-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.hex-find__recent-meta {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: #6a6a6a;
}

.mod-injuries {
  max-width: 100%;
}

.inj-card {
  position: relative;
  border-radius: 14px;
  padding: 0.9rem;
  border: 1px solid #e5e5e5;
  background: #fbfbfb;
}

.inj-status {
  margin: 0 0 0.35rem;
}

.inj-buckets {
  margin: 0;
  padding: 0;
}

.inj-bucket {
  margin: 0 0 0.6rem;
  border: 0;
  padding: 0;
}

.inj-bucket:last-of-type {
  margin-bottom: 0;
}

.inj-bucket > summary {
  padding: 0.2rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  background: transparent;
  border: 0;
  list-style: none;
  cursor: pointer;
  color: #1d1d1d;
}

.inj-bucket > summary::-webkit-details-marker {
  display: none;
}

.inj-bucket > summary .arrow-toggle {
  font-size: 0.95rem;
  line-height: 1;
  width: 1rem;
  text-align: center;
  color: #767676;
  transition: transform 0.2s ease;
}

.inj-bucket[open] > summary .arrow-toggle {
  transform: rotate(90deg);
}

.inj-bucket > summary .fw6 {
  font-size: 1rem;
  font-weight: 600;
}

.inj-bucket > summary [data-bucket-count] {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b6b6b;
}

.inj-bucket-basis {
  font-size: 0.8rem;
  color: #6b6b6b;
  margin-left: 0.1rem;
}

.inj-bucket-delta {
  font-weight: 600;
  font-size: 0.78rem;
  color: #6b6b6b;
  text-align: right;
  margin-left: auto;
  min-width: 3.5rem;
}

.inj-bucket-delta.is-empty {
  display: none;
}

.inj-bucket-delta[data-trend="up"] {
  color: #ef4e16;
}

.inj-bucket-delta[data-trend="down"] {
  color: #177245;
}

.inj-bucket-delta[data-trend="flat"],
.inj-bucket-delta[data-trend="none"] {
  color: #6b6b6b;
}

.inj-bucket > [data-bucket-body] {
  padding-left: 0;
  margin-top: 0.25rem;
  margin-left: 1.3rem;
}

.inj-dots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.inj-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
  margin-right: 4px;
  margin-bottom: 4px;
  border: 0;
  cursor: pointer;
  display: inline-block;
  padding: 0;
  line-height: 0;
  aspect-ratio: 1 / 1;
}

.inj-dot.sev-2 {
  background: #6b6b6b;
}

.inj-dot.sev-3 {
  background: #333333;
}

.inj-dot.sev-4 {
  background: #ff9800;
}

.inj-dot.sev-5 {
  background: #ff1744;
}

.inj-overflow {
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

.inj-regions > .inj-region-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.35rem;
}

.inj-regions > .inj-region-row:last-of-type {
  margin-bottom: 0;
}

.inj-region-label {
  width: 50%;
  font-size: 0.95rem;
  color: #6b6b6b;
}

.inj-region-dots {
  flex: 1;
}

@media (max-width: 899px) {
  .layout-shell {
    padding: 0;
    max-width: none;
  }

  .layout-shell > header nav {
    display: none;
  }

  #mobileMenu {
    top: 0 !important;
  }

  .hex-find__input-clear {
    display: inline-flex;
  }

  .hex-find__step[data-step="2"] {
    display: flex;
    flex-direction: column;
  }

  .hex-find__controls {
    order: 4;
  }

  .hex-find__panel--timeline {
    order: 5;
  }

  .hex-find__metrics-grid {
    order: 6;
  }

  .hex-find__summary-card--inline[data-period="recent"] {
    display: none;
  }
}

@media (min-width: 900px) {
  .hex-find__header {
    display: block;
    margin-bottom: 1rem;
  }

  .hex-find__menu-toggle {
    display: none;
  }

  .hex-find {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.5rem;
    min-height: auto;
    align-items: start;
  }

  .hex-find__header {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .hex-find__back {
    display: none;
  }

  .hex-find__map {
    height: 70vh;
    min-height: 360px;
    max-height: 720px;
    margin: 0;
    grid-row: 3;
  }

  .hex-find__bottom {
    display: none;
  }

  .hex-find__go {
    display: none;
  }

  .hex-find__step[data-step="1"],
  .hex-find__step[data-step="2"] {
    display: contents;
    padding: 0;
  }

  .hex-find__search {
    grid-column: 1;
    grid-row: 2;
    height: fit-content;
    margin: 0;
  }

  .hex-find__map {
    grid-column: 1;
    grid-row: 3;
  }

  .hex-find__controls {
    grid-column: 1;
    grid-row: 4;
  }

  .hex-find__panel--timeline {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: stretch;
    height: 100%;
  }

  .hex-find__panel--timeline [data-hex-timeline-list] {
    overflow-y: auto;
    padding-right: 0.35rem;
  }

  .hex-find__results-header {
    margin-top: 0;
  }

  .hex-find__compare {
    grid-template-columns: 1fr;
    margin: 0;
  }

  .hex-find__metrics-grid {
    grid-column: 1 / -1;
    grid-row: 5;
  }
}

@media (min-width: 1200px) {
  .hex-find__metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .hex-find__panel--injuries {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .hex-find__panel--ped {
    grid-column: 2;
    grid-row: 1;
  }

  .hex-find__panel--overlaps {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (min-width: 1625px) {
  .hex-find {
    max-width: 1860px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hex-find__search,
  .hex-find__map,
  .hex-find__controls {
    grid-column: 1 / span 2;
  }

  .hex-find__panel--timeline {
    grid-column: 3;
    grid-row: 2 / span 3;
  }

  .hex-find__controls.is-compare-active .hex-find__compare-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hex-find__controls.is-compare-active .hex-find__compare-block[data-period="recent"] {
    order: 2;
  }

  .hex-find__controls.is-compare-active .hex-find__compare-block--comparison {
    order: 1;
  }
}

@media (min-width: 1900px) {
  .hex-find {
    max-width: 2200px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hex-find__search,
  .hex-find__map,
  .hex-find__controls {
    grid-column: 1 / span 2;
  }

  .hex-find__panel--timeline {
    grid-column: 3 / span 2;
    grid-row: 2 / span 3;
  }

  .hex-find__metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hex-find__panel--injuries {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .hex-find__panel--ped {
    grid-column: 3;
    grid-row: 1;
  }

  .hex-find__panel--overlaps {
    grid-column: 4;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hex-find__timeline-strip.is-animating .hex-find__timeline-track,
  .hex-find__timeline-strip.is-animating .hex-find__timeline-axis,
  .hex-find__timeline-strip.is-animating .hex-find__timeline-ticks {
    animation: none;
  }
}

.export-shell--hex {
  display: none;
}

.export-shell--hex .export-shell__link {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.export-shell--hex .export-shell__summary {
  display: block;
}

.export-shell--hex .export-shell__summary-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}

.export-shell--hex .export-shell__map {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

body.is-hex-print .hex-find,
body.is-hex-print .layout-shell > header,
body.is-hex-print footer {
  display: none !important;
}

body.is-hex-print .export-shell--hex {
  display: block !important;
  font-size: 0.95rem;
}

body.is-hex-print .export-modal {
  display: none !important;
}

.export-shell--hex .hex-find__crash-modes,
.export-shell--hex .hex-find__mode-toggle,
.export-shell--hex .hex-find__age-toggle {
  display: none !important;
}

.export-shell--hex .hex-find__crash-card,
.export-shell--hex .inj-card {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.export-shell--hex .hex-find__crash-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.export-shell--hex .hex-find__crash-icon {
  display: none;
}

.export-shell--hex .hex-find__crash-row {
  grid-template-columns: 1fr auto auto;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.45rem 0;
}

.export-shell--hex .hex-find__crash-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.export-shell--hex .hex-find__crash-row:first-child .hex-find__crash-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.75);
}

.export-shell--hex .hex-find__crash-row:first-child .hex-find__crash-value {
  font-size: 1.4rem;
}

.export-shell--hex .hex-find__crash-row[data-crash-metric="injuries"] {
  display: none;
}

.export-shell--hex .hex-find__crash-filters {
  display: none;
}

.export-shell--hex .hex-find__crash-range {
  order: -1;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 0.2rem;
}

.export-shell--hex .inj-bucket {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 0.5rem;
  margin-bottom: 0.7rem;
}

.export-shell--hex .inj-bucket:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.export-shell--hex .inj-bucket > summary {
  cursor: default;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: baseline;
}

.export-shell--hex .inj-bucket > summary .arrow-toggle {
  display: none;
}

.export-shell--hex .inj-bucket > summary .fw6 {
  font-size: 1.05rem;
}

.export-shell--hex .inj-bucket > summary [data-bucket-count] {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

.export-shell--hex .inj-bucket-basis {
  display: none;
}

.export-shell--hex .inj-bucket > [data-bucket-body] {
  margin-left: 0;
}

.export-shell--hex .inj-region-label {
  width: auto;
  flex: 1;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
}

.export-shell--hex .inj-region-dots {
  display: none;
}

.export-shell--hex [data-inj-basis] {
  display: none;
}

.export-shell--hex .metric-delta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted, #6b7280);
  white-space: nowrap;
}

.export-shell--hex .metric-delta[data-trend="up"] {
  color: #ef4e16;
}

.export-shell--hex .metric-delta[data-trend="down"] {
  color: #177245;
}

.export-shell--hex .metric-delta[data-trend="flat"],
.export-shell--hex .metric-delta[data-trend="none"] {
  color: var(--color-muted, #6b7280);
}

.export-shell--hex .metric-delta.is-empty {
  display: none;
}

.export-shell--hex .export-list {
  columns: 2 20rem;
  column-gap: 1.25rem;
  column-fill: balance;
}

.export-shell--hex .export-list__year,
.export-shell--hex .export-list__item {
  break-inside: avoid;
  page-break-inside: avoid;
}

.export-shell--hex .export-list__item {
  margin-bottom: 0.6rem;
}

.export-shell--hex .export-list__title {
  font-size: 0.95rem;
}

.export-shell--hex .export-list__meta {
  font-size: 0.82rem;
}

.export-shell--hex .export-list__summary {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.35;
}

.export-shell--hex .export-list__explainer {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.export-shell--hex .export-summary-top {
  margin-bottom: 0.55rem;
}

.export-shell--hex .export-summary-top__label {
  font-size: 1.3rem;
}

.export-shell--hex .export-summary-top__value {
  font-size: 1.25rem;
}

.export-shell--hex .export-injury-tier {
  padding-top: 0.4rem;
}

.export-shell--hex .export-injury-tier__items {
  margin-top: 0.35rem;
  gap: 0.45rem;
}

.export-shell--hex .export-injury-item {
  font-size: 0.85rem;
}

.export-shell--hex .export-injury-item__regions {
  font-size: 0.78rem;
}

.export-shell--hex .export-age-summary {
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  gap: 0.4rem;
}

.export-shell--hex .export-age-rows {
  gap: 0.25rem;
}

.export-shell--hex .tl-item {
  margin: 0 0 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  break-inside: avoid;
  page-break-inside: avoid;
}

.export-shell--hex .tl-item summary {
  padding: 0;
  border-radius: 0;
  cursor: default;
}

.export-shell--hex .tl-item summary .br2 {
  border-radius: 0;
}

.export-shell--hex .tl-item summary .pv2 {
  padding: 0;
}

.export-shell--hex .tl-item summary .f6.gray {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
}

.export-shell--hex .tl-item .pa2 {
  padding: 0.35rem 0 0;
}

.export-map {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #f7f7f7;
  overflow: hidden;
}

.export-shell--hex .export-map--hex {
  aspect-ratio: 3 / 4;
}

.export-shell--hex .export-map--hex .export-map__image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.export-shell--hex .export-map__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 3in;
}

.export-map__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 4in;
  object-fit: contain;
}

.export-map__placeholder {
  padding: 1rem;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.7);
}

.hex-find .ped-cause-card {
  position: relative;
  padding-bottom: 1.5rem;
}

.hex-find .ped-cause-chart-shell {
  max-width: 420px;
  margin: 0 auto 1.25rem;
  position: relative;
  height: 240px;
}

.hex-find .ped-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin: 1rem auto 0;
  max-width: 520px;
}

.hex-find .ped-legend__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.04);
}

.hex-find .ped-legend__swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  background: #999;
}

.hex-find .ped-legend__label {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 3ch;
}

.hex-find .ped-legend__value {
  font-weight: 700;
  font-size: 0.95rem;
}

.hex-find .ped-legend__delta {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
}

.hex-find .ped-legend__delta[data-trend="up"] {
  color: #ef4e16;
}

.hex-find .ped-legend__delta[data-trend="down"] {
  color: #177245;
}

.hex-find .sri-info-fab {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  text-decoration: none;
  color: #ef4e16 !important;
}

.hex-find .sri-info-fab i {
  font-size: 1.25rem;
  line-height: 1;
}

.hex-find .sri-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.hex-find .sri-modal:target {
  display: block;
}

.hex-find .sri-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hex-find .sri-modal__panel {
  position: relative;
  max-width: 32rem;
  margin: 10vh auto 0;
}

.export-shell--hex .export-shell__map-label--ped {
  margin-top: 0.4rem;
}

.export-shell--hex .ped-cause-card {
  padding-bottom: 0;
}

.export-shell--hex .ped-cause-chart-shell {
  max-width: 100%;
  margin: 0;
  height: 220px;
}

.export-shell--hex .ped-legend {
  max-width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.6rem 0 0;
}

.export-shell--hex .ped-legend__item {
  background: transparent;
  padding: 0.35rem 0;
}

.export-shell--hex .ped-legend__delta {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .hex-find {
    color: #e2e8f0;
    --hex-surface: #0f172a;
    --hex-surface-2: #111827;
    --hex-surface-3: #0b1220;
    --hex-border: rgba(148, 163, 184, 0.35);
    --hex-border-strong: rgba(148, 163, 184, 0.6);
    --hex-muted: #94a3b8;
    --hex-heading: #f8fafc;
  }

  .hex-find__title {
    color: var(--hex-heading);
  }

  .hex-find__subtitle,
  .hex-find__label {
    color: var(--hex-muted);
  }

  .hex-find__search {
    background: var(--hex-surface-2);
    border-color: var(--hex-border);
    box-shadow: 0 8px 20px rgba(8, 15, 28, 0.55);
  }

  .hex-find__input {
    background: var(--hex-surface-3);
    border-color: var(--hex-border);
    color: var(--hex-heading);
    color-scheme: dark;
  }

  .hex-find__input::placeholder {
    color: #64748b;
  }

  .hex-find__menu-toggle,
  .hex-find__input-clear {
    background: var(--hex-surface-3);
    border-color: var(--hex-border);
    color: var(--hex-heading);
  }

  .hex-find__results {
    background: var(--hex-surface-2);
    border-color: var(--hex-border);
    box-shadow: 0 12px 24px rgba(8, 15, 28, 0.6);
  }

  .hex-find__results-close {
    background: var(--hex-surface-3);
    color: var(--hex-heading);
  }

  .hex-find__results-group {
    border-color: rgba(148, 163, 184, 0.2);
  }

  .hex-find__results-title,
  .hex-find__result-meta,
  .hex-find__range-meta,
  .hex-find__range-inputs label,
  .hex-find__compare-note,
  .hex-find__results-subtitle,
  .hex-find__card-label,
  .hex-find__crash-period,
  .hex-find__crash-filter-label,
  .hex-find__crash-range,
  .hex-find__placeholder,
  .hex-find__recent-meta,
  .hex-find__overlap-group-title,
  .hex-find__overlap-pol,
  .hex-find__timeline-strip-label,
  .hex-find__timeline-axis,
  .hex-find__timeline-lanes,
  .hex-find__timeline-item[data-month]::before,
  .hex-find__timeline-row .timeline-icon,
  .hex-find .inj-region-label,
  .hex-find .inj-bucket > summary .arrow-toggle,
  .hex-find .inj-bucket > summary [data-bucket-count],
  .hex-find .inj-bucket-basis,
  .hex-find .inj-bucket-delta,
  .hex-find .inj-overflow {
    color: var(--hex-muted);
  }

  .hex-find__result-item {
    color: var(--hex-heading);
  }

  .hex-find__result-item--selectable:hover {
    background: rgba(148, 163, 184, 0.12);
  }

  .hex-find__result-item button {
    background: rgba(248, 113, 113, 0.2);
    color: #fda4af;
  }

  .hex-find__map {
    border-color: var(--hex-border);
  }

  .hex-find__map-action {
    background: var(--hex-surface-2);
    border-color: var(--hex-border);
    color: var(--hex-heading);
    box-shadow: 0 8px 16px rgba(8, 15, 28, 0.6);
  }

  .hex-find__map-action.is-active {
    background: #1f2937;
    border-color: var(--hex-border-strong);
  }

  .hex-find__map-action--danger {
    background: #991b1b;
    border-color: #7f1d1d;
  }

  .hex-find__map-action--danger.is-active {
    background: #b91c1c;
    border-color: #ef4444;
  }

  .hex-find__map-tooltip {
    background: var(--hex-surface-2);
    border-color: var(--hex-border);
    color: var(--hex-heading);
    box-shadow: 0 12px 24px rgba(8, 15, 28, 0.6);
  }

  .hex-find__map-tooltip-title {
    color: var(--hex-heading);
  }

  .hex-find__map-tooltip-meta {
    color: var(--hex-muted);
  }

  .hex-find__map-tooltip-summary {
    color: #cbd5f5;
  }

  .hex-find__map .mapboxgl-canvas {
    filter: brightness(0.78) saturate(0.9) contrast(1.05);
  }

  .hex-find__bottom {
    background: #0b1220;
    box-shadow: 0 12px 24px rgba(8, 15, 28, 0.6);
  }

  .hex-find__bottom--idle {
    background: #111827;
  }

  .hex-find__window-title {
    color: #cbd5f5;
  }

  .hex-find__modal-backdrop {
    background: rgba(15, 23, 42, 0.7);
  }

  .hex-find__modal-panel {
    background: var(--hex-surface-2);
    color: var(--hex-heading);
    border: 1px solid var(--hex-border);
  }

  .hex-find__modal-close {
    color: #93c5fd;
  }

  .hex-find__selection-title,
  .hex-find__overlap-line,
  .hex-find__overlap-link {
    color: var(--hex-heading);
  }

  .hex-find__compare-toggle,
  .hex-find__print,
  .hex-find__back {
    background: var(--hex-surface-3);
    border-color: var(--hex-border);
    color: var(--hex-heading);
  }

  .hex-find__compare-toggle:hover,
  .hex-find__print:hover,
  .hex-find__back:hover {
    background: rgba(148, 163, 184, 0.12);
  }

  .hex-find__summary-card {
    background: #0b1220;
    box-shadow: 0 12px 22px rgba(8, 15, 28, 0.6);
  }

  .hex-find__range,
  .hex-find__card,
  .hex-find__panel,
  .hex-find__crash-card,
  .hex-find .inj-card {
    background: var(--hex-surface-2);
    border-color: var(--hex-border);
    box-shadow: 0 8px 16px rgba(8, 15, 28, 0.45);
    color: var(--hex-heading);
  }

  .hex-find__range-slider.noUi-target {
    background: #1f2937;
    border-color: #334155;
  }

  .hex-find__range-slider .noUi-handle {
    background: #e2e8f0;
    border-color: #0f172a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }

  .hex-find__range-slider .noUi-pips {
    color: var(--hex-muted);
  }

  .hex-find__range-slider .noUi-marker {
    background: #475569;
  }

  .hex-find__range-inputs input[type="month"] {
    background: var(--hex-surface-3);
    border-color: #334155;
    color: var(--hex-heading);
    color-scheme: dark;
  }

  .hex-find__timeline-strip {
    background: var(--hex-surface-3);
    border-color: #1f2937;
  }

  .hex-find__timeline-strip-window {
    color: var(--hex-heading);
  }

  .hex-find__timeline-track {
    background: #1f2937;
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--hex-lane-height) - 1px),
      rgba(71, 85, 105, 0.45) calc(var(--hex-lane-height) - 1px),
      rgba(71, 85, 105, 0.45) var(--hex-lane-height)
    );
  }

  .hex-find__timeline-track::before {
    background: rgba(71, 85, 105, 0.6);
    opacity: 0.4;
  }

  .hex-find__timeline-axis-tick {
    background: #475569;
  }

  .hex-find__timeline-filter {
    background: var(--hex-surface-3);
    border-color: #334155;
    color: #cbd5f5;
  }

  .hex-find__timeline-filter::before {
    box-shadow: 0 0 0 2px var(--hex-surface-2);
  }

  .hex-find__timeline-filter:hover {
    border-color: #475569;
  }

  .hex-find__timeline-filter.is-active {
    background: rgba(148, 163, 184, 0.18);
    border-color: #64748b;
    color: var(--hex-heading);
  }

  .hex-find__timeline-focus {
    background: #1f2937;
    color: var(--hex-heading);
  }

  .hex-find__timeline-focus-clear {
    background: var(--hex-surface-3);
    color: var(--hex-heading);
  }

  .hex-find__timeline-focus-clear:hover {
    background: #1f2937;
  }

  .hex-find__panel--timeline [data-hex-timeline-list]::before {
    background: rgba(148, 163, 184, 0.3);
  }

  .hex-find__timeline-summary:hover {
    background: rgba(148, 163, 184, 0.12);
  }

  .hex-find__timeline-item.is-active .hex-find__timeline-summary {
    background: rgba(148, 163, 184, 0.2);
  }

  .hex-find__timeline-item.is-active .hex-find__timeline-marker {
    box-shadow: 0 0 0 2px var(--hex-surface-2), 0 0 0 4px var(--hex-tl-color);
  }

  .hex-find__crash-row {
    color: var(--hex-heading);
  }

  .hex-find__crash-icon {
    color: #cbd5f5;
  }

  .hex-find__crash-delta {
    color: var(--hex-muted);
  }

  body:not(.is-hex-print) .hex-find__crash-row:hover {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.1);
  }

  body:not(.is-hex-print) .hex-find__crash-row[data-crash-metric="crashes"] {
    --hex-sev-color: #e2e8f0;
    --hex-sev-bg: rgba(148, 163, 184, 0.2);
  }

  .hex-find__mode-toggle,
  .hex-find__age-toggle {
    background: var(--hex-surface-3);
    border-color: rgba(148, 163, 184, 0.45);
    color: #cbd5f5;
  }

  .hex-find__mode-toggle:hover {
    border-color: rgba(239, 78, 22, 0.65);
  }

  .hex-find__age-toggle:hover {
    border-color: rgba(30, 106, 216, 0.7);
  }

  .hex-find__age-toggle.is-active {
    color: #cfe3ff;
  }

  .hex-find__breakdown--panel .hex-find__chips {
    color: var(--hex-heading);
  }

  .hex-find__breakdown--panel .hex-find__chip {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.35);
  }

  .hex-find__breakdown--panel .hex-find__chip-icon img {
    filter: invert(1);
  }

  .hex-find__box-select {
    border-color: rgba(248, 113, 113, 0.9);
    background: rgba(248, 113, 113, 0.18);
  }

  .hex-find__box-actions {
    background: #0b1220;
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow: 0 12px 24px rgba(8, 15, 28, 0.6);
  }

  .hex-find__box-actions-count {
    color: #94a3b8;
  }

  .hex-find__box-action {
    background: #0b1220;
    border-color: rgba(148, 163, 184, 0.45);
    color: #e2e8f0;
  }

  .hex-find__box-action:hover {
    background: rgba(148, 163, 184, 0.12);
  }

  .hex-find__box-action--danger {
    border-color: rgba(248, 113, 113, 0.75);
    background: rgba(248, 113, 113, 0.18);
    color: #fecaca;
  }

  .hex-find__box-action--danger:hover {
    background: rgba(248, 113, 113, 0.26);
  }

  .hex-find .ped-legend__item {
    background: rgba(255, 255, 255, 0.08);
  }

  .hex-find .ped-legend__delta {
    color: #ddd;
  }

  .hex-find .ped-legend__delta[data-trend="flat"],
  .hex-find .ped-legend__delta[data-trend="none"] {
    color: #bbb;
  }

  .hex-find .sri-info-fab {
    color: #ef4e16 !important;
  }
}

@media print {
  body.is-hex-print .export-shell__toolbar {
    display: none !important;
  }

  body.is-hex-print .export-shell__doc {
    border: 0;
    padding: 0;
  }
}

@media screen and (max-width: 60em) {
  .export-shell--hex .export-shell__summary-grid {
    grid-template-columns: 1fr;
  }

  .export-shell--hex .export-list {
    columns: 1;
  }
}
