:root {
  --crash-bg: #0b1220;
  --crash-blue: #2463eb;
  --crash-accent: #4db7ff;
  --crash-accent-dark: #2f9be8;
  --crash-ink: #e2e8f0;
  --crash-ink-muted: #94a3b8;
  --crash-panel: rgba(9, 16, 30, 0.86);
  --crash-panel-border: rgba(148, 163, 184, 0.24);
  --crash-detail-bg: rgba(241, 245, 249, 0.96);
  --crash-detail-ink: #0f172a;
  --crash-detail-muted: #475569;
  --crash-sidebar-width: clamp(360px, 34vw, 560px);
}

html,
body,
#crashMap {
  height: 100%;
  width: 100%;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body {
  overflow: hidden;
  background: var(--crash-bg);
}

#crashMap {
  position: fixed;
  inset: 0;
  transition: right 0.24s ease;
}

body.crash-detail-open #crashMap {
  right: var(--crash-sidebar-width);
}

#mapLegalFooter {
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 920;
  pointer-events: none;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(16, 24, 40, 0.78);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 3px 7px;
  text-align: center;
  backdrop-filter: blur(2px);
}

.map-legal-left {
  position: fixed;
  z-index: 920;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(16, 24, 40, 0.78);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 3px 7px;
  backdrop-filter: blur(2px);
  max-width: min(520px, calc(100vw - 16px));
}

.map-legal-left a {
  color: inherit;
  text-decoration: none;
}

.map-legal-left a:hover,
.map-legal-left a:focus-visible {
  text-decoration: underline;
  outline: none;
}

#crashMap.map-base-road .leaflet-tile-pane {
  filter: grayscale(0.36) saturate(0.62) brightness(1.06) contrast(0.96);
}

#crashMap.map-base-satellite .leaflet-tile-pane {
  filter: none;
}

#crashMap.map-measure-active {
  cursor: crosshair;
}

#crashMap.map-report-drawing {
  cursor: crosshair;
}

.map-search {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(10px);
}

.map-search__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
}

.map-search input {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 9px;
  padding: 7px 10px;
  background: rgba(2, 6, 23, 0.55);
  color: #f8fafc;
  font: inherit;
  font-size: 13px;
}

.map-search input::placeholder {
  color: #94a3b8;
}

.map-search-icon-btn {
  border: 1px solid rgba(14, 116, 144, 0.42);
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.88);
  color: #e2e8f0;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.map-search-icon-btn > span {
  line-height: 1;
}

.map-search-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-search-icon-btn:hover {
  background: rgba(30, 41, 59, 0.98);
}

.map-search-icon-btn[aria-expanded="true"] {
  border-color: rgba(56, 189, 248, 0.82);
  background: rgba(14, 116, 144, 0.42);
}

.map-search-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 11px;
  color: #bfdbfe;
}

.map-search-status[hidden],
.map-search-suggestions[hidden] {
  display: none !important;
}

.map-search-status.is-error {
  color: #fecaca;
}

.map-search-suggestions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 210px;
  overflow: auto;
  margin-top: 3px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 9px;
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.2);
}

.map-search-suggestions:empty {
  display: none !important;
  margin-top: 0;
  border: 0;
  box-shadow: none;
}

.map-search-suggestion {
  width: 100%;
  border: 0;
  background: transparent;
  color: #0f172a;
  text-align: left;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.map-search .map-search-suggestion {
  background: transparent;
  color: #0f172a;
}

.map-search-suggestion:hover,
.map-search-suggestion.is-active,
.map-search .map-search-suggestion:focus-visible {
  background: #0f172a;
  color: #f8fafc;
  outline: none;
}

.map-top-controls {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: 6px;
  padding-inline: 0;
  box-sizing: border-box;
}

.map-top-controls > * {
  box-sizing: border-box;
}

.map-date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(10px);
}

.map-date-range[hidden] {
  display: none !important;
}

