/* Design tokens */
:root {
  color-scheme: dark;
  --bg: #04070b;
  --panel: #0d121a;
  --panel-deep: #070b11;
  --line: rgba(199, 218, 236, 0.12);
  --line-strong: rgba(209, 228, 246, 0.24);
  --text: #dfe8f2;
  --muted: #98a6b9;
  --muted-2: #718095;
  --cyan: #5ed7ff;
  --blue: #3fa8f5;
  --green: #40ca7b;
  --gold: #d6ad58;
  --red: #e05260;
  --surface-soft: rgba(255, 255, 255, 0.028);
  --surface-raised: rgba(255, 255, 255, 0.052);
  --surface-selected: rgba(255, 255, 255, 0.085);
  --surface-glass: linear-gradient(180deg, rgba(19, 27, 38, 0.94), rgba(7, 11, 17, 0.985));
  --surface-card: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016));
  --table-shell: linear-gradient(180deg, rgba(10, 15, 23, 0.82), rgba(5, 8, 13, 0.92));
  --table-header: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  --table-row: rgba(255, 255, 255, 0.0035);
  --table-row-hover: rgba(255, 255, 255, 0.017);
  --table-line: rgba(217, 231, 246, 0.072);
  --table-line-strong: rgba(217, 231, 246, 0.12);
  --chip-surface: rgba(154, 166, 184, 0.09);
  --divider: rgba(212, 228, 244, 0.075);
  --shadow-panel: 0 24px 58px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --shadow-control: 0 10px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-card: 0 8px 18px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.026);
  --label-size: 11px;
  --caption-size: 12px;
  --body-size: 13px;
  --module-heading-size: 13px;
  --round-heading-size: 14px;
  --numeric-size: 16px;
  --control-size: 44px;
  --icon-panel-size: 34px;
  --icon-control-size: 26px;
  --rhythm-card-gap: 12px;
  --rhythm-module-gap: 14px;
  --rhythm-panel-gap: 20px;
  --rhythm-panel-pad: 22px;
  --rhythm-panel-pad-sm: 18px;
  --rhythm-card-pad: 14px;
  --rhythm-mobile-pad: 14px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-panel: var(--radius-md);
  --radius-shell: var(--radius-md);
  --radius-cockpit: var(--radius-md);
  --focus-outline: 2px solid rgba(94, 215, 255, 0.5);
  --transition-control: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* Base layout */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 18%, rgba(69, 171, 225, 0.042), transparent 27%),
    radial-gradient(circle at 50% 34%, rgba(64, 202, 123, 0.018), transparent 31%),
    radial-gradient(circle at 17% 27%, rgba(214, 173, 88, 0.012), transparent 23%),
    radial-gradient(circle at 82% 31%, rgba(94, 215, 255, 0.014), transparent 25%),
    linear-gradient(180deg, #05080d 0%, #030509 56%, #06080c 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "tnum" 1, "ss01" 1;
}

button {
  font: inherit;
}

.app-shell {
  width: min(1510px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 30px;
}

.site-version {
  margin-top: 22px;
  color: rgba(171, 196, 217, 0.46);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.titlebar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 66px;
  padding: 0 0 13px;
  text-align: center;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  display: grid;
  justify-items: center;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 27px;
  line-height: 1.08;
  font-weight: 800;
  text-shadow:
    0 0 8px rgba(130, 216, 255, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.16);
}

h1::after {
  content: "";
  display: block;
  width: 232px;
  height: 16px;
  margin-top: 8px;
  background:
    linear-gradient(90deg, transparent, rgba(216, 168, 75, 0.72), transparent) left 20px center / 82px 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(216, 168, 75, 0.72), transparent) right 20px center / 82px 1px no-repeat,
    radial-gradient(circle, rgba(244, 216, 138, 0.95) 0 2.7px, rgba(200, 145, 54, 0.44) 3.2px, transparent 3.8px) center / 10px 10px no-repeat;
  filter: drop-shadow(0 0 3px rgba(220, 172, 79, 0.09));
}

.header-updated,
.runtime-status {
  position: absolute;
  top: 0;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  white-space: nowrap;
}

.header-updated {
  right: 0;
  gap: 7px;
  min-height: 32px;
  border: 1px solid rgba(168, 205, 231, 0.17);
  background: var(--surface-glass);
  box-shadow: var(--shadow-control);
  color: rgba(198, 209, 224, 0.78);
  font-family: var(--font-sans);
}

.runtime-status {
  left: 0;
  gap: 8px;
  min-height: 34px;
  max-width: 240px;
  border: 1px solid rgba(168, 205, 231, 0.17);
  background: var(--surface-glass);
  box-shadow: var(--shadow-control);
  color: var(--muted);
}

.runtime-status[hidden] {
  display: none;
}

.runtime-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 3px rgba(111, 123, 140, 0.12);
}

.header-updated > span,
.runtime-status strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.header-updated > span {
  color: rgba(198, 209, 224, 0.82);
  font-weight: 560;
}

.updated-refresh {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  overflow: visible;
  fill: none;
  stroke: rgba(182, 213, 235, 0.68);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#runtimeFreshness {
  overflow: hidden;
  text-overflow: ellipsis;
}

.runtime-status.is-ok .runtime-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(50, 175, 104, 0.14);
}

.runtime-status.is-warn .runtime-dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(202, 168, 92, 0.14);
}

.runtime-status.is-bad .runtime-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 63, 77, 0.16);
}

.header-updated strong,
#runtimeFreshness {
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

/* Dashboard shell */
.top-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(356px, 410px) minmax(350px, 1fr) minmax(356px, 410px);
  column-gap: 0;
  align-items: center;
  justify-items: stretch;
  isolation: isolate;
  min-height: 420px;
  margin-top: 4px;
  padding: 16px clamp(18px, 1.7vw, 24px);
  border: 1px solid rgba(171, 204, 229, 0.18);
  border-radius: var(--radius-cockpit);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.028)),
    linear-gradient(180deg, rgba(20, 28, 39, 0.96) 0%, rgba(7, 11, 17, 0.99) 48%, rgba(5, 8, 13, 0.98) 100%);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72);
}

.top-grid::before,
.top-grid::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.top-grid > * {
  position: relative;
  z-index: 1;
}

.top-grid::before {
  display: none;
}

.top-grid::after {
  display: none;
}

.clock-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-column: 2;
  width: min(100%, 382px);
  max-width: 100%;
  place-items: center;
  justify-self: center;
  min-height: 368px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.clock-stage::before {
  display: none;
}

.clock-stage::after {
  display: none;
}

#clockSvg {
  width: min(100%, 360px);
  max-width: 100%;
  aspect-ratio: 1;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.26));
}

.info-panel,
.round-panel,
.recent-round-panel,
.network-card,
.network-message-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: var(--radius-md);
}

.info-panel,
.round-panel,
.recent-round-panel {
  border: 1px solid var(--line);
  background: var(--surface-glass);
  box-shadow: var(--shadow-panel);
}

.info-panel {
  padding: var(--rhythm-panel-pad);
  border-color: rgba(170, 205, 230, 0.15);
  background:
    radial-gradient(circle at 0 0, rgba(214, 173, 88, 0.01), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(63, 168, 245, 0.014), transparent 34%),
    var(--surface-glass);
}

.top-grid > .info-panel {
  border-color: transparent;
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 0 0 1px rgba(171, 204, 229, 0.075);
}

.info-panel::before,
.network-message-card::before,
.round-panel::before,
.recent-round-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.info-panel::before {
  background:
    linear-gradient(90deg, var(--panel-glow, rgba(47, 147, 220, 0.12)), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), transparent 24%);
  border-radius: inherit;
  opacity: 0.08;
}

.top-grid > .info-panel::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.16));
  opacity: 1;
}

.election-time-card,
.chain-tab,
.recent-round-empty,
.round-stat {
  border-radius: var(--radius-md);
}

.election-panel,
.network-panel {
  position: relative;
  top: auto;
  width: 100%;
  height: 386px;
  align-self: center;
  transform: none;
  overflow: hidden;
}

.election-panel::after,
.network-panel::after {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  z-index: 1;
  display: block;
  width: 1px;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(171, 204, 229, 0.18) 20%, rgba(171, 204, 229, 0.12) 50%, transparent);
  opacity: 0.72;
}

.election-panel {
  grid-column: 1;
  min-height: 0;
  padding: 18px;
  --panel-glow: rgba(202, 168, 92, 0.055);
}

.election-panel::after {
  right: 0;
  box-shadow: -12px 0 20px rgba(0, 0, 0, 0.18);
}

.network-panel {
  grid-column: 3;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(78px, auto);
  gap: var(--rhythm-card-gap);
  padding: 18px;
  --network-accent: rgba(47, 147, 220, 0.82);
  --network-accent-soft: rgba(47, 147, 220, 0.032);
  --network-accent-line: rgba(47, 147, 220, 0.085);
  --panel-glow: var(--network-accent-line);
}

.network-panel::after {
  left: 0;
  box-shadow: 12px 0 20px rgba(0, 0, 0, 0.18);
}

.network-panel::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), transparent 24%);
  opacity: 1;
}

.network-card,
.network-message-card {
  border: 1px solid rgba(170, 205, 230, 0.12);
  background:
    radial-gradient(circle at 78% 48%, rgba(154, 196, 224, 0.026), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.038),
    0 8px 18px rgba(0, 0, 0, 0.1);
}

.network-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--rhythm-card-gap);
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.network-message-card {
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 12px 18px;
  border-color: rgba(170, 205, 230, 0.17);
}

.network-message-card::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 24%);
  opacity: 0.1;
}

.network-message-card p {
  position: relative;
  max-width: 350px;
  margin: 0;
  color: rgba(232, 240, 248, 0.94);
  font-size: 13px;
  font-weight: 660;
  line-height: 1.44;
  opacity: 0;
  text-align: center;
  transform: translateY(4px);
  transition:
    opacity 1.8s ease,
    transform 1.8s ease;
  will-change: opacity, transform;
}

.network-message-card p.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.network-message-card p.is-exiting {
  opacity: 0;
  transform: translateY(-5px);
}

.network-panel .chain-tabs {
  margin-bottom: 0;
}

.network-card h2 {
  margin-bottom: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: var(--module-heading-size);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.info-panel h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: rgba(220, 231, 242, 0.84);
}

.panel-avatar,
.panel-title-icon,
.recent-title-icon,
.round-title-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.panel-avatar {
  width: var(--icon-panel-size);
  height: var(--icon-panel-size);
  flex: 0 0 var(--icon-panel-size);
}

.panel-avatar svg {
  display: block;
  overflow: visible;
}

