.directory-page .page-wrap {
  padding-bottom: 1.5rem;
}

.directory-shell {
  display: grid;
  gap: 0.85rem;
}

.directory-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem;
  background:
    linear-gradient(125deg, rgba(9, 18, 30, 0.94), rgba(17, 36, 52, 0.82)),
    radial-gradient(circle at 85% 12%, rgba(62, 232, 181, 0.25), transparent 35%);
}

.directory-hero::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -82px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(126, 214, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(126, 214, 255, 0.035), 0 0 0 72px rgba(62, 232, 181, 0.025);
  pointer-events: none;
}

.directory-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.42rem;
  color: var(--accent);
  font: 800 0.66rem/1 "Sora", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.directory-title {
  margin: 0;
  font: 800 clamp(1.55rem, 4vw, 2.45rem)/1.05 "Sora", sans-serif;
}

.directory-lede {
  max-width: 680px;
  margin: 0.62rem 0 0;
  color: var(--ink-1);
  font-size: 0.92rem;
  line-height: 1.55;
}

.directory-freshness {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(62, 232, 181, 0.28);
  border-radius: 999px;
  background: rgba(6, 20, 25, 0.76);
  color: var(--ink-1);
  font-size: 0.72rem;
}

.directory-freshness .live-dot {
  width: 8px;
  height: 8px;
  flex-basis: 8px;
}

.directory-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.directory-page[data-directory="providers"] .directory-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.directory-page[data-directory="validators"] .directory-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.directory-metrics .metric-card {
  min-height: 78px;
}

.catalog-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(9, 17, 29, 0.78);
}

.program-type-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 460px);
  gap: 0.35rem;
  margin-bottom: 0.7rem;
  padding: 0.3rem;
  border: 1px solid rgba(126, 214, 255, 0.16);
  border-radius: 13px;
  background: rgba(4, 11, 20, 0.52);
}

.program-type-option {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.5rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink-1);
  background: transparent;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.program-type-option span {
  font: 800 0.8rem "Sora", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.program-type-option small {
  color: inherit;
  font-size: 0.68rem;
  opacity: 0.72;
}

.program-type-option:hover {
  color: var(--ink-0);
  background: rgba(126, 214, 255, 0.06);
}

.program-type-option.active {
  border-color: rgba(62, 232, 181, 0.38);
  color: var(--accent);
  background: linear-gradient(120deg, rgba(62, 232, 181, 0.14), rgba(126, 214, 255, 0.08));
  box-shadow: inset 0 0 18px rgba(62, 232, 181, 0.035);
}

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

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.catalog-search,
.catalog-select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-0);
  background: rgba(18, 30, 48, 0.72);
  font: 700 0.8rem "Space Grotesk", sans-serif;
  outline: none;
}

.catalog-search {
  width: 100%;
  padding: 0.55rem 0.75rem;
}

.catalog-select {
  padding: 0.5rem 2rem 0.5rem 0.7rem;
}

.catalog-search:focus,
.catalog-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(62, 232, 181, 0.1);
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0 0 0.55rem;
  color: var(--ink-1);
  font-size: 0.74rem;
}

.catalog-list {
  overflow: hidden;
  border: 1px solid rgba(126, 214, 255, 0.16);
  border-radius: 13px;
  background: rgba(5, 12, 22, 0.55);
}

.program-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) 0.65fr 1fr 0.8fr 0.78fr 0.9fr;
  gap: 0.65rem;
  align-items: center;
  min-height: 70px;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(126, 214, 255, 0.1);
}

.program-row:last-child {
  border-bottom: 0;
}

.program-row:hover {
  background: rgba(126, 214, 255, 0.045);
}

.program-row.catalog-head {
  min-height: 38px;
  color: var(--ink-1);
  background: rgba(126, 214, 255, 0.08);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.program-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.65rem;
}

.program-avatar,
.provider-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid hsla(var(--hue), 75%, 68%, 0.42);
  border-radius: 11px;
  color: hsl(var(--hue), 82%, 72%);
  background: hsla(var(--hue), 58%, 44%, 0.14);
  font: 800 0.78rem "Sora", sans-serif;
  text-decoration: none;
}