.map-date-field {
  display: grid;
  gap: 4px;
  margin: 0;
  min-width: 0;
}

.map-date-field > span {
  font-size: 11px;
  font-weight: 700;
  color: #bfdbfe;
}

.map-date-field > input {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 9px;
  padding: 6px 8px;
  background: rgba(2, 6, 23, 0.55);
  color: #f8fafc;
  font: inherit;
  font-size: 12px;
}

.map-panel-openers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.left-sidebar {
  position: fixed;
  z-index: 1128;
  top: 0;
  left: 0;
  width: min(390px, 36vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  color: var(--crash-ink);
  background: var(--crash-panel);
  border: 1px solid var(--crash-panel-border);
  border-left: 0;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 24px 44px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(12px);
  overflow: visible;
}

.left-sidebar.is-panel-open {
  bottom: 0;
  overflow: hidden;
}

.left-sidebar:not(.is-panel-open) {
  bottom: auto;
}

.left-sidebar > * {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.left-sidebar .map-top-controls {
  flex: 0 0 auto;
}

.left-sidebar .map-search,
.left-sidebar .map-date-range {
  box-shadow: none;
}

.tool-launcher {
  position: fixed;
  z-index: 1140;
  right: 12px;
  bottom: 8px;
  display: inline-flex;
  align-items: flex-end;
  flex-direction: column-reverse;
  gap: 8px;
}

.tool-launcher__menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 168px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(9, 16, 30, 0.95);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.42);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.tool-launcher:hover .tool-launcher__menu,
.tool-launcher:focus-within .tool-launcher__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tool-launcher__menu a {
  display: block;
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.25;
  color: #dbeafe;
  text-decoration: none;
}

.tool-launcher__title {
  margin: 0;
  padding: 2px 9px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
}

.tool-launcher__menu a:hover,
.tool-launcher__menu a:focus-visible {
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
  outline: none;
}

.crash-home-link {
  position: static;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.86);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.48);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease;
}

.crash-home-link:hover {
  background: rgba(0, 0, 0, 0.98);
  transform: translateY(-1px);
}

.crash-home-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.filters-open-btn,
.reports-open-btn,
.heatmap-open-btn {
  position: static;
  width: 100%;
  border: 1px solid var(--crash-panel-border);
  border-radius: 999px;
  background: var(--crash-panel);
  color: var(--crash-ink);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.16s ease;
}

.filters-open-btn:hover,
.reports-open-btn:hover,
.heatmap-open-btn:hover {
  background: rgba(18, 30, 52, 0.95);
}

.map-panel-openers .filters-open-btn.is-active,
.map-panel-openers .reports-open-btn.is-active,
.map-panel-openers .heatmap-open-btn.is-active {
  border-color: rgba(56, 189, 248, 0.8);
  background: rgba(14, 116, 144, 0.42);
}

.crash-filters,
.crash-reports,
.crash-heatmap {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  color: var(--crash-ink);
  backdrop-filter: none;
}

.crash-filters[hidden] {
  display: none !important;
}

.crash-reports,
.crash-heatmap {
  overflow: auto;
}

.crash-reports[hidden] {
  display: none !important;
}

.crash-heatmap[hidden] {
  display: none !important;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.reports-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.crash-filters h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
}

.reports-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.filters-close-btn {
  border: 1px solid var(--crash-panel-border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  color: var(--crash-ink);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.filters-close-btn:hover {
  background: rgba(30, 41, 59, 0.95);
}

.filter-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid rgba(77, 183, 255, 0.45);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
}

.filter-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 10px;
  cursor: pointer;
}

.filter-tab.is-active {
  background: linear-gradient(135deg, rgba(77, 183, 255, 0.92), rgba(45, 155, 232, 0.94));
  color: #ffffff;
}

.map-layer-row {
  margin: 0 0 10px;
}

.map-layer-row--stack {
  display: grid;
  gap: 6px;
}

.heatmap-tools {
  display: grid;
  gap: 8px;
}