.panel-title-icon {
  width: var(--icon-panel-size);
  height: var(--icon-panel-size);
  flex: 0 0 var(--icon-panel-size);
  border: 1px solid color-mix(in srgb, var(--panel-accent-color, #84cdf0) 34%, white 6%);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--panel-accent-color, #84cdf0) 2.2%, transparent), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012));
  box-shadow:
    0 0 4px color-mix(in srgb, var(--panel-accent-color, #84cdf0) 1.8%, transparent),
    inset 0 0 0 5px rgba(0, 0, 0, 0.18);
}

.panel-title-icon svg {
  width: 21px;
  height: 21px;
  overflow: visible;
  fill: none;
  stroke: color-mix(in srgb, var(--panel-accent-color, #84cdf0) 60%, white 24%);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--panel-accent-color, #84cdf0) 2.2%, transparent));
}

.panel-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.election-avatar {
  border: 1px solid rgba(202, 168, 92, 0.58);
  background:
    radial-gradient(circle at 48% 43%, rgba(255, 217, 119, 0.07), transparent 34%),
    radial-gradient(circle, rgba(202, 168, 92, 0.04), transparent 61%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0));
  box-shadow:
    0 0 6px rgba(202, 168, 92, 0.045),
    inset 0 0 0 5px rgba(0, 0, 0, 0.18);
}

.election-medal {
  width: 25px;
  height: 25px;
  filter: drop-shadow(0 0 3px rgba(221, 173, 76, 0.16));
}

.medal-ribbon {
  fill: rgba(202, 168, 92, 0.9);
  stroke: rgba(255, 219, 133, 0.72);
  stroke-width: 1;
  stroke-linejoin: round;
}

.medal-outer {
  fill: #11110f;
  stroke: #d6a64a;
  stroke-width: 2.2;
}

.medal-inner {
  fill: rgba(255, 218, 120, 0.16);
  stroke: rgba(255, 232, 156, 0.8);
  stroke-width: 1;
}

.medal-star {
  fill: #ffe589;
  stroke: #fff0b0;
  stroke-width: 0.65;
  stroke-linejoin: round;
}

.network-avatar {
  border: 1px solid rgba(132, 205, 240, 0.54);
  background:
    radial-gradient(circle at 35% 25%, rgba(132, 205, 240, 0.07), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0));
  box-shadow:
    0 0 6px rgba(47, 147, 220, 0.05),
    inset 0 0 0 5px rgba(0, 0, 0, 0.18);
}

.network-globe {
  display: grid;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: rgba(190, 231, 250, 0.88);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(91, 191, 239, 0.09));
}

/* Election timing */
.status-display {
  display: grid;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}

#metricStatus {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.08;
  text-shadow: 0 0 7px rgba(214, 173, 88, 0.06);
}

.election-timing-groups {
  display: grid;
  gap: var(--rhythm-card-gap);
}

.election-time-card {
  position: relative;
  overflow: hidden;
  padding: 12px 15px;
  border: 1px solid rgba(217, 231, 246, 0.105);
  border-left: 4px solid color-mix(in srgb, var(--card-accent, rgba(47, 147, 220, 0.78)) 68%, white 4%);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-accent, rgba(47, 147, 220, 0.78)) 8%, transparent), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.008)),
    var(--surface-card),
    rgba(255, 255, 255, 0.014);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.12);
}

.election-time-card::before {
  display: none;
}

.election-time-card.is-active-round {
  --card-accent: rgba(47, 147, 220, 0.78);
}

.election-time-card.is-elections {
  --card-accent: rgba(202, 168, 92, 0.86);
}

.election-time-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.election-time-card h3 {
  margin: 0;
  color: var(--muted);
  font-size: var(--label-size);
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.countdown-block {
  display: grid;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.countdown-block span {
  color: var(--muted-2);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.election-countdown {
  color: rgba(222, 232, 242, 0.88);
  font-size: 18px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  line-height: 1.12;
  text-align: right;
  white-space: nowrap;
}

.is-active-round .election-countdown {
  color: var(--card-accent-text, var(--text));
  text-shadow: 0 0 7px var(--card-accent-glow, rgba(47, 147, 220, 0.075));
}

.is-elections .election-countdown {
  color: var(--gold);
  text-shadow: 0 0 7px rgba(202, 168, 92, 0.075);
}

.election-date-stack {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.date-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.date-label {
  color: var(--muted-2);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.date-value {
  color: rgba(212, 224, 236, 0.86);
  font-size: var(--body-size);
  font-weight: 520;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: minmax(92px, 38%) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  min-height: 43px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.021);
}

dt {
  color: var(--muted);
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: var(--body-size);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.date-stack {
  display: grid;
  gap: 4px;
}

/* Network selector */
.chain-tabs {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
  margin-bottom: 18px;
}

.network-selector-layout {
  display: grid;
  grid-template-columns: minmax(136px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: stretch;
  min-height: 166px;
  padding: 12px;
  border: 1px solid rgba(170, 205, 230, 0.12);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 82% 42%, rgba(94, 215, 255, 0.052), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.network-portrait {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: visible;
  border-radius: calc(var(--radius-md) - 2px);
}

.network-portrait::before {
  content: "";
  position: absolute;
  inset: -2% -6% -9% -8%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, rgba(204, 230, 246, 0.105), transparent 28%),
    radial-gradient(circle at 58% 58%, rgba(47, 147, 220, 0.075), transparent 45%);
  filter: blur(3px);
}

.network-portrait img {
  position: relative;
  display: block;
  width: 116%;
  height: 116%;
  min-height: 0;
  align-self: center;
  justify-self: center;
  object-fit: cover;
  object-position: 42% 38%;
  opacity: 0.98;
  transform: translate(-4%, -1%) scale(1.02);
  mix-blend-mode: lighten;
  filter:
    brightness(1.06)
    contrast(1.04)
    saturate(0.96)
    drop-shadow(0 14px 22px rgba(0, 0, 0, 0.36));
  -webkit-mask-image: radial-gradient(ellipse at 52% 46%, #000 0 44%, rgba(0, 0, 0, 0.72) 58%, rgba(0, 0, 0, 0.24) 72%, transparent 90%);
  mask-image: radial-gradient(ellipse at 52% 46%, #000 0 44%, rgba(0, 0, 0, 0.72) 58%, rgba(0, 0, 0, 0.24) 72%, transparent 90%);
}

.chain-tab {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  align-self: start;
  justify-content: flex-start;
  gap: 9px;
  min-height: 49px;
  padding: 0 13px;
  border: 1px solid rgba(217, 231, 246, 0.1);
  border-left: 4px solid rgba(154, 166, 184, 0.24);
  background:
    linear-gradient(90deg, rgba(154, 166, 184, 0.04), transparent 48%),
    var(--surface-card),
    rgba(255, 255, 255, 0.012);
  color: var(--text);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.15;
  box-shadow: var(--shadow-control);
}

.chain-tab[aria-selected="false"] .chain-mark {
  opacity: 0.72;
  filter: grayscale(1) saturate(0.15);
}

.chain-tab[aria-selected="true"] {
  border-color: rgba(231, 242, 255, 0.15);
  border-left-color: color-mix(in srgb, var(--chain-color, var(--cyan)) 82%, white 10%);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--chain-color, var(--cyan)) 13%, transparent), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.012);
  box-shadow:
    0 0 14px color-mix(in srgb, var(--chain-color, var(--cyan)) 5%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.chain-tab-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.chain-mark {
  display: inline-flex;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
}

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

.chain-mark.chain-swatch {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
  border-radius: 50%;
  background: var(--chain-color, var(--blue));
}

/* Validator map */
.map-controls {
  display: grid;
  grid-template-columns: repeat(3, 164px);
  justify-content: center;
  gap: var(--rhythm-panel-gap);
  margin-top: 10px;
}

.map-controls[hidden],
.validator-map-panel[hidden],
.node-stats-panel[hidden] {
  display: none;
}

.map-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 128px;
  min-height: 46px;
  justify-content: center;
  padding: 0 20px 0 16px;
  border: 1px solid rgba(154, 196, 224, 0.24);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.016)),
    linear-gradient(90deg, rgba(63, 168, 245, 0.09), rgba(64, 202, 123, 0.026) 70%, transparent),
    rgba(7, 11, 17, 0.88);
  color: rgba(234, 246, 255, 0.96);
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow:
    var(--shadow-control),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  transition: var(--transition-control);
}

.map-toggle > *,
.map-reset-button > * {
  pointer-events: none;
}

.map-toggle:hover {
  border-color: rgba(132, 205, 240, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.022)),
    linear-gradient(90deg, rgba(63, 168, 245, 0.135), rgba(64, 202, 123, 0.036) 70%, transparent),
    rgba(9, 14, 22, 0.92);
}

.map-toggle[aria-expanded="true"] {
  border-color: rgba(132, 205, 240, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.026)),
    linear-gradient(90deg, rgba(63, 168, 245, 0.18), rgba(64, 202, 123, 0.048) 70%, transparent),
    rgba(10, 16, 25, 0.96);
  color: #ffffff;
  box-shadow:
    var(--shadow-control),
    0 0 0 1px rgba(132, 205, 240, 0.18),
    0 0 18px rgba(91, 191, 239, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.046);
}

.map-toggle:focus-visible,
.map-reset-button:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
}

.map-toggle:active {
  transform: translateY(1px);
}

.map-toggle:disabled {
  border-color: rgba(154, 166, 184, 0.13);
  background:
    linear-gradient(90deg, rgba(154, 166, 184, 0.035), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.01);
  color: rgba(154, 166, 184, 0.58);
  cursor: not-allowed;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.028);
}

.map-toggle:disabled .map-toggle-icon {
  border-color: rgba(154, 166, 184, 0.18);
  filter: grayscale(1) saturate(0.25);
  opacity: 0.62;
}

.map-toggle-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid rgba(132, 205, 240, 0.42);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(132, 205, 240, 0.085), rgba(132, 205, 240, 0.025)),
    rgba(0, 0, 0, 0.18);
}

.map-toggle svg,
.map-route,
.map-reset-button svg {
  fill: none;
  stroke: rgba(190, 231, 250, 0.92);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-toggle svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.85;
  filter: drop-shadow(0 0 3px rgba(91, 191, 239, 0.1));
}

/* Round statistics */
.round-stats-toggle,
.node-stats-toggle {
  min-width: 164px;
}

.round-stats-panel[hidden] {
  display: none;
}

.round-stats-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--rhythm-panel-gap);
  margin-top: var(--rhythm-card-gap);
}

.round-stats-color-panel {
  --round-color: #2f93dc;
  --panel-accent-color: var(--round-color);
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 14px 18px 18px;
  border: 1px solid color-mix(in srgb, var(--round-color) 16%, rgba(170, 205, 230, 0.12));
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 8% 0, color-mix(in srgb, var(--round-color) 1.6%, transparent), transparent 30%),
    var(--surface-glass);
  box-shadow:
    var(--shadow-panel),
    0 0 10px color-mix(in srgb, var(--round-color) 0.45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 0 0 1px rgba(255, 255, 255, 0.012);
}