.program-avatar {
  overflow: hidden;
  padding: 4px;
}

.provider-avatar {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  overflow: hidden;
  padding: 4px;
}

.program-visual,
.program-symbol,
.provider-visual,
.provider-symbol {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.program-visual,
.provider-visual {
  position: relative;
}

.program-logo,
.provider-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: contain;
}

.program-logo + .program-symbol,
.provider-logo + .provider-symbol {
  display: none;
}

.program-logo[hidden],
.provider-logo[hidden] {
  display: none;
}

.program-logo[hidden] + .program-symbol,
.provider-logo[hidden] + .provider-symbol {
  display: grid;
}

.program-symbol,
.provider-symbol {
  border: 1px solid hsla(var(--hue), 78%, 70%, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, hsla(var(--hue), 72%, 52%, 0.2), rgba(3, 10, 19, 0.18));
  font: 800 0.68rem "Sora", sans-serif;
  letter-spacing: -0.02em;
}

.provider-avatar:hover {
  border-color: hsla(var(--hue), 82%, 74%, 0.72);
  background: hsla(var(--hue), 64%, 48%, 0.23);
}

.program-name,
.provider-name {
  overflow: hidden;
  color: var(--ink-0);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-name-link {
  text-decoration: none;
}

.provider-name-link:hover {
  color: var(--accent-2);
}

.program-address {
  display: inline-block;
  margin-top: 0.18rem;
  color: var(--accent-2);
  font: 700 0.68rem ui-monospace, SFMono-Regular, Menlo, monospace;
  text-decoration: none;
}

.program-address:hover {
  color: var(--accent);
}

.category-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.24rem 0.48rem;
  border: 1px solid rgba(126, 214, 255, 0.2);
  border-radius: 999px;
  color: var(--ink-1);
  background: rgba(126, 214, 255, 0.06);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: capitalize;
}

.category-pill.amm {
  border-color: rgba(62, 232, 181, 0.32);
  color: var(--accent);
  background: rgba(62, 232, 181, 0.08);
  text-transform: uppercase;
}

.category-pill.router {
  border-color: rgba(126, 214, 255, 0.32);
  color: var(--accent-2);
  background: rgba(126, 214, 255, 0.08);
}

.status-pill.active,
.status-pill.upgradeable {
  border-color: rgba(62, 232, 181, 0.34);
  color: var(--good);
  background: rgba(62, 232, 181, 0.08);
}

.status-pill.recent {
  color: var(--accent-2);
}

.status-pill.quiet,
.status-pill.immutable {
  color: #e8c986;
  border-color: rgba(232, 201, 134, 0.24);
  background: rgba(232, 201, 134, 0.06);
}

.catalog-value {
  min-width: 0;
  color: var(--ink-0);
  font-size: 0.78rem;
  font-weight: 700;
}

.catalog-value small {
  display: block;
  overflow: hidden;
  margin-top: 0.14rem;
  color: var(--ink-1);
  font-size: 0.66rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.provider-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 202px;
  border: 1px solid rgba(126, 214, 255, 0.18);
  border-radius: 15px;
  padding: 0.8rem;
  background: linear-gradient(145deg, rgba(17, 30, 48, 0.82), rgba(7, 14, 25, 0.88));
}

.provider-card::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -28px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: hsla(var(--hue), 70%, 55%, 0.07);
  pointer-events: none;
}

.provider-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.65rem;
}

.provider-rank {
  min-width: 1.75rem;
  color: var(--ink-1);
  font: 800 0.67rem "Sora", sans-serif;
  text-align: right;
}

.provider-card-head .status-pill {
  flex: 0 0 auto;
  margin-left: auto;
}

.provider-card-head .provider-name {
  flex: 1 1 auto;
  min-width: 0;
}

.provider-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.provider-stat {
  padding: 0.46rem 0.5rem;
  border: 1px solid rgba(126, 214, 255, 0.1);
  border-radius: 10px;
  background: rgba(2, 9, 17, 0.32);
}

