/* ============================================================
   Commerce Analytics — e-com аналитика вертикали водного транспорта
   ============================================================ */

:root {
  --bg: #040910;
  --bg-2: #071527;
  --panel: rgba(8, 18, 32, 0.78);
  --panel-solid: #0a1626;
  --line: rgba(126, 176, 236, 0.14);
  --line-strong: rgba(126, 176, 236, 0.3);
  --text: #e9f2fc;
  --muted: #93a8c1;
  --faint: #60758e;
  --accent: #4cd6c3;
  --accent-2: #6ea8fe;
  --marine: #4cd6c3;
  --general: #7aa7f5;
  --land: #13253c;
  --land-hover: #1c3858;
  --land-stroke: rgba(120, 170, 230, 0.22);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 18% -10%, rgba(27, 74, 120, 0.35), transparent 65%),
    radial-gradient(900px 650px at 88% 106%, rgba(14, 92, 96, 0.28), transparent 62%),
    linear-gradient(180deg, #050b14 0%, #040910 55%, #03070d 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(190, 225, 255, 0.55), transparent 100%),
    radial-gradient(1px 1px at 28% 68%, rgba(190, 225, 255, 0.35), transparent 100%),
    radial-gradient(1.4px 1.4px at 46% 12%, rgba(190, 225, 255, 0.45), transparent 100%),
    radial-gradient(1px 1px at 63% 82%, rgba(190, 225, 255, 0.4), transparent 100%),
    radial-gradient(1.2px 1.2px at 78% 33%, rgba(190, 225, 255, 0.5), transparent 100%),
    radial-gradient(1px 1px at 91% 62%, rgba(190, 225, 255, 0.32), transparent 100%),
    radial-gradient(1px 1px at 52% 47%, rgba(190, 225, 255, 0.25), transparent 100%);
  opacity: 0.7;
  z-index: 0;
}

button, input { font: inherit; color: inherit; }

/* ---------- шапка ---------- */

.hud {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  height: 66px;
  padding: 0 clamp(14px, 2.2vw, 26px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 10, 18, 0.72);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  color: var(--accent);
  border: 1px solid rgba(76, 214, 195, 0.28);
  background:
    radial-gradient(circle at 30% 25%, rgba(76, 214, 195, 0.22), transparent 60%),
    rgba(11, 28, 42, 0.85);
  box-shadow: 0 0 26px -8px rgba(76, 214, 195, 0.55);
}

.brand__text { min-width: 0; }
.brand h1 { margin: 0; font-size: 16px; font-weight: 640; letter-spacing: 0.005em; }
.brand p {
  margin: 1px 0 0;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mode {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(6, 14, 25, 0.7);
  flex: none;
}
.mode button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.mode button:hover { color: var(--text); }
.mode button[aria-pressed="true"] {
  color: #04211d;
  background: var(--accent);
  font-weight: 620;
  box-shadow: 0 4px 16px -6px rgba(76, 214, 195, 0.8);
}

.hud__stats {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  margin-left: auto;
}

.stat { display: flex; flex-direction: column; line-height: 1.1; }
.stat b { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.stat span { font-size: 10.5px; color: var(--faint); letter-spacing: 0.04em; }

.download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.download:hover { color: var(--text); border-color: var(--line-strong); background: rgba(126, 176, 236, 0.07); }

/* ---------- сцена ---------- */

.stage {
  position: relative;
  z-index: 1;
  height: calc(100vh - 66px);
  overflow: hidden;
}

.globe {
  position: absolute;
  inset: 0;
}
.globe svg { display: block; width: 100%; height: 100%; }

.globe__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  justify-items: center;
  color: var(--faint);
  font-size: 12.5px;
}
.globe__loading i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(76, 214, 195, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- панели ---------- */

.panel {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(15, 30, 48, 0.55), rgba(6, 14, 25, 0.15)),
    var(--panel);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76, 214, 195, 0.55), transparent);
  opacity: 0.55;
}