.round-stats-color-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 0, color-mix(in srgb, var(--round-color) 0.45%, transparent), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 16%);
  opacity: 0.22;
}

.round-stats-color-panel::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 1px;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--round-color) 40%, white 5%) 18%, color-mix(in srgb, var(--round-color) 12%, transparent) 62%, transparent);
  opacity: 0.34;
}

.round-stats-color-panel > * {
  position: relative;
}

.round-stats-blue {
  --round-color: #2f93dc;
}

.round-stats-green {
  --round-color: #32af68;
}

.round-stats-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 14px;
}

.round-stats-panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  row-gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--round-color) 68%, white 26%);
  font-size: var(--round-heading-size);
  font-weight: 690;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.round-stats-panel-count {
  display: inline-flex;
  min-width: 72px;
  min-height: 24px;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  margin-top: -1px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--round-color) 24%, rgba(154, 196, 224, 0.12));
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.028);
  color: rgba(207, 220, 233, 0.84);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.round-stats-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.round-stats-chart-card {
  min-width: 0;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(170, 205, 230, 0.12);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.13);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.032);
}

.round-stats-chart-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  min-height: 46px;
  margin-bottom: 8px;
}

.round-stats-chart-header h3 {
  margin: 0;
  overflow: hidden;
  color: rgba(151, 171, 194, 0.92);
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.18;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.round-stats-chart-header strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(232, 244, 255, 0.93);
  font-size: 16px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-stats-latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.round-stats-latest-item {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.round-stats-latest-label {
  min-width: 0;
  overflow: hidden;
  color: rgba(151, 171, 194, 0.92);
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.18;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.round-stats-chart-header .round-stats-latest-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: rgba(232, 244, 255, 0.93);
  font-size: 16px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-stats-chart-body {
  width: 100%;
  aspect-ratio: 360 / 176;
  min-height: 132px;
}

.round-stats-chart {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.round-stats-grid-line {
  stroke: rgba(214, 229, 244, 0.092);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.round-stats-axis,
.round-stats-axis-tick {
  fill: none;
  stroke: rgba(214, 229, 244, 0.18);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.round-stats-axis-label,
.round-stats-x-label {
  fill: rgba(154, 166, 184, 0.82);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
}

.round-stats-line {
  fill: none;
  stroke: color-mix(in srgb, var(--round-color) 72%, white 15%);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  vector-effect: non-scaling-stroke;
}

.round-stats-line.series-2 {
  stroke: rgba(214, 173, 88, 0.92);
}

.round-stats-dot {
  fill: color-mix(in srgb, var(--round-color) 76%, white 18%);
  stroke: rgba(5, 8, 13, 0.84);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.round-stats-dot.series-2 {
  fill: rgba(230, 192, 106, 0.96);
}

.round-stats-hit-area {
  fill: transparent;
  stroke: transparent;
  cursor: default;
  pointer-events: all;
}

.round-stats-hit-area:focus-visible {
  outline: none;
  stroke: rgba(234, 246, 255, 0.78);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.round-stats-status {
  grid-column: 1 / -1;
  min-height: 126px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(170, 205, 230, 0.12);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(0, 0, 0, 0.12);
  color: rgba(190, 204, 219, 0.82);
  font-size: var(--body-size);
  font-weight: 650;
}

/* Validator map panel */
.validator-map-panel {
  --panel-accent-color: #84cdf0;
  position: relative;
  overflow: hidden;
  margin-top: var(--rhythm-card-gap);
  border: 1px solid rgba(170, 205, 230, 0.2);
  border-top-color: rgba(214, 173, 88, 0.18);
  border-bottom-color: rgba(64, 202, 123, 0.14);
  border-radius: var(--radius-shell);
  background:
    linear-gradient(90deg, rgba(214, 173, 88, 0.02), transparent 18%, transparent 82%, rgba(64, 202, 123, 0.018)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%, rgba(0, 0, 0, 0.18)),
    var(--surface-glass);
  box-shadow:
    var(--shadow-panel),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.validator-map-panel::before {
  display: none;
}

.validator-map-panel > * {
  position: relative;
}

.validator-map-heading {
  padding: 14px 18px 12px;
}

.validator-map-titlebar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.validator-map-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: var(--icon-panel-size);
  margin-bottom: 0;
  color: color-mix(in srgb, var(--panel-accent-color) 68%, white 26%);
  font-size: var(--round-heading-size);
  font-weight: 690;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.validator-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.validator-map-meta {
  display: grid;
  grid-template-columns: repeat(4, 116px);
  gap: 8px;
  width: auto;
  margin-top: 0;
}

.validator-map-meta-item {
  height: 48px;
}

.validator-map-meta-value {
  min-width: 0;
}

.validator-map-round-value {
  font-size: 13px;
}

.validator-map-count-value {
  min-width: 0;
  text-align: left;
}

.map-reset-button {
  position: relative;
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(132, 205, 240, 0.155);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.041), rgba(255, 255, 255, 0.007)),
    linear-gradient(90deg, rgba(132, 205, 240, 0.026), transparent 56%),
    var(--surface-card),
    rgba(255, 255, 255, 0.012);
  color: var(--text);
  cursor: pointer;
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: var(--transition-control);
}

.map-reset-button:hover {
  border-color: rgba(132, 205, 240, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(10, 16, 25, 0.94);
}

.map-reset-button:active {
  transform: translateY(1px);
}

.map-reset-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

.node-stats-panel {
  --panel-accent-color: #84cdf0;
  position: relative;
  overflow: hidden;
  margin-top: var(--rhythm-card-gap);
  border: 1px solid rgba(170, 205, 230, 0.2);
  border-top-color: rgba(214, 173, 88, 0.18);
  border-bottom-color: rgba(64, 202, 123, 0.14);
  border-radius: var(--radius-shell);
  background:
    linear-gradient(90deg, rgba(214, 173, 88, 0.014), transparent 18%, transparent 82%, rgba(64, 202, 123, 0.014)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%, rgba(0, 0, 0, 0.18)),
    var(--surface-glass);
  box-shadow:
    var(--shadow-panel),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.node-stats-panel > * {
  position: relative;
}

.node-stats-heading {
  display: grid;
  gap: 6px;
  padding: 14px 18px 12px;
  border-bottom: 0;
  background: none;
  box-shadow: none;
}

.node-stats-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: var(--icon-panel-size);
  margin: 0;
  color: color-mix(in srgb, var(--panel-accent-color) 68%, white 26%);
  font-size: var(--round-heading-size);
  font-weight: 690;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.node-stats-summary {
  display: none;
  min-height: 24px;
  align-items: center;
  color: rgba(200, 216, 232, 0.84);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.node-stats-content {
  padding: 0 18px 18px;
}

.node-stats-state {
  display: grid;
  min-height: 112px;
  place-items: center;
  border: 1px solid rgba(154, 196, 224, 0.13);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(0, 0, 0, 0.12);
  color: rgba(190, 204, 219, 0.82);
  font-size: var(--body-size);
  font-weight: 650;
}

.node-stats-state.is-error {
  border-color: rgba(224, 82, 96, 0.28);
  color: rgba(255, 195, 199, 0.86);
}

.node-stats-state.is-notice {
  border-color: rgba(214, 173, 88, 0.28);
  color: rgba(244, 220, 166, 0.9);
}

.node-stats-overview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 48px;
  gap: 8px;
  margin-bottom: var(--rhythm-card-gap);
}

.node-stats-card {
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 48px;
  height: 100%;
  overflow: hidden;
  padding: 7px 10px 6px;
  border: 1px solid rgba(132, 205, 240, 0.155);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.041), rgba(255, 255, 255, 0.007)),
    linear-gradient(90deg, rgba(132, 205, 240, 0.026), transparent 56%),
    var(--surface-card),
    rgba(255, 255, 255, 0.012);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    var(--shadow-card);
}

.node-stats-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(132, 205, 240, 0.18), rgba(255, 255, 255, 0.035), transparent);
  opacity: 0.72;
  pointer-events: none;
}

.node-stats-card.is-featured {
  border-color: rgba(214, 173, 88, 0.29);
  background:
    linear-gradient(90deg, rgba(214, 173, 88, 0.042), transparent 62%),
    var(--surface-card),
    rgba(255, 255, 255, 0.012);
}

.node-stats-card span {
  display: block;
  margin-bottom: 0;
  color: rgba(145, 174, 198, 0.9);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: uppercase;
}

.node-stats-card strong {
  display: block;
  overflow: hidden;
  color: rgba(236, 247, 255, 0.96);
  font-size: 15px;
  font-weight: 815;
  font-variant-numeric: tabular-nums;
  line-height: 1.04;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-stats-card.is-round strong {
  font-size: 13px;
  font-weight: 820;
}

.node-stats-card.is-round-green strong {
  color: color-mix(in srgb, var(--green) 84%, white 16%);
}

.node-stats-card.is-round-blue strong {
  color: color-mix(in srgb, var(--blue) 82%, white 18%);
}

.node-stats-card.is-featured strong {
  color: color-mix(in srgb, var(--gold) 86%, white 14%);
  font-size: 14px;
}

.node-stats-card small {
  display: block;
  margin-top: 0;
  overflow: hidden;
  color: rgba(178, 190, 207, 0.72);
  font-size: 10.5px;
  font-weight: 660;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--rhythm-card-gap);
}

.node-stats-block {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--table-line-strong);
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, rgba(132, 205, 240, 0.014), transparent 28%),
    var(--table-shell);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.node-stats-block-placement {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-color: var(--table-line-strong);
}

.node-stats-block h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 12px;
  border-bottom: 1px solid var(--table-line-strong);
  background:
    linear-gradient(90deg, rgba(94, 215, 255, 0.028), transparent 58%),
    var(--table-header);
  color: rgba(121, 207, 247, 0.92);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.node-stats-block-placement h3 {
  background:
    linear-gradient(90deg, rgba(214, 173, 88, 0.04), transparent 58%),
    var(--table-header);
  color: color-mix(in srgb, var(--gold) 76%, white 18%);
}

.node-stats-block-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid rgba(94, 215, 255, 0.2);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(94, 215, 255, 0.07), rgba(94, 215, 255, 0.015)),
    rgba(0, 0, 0, 0.14);
}

.node-stats-block-placement .node-stats-block-icon {
  border-color: rgba(214, 173, 88, 0.24);
  background:
    linear-gradient(180deg, rgba(214, 173, 88, 0.08), rgba(214, 173, 88, 0.016)),
    rgba(0, 0, 0, 0.14);
}

.node-stats-block-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.node-stats-table-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.node-stats-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.node-stats-col-name,
.node-stats-col-location {
  width: 39%;
}

.node-stats-col-count,
.node-stats-col-distance-primary {
  width: 17%;
}

.node-stats-col-stake,
.node-stats-col-distance-secondary {
  width: 23%;
}

.node-stats-col-percent,
.node-stats-col-distance-tertiary {
  width: 14%;
}

.node-stats-col-rank {
  width: 7%;
}

.node-stats-table th,
.node-stats-table td {
  height: 32px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--table-line);
  text-align: right;
  white-space: nowrap;
}

.node-stats-table th:first-child,
.node-stats-table td:first-child {
  text-align: center;
}

.node-stats-table th:nth-child(2),
.node-stats-table td:nth-child(2) {
  text-align: left;
}

.node-stats-table th {
  border-bottom-color: rgba(132, 205, 240, 0.33);
  background:
    linear-gradient(180deg, rgba(94, 215, 255, 0.07), rgba(94, 215, 255, 0.014));
  color: rgba(191, 233, 251, 0.98);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: uppercase;
  box-shadow: inset 0 -1px 0 rgba(94, 215, 255, 0.11);
}

.node-stats-table td {
  color: rgba(218, 230, 242, 0.835);
  line-height: 1.35;
}

.node-stats-table tbody tr:nth-child(odd) td {
  background: var(--table-row);
}

.node-stats-table tbody tr:hover td {
  background:
    linear-gradient(90deg, rgba(94, 215, 255, 0.028), transparent 58%),
    rgba(255, 255, 255, 0.012);
}

.node-stats-table td:first-child {
  color: rgba(166, 192, 214, 0.88);
  font-weight: 760;
}

.node-stats-table td:nth-child(2) {
  color: rgba(234, 246, 255, 0.93);
  font-weight: 750;
}

.node-stats-table th,
.node-stats-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-stats-table tr:last-child td {
  border-bottom: 0;
}

.node-stats-table .is-best td {
  border-top: 1px solid rgba(214, 173, 88, 0.16);
  border-bottom-color: rgba(214, 173, 88, 0.13);
  background:
    linear-gradient(90deg, rgba(214, 173, 88, 0.04), transparent 58%),
    var(--table-row);
}

.node-stats-table .is-best:hover td {
  background:
    linear-gradient(90deg, rgba(214, 173, 88, 0.064), transparent 58%),
    var(--table-row);
}

.node-stats-table .is-best td:first-child {
  color: color-mix(in srgb, var(--gold) 78%, white 18%);
  font-weight: 760;
}

.node-stats-table .is-remainder td {
  border-top: 1px solid rgba(217, 231, 246, 0.11);
  color: rgba(166, 192, 214, 0.9);
  font-weight: 760;
}

.node-stats-placement {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 0;
}

.node-stats-placement .node-stats-table-shell {
  flex: 0 0 auto;
}

.node-stats-table .is-extra-ranking {
  display: none;
}

.node-stats-block-placement.is-ranking-expanded .node-stats-table .is-extra-ranking {
  display: table-row;
}

.node-stats-ranking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding: 8px 10px 9px;
  border-top: 1px solid rgba(214, 173, 88, 0.12);
  background:
    linear-gradient(180deg, rgba(214, 173, 88, 0.018), rgba(255, 255, 255, 0.004));
  color: rgba(172, 190, 210, 0.72);
  font-size: 10.5px;
  font-weight: 680;
  line-height: 1.1;
}