.provider-stat span {
  display: block;
  color: var(--ink-1);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.provider-stat strong {
  display: block;
  overflow: hidden;
  margin-top: 0.14rem;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-track {
  height: 4px;
  margin-top: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.share-fill {
  height: 100%;
  width: var(--share);
  border-radius: inherit;
  background: linear-gradient(90deg, hsl(var(--hue), 76%, 60%), var(--accent));
}

.provider-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
  color: var(--ink-1);
  font-size: 0.67rem;
}

.empty-state {
  padding: 2.5rem 1rem;
  color: var(--ink-1);
  text-align: center;
}

.validator-hero {
  background:
    linear-gradient(125deg, rgba(7, 18, 27, 0.96), rgba(14, 39, 48, 0.84)),
    radial-gradient(circle at 84% 18%, rgba(255, 190, 92, 0.2), transparent 34%);
}

.leader-live-panel {
  position: relative;
  overflow: hidden;
  padding: 0.9rem;
  border: 1px solid rgba(126, 214, 255, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 2%, rgba(62, 232, 181, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(5, 14, 25, 0.96), rgba(9, 25, 35, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.leader-live-panel::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -95px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(62, 232, 181, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(126, 214, 255, 0.018), 0 0 0 88px rgba(62, 232, 181, 0.012);
  pointer-events: none;
}

.leader-live-head,
.leader-live-grid,
.leader-live-note {
  position: relative;
  z-index: 1;
}

.leader-live-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.72rem;
  padding: 0 0.15rem;
}

.leader-live-head h2 {
  margin: 0;
  font: 800 clamp(1.05rem, 2.4vw, 1.35rem)/1.15 "Sora", sans-serif;
  letter-spacing: -0.025em;
}

.leader-live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 30px;
  padding: 0.34rem 0.58rem;
  border: 1px solid rgba(126, 214, 255, 0.23);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(126, 214, 255, 0.06);
  font: 800 0.64rem "Sora", sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.leader-live-status[data-state="live"] {
  border-color: rgba(62, 232, 181, 0.34);
  color: var(--accent);
  background: rgba(62, 232, 181, 0.07);
}

.leader-live-status[data-state="stale"],
.leader-live-status[data-state="error"] {
  border-color: rgba(255, 190, 92, 0.3);
  color: #ffcd7a;
  background: rgba(255, 190, 92, 0.07);
}

.leader-status-pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: leader-status-pulse 1.8s ease-out infinite;
}

.leader-live-status[data-state="loading"] .leader-status-pulse,
.leader-live-status[data-state="error"] .leader-status-pulse {
  animation: none;
}

.leader-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 0.72rem;
}

.leader-map-shell {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid rgba(126, 214, 255, 0.15);
  border-radius: 15px;
  background: #071522;
}

.leader-world-map {
  display: block;
  width: 100%;
  height: auto;
  min-height: 350px;
  max-height: 410px;
}

.leader-ocean {
  fill: url(#leader-ocean-gradient);
}

.leader-graticule {
  fill: none;
  stroke: rgba(126, 214, 255, 0.08);
  stroke-width: 1;
}

.leader-land-image {
  opacity: 0.9;
}

.leader-region-labels text {
  fill: rgba(181, 222, 225, 0.44);
  font: 800 11px "Sora", sans-serif;
  letter-spacing: 0.16em;
  text-anchor: middle;
}

.leader-hub-labels circle {
  fill: rgba(126, 214, 255, 0.75);
}

.leader-hub-labels text {
  fill: rgba(206, 235, 241, 0.72);
  font: 700 8px "Space Grotesk", sans-serif;
  paint-order: stroke;
  stroke: rgba(4, 15, 23, 0.9);
  stroke-width: 2.5px;
}

.leader-marker-halo {
  fill: rgba(62, 232, 181, 0.18);
  stroke: rgba(62, 232, 181, 0.72);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: leader-marker-pulse 1.6s ease-out infinite;
}

.leader-marker-core {
  fill: #102b2b;
  stroke: var(--accent);
  stroke-width: 2.6;
  filter: url(#leader-marker-glow);
}

.leader-marker-fallback {
  fill: #dffff3;
  font: 800 8px "Sora", sans-serif;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.leader-map-logo {
  pointer-events: none;
}

.leader-map-logo[hidden] {
  display: none;
}

.leader-marker-caption rect {
  fill: rgba(3, 14, 22, 0.9);
  stroke: rgba(62, 232, 181, 0.35);
  stroke-width: 1;
}

.leader-marker-name,
.leader-marker-place {
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(3, 14, 22, 0.96);
  stroke-width: 2px;
}

.leader-marker-name {
  fill: #effffc;
  font: 800 9px "Sora", sans-serif;
}

.leader-marker-place {
  fill: var(--accent);
  font: 700 8px "Space Grotesk", sans-serif;
}

.leader-map-caption {
  position: absolute;
  right: 0.62rem;
  bottom: 0.62rem;
  left: 0.62rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.48rem;
  border: 1px solid rgba(126, 214, 255, 0.14);
  border-radius: 11px;
  background: rgba(3, 12, 20, 0.82);
  backdrop-filter: blur(10px);
}

.leader-map-caption span {
  min-width: 0;
  padding: 0 0.4rem;
  border-right: 1px solid rgba(126, 214, 255, 0.12);
}

.leader-map-caption span:last-child {
  border-right: 0;
}

.leader-map-caption strong,
.leader-map-caption small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-map-caption strong {
  color: var(--ink-0);
  font: 800 0.68rem "Sora", sans-serif;
}

.leader-map-caption small {
  margin-top: 0.12rem;
  color: var(--ink-1);
  font-size: 0.58rem;
}

.leader-map-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(80%, 360px);
  padding: 0.7rem;
  border: 1px solid rgba(126, 214, 255, 0.17);
  border-radius: 11px;
  color: var(--ink-1);
  background: rgba(4, 13, 22, 0.86);
  font-size: 0.74rem;
  text-align: center;
  transform: translate(-50%, -50%);
}

.leader-map-empty[hidden] {
  display: none;
}

.leader-turn-rail {
  display: grid;
  align-content: stretch;
  gap: 0.42rem;
}

.leader-turn {
  position: relative;
  display: grid;
  grid-template-columns: 29px 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.52rem;
  min-height: 60px;
  padding: 0.5rem 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(126, 214, 255, 0.13);
  border-radius: 12px;
  background: rgba(8, 21, 32, 0.72);
}

.leader-turn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: rgba(126, 214, 255, 0.35);
}

.leader-turn.current {
  border-color: rgba(62, 232, 181, 0.3);
  background: linear-gradient(110deg, rgba(62, 232, 181, 0.1), rgba(8, 21, 32, 0.78));
  box-shadow: inset 0 0 22px rgba(62, 232, 181, 0.025);
}

.leader-turn.current::before {
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(62, 232, 181, 0.55);
}

.leader-turn-order {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(126, 214, 255, 0.2);
  border-radius: 50%;
  color: var(--accent-2);
  background: rgba(126, 214, 255, 0.06);
  font: 800 0.62rem "Sora", sans-serif;
}

.leader-turn.current .leader-turn-order {
  border-color: rgba(62, 232, 181, 0.38);
  color: var(--accent);
  background: rgba(62, 232, 181, 0.09);
  font-size: 0.52rem;
}

.leader-turn-avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 10px;
}

.leader-turn-copy {
  min-width: 0;
}

.leader-turn-name,
.leader-turn-location,
.leader-turn-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-turn-name {
  display: block;
  color: var(--ink-0);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.leader-turn-name:hover {
  color: var(--accent);
}

.leader-turn-location {
  margin-top: 0.1rem;
  color: var(--accent-2);
  font-size: 0.62rem;
  font-weight: 700;
}

.leader-turn-meta {
  margin-top: 0.08rem;
  color: var(--ink-1);
  font-size: 0.56rem;
}

.leader-turn-clock {
  min-width: 68px;
  color: var(--ink-1);
  font-size: 0.57rem;
  text-align: right;
}

.leader-turn-clock strong {
  display: block;
  color: var(--ink-0);
  font: 800 0.67rem "Sora", sans-serif;
}

.leader-turn.current .leader-turn-clock strong {
  color: var(--accent);
}

.leader-turn-skeleton {
  min-height: 60px;
  overflow: hidden;
  border: 1px solid rgba(126, 214, 255, 0.1);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(126, 214, 255, 0.035) 25%, rgba(126, 214, 255, 0.08) 42%, rgba(126, 214, 255, 0.035) 60%);
  background-size: 240% 100%;
  animation: leader-skeleton 1.5s linear infinite;
}

.leader-live-note {
  margin: 0.55rem 0.12rem 0;
  color: var(--ink-1);
  font-size: 0.62rem;
  line-height: 1.45;
}

@keyframes leader-status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 232, 181, 0.45); }
  75%, 100% { box-shadow: 0 0 0 7px rgba(62, 232, 181, 0); }
}

