:root {
  --pulse-bg: #03070d;
  --pulse-panel: rgba(7, 13, 21, .96);
  --pulse-line: rgba(148, 163, 184, .13);
  --pulse-line-strong: rgba(148, 163, 184, .25);
  --pulse-text: #f1f5f6;
  --pulse-muted: #99a5b2;
  --pulse-dim: #637180;
  --pulse-accent: #39dcb9;
  --pulse-accent-soft: rgba(57, 220, 185, .14);
  --pulse-potential: #66dfc4;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--pulse-bg);
}

body {
  overflow: hidden;
  color: var(--pulse-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .8125rem;
  letter-spacing: .005em;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--pulse-accent);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pulse-app {
  display: flex;
  width: 100%;
  height: 100dvh;
  min-height: 28rem;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 52% 46%, rgba(13, 49, 65, .12), transparent 48%),
    radial-gradient(circle at 85% 0, rgba(42, 30, 80, .08), transparent 27rem),
    var(--pulse-bg);
}

.pulse-toolbar {
  position: relative;
  z-index: 10;
  display: grid;
  min-height: 4.35rem;
  grid-template-columns: auto minmax(15rem, 25rem) 1fr auto;
  align-items: center;
  gap: 1.55rem;
  padding: .7rem 1.55rem;
  border-bottom: 1px solid rgba(148, 163, 184, .1);
  background: rgba(3, 7, 13, .84);
}

.pulse-brand {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  color: var(--pulse-text);
  font-size: 1.06rem;
  font-weight: 720;
  letter-spacing: -.045em;
  text-decoration: none;
}

.pulse-mark,
.pulse-live-dot {
  display: inline-block;
  border-radius: 50%;
  background: var(--pulse-accent);
}

.pulse-mark {
  width: .68rem;
  height: .68rem;
  box-shadow: 0 0 0 .23rem var(--pulse-accent-soft), 0 0 .9rem rgba(57, 220, 185, .4);
}

.pulse-search {
  display: flex;
  width: 100%;
  height: 2.45rem;
  align-items: center;
  gap: .6rem;
  padding: 0 .82rem;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 1.5rem;
  background: rgba(8, 14, 23, .67);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.pulse-search:focus-within {
  border-color: rgba(57, 220, 185, .72);
  box-shadow: 0 0 0 .18rem rgba(57, 220, 185, .08);
}

.pulse-search svg,
.pulse-filter-toggle svg {
  width: 1.08rem;
  height: 1.08rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--pulse-muted);
  stroke-linecap: round;
  stroke-width: 1.65;
}

.pulse-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pulse-text);
  font-size: .82rem;
}

.pulse-search input::placeholder {
  color: #758292;
}

.pulse-search input::-webkit-search-cancel-button {
  filter: invert(1) opacity(.55);
}

.pulse-toolbar-status {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: end;
  gap: .4rem;
  color: var(--pulse-muted);
  font-size: .75rem;
  white-space: nowrap;
}

.pulse-toolbar-status strong {
  color: var(--pulse-accent);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.pulse-live-dot {
  width: .36rem;
  height: .36rem;
  margin-left: .1rem;
  box-shadow: 0 0 0 .18rem rgba(57, 220, 185, .08);
}

.pulse-filter-toggle,
.pulse-filter-heading button,
.pulse-reset,
.pulse-detail-close {
  border: 0;
  background: transparent;
  color: var(--pulse-muted);
  cursor: pointer;
}

.pulse-filter-toggle {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, .17);
  border-radius: 50%;
}

.pulse-filter-toggle:hover,
.pulse-filter-toggle:focus-visible,
.pulse-filter-toggle[aria-expanded="true"] {
  border-color: rgba(57, 220, 185, .62);
  background: rgba(57, 220, 185, .07);
  outline: 0;
}

.pulse-filter-popover {
  position: absolute;
  top: 4.05rem;
  right: 1.55rem;
  display: grid;
  width: 17.5rem;
  gap: .82rem;
  padding: 1rem;
  border: 1px solid var(--pulse-line-strong);
  border-radius: .85rem;
  background: var(--pulse-panel);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .38);
}

.pulse-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--pulse-text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pulse-filter-heading button {
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.pulse-filter-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .25rem .6rem;
}

.pulse-filter-field span {
  grid-column: 1 / -1;
  color: var(--pulse-muted);
  font-size: .66rem;
}

.pulse-filter-field input {
  width: 100%;
  min-width: 0;
  padding: .45rem .5rem;
  border: 1px solid var(--pulse-line);
  border-radius: .45rem;
  outline: 0;
  background: rgba(255, 255, 255, .025);
  color: var(--pulse-text);
  font-variant-numeric: tabular-nums;
}

.pulse-filter-field input:focus {
  border-color: rgba(57, 220, 185, .65);
}

.pulse-filter-field b {
  color: var(--pulse-dim);
  font-size: .72rem;
  font-weight: 500;
}

.pulse-reset {
  justify-self: start;
  padding: .1rem 0;
  color: var(--pulse-accent);
  font-size: .72rem;
}