.node-stats-ranking-footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-stats-ranking-action {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: color-mix(in srgb, var(--gold) 72%, white 18%);
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  line-height: 1.1;
  white-space: nowrap;
}

.node-stats-ranking-action:hover,
.node-stats-ranking-action:focus-visible {
  color: color-mix(in srgb, var(--gold) 84%, white 16%);
  text-shadow: 0 0 6px rgba(214, 173, 88, 0.14);
}

.node-stats-ranking-action:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
}

.node-stats-placement .node-stats-table {
  min-width: 480px;
}

.node-stats-ranking-table .is-best td:first-child {
  color: color-mix(in srgb, var(--gold) 80%, white 14%);
  font-weight: 820;
}

.node-stats-ranking-table .is-best td:nth-child(2) {
  color: color-mix(in srgb, var(--gold) 78%, white 18%);
  font-weight: 760;
}

.node-stats-block-countries .node-stats-table {
  min-width: 520px;
}

.validator-map-shell {
  position: relative;
  height: clamp(380px, 48vw, 620px);
  margin: 0 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(171, 204, 229, 0.16);
  border-top-color: rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(0, 0, 0, 0.16)),
    #070b11;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.018),
    inset 0 18px 42px rgba(0, 0, 0, 0.18);
}

.validator-map-shell::before {
  display: none;
}

.validator-map-canvas {
  position: absolute;
  inset: 0;
}

.validator-map-shell > .validator-map-canvas.maplibregl-map {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
}

.validator-map-status {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(420px, calc(100% - 28px));
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid rgba(154, 196, 224, 0.2);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.014)),
    rgba(7, 11, 17, 0.92);
  color: rgba(226, 235, 244, 0.88);
  font-size: 12px;
  font-weight: 650;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.validator-map-status::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(94, 215, 255, 0.12);
}

.validator-map-status[data-state="error"] {
  border-color: rgba(224, 82, 96, 0.34);
}

.validator-map-status[data-state="error"]::before {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 82, 96, 0.14);
}

.validator-map-status[data-state="notice"] {
  border-color: rgba(214, 173, 88, 0.3);
}

.validator-map-status[data-state="notice"]::before,
.validator-map-status[data-state="empty"]::before {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 173, 88, 0.14);
}

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

.validator-map-panel .maplibregl-canvas {
  cursor: grab;
}

.validator-map-panel .maplibregl-canvas:active {
  cursor: grabbing;
}

.validator-map-panel .maplibregl-popup-content {
  width: max-content;
  max-width: calc(100vw - 16px);
  max-height: min(460px, calc(100vh - 90px));
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(154, 196, 224, 0.2);
  border-top-color: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.014)),
    rgba(9, 14, 22, 0.98);
  color: var(--text);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  font-size: 12px;
  line-height: 1.35;
  padding: 12px;
}

.validator-map-panel .maplibregl-popup-tip {
  border-top-color: rgba(11, 16, 24, 0.98) !important;
  border-bottom-color: rgba(11, 16, 24, 0.98) !important;
}

.validator-map-panel .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(154, 196, 224, 0.22);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(8, 13, 20, 0.92);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.validator-map-panel .maplibregl-ctrl button {
  width: 36px;
  height: 36px;
  color: var(--text);
}

.validator-map-panel .maplibregl-ctrl button:hover,
.validator-map-panel .maplibregl-ctrl button:focus-visible {
  background: rgba(94, 215, 255, 0.1);
}

.validator-map-panel .maplibregl-ctrl button span {
  filter: invert(1) opacity(0.86);
}

.validator-map-panel .maplibregl-ctrl-bottom-left,
.validator-map-panel .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib {
  display: none;
}

.popup-title {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 800;
}

.popup-muted {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.popup-node-list {
  width: max-content;
  max-width: calc(100vw - 40px);
  max-height: min(52vh, 460px);
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-width: none;
  scrollbar-color: rgba(154, 166, 184, 0.34) transparent;
}

.popup-node-list::-webkit-scrollbar {
  display: none;
}

.popup-node-table {
  width: max-content;
  border-collapse: collapse;
  table-layout: auto;
}

.popup-col-ip {
  width: 86px;
}

.popup-col-isp {
  width: 82px;
}

.popup-col-row {
  width: 38px;
}

.popup-node-table th {
  padding: 0 10px 6px 0;
  color: rgba(161, 177, 197, 0.74);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.popup-node-table td {
  min-width: 0;
  padding: 5px 8px 5px 0;
  border-top: 1px solid rgba(154, 196, 224, 0.13);
  vertical-align: middle;
}

.popup-node-table th:last-child,
.popup-node-table td:last-child {
  padding-right: 0;
}

.popup-ip {
  color: #dbe6ff;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.popup-isp {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popup-peer-cell {
  min-width: 0;
}

.popup-row-cell {
  min-width: 0;
  text-align: left;
}

.popup-row-link {
  display: inline-flex;
  min-width: 3ch;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(222, 232, 242, 0.88);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10.4px;
  font-weight: 760;
  text-align: left;
  white-space: nowrap;
}

.popup-row-link:hover,
.popup-row-link:focus-visible {
  color: #d9e3ff;
}

.popup-row-link:focus-visible {
  outline: 1px solid rgba(95, 217, 255, 0.58);
  outline-offset: 3px;
}

.popup-validator-details {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.popup-validator-detail {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
  min-width: 0;
  line-height: 1.08;
}

.popup-validator-label {
  color: rgba(161, 177, 197, 0.74);
  font-size: 9.5px;
  font-weight: 760;
  white-space: nowrap;
}

.popup-validator-value {
  min-width: 0;
  overflow: visible;
  overflow-wrap: normal;
  color: #b8c7ff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.12;
  text-overflow: clip;
  white-space: nowrap;
  word-break: normal;
}

.popup-peer {
  display: block;
  width: 64ch;
  min-width: 0;
  max-width: none;
  overflow: visible;
  color: #b8c7ff;
  font-family: var(--font-mono);
  font-size: 10.2px;
  text-overflow: clip;
  white-space: nowrap;
}

/* Round panels */
.rounds-grid,
.recent-rounds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rhythm-panel-gap);
}

.rounds-grid {
  margin-top: 10px;
}

.round-panel {
  min-height: 0;
  padding: 14px 18px 18px;
  background:
    radial-gradient(circle at 8% 0, color-mix(in srgb, var(--round-color) 1.6%, transparent), transparent 30%),
    var(--surface-glass);
  box-shadow:
    var(--shadow-panel),
    0 0 10px color-mix(in srgb, var(--round-color) 0.45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 0 0 1px rgba(255, 255, 255, 0.012);
}

.round-panel::before {
  background:
    radial-gradient(circle at 8% 0, color-mix(in srgb, var(--round-color) 0.45%, transparent), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 16%);
  opacity: 0.22;
}

.round-panel::after,
.recent-round-panel::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  pointer-events: none;
}

.round-panel::after {
  top: 22px;
  bottom: 22px;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--round-color) 36%, white 5%) 14%, color-mix(in srgb, var(--round-color) 12%, transparent) 56%, transparent);
  box-shadow: 0 0 4px color-mix(in srgb, var(--round-color) 4%, transparent);
  opacity: 0.32;
}

.round-panel > *,
.recent-round-panel > * {
  position: relative;
}

.round-blue,
.recent-blue {
  --round-color: #2f93dc;
}

.round-green,
.recent-green {
  --round-color: #32af68;
}

.round-blue {
  border-color: rgba(47, 147, 220, 0.16);
}

.round-green {
  border-color: rgba(50, 175, 104, 0.16);
}

.recent-rounds-grid {
  margin-top: 20px;
}

.recent-rounds-grid[hidden] {
  display: none;
}