.map-layer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  padding: 7px 12px;
  cursor: pointer;
}

.map-layer-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #38bdf8;
}

.heatmap-controls {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.48);
  display: grid;
  gap: 8px;
}

.heatmap-controls__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #dbeafe;
}

.heatmap-control {
  display: grid;
  grid-template-columns: 1fr minmax(84px, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #e2e8f0;
}

.heatmap-control input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: #38bdf8;
}

.heatmap-control strong {
  min-width: 36px;
  text-align: right;
  font-size: 11px;
  color: #bae6fd;
}

.heatmap-control--stack {
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: stretch;
}

.heatmap-control__head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.heatmap-select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  background: rgba(8, 17, 34, 0.72);
  color: #e2e8f0;
  font-size: 12px;
  padding: 6px 8px;
}

.heatmap-info {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #0f172a;
  background: #7dd3fc;
  cursor: help;
  user-select: none;
}

.heatmap-info:focus-visible {
  outline: 2px solid #bae6fd;
  outline-offset: 1px;
}

.heatmap-scale {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.42);
  padding: 7px 8px;
}

.heatmap-scale__title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: #dbeafe;
}

.heatmap-scale__bar {
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: linear-gradient(90deg, #4db7ff 0%, #22c55e 30%, #f59e0b 56%, #f97316 78%, #ef4444 100%);
}

.heatmap-scale__labels {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: #bae6fd;
}

.heatmap-rank-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #94a3b8;
}

.heat-count-badge {
  background: transparent;
  border: 0;
}

.heat-count-badge > span {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  color: #082f49;
  border: 1px solid rgba(186, 230, 253, 0.9);
  background: rgba(186, 230, 253, 0.92);
  box-shadow: 0 3px 10px rgba(2, 6, 23, 0.28);
  cursor: pointer;
}

.filter-group[hidden] {
  display: none !important;
}

.filter-group + .filter-group {
  margin-top: 10px;
}

.filter-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 183, 255, 0.58) rgba(12, 17, 24, 0.88);
}

.filter-scroll-body::-webkit-scrollbar {
  width: 10px;
}

.filter-scroll-body::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(12, 17, 24, 0.88);
}

.filter-scroll-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(12, 17, 24, 0.88);
  background: linear-gradient(180deg, rgba(77, 183, 255, 0.86), rgba(47, 155, 232, 0.9));
}

.filter-scroll-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(105, 197, 255, 0.95), rgba(61, 166, 240, 0.96));
}

.filter-accordion-list {
  display: grid;
  gap: 8px;
}

.filter-accordion {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.34);
  min-width: 0;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.filter-accordion.is-open {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(15, 23, 42, 0.52);
}

.filter-accordion__toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 14px;
}

.filter-accordion__toggle:hover {
  background: rgba(30, 41, 59, 0.44);
}

.filter-accordion__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.filter-accordion__label > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-accordion__badge {
  width: 25px;
  height: 25px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.filter-accordion__badge.is-icon {
  font-size: 14px;
  letter-spacing: 0;
  color: #ffffff;
}

.filter-accordion__icon {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(77, 183, 255, 0.88);
  border-radius: 999px;
  flex: 0 0 auto;
  position: relative;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.filter-accordion__icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.14s ease;
}

.filter-accordion.is-open .filter-accordion__icon {
  border-color: var(--crash-accent-dark);
  background: rgba(77, 183, 255, 0.18);
}

.filter-accordion.is-open .filter-accordion__icon::after {
  background: var(--crash-accent);
}

.filter-accordion__body {
  padding: 0 12px 11px;
}

.filter-accordion__body[hidden] {
  display: none !important;
}

.filter-accordion__body .field:last-child {
  margin-bottom: 0;
}

.toggle-list {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.62);
  overflow: hidden;
}

.toggle-list__header {
  display: flex;
  justify-content: flex-end;
  padding: 8px 10px 6px;
}