.pulse-reset:hover,
.pulse-reset:focus-visible,
.pulse-filter-heading button:hover,
.pulse-filter-heading button:focus-visible {
  color: var(--pulse-text);
  outline: 0;
}

.pulse-map-main,
.pulse-map-stage {
  min-height: 0;
}

.pulse-map-main {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.pulse-map-stage {
  position: relative;
  flex: 1 1 auto;
  isolation: isolate;
  overflow: hidden;
}

.pulse-map-stage::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 52% 48%, rgba(17, 61, 77, .12), transparent 46%),
    linear-gradient(90deg, transparent, rgba(43, 76, 96, .035) 50%, transparent);
  content: "";
  pointer-events: none;
}

.pulse-map-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  outline: 0;
  touch-action: none;
}

.pulse-map-svg:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(57, 220, 185, .52);
}

.swarm-guide-line {
  stroke: rgba(143, 170, 193, .105);
  stroke-dasharray: 2 7;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.swarm-guide-line.is-edge {
  stroke: rgba(143, 170, 193, .16);
}

.swarm-guide-tick {
  fill: rgba(171, 187, 204, .68);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
}

.swarm-guide-title {
  fill: rgba(143, 165, 184, .6);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.swarm-point {
  cursor: pointer;
  outline: 0;
}

.swarm-point-body {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .18s ease, filter .18s ease;
}

.swarm-point .swarm-fallback-logo {
  fill: var(--point-color, #66dfc4);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: -.04em;
  text-anchor: middle;
  dominant-baseline: central;
}

.swarm-point .swarm-logo {
  pointer-events: auto;
}

.swarm-point:hover .swarm-point-body,
.swarm-point:focus-visible .swarm-point-body,
.swarm-point.is-selected .swarm-point-body {
  filter: drop-shadow(0 5px 11px rgba(0, 0, 0, .5));
  transform: scale(1.12);
}

.swarm-point.is-pulse .swarm-logo,
.swarm-point.is-pulse .swarm-fallback-logo {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-logo 3.2s ease-in-out infinite;
}

@keyframes pulse-logo {
  0%,
  100% {
    opacity: .88;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--point-color, #66dfc4));
    transform: scale(1.06);
  }
}

.pulse-map-labels {
  position: absolute;
  right: 2.5rem;
  bottom: .72rem;
  left: 2.5rem;
  display: flex;
  justify-content: space-between;
  color: rgba(144, 159, 175, .62);
  font-size: .66rem;
  pointer-events: none;
}

.pulse-map-labels span:last-child {
  color: rgba(57, 220, 185, .72);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pulse-map-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(100%, 52rem);
  gap: .42rem;
  padding: 0 1rem;
  color: var(--pulse-muted);
  text-align: center;
  transform: translate(-50%, -50%);
}

.pulse-empty-visual {
  position: relative;
  display: grid;
  width: min(70vw, 64vh, 44rem);
  height: min(70vw, 64vh, 44rem);
  margin: 0 auto .15rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 25%, rgba(57, 220, 185, .065) 25.15%, transparent 25.45%),
    radial-gradient(circle at center, transparent 0 49%, rgba(111, 155, 174, .06) 49.15%, transparent 49.4%);
  place-items: center;
}

.pulse-empty-visual::before,
.pulse-empty-visual::after {
  position: absolute;
  inset: 8%;
  border: 1.5px solid rgba(57, 220, 185, .34);
  border-radius: 50%;
  content: "";
  animation: pulse-empty-radar 3.8s ease-out infinite;
}

.pulse-empty-visual::after {
  inset: 20%;
  border-color: rgba(111, 155, 174, .27);
  animation-delay: 1.9s;
}

.pulse-empty-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
  opacity: .2;
  filter: drop-shadow(0 1rem 2.5rem rgba(21, 129, 160, .24));
  animation: pulse-empty-logo 4.8s ease-in-out infinite;
}

.pulse-empty-scanner {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 30%;
  height: 24%;
  align-items: center;
  justify-content: center;
  gap: 4%;
}

.pulse-empty-scanner i {
  display: block;
  width: 4%;
  height: 38%;
  border-radius: .2rem;
  background: linear-gradient(180deg, rgba(57, 220, 185, .85), rgba(99, 127, 255, .75));
  box-shadow: 0 0 .7rem rgba(57, 220, 185, .22);
  animation: pulse-empty-bars 1.35s ease-in-out infinite;
}

.pulse-empty-scanner i:nth-child(2) { animation-delay: .1s; }
.pulse-empty-scanner i:nth-child(3) { animation-delay: .2s; }
.pulse-empty-scanner i:nth-child(4) { animation-delay: .3s; }
.pulse-empty-scanner i:nth-child(5) { animation-delay: .4s; }
.pulse-empty-scanner i:nth-child(6) { animation-delay: .5s; }

@keyframes pulse-empty-radar {
  0% {
    opacity: .86;
    transform: scale(.22);
  }

  100% {
    opacity: 0;
    transform: scale(2.45);
  }
}

@keyframes pulse-empty-logo {
  0%,
  100% {
    opacity: .16;
    transform: scale(.98);
  }

  50% {
    opacity: .25;
    transform: scale(1.02);
  }
}

@keyframes pulse-empty-bars {
  0%,
  100% {
    opacity: .42;
    transform: scaleY(.75);
  }

  50% {
    opacity: .95;
    transform: scaleY(2.1);
  }
}

.pulse-map-empty strong {
  color: var(--pulse-text);
  font-size: .88rem;
  font-weight: 580;
}

.pulse-map-empty > span:not(.pulse-empty-visual) {
  font-size: .76rem;
}

.pulse-detail-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(21.5rem, calc(100% - 2rem));
  max-height: calc(100% - 1.5rem);
  padding: 1.12rem 1.22rem 1.2rem;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: .85rem;
  background: rgba(7, 13, 21, .96);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .38);
}