.recent-round-panel {
  min-height: 0;
  padding: var(--rhythm-panel-pad-sm);
  background:
    radial-gradient(circle at 8% 0, color-mix(in srgb, var(--round-color) 1.2%, transparent), transparent 30%),
    var(--surface-glass);
  box-shadow:
    var(--shadow-panel),
    0 0 9px color-mix(in srgb, var(--round-color) 0.5%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.recent-round-panel::before {
  background:
    radial-gradient(circle at 8% 0, color-mix(in srgb, var(--round-color) 0.6%, transparent), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 16%);
}

.recent-round-panel::after {
  top: 18px;
  bottom: 18px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--round-color) 34%, white 5%) 18%, color-mix(in srgb, var(--round-color) 10%, transparent) 64%, transparent);
  box-shadow: 0 0 4px color-mix(in srgb, var(--round-color) 3.5%, transparent);
  opacity: 0.3;
}

.recent-round-panel.is-empty {
  background:
    radial-gradient(circle at 8% 0, color-mix(in srgb, var(--round-color) 0.75%, transparent), transparent 30%),
    var(--surface-glass);
}

.recent-blue {
  border: 1px solid rgba(47, 147, 220, 0.22);
}

.recent-green {
  border: 1px solid rgba(50, 175, 104, 0.22);
}

.recent-round-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--table-line);
}

.recent-round-heading h2,
.round-heading h2 {
  display: flex;
  align-items: center;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.recent-round-heading h2 {
  gap: 10px;
  margin: 0;
  color: color-mix(in srgb, var(--round-color) 86%, white 14%);
  font-size: var(--round-heading-size);
}

.recent-title-icon {
  width: var(--icon-panel-size);
  height: var(--icon-panel-size);
  flex: 0 0 var(--icon-panel-size);
  border: 1px solid color-mix(in srgb, var(--round-color) 30%, white 5%);
  background:
    radial-gradient(circle at 48% 44%, color-mix(in srgb, var(--round-color) 2%, transparent), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01));
  box-shadow:
    0 0 4px color-mix(in srgb, var(--round-color) 1.6%, transparent),
    inset 0 0 0 5px rgba(0, 0, 0, 0.16);
}

.recent-title-icon svg,
.round-title-icon svg,
.round-stat-icon svg {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recent-title-icon svg {
  width: 21px;
  height: 21px;
  stroke: color-mix(in srgb, var(--round-color) 58%, white 22%);
  stroke-width: 1.85;
}

.recent-round-count {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--round-color) 16%, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--round-color) 1.8%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.012);
  color: rgba(214, 225, 238, 0.78);
  font-size: var(--body-size);
  font-weight: 700;
  white-space: nowrap;
}

.recent-round-empty {
  display: grid;
  min-height: 76px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--table-line);
  border-left: 4px solid color-mix(in srgb, var(--round-color) 42%, white 4%);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--round-color) 1.4%, transparent), transparent 46%),
    var(--surface-card),
    rgba(255, 255, 255, 0.01);
  color: rgba(195, 207, 222, 0.86);
  font-size: var(--body-size);
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.028);
}

.round-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--table-line);
  text-align: left;
}

.round-title-block {
  min-width: 0;
  padding-right: 0;
}

.round-heading h2 {
  gap: 10px;
  row-gap: 6px;
  min-width: 0;
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--round-color) 68%, white 26%);
  font-size: var(--round-heading-size);
  font-weight: 690;
  flex-wrap: wrap;
}

.round-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-title-icon {
  width: var(--icon-panel-size);
  height: var(--icon-panel-size);
  flex: 0 0 var(--icon-panel-size);
  border: 1px solid color-mix(in srgb, var(--round-color) 34%, white 6%);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--round-color) 2.2%, transparent), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012));
  box-shadow:
    0 0 4px color-mix(in srgb, var(--round-color) 1.8%, transparent),
    inset 0 0 0 5px rgba(0, 0, 0, 0.18);
}

.round-title-icon svg {
  width: 21px;
  height: 21px;
  stroke: color-mix(in srgb, var(--round-color) 60%, white 24%);
  stroke-width: 1.9;
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--round-color) 2.2%, transparent));
}

.round-header-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.round-apr-badge {
  min-height: 44px;
  white-space: nowrap;
}

.round-apr-badge span {
  color: rgba(151, 171, 194, 0.9);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.round-apr-badge strong {
  color: color-mix(in srgb, var(--round-color) 64%, white 28%);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
}

.round-apr-badge.is-empty {
  opacity: 0.62;
}

.round-meta {
  display: contents;
  color: var(--muted);
  font-size: var(--body-size);
  line-height: 1.35;
}

.round-meta-item,
.round-badge,
.round-apr-badge {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--round-color) 14%, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--round-color) 1.6%, transparent), transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.12);
  color: rgba(211, 224, 238, 0.86);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.026);
}

.round-meta-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.round-meta-item > span:last-child {
  color: rgba(222, 232, 242, 0.9);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
}

.round-meta-strong {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(222, 232, 242, 0.88);
  font-weight: 600;
}

.round-badge {
  justify-self: end;
  justify-items: center;
  width: 100%;
  color: rgba(218, 229, 240, 0.86);
  font-size: var(--body-size);
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.round-badge::before {
  content: "STATUS";
  display: block;
  color: rgba(151, 171, 194, 0.9);
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
  text-transform: uppercase;
}

.round-panel .round-badge {
  color: color-mix(in srgb, var(--round-color) 62%, white 28%);
}

.round-badge.is-active {
  border-color: rgba(202, 168, 92, 0.62);
  background:
    linear-gradient(90deg, rgba(202, 168, 92, 0.045), transparent 62%),
    rgba(202, 168, 92, 0.045);
  color: var(--gold);
}

.round-badge.is-previous,
.round-badge.is-waiting {
  color: rgba(222, 232, 242, 0.9);
}

.round-badge.is-election {
  border-color: color-mix(in srgb, var(--round-color) 34%, white 10%);
  background: color-mix(in srgb, var(--round-color) 3%, transparent);
  color: color-mix(in srgb, var(--round-color) 66%, white 26%);
}

.round-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rhythm-card-gap);
  margin-bottom: 10px;
}

.round-stat {
  position: relative;
  display: grid;
  grid-template-columns: var(--icon-panel-size) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(217, 231, 246, 0.1);
  border-left: 4px solid color-mix(in srgb, var(--round-color) 58%, white 5%);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--round-color) 3.2%, transparent), transparent 48%),
    var(--surface-card),
    rgba(255, 255, 255, 0.014);
  box-shadow: var(--shadow-card);
}

.round-stat-icon {
  display: grid;
  width: var(--icon-panel-size);
  height: var(--icon-panel-size);
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--round-color) 22%, white 4%);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--round-color) 2.2%, transparent);
  color: color-mix(in srgb, var(--round-color) 58%, white 26%);
}

.round-stat-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.9;
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--round-color) 4%, transparent));
}

.round-stat-copy {
  min-width: 0;
}

.round-stat-copy span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.round-stat strong {
  display: block;
  overflow: hidden;
  color: rgba(222, 232, 242, 0.88);
  font-size: var(--numeric-size);
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-stat-detail {
  position: absolute;
  right: 10px;
  bottom: 5px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  color: rgba(178, 190, 207, 0.72);
  font-size: 10.5px;
  font-weight: 660;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Validator tables */
.validator-list {
  overflow-x: hidden;
  padding-bottom: 0;
  scrollbar-color: rgba(154, 166, 184, 0.34) transparent;
  border-radius: var(--radius-md);
}

.validator-table {
  --validator-grid-columns: 26px minmax(68px, 0.56fr) minmax(108px, 0.9fr) minmax(122px, 1fr) minmax(88px, 0.78fr) minmax(82px, 0.7fr) minmax(70px, 0.62fr) minmax(58px, 0.54fr);
  --validator-column-gap: 6px;
  --validator-row-min-height: 36px;
  --validator-row-padding-block: 6px;
  --validator-row-padding-inline: 12px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--table-line-strong);
  border-left: 4px solid color-mix(in srgb, var(--round-color) 56%, white 4%);
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--round-color) 1.6%, transparent), transparent 30%),
    var(--table-shell);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.validator-table.is-absent {
  --validator-grid-columns: 26px minmax(64px, 0.48fr) minmax(96px, 0.72fr) minmax(112px, 0.82fr) minmax(84px, 0.66fr) minmax(190px, 1.48fr);
  min-width: 0;
}

.validator-header,
.validator-row {
  display: grid;
  grid-template-columns: var(--validator-grid-columns);
  column-gap: var(--validator-column-gap);
  justify-content: space-between;
  align-items: center;
}

.validator-header {
  min-height: 34px;
  padding: 6px var(--validator-row-padding-inline);
  border-bottom: 1px solid var(--table-line-strong);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--round-color) 1.7%, transparent), transparent 50%),
    var(--table-header);
  color: rgba(199, 212, 228, 0.78);
  font-size: var(--label-size);
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: uppercase;
}

.validator-row {
  min-height: var(--validator-row-min-height);
  padding: var(--validator-row-padding-block) var(--validator-row-padding-inline);
  border-bottom: 1px solid var(--table-line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--round-color) 0.25%, transparent), transparent 28%),
    var(--table-row);
  color: rgba(205, 218, 232, 0.86);
  transition: background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.validator-row:hover,