@keyframes leader-marker-pulse {
  0% { opacity: 0.85; transform: scale(0.82); }
  75%, 100% { opacity: 0; transform: scale(1.75); }
}

@keyframes leader-skeleton {
  to { background-position: -240% 0; }
}

.validator-toolbar {
  grid-template-columns: minmax(250px, 1fr) auto auto auto;
}

.validator-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.65fr) 0.62fr 0.9fr 0.7fr 0.95fr 1fr 0.9fr;
  gap: 0.65rem;
  align-items: center;
  min-height: 76px;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(126, 214, 255, 0.1);
}

.validator-row:last-child {
  border-bottom: 0;
}

.validator-row:hover {
  background: rgba(126, 214, 255, 0.045);
}

.validator-row.catalog-head {
  min-height: 38px;
  color: var(--ink-1);
  background: rgba(126, 214, 255, 0.08);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.validator-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.55rem;
}

.validator-rank {
  width: 2.2rem;
  flex: 0 0 2.2rem;
  color: var(--ink-1);
  font: 800 0.65rem "Sora", sans-serif;
  text-align: right;
}

.validator-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  padding: 4px;
  border: 1px solid hsla(var(--hue), 75%, 68%, 0.42);
  border-radius: 12px;
  color: hsl(var(--hue), 82%, 72%);
  background: hsla(var(--hue), 58%, 44%, 0.14);
}