.pulse-detail-close {
  position: absolute;
  top: .7rem;
  right: .78rem;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.pulse-detail-close:hover,
.pulse-detail-close:focus-visible {
  color: var(--pulse-text);
  outline: 0;
}

.pulse-detail-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-right: 1.5rem;
}

.pulse-detail-mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--pulse-accent);
  font-size: .68rem;
  font-weight: 760;
}

.pulse-detail-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pulse-detail-heading h2 {
  margin: 0;
  color: var(--pulse-text);
  font-size: 1.04rem;
  letter-spacing: -.025em;
}

.pulse-detail-symbol {
  display: block;
  margin-top: .14rem;
  color: var(--pulse-muted);
  font-size: .72rem;
}

.pulse-detail-potential-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin: 1.25rem 0 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--pulse-line);
}

.pulse-detail-potential-line span {
  color: var(--pulse-potential);
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -.06em;
}

.pulse-detail-potential-line small {
  color: var(--pulse-muted);
  font-size: .72rem;
}

.pulse-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem .95rem;
  margin: 0;
}

.pulse-detail-grid div {
  min-width: 0;
}

.pulse-detail-grid dt {
  margin-bottom: .23rem;
  color: var(--pulse-muted);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pulse-detail-grid dd {
  margin: 0;
  color: var(--pulse-text);
  font-size: .79rem;
  font-variant-numeric: tabular-nums;
}

.pulse-score-list {
  display: grid;
  gap: .9rem;
  margin-top: 1.05rem;
  padding-top: .92rem;
  border-top: 1px solid var(--pulse-line);
}

.pulse-score-row {
  --score-color: var(--pulse-accent);
}

.pulse-score-row > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .38rem;
}

.pulse-score-row span:first-child {
  color: var(--pulse-muted);
  font-size: .7rem;
}

.pulse-score-row strong {
  color: var(--score-color);
  font-size: .78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.pulse-score-track {
  display: block;
  height: .28rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .12);
}

.pulse-score-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--score-color);
  box-shadow: 0 0 .6rem color-mix(in srgb, var(--score-color), transparent 58%);
  transition: width .25s ease;
}

.pulse-noscript {
  position: absolute;
  inset: 5rem 1rem auto;
  padding: 1rem;
  border: 1px solid var(--pulse-line);
  background: var(--pulse-panel);
  text-align: center;
}

@media (max-width: 700px) {
  .pulse-app {
    min-height: 30rem;
  }

  .pulse-toolbar {
    min-height: 5.2rem;
    grid-template-columns: 1fr auto;
    gap: .55rem .8rem;
    padding: .62rem .8rem .66rem;
  }

  .pulse-brand {
    font-size: .98rem;
  }

  .pulse-toolbar-status {
    grid-column: 2;
    grid-row: 1;
    font-size: .65rem;
  }

  .pulse-toolbar-status .pulse-live-dot {
    display: none;
  }

  .pulse-toolbar-status strong {
    font-size: .92rem;
  }

  .pulse-search {
    grid-column: 1;
    grid-row: 2;
    height: 2.12rem;
  }

  .pulse-filter-toggle {
    grid-column: 2;
    grid-row: 2;
    width: 2.12rem;
    height: 2.12rem;
  }

  .pulse-filter-popover {
    top: 4.6rem;
    right: .8rem;
    left: .8rem;
    width: auto;
  }

  .pulse-map-labels {
    right: .9rem;
    bottom: .6rem;
    left: .9rem;
    font-size: .57rem;
  }

  .pulse-detail-panel {
    width: min(21.5rem, calc(100% - 1.3rem));
    right: auto;
    bottom: auto;
    left: 0;
    transform: none;
  }

  .swarm-guide-tick {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .pulse-empty-logo,
  .pulse-empty-visual::before,
  .pulse-empty-visual::after,
  .pulse-empty-scanner i {
    animation: none !important;
  }

  .pulse-empty-logo {
    opacity: .2;
  }

  .pulse-empty-scanner i {
    opacity: .68;
    transform: none;
  }
}