.validator-row:focus-within {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--round-color) 2.4%, transparent), transparent 58%),
    var(--table-row-hover);
  box-shadow:
    inset 3px 0 0 color-mix(in srgb, var(--round-color) 42%, white 5%),
    0 0 0 1px color-mix(in srgb, var(--round-color) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.validator-row:focus {
  outline: none;
}

.validator-row.is-validator-selected {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--round-color) 2.8%, transparent), transparent 58%),
    var(--table-row-hover);
  box-shadow:
    inset 3px 0 0 color-mix(in srgb, var(--round-color) 48%, white 5%),
    0 0 0 1px color-mix(in srgb, var(--round-color) 24%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

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

.validator-cell {
  min-width: 0;
  overflow: visible;
  color: rgba(205, 218, 232, 0.86);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.validator-header .validator-cell {
  overflow: visible;
  text-overflow: clip;
}

.validator-type-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.validator-source-heading,
.validator-address-heading {
  display: grid;
  justify-items: center;
  gap: 4px;
  line-height: 1;
}

.validator-source-mode-toggle {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 1px;
  padding: 2px;
  border: 1px solid rgba(154, 196, 224, 0.16);
  border-radius: 5px;
  background: rgba(154, 196, 224, 0.045);
}

.validator-source-mode-button {
  width: 32px;
  min-width: 32px;
  height: 17px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: rgba(199, 212, 228, 0.66);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 17px;
}

.validator-source-mode-button[aria-pressed="true"] {
  background: rgba(77, 184, 255, 0.17);
  color: rgba(229, 246, 255, 0.96);
}

.validator-source-mode-button:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 1px;
}

.validator-address-mode-button {
  width: 46px;
  min-width: 46px;
}

.validator-type-help {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(154, 196, 224, 0.22);
  border-radius: 50%;
  background: rgba(154, 196, 224, 0.06);
  color: rgba(205, 220, 235, 0.82);
  cursor: pointer;
}

.validator-type-help svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.validator-type-help:hover,
.validator-type-help[aria-expanded="true"] {
  border-color: rgba(77, 184, 255, 0.38);
  background: rgba(77, 184, 255, 0.13);
  color: rgba(229, 246, 255, 0.96);
}

.validator-type-help:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.validator-header .validator-index,
.validator-row .validator-index {
  justify-self: center;
  text-align: center;
}

.validator-row .validator-stake,
.validator-row .validator-rewards,
.validator-row .validator-weight,
.validator-header .validator-rewards,
.validator-header .validator-weight {
  justify-self: stretch;
  text-align: right;
}

.validator-header .validator-source-type,
.validator-header .validator-source,
.validator-header .validator-id,
.validator-header .validator-history,
.validator-header .validator-stake {
  justify-self: stretch;
  text-align: center;
}

.validator-header .validator-stake {
  transform: translateX(8px);
}

.validator-table.is-absent .validator-header .validator-seen,
.validator-table.is-absent .validator-row .validator-seen {
  justify-self: stretch;
  text-align: right;
}

.validator-history-heading {
  display: grid;
  gap: 5px;
  line-height: 1.05;
}

.history-direction {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 580;
  text-transform: none;
}

.validator-row .validator-id {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 0;
}

.validator-address,
.validator-source-address {
  font-family: var(--font-mono);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.validator-address {
  color: rgba(206, 221, 236, 0.86);
  font-size: 12.5px;
  font-weight: 540;
}

.validator-source-address {
  color: rgba(149, 194, 171, 0.84);
  font-size: 12.5px;
  font-weight: 520;
}

.validator-source-meta {
  color: rgba(176, 202, 220, 0.76);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 560;
}

.validator-type-badges {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.validator-source-direct,
.validator-source-unknown {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(154, 196, 224, 0.16);
  border-radius: var(--radius-sm);
  background: var(--chip-surface);
  color: rgba(198, 210, 224, 0.84);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 560;
}

.validator-source-unknown {
  border-color: rgba(154, 166, 184, 0.22);
  background: rgba(154, 166, 184, 0.055);
  color: rgba(195, 204, 216, 0.84);
}

.validator-map-fake-badge {
  border-color: rgba(255, 91, 105, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 91, 105, 0.17), rgba(155, 26, 45, 0.15)),
    rgba(255, 70, 88, 0.08);
  color: rgba(255, 218, 222, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 91, 105, 0.07);
}

.validator-map-fake-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 7px;
  border: 1px solid rgba(255, 91, 105, 0.46);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.validator-row .validator-id,
.validator-row .validator-history,
.validator-row .validator-source-type,
.validator-row .validator-source {
  display: flex;
  align-items: center;
}

@media (min-width: 761px) {
  .validator-row .validator-id,
  .validator-row .validator-history,
  .validator-row .validator-source-type,
  .validator-row .validator-source {
    justify-content: center;
    text-align: center;
  }

  .validator-map-fake-badge {
    display: none;
  }
}

.validator-type-badge {
  display: inline-flex;
  min-width: 0;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid rgba(171, 186, 204, 0.3);
  border-radius: var(--radius-sm);
  background: var(--chip-surface);
  color: #c7d0dc;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1;
}

.validator-type-badge-text {
  display: block;
  transform: translateY(0.5px);
}

.validator-type-badge-fake {
  display: none;
}

.validator-type-badge.is-ever {
  border-color: rgba(47, 147, 220, 0.38);
  background: rgba(47, 147, 220, 0.12);
  color: #9dc8e8;
}

.validator-type-badge.is-proxy,
.validator-type-badge.is-depool {
  border-color: rgba(50, 175, 104, 0.34);
  background: rgba(50, 175, 104, 0.11);
  color: #9fceb3;
}

.validator-type-badge.is-stproxy,
.validator-type-badge.is-stdepool,
.validator-type-badge.is-stever {
  border-color: rgba(202, 168, 92, 0.38);
  background: rgba(202, 168, 92, 0.12);
  color: #d7c28f;
}

.validator-type-badge.is-snom {
  border-color: rgba(77, 184, 255, 0.38);
  background: rgba(77, 184, 255, 0.12);
  color: #a8d9ff;
}

.validator-type-badge.is-snpool {
  border-color: rgba(248, 113, 113, 0.38);
  background: rgba(248, 113, 113, 0.11);
  color: #f7a8a8;
}

.validator-type-badge.is-nompool {
  border-color: rgba(77, 184, 255, 0.36);
  background: rgba(77, 184, 255, 0.11);
  color: #a8d9ff;
}

.validator-type-badge.is-lstctrl {
  border-color: rgba(56, 189, 178, 0.38);
  background: rgba(56, 189, 178, 0.12);
  color: #a7e4df;
}

.validator-type-badge.is-v1r3 {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
  color: #f6cf8d;
}

.validator-type-badge.is-vest {
  border-color: rgba(224, 82, 96, 0.36);
  background: rgba(224, 82, 96, 0.1);
  color: #f0a0a7;
}

.validator-type-badge.is-whales {
  border-color: rgba(64, 202, 123, 0.34);
  background: rgba(64, 202, 123, 0.1);
  color: #9fceb3;
}

.validator-type-badge.is-hipo {
  border-color: rgba(214, 173, 88, 0.4);
  background: rgba(214, 173, 88, 0.12);
  color: #d7c28f;
}

.validator-type-badge.is-unknown {
  border-color: rgba(154, 166, 184, 0.28);
  background: rgba(154, 166, 184, 0.08);
  color: #b7c0ce;
}

@media (min-width: 761px) {
  .validator-type-badge.is-map-fake {
    position: relative;
    width: 70px;
    min-width: 70px;
    overflow: hidden;
    padding-inline: 0;
    border-color: rgba(255, 91, 105, 0.48);
    background:
      linear-gradient(180deg, rgba(255, 91, 105, 0.17), rgba(155, 26, 45, 0.15)),
      rgba(255, 70, 88, 0.08);
    color: rgba(255, 218, 222, 0.96);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(255, 91, 105, 0.07);
    font-family: var(--font-sans);
    font-size: 9.5px;
    font-weight: 720;
  }

  .validator-type-badge.is-map-fake .validator-type-badge-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
    transition: opacity 360ms ease, transform 360ms ease;
    white-space: nowrap;
  }

  .validator-type-badge.is-map-fake .validator-type-badge-primary {
    opacity: 1;
    transform: translateX(0);
  }

  .validator-type-badge.is-map-fake .validator-type-badge-fake {
    opacity: 0;
    transform: translateX(10px);
  }

  .validator-fake-phase .validator-type-badge.is-map-fake .validator-type-badge-primary {
    opacity: 0;
    transform: translateX(-10px);
  }

  .validator-fake-phase .validator-type-badge.is-map-fake .validator-type-badge-fake {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 761px) and (prefers-reduced-motion: reduce) {
  .validator-type-badge.is-map-fake .validator-type-badge-primary,
  .validator-type-badge.is-map-fake .validator-type-badge-fake {
    transition: none;
  }

  .validator-type-badge.is-map-fake .validator-type-badge-primary {
    opacity: 0;
  }

  .validator-type-badge.is-map-fake .validator-type-badge-fake {
    opacity: 1;
    transform: translateX(0);
  }
}

.validator-type-glossary {
  position: fixed;
  z-index: 40;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(154, 196, 224, 0.18);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(17, 24, 34, 0.98), rgba(7, 10, 15, 0.985)),
    #080b10;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.validator-type-glossary-title {
  color: rgba(218, 228, 240, 0.9);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.validator-type-glossary-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.validator-type-glossary-row .validator-type-badge {
  justify-self: start;
}

.validator-type-glossary-details {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: rgba(188, 199, 213, 0.82);
  font-size: 11px;
  line-height: 1.25;
}

.validator-type-glossary-details strong {
  overflow: hidden;
  color: rgba(237, 244, 250, 0.94);
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.validator-hover-tooltip {
  position: fixed;
  z-index: 120;
  display: grid;
  max-width: min(560px, calc(100vw - 24px));
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(132, 205, 240, 0.24);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(16, 24, 35, 0.985), rgba(5, 9, 15, 0.992)),
    linear-gradient(90deg, rgba(94, 215, 255, 0.034), transparent 62%),
    #070a10;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.44),
    0 0 18px rgba(47, 147, 220, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.062);
  color: rgba(224, 235, 246, 0.94);
  font-size: 11px;
  line-height: 1.25;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.validator-hover-tooltip-row {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.validator-hover-tooltip-label {
  color: rgba(142, 204, 235, 0.88);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0;
}

.validator-hover-tooltip-value {
  min-width: 0;
  color: rgba(237, 244, 250, 0.95);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 620;
  overflow-wrap: anywhere;
}

.validator-hover-tooltip-row.is-danger .validator-hover-tooltip-value {
  color: rgba(255, 116, 128, 0.98);
}

.validator-history-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.validator-history-dot {
  position: relative;
  display: inline-flex;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(154, 166, 184, 0.62);
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-family: var(--font-sans);
  font-size: 7.5px;
  font-weight: 900;
  line-height: 1;
}

.validator-history-dot.is-participated {
  border-color: rgba(50, 175, 104, 0.68);
  background: rgba(50, 175, 104, 0.84);
  box-shadow: 0 0 0 2px rgba(50, 175, 104, 0.04);
}

.validator-history-dot.is-participated.is-fake-node {
  width: 11px;
  height: 11px;
  flex-basis: 11px;
  border-color: rgba(50, 175, 104, 0.86);
  background: rgba(50, 175, 104, 0.92);
  color: transparent;
  text-shadow: none;
}

.validator-history-dot.is-participated.is-fake-node::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  border-radius: 999px;
  background: rgba(255, 58, 76, 0.98);
  transform: translate(-50%, -50%);
}

.validator-history-dot.is-missed {
  border-color: rgba(220, 63, 77, 0.68);
  background: rgba(220, 63, 77, 0.86);
  box-shadow: 0 0 0 2px rgba(220, 63, 77, 0.045);
}

.validator-copy {
  position: relative;
  display: inline-flex;
  min-height: 24px;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.validator-copy-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.validator-copy:hover {
  color: #d9f4ff;
}

.validator-copy:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
  border-radius: 4px;
}

.validator-copy:disabled {
  cursor: default;
  text-decoration: none;
}

.validator-copy.is-copied {
  color: var(--gold);
}

.validator-copy-feedback {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  z-index: 3;
  padding: 4px 7px;
  border: 1px solid rgba(202, 168, 92, 0.42);
  border-radius: var(--radius-sm);
  background: rgba(13, 15, 21, 0.98);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: var(--label-size);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.validator-copy.is-copied .validator-copy-feedback,
.validator-copy.is-failed .validator-copy-feedback {
  opacity: 1;
  transform: translate(-50%, 0);
}

.validator-copy.is-failed .validator-copy-feedback {
  border-color: rgba(220, 63, 77, 0.42);
  color: #f0a0a7;
}

.validator-number {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 540;
  font-variant-numeric: tabular-nums;
  text-align: right;
  text-overflow: ellipsis;
}

.validator-seen-rounds {
  color: rgba(205, 218, 232, 0.86);
  font-weight: 560;
}

/* Status messages */
.empty-state {
  padding: 18px;
  border: 1px solid var(--table-line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.008)),
    rgba(255, 255, 255, 0.01);
  color: rgba(188, 199, 213, 0.86);
  font-size: var(--body-size);
  font-weight: 590;
  line-height: 1.45;
}

.error-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 63, 77, 0.55);
  border-radius: var(--radius-md);
  background: rgba(220, 63, 77, 0.12);
  color: #ffd2d2;
}

/* Responsive layout */
@media (max-width: 1220px) {
  .top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    place-items: stretch;
  }

  .top-grid::before,
  .top-grid::after,
  .election-panel::after,
  .network-panel::after {
    display: none;
  }

  .election-panel,
  .network-panel {
    grid-column: auto;
    height: auto;
    max-width: 100%;
    overflow: hidden;
    position: static;
    width: auto;
    transform: none;
  }

  .top-grid > .info-panel {
    border-color: rgba(170, 205, 230, 0.15);
    border-radius: var(--radius-md);
    background:
      radial-gradient(circle at 0 0, rgba(214, 173, 88, 0.016), transparent 34%),
      radial-gradient(circle at 100% 100%, rgba(63, 168, 245, 0.022), transparent 34%),
      var(--surface-glass);
    box-shadow: var(--shadow-panel);
    clip-path: none;
  }

  .election-panel,
  .network-panel {
    border-right: 1px solid rgba(170, 205, 230, 0.15);
    border-left: 1px solid rgba(170, 205, 230, 0.15);
  }

  .network-panel {
    order: 2;
  }

  .clock-stage {
    grid-column: auto;
    order: 1;
    width: min(100%, 520px);
    min-height: 378px;
    padding: 24px;
  }

  .clock-stage::before,
  .clock-stage::after {
    display: none;
  }

  .election-panel {
    order: 3;
  }
}