.panel--list {
  top: 18px;
  left: 18px;
  bottom: 18px;
  width: 322px;
  padding: 16px 8px 10px;
}

.panel--detail {
  top: 18px;
  right: 18px;
  width: 378px;
  max-height: calc(100% - 36px);
  padding: 18px 18px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.panel--detail.is-hidden { display: none; }

.panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px 12px;
}
.panel__top h2 { margin: 0; font-size: 14px; font-weight: 630; letter-spacing: 0.005em; }
.panel__top p { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }

/* ---------- поиск и фильтры ---------- */

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 10px;
  padding: 0 10px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--faint);
  background: rgba(5, 12, 22, 0.65);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.search:focus-within { border-color: rgba(76, 214, 195, 0.5); color: var(--accent); }
.search svg { flex: none; }
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
  color: var(--text);
}
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { filter: invert(0.6); cursor: pointer; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 10px 12px;
  border-bottom: 1px solid rgba(126, 176, 236, 0.09);
}
.chip {
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(126, 176, 236, 0.07);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.chip:hover { color: var(--text); background: rgba(126, 176, 236, 0.13); }
.chip[aria-pressed="true"] {
  color: var(--accent);
  border-color: rgba(76, 214, 195, 0.4);
  background: rgba(76, 214, 195, 0.1);
}

/* ---------- список стран ---------- */

.country-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 4px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 176, 236, 0.25) transparent;
}
.country-list::-webkit-scrollbar { width: 8px; }
.country-list::-webkit-scrollbar-thumb { background: rgba(126, 176, 236, 0.2); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }

.country { margin-bottom: 2px; border-radius: 12px; transition: background 0.15s ease; }
.country:hover { background: rgba(126, 176, 236, 0.05); }
.country.is-selected { background: rgba(76, 214, 195, 0.07); }
.country.is-selected .country__row { color: var(--text); }

.country__row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.country__row:hover { color: var(--text); }
.flag { font-size: 15px; line-height: 1; flex: none; filter: saturate(0.85); }
.country__name { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country__count {
  flex: none;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(126, 176, 236, 0.12);
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
}
.country.is-selected .country__count { background: rgba(76, 214, 195, 0.18); color: var(--accent); }

.country__chev {
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--faint);
  transition: transform 0.18s ease;
}
.country.is-open .country__chev { transform: rotate(90deg); }

.country__sites {
  list-style: none;
  margin: 0;
  padding: 1px 10px 8px 34px;
  display: none;
}
.country.is-open .country__sites { display: block; }
.country__sites li + li { margin-top: 2px; }
.country__sites a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 4px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11.5px;
  text-decoration: none;
  overflow: hidden;
}
.country__sites a:hover { color: var(--text); background: rgba(126, 176, 236, 0.08); }
.country__sites .dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.country__sites .dot--marine { background: var(--marine); }
.country__sites .dot--general { background: var(--general); }
.country__sites span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country__sites .ext { margin-left: auto; color: var(--faint); font-size: 10px; }

/* ---------- детали ---------- */

.detail__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.detail__flag { font-size: 26px; line-height: 1; flex: none; }
.detail__head h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.detail__head p { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }
.detail__close {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex: none;
}
.detail__close:hover { background: rgba(126, 176, 236, 0.1); color: var(--text); }

.detail__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 16px;
}
.detail__kpis div {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(5, 12, 22, 0.4);
}
.detail__kpis b { display: block; font-size: 17px; font-weight: 640; }
.detail__kpis span { display: block; margin-top: 1px; font-size: 10px; color: var(--faint); letter-spacing: 0.03em; }

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 9px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.site {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 20, 35, 0.55);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.site + .site { margin-top: 9px; }
.site:hover { border-color: var(--line-strong); background: rgba(13, 28, 47, 0.7); }
.site__head { display: flex; align-items: center; gap: 8px; }
.site__head h3 { margin: 0; font-size: 13.5px; font-weight: 620; letter-spacing: 0.005em; }
.tag {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--marine { color: var(--marine); background: rgba(76, 214, 195, 0.12); border: 1px solid rgba(76, 214, 195, 0.22); }
.tag--general { color: var(--general); background: rgba(122, 167, 245, 0.12); border: 1px solid rgba(122, 167, 245, 0.22); }

.site__url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--accent);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.site__url:hover { text-decoration: underline; }