.toggle-list__toggle-all {
  border: 0;
  background: transparent;
  color: var(--crash-accent);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.toggle-list__toggle-all:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

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

.toggle-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 6px;
  border-radius: 8px;
}

.toggle-list__item:hover {
  background: rgba(30, 41, 59, 0.45);
}

.toggle-list.is-disabled {
  opacity: 0.56;
}

.toggle-list.is-disabled .toggle-list__item {
  pointer-events: none;
}

.toggle-list.is-disabled .toggle-list__item:hover {
  background: transparent;
}

.toggle-list__text {
  font-size: 13px;
  line-height: 1.2;
  color: #e2e8f0;
}

.toggle-list__control {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.toggle-list__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.toggle-list__switch {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(30, 41, 59, 0.92);
  position: relative;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.toggle-list__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.14s ease;
}

.toggle-list__input:checked + .toggle-list__switch {
  background: var(--crash-accent);
  border-color: var(--crash-accent-dark);
}

.toggle-list__input:checked + .toggle-list__switch::after {
  transform: translateX(18px);
}

.toggle-list__input:focus-visible + .toggle-list__switch {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.toggle-list__input:disabled + .toggle-list__switch {
  opacity: 0.6;
}

.toggle-list__empty {
  margin: 0;
  padding: 8px 10px 10px;
  font-size: 12px;
  color: var(--crash-ink-muted);
}

.field-help {
  margin: -2px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--crash-ink-muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 11px;
  font-size: 13px;
}

.field > span {
  font-weight: 600;
  color: #cbd5e1;
}

.field input,
.field select,
.btn {
  font: inherit;
}

.field input,
.field select {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.84);
  color: #f8fafc;
}

.field input::placeholder {
  color: #94a3b8;
}

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

.checkbox-row,
.checkbox-grid {
  display: grid;
  gap: 8px;
}

.checkbox-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkbox-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-row label,
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #dbe5f3;
  min-width: 0;
}

.actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
  background: transparent;
}

.actions .btn {
  flex: 0 0 auto;
  min-width: 76px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.report-tools {
  flex: 0 0 auto;
  margin-top: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.42);
  padding: 10px;
}

.report-tools h2 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
}

.report-mode-row,
.report-action-row,
.report-export-row {
  display: grid;
  gap: 6px;
}

.report-mode-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-action-row,
.report-export-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.report-export-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-mode-btn {
  font-size: 11px;
  padding: 6px 8px;
}

.report-mode-btn.is-active {
  border-color: rgba(77, 183, 255, 0.8);
  background: rgba(45, 155, 232, 0.34);
  color: #e0f2fe;
}

.report-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: #93c5fd;
}

.report-status {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: #dbeafe;
}

.report-status.is-error {
  color: #fecaca;
}

.report-output {
  margin-top: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.48);
  padding: 8px 9px;
  color: #e2e8f0;
}

.report-output[hidden] {
  display: none !important;
}

.report-output h3 {
  margin: 0 0 6px;
  font-size: 12px;
  color: #f8fafc;
}

.report-output p {
  margin: 0 0 5px;
  font-size: 11px;
  line-height: 1.35;
}

.authority-report-tools {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.authority-report-tools h3 {
  margin: 0;
  font-size: 12px;
  color: #f8fafc;
}

.authority-report-weighting {
  margin: 8px 0 10px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: rgba(8, 17, 34, 0.56);
}

.report-hint--compact {
  margin-bottom: 6px;
}

.heatmap-control--compact {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 6px;
}

.heatmap-control--compact:last-child {
  margin-bottom: 0;
}

.heatmap-control--compact input[type="range"] {
  grid-column: 1 / -1;
}

#reportAuthoritySelect {
  width: 100%;
  min-height: 156px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 10px;
  background: rgba(8, 17, 34, 0.76);
  color: #e2e8f0;
  padding: 6px;
  font-size: 12px;
  line-height: 1.35;
}