@media (max-width: 1450px) and (min-width: 761px) {
  .validator-table {
    --validator-grid-columns: 24px minmax(64px, 0.52fr) minmax(86px, 0.82fr) minmax(92px, 0.9fr) minmax(80px, 0.7fr) minmax(62px, 0.62fr) minmax(62px, 0.58fr) minmax(56px, 0.5fr);
    --validator-column-gap: 5px;
    --validator-row-padding-inline: 8px;
  }

  .validator-table.is-absent {
    --validator-grid-columns: 24px minmax(60px, 0.44fr) minmax(76px, 0.62fr) minmax(84px, 0.7fr) minmax(74px, 0.58fr) minmax(186px, 1.5fr);
  }
}

@media (max-width: 1280px) and (min-width: 761px) {
  .node-stats-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .validator-table {
    --validator-grid-columns: 22px minmax(62px, 0.54fr) minmax(68px, 0.72fr) minmax(74px, 0.82fr) minmax(66px, 0.64fr) minmax(58px, 0.58fr) minmax(56px, 0.54fr) minmax(54px, 0.48fr);
    --validator-column-gap: 3px;
    --validator-row-padding-inline: 6px;
  }

  .validator-table.is-absent {
    --validator-grid-columns: 22px minmax(58px, 0.44fr) minmax(64px, 0.58fr) minmax(72px, 0.66fr) minmax(62px, 0.54fr) minmax(168px, 1.45fr);
  }

  .validator-address,
  .validator-source-address {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    background:
      radial-gradient(circle at 50% 12%, rgba(47, 147, 220, 0.038), transparent 28%),
      radial-gradient(circle at 50% 36%, rgba(202, 168, 92, 0.012), transparent 26%),
      linear-gradient(180deg, #05080c 0%, #030407 58%, #07080c 100%);
  }

  .app-shell {
    width: 100%;
    max-width: 430px;
    padding: 12px 10px 28px;
  }

  .titlebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: stretch;
    min-height: auto;
    padding-bottom: 12px;
    text-align: center;
  }

  .titlebar h1 {
    order: 1;
    grid-column: 1 / -1;
    font-size: 22px;
  }

  h1::after {
    width: 180px;
    height: 14px;
    margin-top: 8px;
    background:
      linear-gradient(90deg, transparent, rgba(216, 168, 75, 0.68), transparent) left 16px center / 58px 1px no-repeat,
      linear-gradient(90deg, transparent, rgba(216, 168, 75, 0.68), transparent) right 16px center / 58px 1px no-repeat,
      radial-gradient(circle, rgba(244, 216, 138, 0.86) 0 2px, rgba(200, 145, 54, 0.36) 2.5px, transparent 3px) center / 8px 8px no-repeat;
  }

  .runtime-status,
  .header-updated {
    position: static;
    width: 100%;
    min-width: 0;
    min-height: 31px;
    max-width: none;
    overflow: hidden;
    padding-inline: 9px;
    justify-content: center;
  }

  .runtime-status {
    order: 2;
  }

  .header-updated {
    order: 3;
    grid-column: 1 / -1;
    display: none;
  }

  .header-updated strong,
  #runtimeFreshness {
    font-size: 12px;
  }

  .top-grid {
    gap: var(--rhythm-card-gap);
    margin-top: 0;
  }

  .titlebar > *,
  .top-grid > *,
  .map-controls > *,
  .round-stats-panel > *,
  .round-stats-color-panel > *,
  .validator-map-panel > *,
  .node-stats-panel > *,
  .rounds-grid > *,
  .recent-rounds-grid > * {
    min-width: 0;
    max-width: 100%;
  }

  .clock-stage {
    width: 100%;
    min-height: 316px;
    padding: 18px;
    border-radius: var(--radius-md);
  }

  #clockSvg {
    width: min(76vw, 280px);
    filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.42));
  }

  .election-panel {
    order: 3;
    width: 100%;
    padding: var(--rhythm-mobile-pad);
  }

  .network-panel {
    order: 2;
    width: 100%;
    grid-template-rows: auto auto;
    gap: var(--rhythm-card-gap);
  }

  .network-card,
  .network-message-card {
    width: 100%;
    padding: var(--rhythm-mobile-pad);
  }

  .network-message-card {
    min-height: 106px;
  }

  .network-message-card p {
    max-width: 30ch;
    font-size: 12.2px;
    line-height: 1.42;
  }

  .info-panel h2 {
    gap: 8px;
    min-height: 32px;
    margin-bottom: 12px;
  }

  .network-card h2 {
    margin-bottom: 0;
  }

  .panel-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .network-globe {
    width: 22px;
    height: 22px;
  }

  .chain-tabs {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 0;
  }

  .network-selector-layout {
    grid-template-columns: minmax(118px, 0.88fr) minmax(0, 1.12fr);
    gap: var(--rhythm-card-gap);
    min-height: 172px;
    padding: var(--rhythm-card-gap);
  }

  .chain-tab {
    min-width: 0;
    min-height: var(--control-size);
    justify-content: center;
    overflow: hidden;
    padding: 0 8px;
    font-size: 12px;
  }

  .chain-tab-main {
    min-width: 0;
    justify-content: center;
    gap: 8px;
  }

  .chain-mark {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .network-portrait {
    min-height: 164px;
  }

  .map-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--rhythm-card-gap);
    margin-top: var(--rhythm-card-gap);
  }

  .round-stats-toggle {
    grid-column: 1 / -1;
  }

  .map-toggle {
    min-width: 0;
    width: 100%;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    font-size: 11px;
  }

  .node-stats-toggle,
  .round-stats-toggle {
    min-width: 0;
  }

  .map-toggle-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .round-stats-panel {
    grid-template-columns: 1fr;
    gap: var(--rhythm-card-gap);
    margin-top: var(--rhythm-card-gap);
  }

  .round-stats-color-panel {
    padding: var(--rhythm-mobile-pad);
  }

  .round-stats-panel-heading {
    align-items: flex-start;
  }

  .round-stats-panel-heading h2 {
    white-space: normal;
  }

  .validator-map-heading .panel-title-text,
  .node-stats-heading .panel-title-text,
  .round-stats-panel-heading .panel-title-text {
    overflow: visible;
    white-space: normal;
  }

  .round-stats-panel-count {
    min-width: 68px;
  }

  .round-stats-chart-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .round-stats-chart-card {
    padding: 11px;
  }

  .round-stats-chart-header {
    min-height: 42px;
  }

  .round-stats-chart-header strong {
    font-size: 15px;
  }

  .validator-map-panel {
    margin-top: 10px;
  }

  .node-stats-panel {
    margin-top: 10px;
  }

  .node-stats-heading,
  .node-stats-content {
    padding-right: var(--rhythm-mobile-pad);
    padding-left: var(--rhythm-mobile-pad);
  }

  .node-stats-heading {
    padding-top: var(--rhythm-mobile-pad);
  }

  .node-stats-heading h2 {
    line-height: 1.3;
  }

  .node-stats-summary {
    display: none;
    min-height: 0;
  }

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

  .node-stats-layout {
    grid-template-columns: 1fr;
  }

  .node-stats-card {
    padding: 6px 7px;
  }

  .node-stats-card small {
    white-space: nowrap;
  }

  .node-stats-table {
    min-width: 500px;
  }

  .node-stats-block-countries .node-stats-table {
    min-width: 500px;
  }

  .validator-map-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: var(--rhythm-mobile-pad);
  }

  .validator-map-titlebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .validator-map-titlebar h2 {
    min-width: 0;
  }

  .validator-map-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: start;
    width: 100%;
    justify-content: flex-start;
  }

  .validator-map-meta {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .validator-map-meta-item {
    min-height: 48px;
    height: 48px;
    padding: 6px 8px;
  }

  .validator-map-meta-value {
    font-size: 13px;
  }

  .validator-map-round-value {
    min-width: 0;
  }

  .map-reset-button {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .validator-map-shell {
    height: 390px;
    margin: 0 var(--rhythm-mobile-pad) var(--rhythm-mobile-pad);
  }

  .validator-map-status {
    right: 14px;
    bottom: 14px;
    max-width: none;
  }

  .validator-map-panel .maplibregl-ctrl button {
    width: var(--control-size);
    height: var(--control-size);
  }

  .popup-node-list {
    width: max-content;
    max-height: min(56vh, 430px);
  }

  .popup-col-ip {
    width: 72px;
  }

  .popup-col-isp {
    width: 54px;
  }

  .popup-col-row {
    width: 32px;
  }

  .popup-node-table th,
  .popup-node-table td {
    padding-right: 6px;
  }

  .popup-peer {
    width: 64ch;
    max-width: none;
    overflow: visible;
    font-size: 9px;
    text-overflow: clip;
  }

  .popup-validator-detail {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px;
  }

  .popup-validator-label,
  .popup-row-link,
  .popup-validator-value {
    font-size: 9px;
  }

  .popup-validator-value {
    font-weight: 700;
    line-height: 1.1;
  }

  #metricStatus {
    font-size: 24px;
  }

  .election-time-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .countdown-block {
    min-width: max-content;
    justify-items: end;
    text-align: right;
  }

  .election-countdown {
    font-size: 16px;
    text-align: right;
    white-space: nowrap;
  }

  .date-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px;
  }

  .date-value {
    overflow-wrap: normal;
    text-align: right;
    white-space: nowrap;
  }

  .rounds-grid,
  .recent-rounds-grid {
    grid-template-columns: 1fr;
    gap: var(--rhythm-card-gap);
    margin-top: var(--rhythm-card-gap);
  }

  .round-panel,
  .recent-round-panel {
    min-height: 0;
    padding: var(--rhythm-mobile-pad);
  }

  .rounds-grid > .round-panel.is-active-round {
    order: 1;
  }

  .rounds-grid > .round-panel.is-secondary-round {
    order: 2;
  }

  .round-heading {
    display: grid;
    gap: 10px;
  }

  .round-title-block {
    padding-right: 0;
  }

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

  .round-apr-badge {
    min-width: 128px;
    min-height: 42px;
    padding: 7px 10px;
  }

  .round-apr-badge strong {
    font-size: 18px;
  }

  .round-stats {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: var(--rhythm-card-gap);
  }

  .round-stat,
  .round-stat:last-child {
    grid-column: auto;
    min-height: 60px;
    padding: 10px 11px;
  }

  .round-stat strong {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .recent-round-heading {
    display: grid;
    gap: 10px;
  }

  .recent-round-heading h2 {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .recent-round-count {
    margin-left: 44px;
    justify-self: start;
  }

  .validator-list {
    overflow-x: hidden;
    padding-bottom: 0;
    border-radius: 0;
  }

  .validator-table,
  .validator-table.is-absent {
    display: grid;
    min-width: 0;
    gap: 8px;
    overflow: visible;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .validator-header {
    display: none;
  }

  .validator-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "type type type"
      "identity identity identity"
      "history history history"
      "stake reward weight";
    gap: 8px 7px;
    min-height: 0;
    padding: 12px;
    border: 1px solid var(--table-line);
    border-left: 3px solid color-mix(in srgb, var(--round-color) 55%, white 4%);
    border-radius: var(--radius-md);
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--round-color) 1.3%, transparent), transparent 52%),
      var(--surface-card),
      rgba(255, 255, 255, 0.01);
  }

  .validator-row:hover,
  .validator-row:focus-within {
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--round-color) 1.3%, transparent), transparent 52%),
      var(--surface-card),
      rgba(255, 255, 255, 0.01);
    box-shadow: none;
  }

  .validator-row.is-validator-selected {
    border-color: color-mix(in srgb, var(--round-color) 62%, white 7%);
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--round-color) 3.5%, transparent), transparent 58%),
      var(--surface-card),
      rgba(255, 255, 255, 0.01);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--round-color) 35%, transparent),
      0 0 18px color-mix(in srgb, var(--round-color) 16%, transparent);
  }

  .validator-row:last-child {
    border-bottom: 1px solid var(--table-line);
  }

  .validator-row.is-validator-selected:last-child {
    border-bottom-color: color-mix(in srgb, var(--round-color) 62%, white 7%);
  }

  .validator-row .validator-cell {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 590;
    line-height: 1.25;
    white-space: normal;
  }

  .validator-row .validator-cell:is(
    .validator-index,
    .validator-source-type,
    .validator-source,
    .validator-id,
    .validator-history,
    .validator-stake,
    .validator-rewards,
    .validator-weight,
    .validator-seen
  ) {
    transform: none;
  }

  .validator-row .validator-cell.validator-index {
    grid-area: index;
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    color: var(--muted);
    font-weight: 500;
    text-align: left;
  }

  .validator-row .validator-cell.validator-source-type {
    grid-area: type;
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: flex-start;
    padding-left: 28px;
  }

  .validator-row .validator-cell.validator-source-type .validator-type-badges {
    gap: 8px;
    justify-content: flex-start;
  }

  .validator-row .validator-cell.validator-source {
    grid-area: source;
    justify-content: flex-start;
    --validator-card-label: "Source";
  }

  .validator-row .validator-cell.validator-id {
    grid-area: identity;
    --validator-card-label: "Validator";
  }

  .validator-row .validator-cell.validator-history {
    grid-area: history;
    --validator-card-label: "History · Older -> Latest";
  }

  .validator-row .validator-cell.validator-source,
  .validator-row .validator-cell.validator-id,
  .validator-row .validator-cell.validator-history {
    justify-self: stretch;
  }

  .validator-row .validator-cell.validator-stake {
    grid-area: stake;
    justify-self: stretch;
    text-align: right;
    --validator-card-label: "Stake";
  }

  .validator-row .validator-cell.validator-rewards {
    grid-area: reward;
    justify-self: stretch;
    text-align: right;
    --validator-card-label: "Rewards";
  }

  .validator-row .validator-cell.validator-weight {
    grid-area: weight;
    justify-self: stretch;
    text-align: right;
    --validator-card-label: "Weight";
  }

  .validator-row .validator-source.is-detail,
  .validator-row .validator-cell.validator-id,
  .validator-row .validator-cell.validator-history,
  .validator-row .validator-cell.validator-stake,
  .validator-row .validator-cell.validator-rewards,
  .validator-row .validator-cell.validator-weight,
  .validator-row .validator-cell.validator-seen {
    display: grid;
    gap: 4px;
    min-height: 48px;
    padding: 8px;
    border: 1px solid rgba(217, 231, 246, 0.065);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
  }

  .validator-row .validator-source.is-detail::before,
  .validator-row .validator-cell.validator-id::before,
  .validator-row .validator-cell.validator-history::before,
  .validator-row .validator-cell.validator-stake::before,
  .validator-row .validator-cell.validator-rewards::before,
  .validator-row .validator-cell.validator-weight::before,
  .validator-row .validator-cell.validator-seen::before {
    content: var(--validator-card-label);
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
  }

  .validator-row.has-source-detail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "type type type type type type"
      "source source source identity identity identity"
      "history history history history history history"
      "stake stake reward reward weight weight";
  }

  .validator-source.is-direct,
  .validator-source.is-unknown {
    display: none;
  }

  .validator-table.is-absent .validator-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "type type type"
      "identity identity identity"
      "history history history"
      "lastseen lastseen lastseen";
  }

  .validator-table.is-absent .validator-row.has-source-detail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "type type type type type type"
      "source source source identity identity identity"
      "history history history history history history"
      "lastseen lastseen lastseen lastseen lastseen lastseen";
  }

  .validator-table.is-absent .validator-row .validator-cell.validator-seen {
    grid-area: lastseen;
    justify-self: stretch;
    text-align: right;
    --validator-card-label: "Seen";
  }

  .validator-address,
  .validator-source-address {
    max-width: 100%;
    font-size: 12px;
  }

  .validator-source {
    overflow: hidden;
  }

  .validator-type-glossary {
    gap: 7px;
    padding: 11px;
  }

  .validator-type-glossary-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .validator-copy {
    max-width: 100%;
    min-height: 24px;
  }

  .validator-history-dots {
    gap: 5px;
  }

  .validator-history-dot {
    width: 11px;
    height: 11px;
    flex-basis: 11px;
  }
}