.validator-visual,
.validator-symbol {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.validator-visual {
  position: relative;
}

.validator-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.validator-logo + .validator-symbol {
  display: none;
}

.validator-logo[hidden] {
  display: none;
}

.validator-logo[hidden] + .validator-symbol {
  display: grid;
}

.validator-symbol {
  border: 1px solid hsla(var(--hue), 78%, 70%, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, hsla(var(--hue), 72%, 52%, 0.2), rgba(3, 10, 19, 0.18));
  font: 800 0.67rem "Sora", sans-serif;
}

.validator-copy {
  min-width: 0;
}

.validator-name-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.28rem;
}

.validator-name {
  overflow: hidden;
  color: var(--ink-0);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.validator-name:hover {
  color: var(--accent-2);
}

.validator-address,
.validator-vote {
  display: inline-block;
  overflow: hidden;
  max-width: 100%;
  color: var(--accent-2);
  font: 700 0.62rem ui-monospace, SFMono-Regular, Menlo, monospace;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.validator-vote {
  display: block;
  margin-top: 0.08rem;
  color: var(--ink-1);
  font-size: 0.58rem;
}

.validator-address:hover,
.validator-vote:hover {
  color: var(--accent);
}

.validator-badge,
.client-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.17rem 0.38rem;
  border: 1px solid rgba(126, 214, 255, 0.22);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(126, 214, 255, 0.07);
  font-size: 0.58rem;
  font-weight: 800;
  white-space: nowrap;
}

.validator-badge.jito {
  border-color: rgba(255, 190, 92, 0.34);
  color: #ffcd7a;
  background: rgba(255, 190, 92, 0.08);
}

.validator-badge.doublezero {
  border-color: rgba(62, 232, 181, 0.34);
  color: var(--accent);
  background: rgba(62, 232, 181, 0.08);
}

.status-pill.current {
  border-color: rgba(62, 232, 181, 0.34);
  color: var(--good);
  background: rgba(62, 232, 181, 0.08);
}

.status-pill.delinquent {
  border-color: rgba(255, 112, 112, 0.34);
  color: #ff9292;
  background: rgba(255, 112, 112, 0.08);
}

.validator-row .catalog-value.good {
  color: var(--good);
}

.validator-row .catalog-value.bad {
  color: #ff9292;
}

.validator-load-more {
  display: block;
  min-height: 40px;
  margin: 0.75rem auto 0;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(62, 232, 181, 0.3);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(62, 232, 181, 0.07);
  cursor: pointer;
  font: 800 0.72rem "Sora", sans-serif;
}

.validator-load-more:hover {
  background: rgba(62, 232, 181, 0.13);
}

.validator-note {
  margin: 0.72rem 0 0;
  color: var(--ink-1);
  font-size: 0.67rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .directory-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directory-page[data-directory="providers"] .directory-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directory-page[data-directory="validators"] .directory-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .program-row { grid-template-columns: minmax(220px, 1.3fr) 0.7fr 1fr 0.8fr; }
  .program-row > :nth-child(5),
  .program-row > :nth-child(6) { display: none; }
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .validator-toolbar { grid-template-columns: 1fr 1fr; }
  .validator-toolbar .catalog-search { grid-column: 1 / -1; }
  .validator-row { grid-template-columns: minmax(240px, 1.4fr) 0.65fr 0.9fr 0.85fr 1fr; }
  .validator-row > :nth-child(4),
  .validator-row > :nth-child(7) { display: none; }
  .leader-live-grid { grid-template-columns: 1fr; }
  .leader-turn-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .directory-page .site-header { align-items: flex-start; }
  .directory-page .top-links { justify-content: flex-end; }
  .directory-hero { padding: 1rem; padding-bottom: 3.35rem; }
  .directory-freshness { left: 1rem; right: auto; }
  .directory-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-page[data-directory="providers"] .directory-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-page[data-directory="validators"] .directory-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  .catalog-search { grid-column: 1 / -1; }
  .catalog-select { width: 100%; }
  .catalog-meta { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  .program-row.catalog-head { display: none; }
  .program-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.72rem;
  }
  .program-row > :nth-child(5),
  .program-row > :nth-child(6) { display: block; }
  .program-identity { grid-column: 1 / -1; }
  .catalog-value { padding-top: 0.2rem; }
  .catalog-value::before {
    content: attr(data-mobile-label);
    display: block;
    margin-bottom: 0.13rem;
    color: var(--ink-1);
    font-size: 0.59rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .provider-grid { grid-template-columns: 1fr; }
  .validator-row.catalog-head { display: none; }
  .validator-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.72rem;
  }
  .validator-row > :nth-child(4),
  .validator-row > :nth-child(7) { display: block; }
  .validator-identity { grid-column: 1 / -1; }
  .leader-map-shell { min-height: 345px; }
  .leader-world-map { min-height: 300px; }
  .leader-live-head { align-items: flex-start; flex-direction: column; gap: 0.55rem; }
  .leader-turn-rail { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .directory-metrics { grid-template-columns: 1fr 1fr; }
  .directory-metrics .metric-card { padding: 0.65rem; }
  .catalog-panel { padding: 0.65rem; }
  .program-row { grid-template-columns: 1fr; }
  .program-identity { grid-column: 1; }
  .directory-title { font-size: 1.45rem; }
  .program-type-option { align-items: center; flex-direction: column; gap: 0.1rem; }
  .provider-card-head { gap: 0.45rem; }
  .provider-rank { min-width: 1.45rem; }
  .validator-toolbar { grid-template-columns: 1fr; }
  .validator-toolbar .catalog-search { grid-column: 1; }
  .validator-row { grid-template-columns: 1fr; }
  .validator-identity { grid-column: 1; }
  .validator-rank { width: 1.8rem; flex-basis: 1.8rem; }
  .leader-live-panel { padding: 0.65rem; }
  .leader-map-shell { min-height: 300px; }
  .leader-world-map { min-height: 245px; }
  .leader-map-caption { right: 0.4rem; bottom: 0.4rem; left: 0.4rem; }
  .leader-map-caption span { padding: 0 0.22rem; }
  .leader-map-caption strong { font-size: 0.58rem; }
  .leader-map-caption small { font-size: 0.5rem; }
  .leader-turn { grid-template-columns: 27px 36px minmax(0, 1fr) auto; gap: 0.4rem; }
  .leader-turn-clock { min-width: 57px; }
}