#reportAuthoritySelect option {
  padding: 5px 6px;
  border-radius: 6px;
}

#reportAuthoritySelect option:checked {
  background: rgba(45, 155, 232, 0.42);
  color: #f8fafc;
}

.report-action-row--authority {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.authority-report-factor-note {
  margin: 6px 0 4px;
  color: #cbd5e1;
  font-size: 10px;
  line-height: 1.35;
}

.authority-report-grid {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.authority-report-card {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  background: rgba(8, 17, 34, 0.74);
  padding: 8px;
  color: #e2e8f0;
}

.authority-report-card__header h4 {
  margin: 0;
  font-size: 12px;
  color: #f8fafc;
  line-height: 1.3;
}

.authority-report-card__header p {
  margin: 3px 0 0;
  font-size: 10px;
  color: #cbd5e1;
}

.authority-report-card__stats,
.authority-report-card__factors,
.authority-report-card__rates {
  margin-top: 7px;
  display: grid;
  gap: 4px;
}

.authority-report-card__stats span,
.authority-report-card__factors span,
.authority-report-card__rates span {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.64);
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.35;
}

.authority-report-card__patterns {
  margin-top: 7px;
}

.authority-report-card__patterns p {
  margin: 0 0 3px;
  font-size: 10px;
  line-height: 1.35;
}

.authority-report-card__area-missing,
.authority-report-card__rates p {
  margin: 7px 0 0;
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.35;
}

.btn {
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.84);
  color: #e2e8f0;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover {
  background: rgba(30, 41, 59, 0.96);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  border-color: rgba(59, 130, 246, 0.78);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.panel-hint {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--crash-ink-muted);
}

.status {
  margin: 8px 0 10px;
  font-size: 12px;
  color: #bfdbfe;
}

.legend-title {
  margin: 8px 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #a5b4fc;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: inline-block;
}

.dot-fatal {
  background: #dc2626;
}

.dot-serious {
  background: #f59e0b;
}

.dot-slight {
  background: #2563eb;
}

.crash-detail {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1130;
  width: var(--crash-sidebar-width);
  max-height: 100vh;
  overflow: auto;
  background: rgba(248, 250, 252, 0.96);
  border-left: 1px solid rgba(148, 163, 184, 0.34);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: -20px 0 36px rgba(2, 6, 23, 0.22);
  color: var(--crash-detail-ink);
}

.close-detail {
  position: sticky;
  top: 10px;
  float: right;
  margin: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 18px;
  line-height: 26px;
}

.detail-body {
  padding: 14px 16px 18px;
}

.detail-hero {
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.92));
}

.detail-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f766e;
}

.detail-body h2 {
  margin: 4px 0 4px;
  font-size: 20px;
  line-height: 1.2;
}

.detail-meta {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.detail-pill-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.detail-pill.is-on {
  color: #166534;
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.15);
}

.detail-pill.is-off {
  color: #334155;
  border-color: rgba(100, 116, 139, 0.33);
  background: rgba(148, 163, 184, 0.17);
}

.detail-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.detail-metric {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.86);
  padding: 8px 9px;
}

.detail-metric__label {
  margin: 0;
  font-size: 11px;
  color: #64748b;
}

.detail-metric__value {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
}

.detail-body h3 {
  margin: 12px 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
}

.detail-see-more {
  margin: 8px 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.detail-see-more summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  color: #0f3a63;
  padding: 10px 12px;
  user-select: none;
}

.detail-see-more summary::-webkit-details-marker {
  display: none;
}

.detail-see-more summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  line-height: 1;
  color: #2f9be8;
  transform-origin: 45% 50%;
  transition: transform 0.16s ease;
}

.detail-see-more[open] summary::before {
  transform: rotate(90deg);
}

.detail-see-more[open] summary {
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}

.detail-see-more__body {
  padding: 8px 12px 11px;
}

.detail-see-more .kv {
  margin: 0;
}

.kv {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 6px 12px;
  font-size: 13px;
}