@media (max-width: 768px) {
  .node-stats-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 48px;
  }

  .node-stats-card.is-summary-round {
    order: 1;
  }

  .node-stats-card.is-summary-best-location {
    order: 2;
  }

  .node-stats-card.is-summary-total-nodes {
    order: 3;
  }

  .node-stats-card.is-summary-mapped-nodes {
    order: 4;
  }

  .node-stats-card.is-summary-total-stake {
    order: 5;
  }

  .node-stats-card.is-summary-mapped-stake {
    order: 6;
  }

  .node-stats-layout {
    grid-template-columns: 1fr;
  }

  .node-stats-block-placement {
    grid-template-rows: auto auto;
  }

  .node-stats-placement {
    height: auto;
  }

  .node-stats-table th,
  .node-stats-table td {
    padding-right: 8px;
    padding-left: 8px;
  }

  .node-stats-table-shell.has-scroll-more {
    box-shadow: inset -24px 0 20px -22px rgba(132, 205, 240, 0.34);
  }

  .node-stats-table:not(.node-stats-ranking-table) {
    min-width: calc(100% + 246px);
  }

  .node-stats-table:not(.node-stats-ranking-table) th:nth-child(3),
  .node-stats-table:not(.node-stats-ranking-table) td:nth-child(3) {
    padding-right: 14px;
  }

  .node-stats-table:not(.node-stats-ranking-table) .node-stats-col-rank {
    width: 42px;
  }

  .node-stats-table:not(.node-stats-ranking-table) .node-stats-col-name {
    width: auto;
  }

  .node-stats-table:not(.node-stats-ranking-table) .node-stats-col-count {
    width: 116px;
  }

  .node-stats-table:not(.node-stats-ranking-table) .node-stats-col-stake {
    width: 140px;
  }

  .node-stats-table:not(.node-stats-ranking-table) .node-stats-col-percent {
    width: 106px;
  }

  .node-stats-placement .node-stats-table {
    min-width: calc(100% + 202px);
  }

  .node-stats-ranking-table .node-stats-col-rank {
    width: 42px;
  }

  .node-stats-ranking-table .node-stats-col-location {
    width: auto;
  }

  .node-stats-ranking-table .node-stats-col-distance-primary {
    width: 116px;
  }

  .node-stats-ranking-table .node-stats-col-distance-secondary {
    width: 112px;
  }

  .node-stats-ranking-table .node-stats-col-distance-tertiary {
    width: 90px;
  }
}

@media (max-width: 340px) {
  .app-shell {
    padding-inline: 8px;
  }

  .round-panel,
  .recent-round-panel {
    padding: 12px;
  }

  .validator-row {
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px;
  }

  .validator-row .validator-cell.validator-index {
    top: 10px;
    left: 10px;
  }

  .validator-row .validator-cell.validator-source-type {
    padding-left: 28px;
  }

  .validator-type-badge {
    max-width: 100%;
  }
}