.site__note { margin: 7px 0 9px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }

.site__flags { display: flex; flex-wrap: wrap; gap: 5px; }
.site__flags span {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--muted);
  background: rgba(126, 176, 236, 0.08);
  border: 1px solid rgba(126, 176, 236, 0.08);
}

.site__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed rgba(126, 176, 236, 0.14);
}
.site__metrics div { min-width: 0; }
.site__metrics span { display: block; font-size: 9px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--faint); }
.site__metrics b { display: block; margin-top: 2px; font-size: 13px; font-weight: 560; color: var(--faint); }
.site__metrics em { font-size: 9px; font-style: normal; color: rgba(76, 214, 195, 0.6); }

.detail__note {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed rgba(126, 176, 236, 0.2);
  border-radius: 11px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--faint);
}

/* ---------- обзор ---------- */

.overview-hero { padding: 16px 2px 4px; }
.overview-hero b { font-size: 34px; font-weight: 660; letter-spacing: -0.03em; }
.overview-hero span { color: var(--muted); font-size: 13px; }
.overview-hero p { margin: 4px 0 0; font-size: 11.5px; color: var(--faint); }

.region-stats { display: grid; gap: 9px; margin-top: 18px; }
.region-stat { display: grid; grid-template-columns: 118px 1fr 26px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.region-stat__bar { height: 5px; border-radius: 999px; background: rgba(126, 176, 236, 0.12); overflow: hidden; }
.region-stat__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.region-stat b { text-align: right; color: var(--text); font-weight: 560; font-size: 11.5px; }

.overview-top { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.overview-top button {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
}
.overview-top button:hover { color: var(--text); border-color: var(--line-strong); }

/* ---------- сцена: подсказки ---------- */

.stage__legend,
.stage__hint {
  position: absolute;
  z-index: 5;
  bottom: 14px;
  font-size: 10.5px;
  color: var(--faint);
  pointer-events: none;
  letter-spacing: 0.02em;
}
.stage__legend { left: 358px; display: inline-flex; align-items: center; gap: 6px; }
.stage__legend .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.stage__hint { right: 412px; }

/* ---------- глобус ---------- */

.sphere { fill: url(#ocean); }
.graticule { fill: none; stroke: rgba(126, 176, 236, 0.1); stroke-width: 0.6; }
.land {
  fill: var(--land);
  stroke: var(--land-stroke);
  stroke-width: 0.5;
  cursor: pointer;
  transition: fill 0.18s ease;
}
.land:hover { fill: var(--land-hover); }
.land.is-selected { fill: rgba(76, 214, 195, 0.22); stroke: rgba(76, 214, 195, 0.75); stroke-width: 0.9; }
.land.is-muted { opacity: 0.35; }

.marker { cursor: pointer; outline: none; }
.marker__halo { fill: var(--accent); opacity: 0.16; transition: opacity 0.2s ease, r 0.2s ease; }
.marker__dot { fill: var(--accent); stroke: rgba(4, 16, 22, 0.9); stroke-width: 1.2; }
.marker__count { fill: #04211d; font-family: var(--font); font-size: 8px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.marker:hover .marker__halo, .marker:focus-visible .marker__halo { opacity: 0.3; }
.marker.is-selected .marker__dot { fill: #eafffb; }
.marker.is-selected .marker__halo { opacity: 0.34; }
.marker__ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.marker.is-selected .marker__ring { animation: ring 2.4s ease-out infinite; }
@keyframes ring {
  0% { opacity: 0.6; transform: scale(0.6); }
  70% { opacity: 0; transform: scale(2.1); }
  100% { opacity: 0; transform: scale(2.1); }
}

.empty-list {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 20px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* ---------- тултип ---------- */

.tooltip {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  min-width: 130px;
  max-width: 260px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 16, 28, 0.94);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--text);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.tooltip.is-visible { opacity: 1; transform: translateY(0); }
.tooltip__title { font-size: 12.5px; font-weight: 600; }
.tooltip__meta { margin-top: 2px; font-size: 11px; color: var(--muted); }
.tooltip__list { margin: 6px 0 0; padding: 0; list-style: none; font-size: 11px; color: var(--muted); }
.tooltip__list li { display: flex; gap: 6px; align-items: baseline; }
.tooltip__list i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- адаптив ---------- */

@media (max-width: 1280px) {
  .panel--list { width: 300px; }
  .panel--detail { width: 352px; }
  .stage__legend { left: 336px; }
  .stage__hint { right: 386px; }
  .stat:nth-child(4) { display: none; }
}

@media (max-width: 1180px) {
  body { overflow: auto; }
  .hud { height: auto; flex-wrap: wrap; padding: 12px 16px; gap: 12px 18px; }
  .hud__stats { margin-left: 0; }
  .stage { height: auto; padding-bottom: 18px; }
  .globe { position: relative; height: 62vh; min-height: 360px; }
  .panel {
    position: relative;
    inset: auto;
    width: auto;
    max-height: none;
    margin: 14px clamp(12px, 3vw, 24px) 0;
  }
  .panel--list { height: min(64vh, 560px); }
  .panel--detail { overflow: visible; }
  .stage__legend, .stage__hint { display: none; }
  .mode { order: 3; }
  .download span { display: none; }
}

@media (max-width: 640px) {
  .brand p { display: none; }
  .hud__stats { gap: 14px; width: 100%; }
  .stat { flex-direction: row; align-items: baseline; gap: 5px; }
  .stat b { font-size: 15px; }
  .mode {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .mode::-webkit-scrollbar { display: none; }
  .mode button { flex: none; padding: 6px 9px; font-size: 11.5px; }
  .globe { height: 52vh; min-height: 300px; }
  .panel--detail { padding: 16px 14px 18px; }
  .detail__kpis { grid-template-columns: repeat(3, 1fr); }
  .overview-hero b { font-size: 28px; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- кластеры на глобусе ---------- */

.marker--cluster .marker__dot { fill: #a9f7ec; }
.marker--cluster .marker__count { font-size: 9px; fill: #052a26; }
.marker--cluster .marker__halo { opacity: 0.13; }
.marker--cluster:hover .marker__halo { opacity: 0.26; }
.marker__hit { fill: transparent; }
.site__metrics b.has-value { color: var(--text); font-weight: 600; }

/* ============================================================
   Аналитика: таблица данных
   ============================================================ */

.is-hidden { display: none !important; }

button.download { cursor: pointer; background: transparent; }

.select {
  padding: 7px 30px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background-color: rgba(5, 12, 22, 0.7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2393a8c1' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--text);
  font-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.select:hover { border-color: var(--line-strong); }

.table-view {
  position: absolute;
  inset: 16px;
  z-index: 16;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(14, 31, 50, 0.9), rgba(5, 13, 23, 0.94)),
    var(--panel-solid);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.table-view__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
}
.table-view__head h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.table-view__head p { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }

.table-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search--table { margin: 0; width: 240px; }

.table-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 12, 22, 0.45);
  font-size: 11.5px;
  color: var(--muted);
}
.table-progress b { color: var(--text); font-weight: 600; }
.table-progress__bar { flex: 1; max-width: 280px; height: 5px; border-radius: 999px; background: rgba(126, 176, 236, 0.14); overflow: hidden; }
.table-progress__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.table-progress button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.table-progress button:hover { color: var(--text); }

.table-wrap--big { flex: 1; min-height: 0; overflow: auto; margin: 0 -4px; }

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}
.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 9px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  background: #0a1727;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.data-table th[data-sort] { cursor: pointer; user-select: none; }
.data-table th[data-sort]:hover { color: var(--text); }
.data-table th[data-sort]::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.25;
}
.data-table th[data-sort][aria-sort="ascending"]::after { border-top: 0; border-bottom: 4px solid currentColor; opacity: 1; }
.data-table th[data-sort][aria-sort="descending"]::after { opacity: 1; }

.data-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(126, 176, 236, 0.08);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: rgba(126, 176, 236, 0.05); }
.data-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table td.num b { font-weight: 600; }
.data-table td.num small { display: block; color: var(--faint); font-size: 10px; font-weight: 400; }
.data-table .dash { color: var(--faint); }

.t-country { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.t-site { display: flex; flex-direction: column; gap: 1px; min-width: 150px; }
.t-site a { color: var(--text); font-weight: 550; text-decoration: none; }
.t-site a:hover { color: var(--accent); }
.t-site span { color: var(--faint); font-size: 10.5px; }
.t-link { color: var(--faint); text-decoration: none; font-size: 13px; }
.t-link:hover { color: var(--accent); }

.cats-cell { display: flex; flex-wrap: wrap; gap: 3px; max-width: 330px; }
.cats-cell span {
  display: inline-flex;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(126, 176, 236, 0.08);
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}
.cats-cell b { color: var(--text); font-weight: 550; }

/* ---------- таблица в карточке сайта ---------- */

.sa {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 11.5px;
}
.sa__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(126, 176, 236, 0.08);
}
.sa__row:last-child { border-bottom: 0; }
.sa__row > span { color: var(--muted); }
.sa__row b { color: var(--text); font-weight: 600; white-space: nowrap; }
.sa__row b small { margin-left: 4px; color: var(--faint); font-size: 10px; font-weight: 400; }
.sa__row b.is-empty { color: var(--faint); font-weight: 400; }

.sa__cats { padding: 8px 10px; border-bottom: 1px solid rgba(126, 176, 236, 0.08); }
.sa__cats-head { color: var(--muted); margin-bottom: 6px; }
.sa__cat { display: grid; grid-template-columns: minmax(74px, 1.1fr) 1fr auto; align-items: center; gap: 8px; padding: 2px 0; }
.sa__cat-name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.sa__cat-bar { height: 4px; border-radius: 999px; background: rgba(126, 176, 236, 0.12); overflow: hidden; }
.sa__cat-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.sa__cat b { color: var(--text); font-weight: 550; font-size: 11px; white-space: nowrap; }

.sa__empty { padding: 7px 10px; color: var(--faint); font-size: 10.5px; border-top: 1px dashed rgba(126, 176, 236, 0.12); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  transform: translate(-50%, 12px);
  max-width: min(520px, 90vw);
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(8, 20, 34, 0.96);
  color: var(--text);
  font-size: 12.5px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { border-color: rgba(251, 113, 133, 0.5); color: #ffd7dd; }

@media (max-width: 1180px) {
  .table-view { position: relative; inset: auto; margin: 14px clamp(12px, 3vw, 24px) 0; height: auto; max-height: none; }
  .table-wrap--big { max-height: 70vh; }
  .search--table { width: 100%; }
  .table-tools { width: 100%; }
}

@media (max-width: 640px) {
  .data-table { font-size: 12px; }
  .cats-cell { max-width: 200px; }
  .table-view { padding: 14px 12px; }
}

/* ---------- прогресс аналитики в обзоре ---------- */

.analytics-fill {
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px dashed rgba(126, 176, 236, 0.22);
  border-radius: 11px;
  background: rgba(5, 12, 22, 0.35);
}
.analytics-fill__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); }
.analytics-fill__head b { color: var(--text); font-weight: 600; }
.analytics-fill__head button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.analytics-fill__bar { height: 5px; margin-top: 8px; border-radius: 999px; background: rgba(126, 176, 236, 0.14); overflow: hidden; }
.analytics-fill__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--accent);
  color: #04211d;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }

.table-wrap--big { -webkit-overflow-scrolling: touch; }

@media (max-width: 700px) {
  #importBtn { display: none; }
  .table-progress > span:last-child { display: none; }
  .table-progress { flex-wrap: wrap; row-gap: 6px; }
  .table-progress__bar { max-width: none; }
}
.table-note { margin: 4px 0 0; font-size: 10.5px; color: var(--faint); }
.table-note { max-width: 640px; line-height: 1.45; }

/* ============================================================
   E-com аналитика рынка
   ============================================================ */

.market-view {
  position: absolute;
  inset: 16px;
  z-index: 16;
  overflow-y: auto;
  padding: 20px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(76, 214, 195, 0.09), transparent 65%),
    linear-gradient(180deg, rgba(14, 31, 50, 0.92), rgba(5, 13, 23, 0.96));
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.market-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.market-head h2 { margin: 0; font-size: 19px; font-weight: 660; letter-spacing: -0.01em; }
.market-head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.market-badge {
  flex: none;
  padding: 5px 10px;
  border: 1px solid rgba(76, 214, 195, 0.35);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(76, 214, 195, 0.09);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.market-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.market-kpi {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(6, 16, 28, 0.5);
}
.market-kpi span { display: block; font-size: 10.5px; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; }
.market-kpi b { display: block; margin-top: 4px; font-size: 24px; font-weight: 660; letter-spacing: -0.02em; line-height: 1.1; }
.market-kpi small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }

.market-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; }

.market-panel {
  padding: 15px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 16, 28, 0.42);
  min-width: 0;
}
.market-panel h3 { margin: 0; font-size: 13.5px; font-weight: 620; }
.market-panel__sub { margin: 3px 0 12px; font-size: 11px; color: var(--faint); }

.market-bars { display: grid; gap: 12px; }
.market-bar { display: grid; grid-template-columns: 128px 1fr auto; align-items: center; gap: 10px; }
.market-bar__name { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-bar__track { height: 9px; border-radius: 999px; background: rgba(126, 176, 236, 0.12); overflow: hidden; }
.market-bar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.market-bar__value { font-size: 11.5px; color: var(--text); font-weight: 600; white-space: nowrap; }
.market-bar__value small { display: block; color: var(--faint); font-weight: 400; text-align: right; font-size: 10px; }

.market-table-wrap { overflow-x: auto; }
.market-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.market-table th {
  text-align: left;
  padding: 6px 8px;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.market-table td { padding: 8px; border-bottom: 1px solid rgba(126, 176, 236, 0.08); }
.market-table tr:last-child td { border-bottom: 0; }
.market-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.market-table td:first-child { color: var(--text); }
.market-table td { color: var(--muted); }
.market-table tbody tr:hover { background: rgba(126, 176, 236, 0.04); }

.market-method {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px dashed rgba(126, 176, 236, 0.22);
  border-radius: 13px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.market-method h3 { margin: 0 0 6px; font-size: 12px; color: var(--text); font-weight: 600; }
.market-method ul { margin: 6px 0 0; padding-left: 17px; }
.market-method li { margin: 2px 0; }
.market-method a { color: var(--accent); text-decoration: none; }
.market-method a:hover { text-decoration: underline; }
.market-method .src { margin-top: 8px; font-size: 10.5px; color: var(--faint); }

@media (max-width: 1180px) {
  .market-view { position: relative; inset: auto; margin: 14px clamp(12px, 3vw, 24px) 0; max-height: none; }
  .market-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .market-kpis { grid-template-columns: repeat(2, 1fr); }
  .market-bar { grid-template-columns: 96px 1fr auto; }
  .market-kpi b { font-size: 20px; }
  .market-head h2 { font-size: 17px; }
}
.market-bar__track { display: block; }
.market-bar__fill { display: block; }

/* ---------- логотипы ---------- */

.site__logo {
  width: 32px; height: 32px; flex: none;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.site__logo--fallback {
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 15px;
  background: var(--accent);
}
.site__head { align-items: center; }
.site__head h3 { margin-right: auto; }

.mini-logo {
  width: 17px; height: 17px; flex: none;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
  padding: 1px;
}
.mini-logo--fallback { display: grid; place-items: center; color: #fff; font-size: 9px; font-weight: 700; background: var(--accent); }

.t-logo {
  width: 24px; height: 24px; flex: none;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
  padding: 2px;
}
.t-logo--fallback { display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; background: var(--accent); }
.t-site { flex-direction: row !important; align-items: center; gap: 8px !important; }
.t-site__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.slogo { cursor: pointer; outline: none; }
.slogo__bg {
  fill: #f8fbff;
  stroke: rgba(4, 20, 32, 0.55);
  stroke-width: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}
.slogo.is-selected .slogo__bg { stroke: var(--accent); stroke-width: 2; }
.slogo:hover .slogo__bg { stroke: var(--accent); }
.slogo__letter { fill: #04211d; font-size: 11px; font-weight: 700; text-anchor: middle; }
.slogo { cursor: pointer; }
.slogo:focus-visible .slogo__bg { stroke: var(--accent); stroke-width: 2; }

/* ---------- континенты ---------- */

.continent {
  fill: none;
  stroke: rgba(76, 214, 195, 0.55);
  stroke-width: 1.15;
  stroke-linejoin: round;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}
.continent-label {
  fill: rgba(168, 246, 232, 0.62);
  font-family: var(--font);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(3, 14, 22, 0.75);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

/* ---------- зум ---------- */

.zoom-ctl {
  position: absolute;
  right: 412px;
  bottom: 16px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(6, 16, 28, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.zoom-ctl button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.zoom-ctl button:hover { background: rgba(126, 176, 236, 0.12); color: var(--text); }
.zoom-ctl span {
  min-width: 40px;
  padding-right: 4px;
  text-align: right;
  font-size: 10.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.is-hidden { display: none !important; }

@media (max-width: 1180px) {
  .zoom-ctl { right: 16px; bottom: auto; top: 12px; }
}
.globe svg { cursor: grab; }
.globe.is-grabbing svg { cursor: grabbing; }
.zoom-ctl { bottom: 46px; }
.continent-label { font-size: 8.5px; fill: rgba(168, 246, 232, 0.48); stroke-width: 2; }
.globe { touch-action: none; }
@media (max-width: 1180px) {
  .zoom-ctl { top: 12px; bottom: auto; right: 16px; }
}

/* ---------- фильтр континента ---------- */

.continent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(76, 214, 195, 0.42);
  border-radius: 999px;
  background: rgba(76, 214, 195, 0.12);
  color: var(--accent);
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
}
.continent-badge b { color: var(--text); font-weight: 600; }
.continent-badge span { color: var(--faint); font-size: 12px; }
.continent-badge:hover { background: rgba(76, 214, 195, 0.2); }
.continent-badge.is-hidden { display: none; }

.continent.is-active {
  stroke: #9ff7e8;
  stroke-width: 2.3;
  fill: rgba(76, 214, 195, 0.07);
  filter: drop-shadow(0 0 6px rgba(76, 214, 195, 0.45));
}
.continent-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 14;
  pointer-events: stroke;
  cursor: pointer;
  outline: none;
}
.continent-hit:focus-visible { stroke: rgba(76, 214, 195, 0.35); }

.cont-countries { display: flex; flex-wrap: wrap; gap: 5px; }
.cont-countries button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.cont-countries button:hover { color: var(--text); border-color: var(--line-strong); background: rgba(126, 176, 236, 0.08); }
.cont-countries button span { color: var(--faint); font-size: 10px; }

.cont-sites { display: grid; gap: 3px; }
.cont-site {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11.5px;
}
.cont-site:hover { background: rgba(126, 176, 236, 0.07); color: var(--text); }
.cont-site__main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.cont-site__main b { font-weight: 550; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cont-site__main span { color: var(--faint); font-size: 10px; }
.cont-site__num { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 10.5px; white-space: nowrap; }
.panel__top .continent-badge { margin-top: 8px; }
.continent.is-hover {
  fill: rgba(76, 214, 195, 0.12);
  stroke: #c8fff7;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 8px rgba(76, 214, 195, 0.55));
}

/* ---------- Авито ---------- */
.avito-view {
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(245, 193, 91, 0.10), transparent 65%),
    linear-gradient(180deg, rgba(14, 31, 50, 0.94), rgba(5, 13, 23, 0.97));
}
.avito-view .market-badge {
  border-color: rgba(245, 193, 91, 0.4);
  color: #f5c15b;
  background: rgba(245, 193, 91, 0.08);
}
.avito-view .market-kpi b { font-size: 22px; }
.avito-view .market-bar__fill { background: linear-gradient(90deg, #f5c15b, var(--accent)); }
.avito-flag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(245, 193, 91, 0.12);
  color: #f5c15b;
  font-size: 9px;
  vertical-align: 1px;
}
.avito-total td { font-weight: 650; color: var(--text); border-top: 1px solid var(--line-strong); }
@media (max-width: 640px) {
  #avitoView .market-table { font-size: 11px; }
  #avitoView .market-table th, #avitoView .market-table td { padding: 6px 5px; }
  #avitoView .market-table th:nth-child(3), #avitoView .market-table td:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  #avitoView .market-table th:nth-child(5), #avitoView .market-table td:nth-child(5) { display: none; }
}
.avito-view .market-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) {
  .avito-view .market-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.detail__kpis small { display: block; margin-top: 2px; font-size: 9px; color: var(--faint); line-height: 1.3; }
.country__sites .country__site-count {
  margin-left: auto;
  flex: none;
  color: var(--faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.country__sites .ext { margin-left: 0; }
.sa__cats-head--cols {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto auto;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.sa__cats-head--cols span:nth-child(2),
.sa__cats-head--cols span:nth-child(3) { text-align: right; }
.sa__cat { grid-template-columns: minmax(80px, 1fr) auto auto; gap: 10px; }
.sa__cat-listings { color: var(--muted); font-weight: 500; text-align: right; font-size: 10.5px; white-space: nowrap; }
.sa__cat-rev { color: var(--text); font-weight: 550; text-align: right; font-size: 10.5px; white-space: nowrap; }
.sa__summary {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-bottom: 1px solid rgba(126, 176, 236, 0.12);
}
.sa__summary-cell { padding: 10px 11px; min-width: 0; }
.sa__summary-cell + .sa__summary-cell { border-left: 1px solid rgba(126, 176, 236, 0.14); }
.sa__summary-cell span {
  display: block;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sa__summary-cell b {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.sa__summary-cell small { display: block; margin-top: 2px; color: var(--faint); font-size: 9px; }
.sa__cats-head--cols { grid-template-columns: minmax(76px, 1fr) 58px minmax(88px, auto); column-gap: 8px; }
.sa__cat { grid-template-columns: minmax(76px, 1fr) 58px minmax(88px, auto); column-gap: 8px; }
.sa__cats-head--cols span:nth-child(3),
.sa__cat-rev { border-left: 1px solid rgba(126, 176, 236, 0.14); padding-left: 9px; }
.map-grid-pulses { pointer-events: none; }
.map-grid-pulse {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  will-change: transform, opacity;
  mix-blend-mode: screen;
  animation: map-grid-pulse 7.2s ease-out infinite;
}
.map-grid-pulse:nth-child(2) { animation-delay: 2.4s; }
.map-grid-pulse:nth-child(3) { animation-delay: 4.8s; }
@keyframes map-grid-pulse {
  0% { transform: scale(0.08); opacity: 0; }
  12% { opacity: 0.65; }
  100% { transform: scale(1.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .map-grid-pulse { animation: none; opacity: 0; }
}