.kv dt {
  color: var(--crash-detail-muted);
}

.kv dd {
  margin: 0;
  font-weight: 600;
}

.detail-inline-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.16);
  color: #0ea5e9;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: text-top;
}

.detail-inline-info:hover {
  background: rgba(14, 116, 144, 0.28);
  color: #38bdf8;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.detail-table th,
.detail-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.detail-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #1e293b;
}

.crash-pin-wrap {
  background: transparent !important;
  border: 0 !important;
}

.crash-pin-wrap .crash-pin {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

.crash-pin-wrap.is-selected .crash-pin {
  border-color: #bae6fd;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.36), 0 2px 10px rgba(2, 6, 23, 0.45);
}

.crash-pin-wrap.fatal .crash-pin {
  background: #dc2626;
}

.crash-pin-wrap.serious .crash-pin {
  background: #f59e0b;
}

.crash-pin-wrap.slight .crash-pin {
  background: var(--crash-accent-dark);
}

.crash-pin__outer-arrow {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(8, 17, 34, 0.95);
  box-shadow: 0 1px 3px rgba(2, 6, 23, 0.45);
  pointer-events: none;
}

.crash-pin__outer-arrow--secondary {
  width: 15px;
  height: 15px;
  font-size: 10px;
}

.crash-pin__bang {
  color: #ffffff;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
  transform: translateY(-0.5px);
  text-shadow: 0 1px 1px rgba(2, 6, 23, 0.45);
}

.leaflet-popup-content {
  margin: 10px 12px 11px;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.22);
}

.popup-card {
  min-width: 232px;
  max-width: 272px;
}

.popup-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.popup-line {
  margin: 0 0 8px;
  font-size: 12px;
  color: #475569;
}

.popup-metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 8px;
}

.popup-metric {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid rgba(148, 163, 184, 0.33);
  border-radius: 9px;
  background: rgba(241, 245, 249, 0.9);
  padding: 5px 7px;
  font-size: 11px;
  line-height: 1.25;
  color: #334155;
}

.popup-metric strong {
  font-size: 13px;
  color: #0f172a;
}

.popup-kv {
  margin: 0 0 9px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.popup-kv div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  line-height: 1.3;
}

.popup-kv dt {
  color: #64748b;
  font-weight: 600;
}

.popup-kv dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

.popup-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.popup-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 11px;
  line-height: 1.2;
  padding: 2px 8px;
}

.popup-tag--severity {
  border-color: rgba(45, 155, 232, 0.38);
  background: rgba(77, 183, 255, 0.22);
  color: #0f3a63;
}

.popup-cluster-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.popup-cluster-subtitle {
  margin: 0 0 8px;
  font-size: 12px;
  color: #475569;
}

.popup-cluster-metric-grid {
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.popup-cluster-metric {
  border: 1px solid rgba(148, 163, 184, 0.33);
  border-radius: 9px;
  background: rgba(241, 245, 249, 0.92);
  padding: 5px 7px;
  font-size: 11px;
  line-height: 1.25;
  color: #334155;
}

.popup-cluster-metric strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.popup-cluster-kv {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.popup-cluster-kv div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  line-height: 1.3;
}

.popup-cluster-kv dt {
  color: #64748b;
  font-weight: 600;
}

.popup-cluster-kv dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

.popup-cluster-actions {
  margin-top: 10px;
  display: flex;
  gap: 6px;
}

.popup-cluster-btn {
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.popup-cluster-btn:hover {
  background: #ffffff;
}

.popup-cluster-btn.is-primary {
  border-color: rgba(14, 116, 144, 0.5);
  background: rgba(14, 116, 144, 0.14);
  color: #0f3a63;
}

.popup-cluster-btn.is-primary:hover {
  background: rgba(14, 116, 144, 0.22);
}

.map-context-menu {
  position: absolute;
  z-index: 1400;
  min-width: 220px;
  background: rgba(12, 17, 29, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.map-context-menu[hidden] {
  display: none;
}

.map-context-menu__item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: 13px;
  line-height: 1.25;
  padding: 10px 12px;
  cursor: pointer;
}

.map-context-menu__item + .map-context-menu__item {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.map-context-menu__item:hover,
.map-context-menu__item:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.map-loading {
  position: fixed;
  inset: 0;
  z-index: 1180;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-loading[hidden] {
  display: none !important;
}

.map-loading__inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(9, 16, 30, 0.94);
  color: #f8fafc;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45);
}

.map-loading__spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(226, 232, 240, 0.36);
  border-top-color: #38bdf8;
  animation: crash-loading-spin 0.8s linear infinite;
}

@keyframes crash-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.scope-control {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1120;
  width: min(380px, calc(100vw - 20px));
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(9, 16, 30, 0.93);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.32);
  color: #e2e8f0;
  backdrop-filter: blur(10px);
}

.scope-control__search {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  gap: 6px;
  align-items: center;
}

.scope-control__search input {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 9px;
  padding: 6px 8px;
  background: rgba(2, 6, 23, 0.55);
  color: #f8fafc;
  font: inherit;
  font-size: 13px;
}

.scope-control__search input::placeholder {
  color: #94a3b8;
}

.scope-control__search .btn {
  min-height: 32px;
  padding: 6px 10px;
}

.scope-control__clear {
  min-width: 34px;
  width: 34px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.scope-control__summary {
  margin: 0;
  font-size: 11px;
  color: #cbd5e1;
}

.scope-control__status {
  margin: 0;
  font-size: 11px;
  color: #bfdbfe;
}

.scope-control__status.is-error {
  color: #fecaca;
}

#activeScopeClear:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.crash-filters,
.crash-filters * {
  box-sizing: border-box;
}

.crash-heatmap,
.crash-heatmap * {
  box-sizing: border-box;
}

.map-search-suggestion {
  white-space: normal;
  word-break: break-word;
}

.measure-point {
  background: transparent;
  border: 0;
}

.measure-point > span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #1558d6;
  box-shadow: 0 2px 10px rgba(12, 17, 29, 0.28);
  background: #fff;
}

.measure-point--end > span {
  background: #1558d6;
}

.measure-distance-label-wrapper {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.measure-distance-label {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(12, 17, 29, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .left-sidebar {
    width: min(360px, 94vw);
  }

  .tool-launcher {
    right: 12px;
    bottom: 8px;
  }

  .crash-home-link {
    width: 42px;
    height: 42px;
  }

  .crash-detail {
    width: min(440px, calc(100vw - 8px));
  }

  body.crash-detail-open #crashMap {
    right: 0;
  }

  .map-legal-left {
    left: 8px;
    max-width: min(390px, calc(100vw - 16px));
  }
}

@media (max-width: 720px) {
  .scope-control {
    top: 8px;
    right: 8px;
    left: 8px;
    width: auto;
    border-radius: 12px;
  }

  .scope-control__search {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .left-sidebar {
    width: 100vw;
    border-radius: 0;
    padding: 8px 10px 10px;
  }

  .left-sidebar.is-panel-open {
    bottom: 0;
  }

  .left-sidebar:not(.is-panel-open) {
    bottom: auto;
  }

  .map-date-range {
    grid-template-columns: 1fr;
  }

  .map-panel-openers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-launcher {
    right: 8px;
    bottom: 8px;
  }

  .tool-launcher__menu {
    min-width: 150px;
  }

  .map-legal-left,
  .map-legal-center {
    font-size: 9px;
  }

  .map-legal-left {
    left: 8px;
    bottom: 30px;
    max-width: calc(100vw - 16px);
  }

  .map-legal-center {
    bottom: 8px;
    max-width: calc(100vw - 16px);
  }

  .checkbox-row,
  .checkbox-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .report-action-row--authority {
    grid-template-columns: 1fr;
  }

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