:root {
  color-scheme: dark;
  --bg: #080d1d;
  --bg-soft: #0d1428;
  --panel: rgba(17, 26, 48, 0.88);
  --panel-solid: #111a30;
  --panel-hover: #16223d;
  --ink: #f5f7ff;
  --muted: #98a4bc;
  --faint: #68758f;
  --line: rgba(154, 174, 216, 0.14);
  --line-strong: rgba(154, 174, 216, 0.24);
  --accent: #ff405b;
  --accent-soft: rgba(255, 64, 91, 0.13);
  --cyan: #32c5ff;
  --cyan-soft: rgba(50, 197, 255, 0.13);
  --purple: #d557ff;
  --purple-soft: rgba(213, 87, 255, 0.12);
  --green: #47d99d;
  --green-soft: rgba(71, 217, 157, 0.12);
  --amber: #ffc35a;
  --amber-soft: rgba(255, 195, 90, 0.13);
  --bad: #ff6b75;
  --sidebar: 250px;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% -10%, rgba(213, 87, 255, 0.14), transparent 32%),
    radial-gradient(circle at 0% 90%, rgba(50, 197, 255, 0.12), transparent 30%),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
}

.ambient-one {
  top: -220px;
  right: 12%;
  background: var(--purple);
}

.ambient-two {
  bottom: -250px;
  left: 5%;
  background: var(--cyan);
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(8, 13, 29, 0.86);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 7px 25px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
}

.brand-mark img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav {
  display: grid;
  gap: 6px;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
  transition: 160ms ease;
}

.main-nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
}

.main-nav a.active {
  border-color: rgba(255, 64, 91, 0.2);
  background: var(--accent-soft);
  color: var(--ink);
}

.nav-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: currentColor;
  font-size: 20px;
  line-height: 1;
}

.sidebar-card {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(50, 197, 255, 0.08), rgba(213, 87, 255, 0.06));
}

.network-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(71, 217, 157, 0.1), 0 0 18px rgba(71, 217, 157, 0.55);
}

.live-dot.bad {
  background: var(--bad);
  box-shadow: 0 0 0 4px rgba(255, 107, 117, 0.1), 0 0 18px rgba(255, 107, 117, 0.45);
}

.sidebar-card strong {
  margin-top: 4px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 25px;
}

.sidebar-card small {
  color: var(--faint);
}

.sidebar-links {
  display: flex;
  justify-content: space-between;
  margin-top: 17px;
  padding: 0 4px;
}

.sidebar-links a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.sidebar-links a:hover {
  color: var(--cyan);
}

.workspace {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 16px clamp(20px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 29, 0.72);
  backdrop-filter: blur(20px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 3px;
  background: currentColor;
}

.search {
  display: flex;
  width: min(760px, 100%);
  min-width: 0;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(17, 26, 48, 0.72);
  transition: 160ms ease;
}

.search:focus-within {
  border-color: rgba(50, 197, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(50, 197, 255, 0.07);
}

.search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-left: 17px;
  border: 2px solid var(--muted);
  border-radius: 99px;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: var(--muted);
}

.search input {
  min-width: 0;
  flex: 1;
  padding: 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search input::placeholder {
  color: #6d7890;
}

.search button {
  margin-right: 6px;
  padding: 9px 15px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #e92e76);
  color: white;
  cursor: pointer;
  font-weight: 750;
}

.search button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

#app {
  width: min(1500px, 100%);
  min-height: calc(100vh - 155px);
  margin: 0 auto;
  padding: 38px clamp(20px, 4vw, 52px) 64px;
  outline: 0;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 9px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.05rem, 4vw, 3.55rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 15px;
}

.page-head p {
  max-width: 690px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.refresh-note {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 12px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  margin-bottom: 20px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(120deg, rgba(18, 28, 52, 0.96), rgba(13, 20, 40, 0.9)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -65%;
  right: -10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 87, 255, 0.23), transparent 66%);
}

.hero-panel::after {
  content: "";
  position: absolute;
  bottom: -70%;
  left: -8%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 197, 255, 0.2), transparent 67%);
}

.hero-copy,
.hero-chain {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 15px;
}

.hero-copy h1 {
  max-width: 760px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--cyan), #86e9ff 35%, #ea76ff 80%);
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 700px;
  color: #acb7cd;
  font-size: 16px;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.badge.good {
  border-color: rgba(71, 217, 157, 0.2);
  background: var(--green-soft);
  color: var(--green);
}

.badge.warn {
  border-color: rgba(255, 195, 90, 0.2);
  background: var(--amber-soft);
  color: var(--amber);
}

.hero-chain {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(5, 9, 22, 0.42);
}

.hero-chain small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-height {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.chain-progress {
  height: 6px;
  margin: 7px 0;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.chain-progress span {
  display: block;
  width: 78%;
  height: 100%;
  animation: pulse-bar 2.4s ease-in-out infinite;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

@keyframes pulse-bar {
  50% {
    opacity: 0.65;
    transform: translateX(18%);
  }
}

.hero-chain .hash {
  color: var(--muted);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius-lg);
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--metric-glow, var(--cyan-soft));
  filter: blur(3px);
}

.metric-card small {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  letter-spacing: -0.045em;
}

.metric-card span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 7px;
  color: var(--faint);
  font-size: 12px;
}

.metric-card.purple {
  --metric-glow: var(--purple-soft);
}

.metric-card.green {
  --metric-glow: var(--green-soft);
}

.metric-card.red {
  --metric-glow: var(--accent-soft);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
}

.panel {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.panel.full {
  grid-column: 1 / -1;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 21px;
  border-bottom: 1px solid var(--line);
}

.panel-head-copy {
  min-width: 0;
}

.panel-head p {
  margin-top: 5px;
  color: var(--faint);
  font-size: 12px;
}

.text-link,
.button-link {
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover,
.button-link:hover {
  color: #91e7ff;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th,
td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: #dce2f0;
  font-size: 13px;
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.027);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.mono {
  font-family: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  letter-spacing: -0.02em;
}

.primary-link {
  color: var(--cyan);
  font-weight: 750;
  text-decoration: none;
}

.primary-link:hover {
  text-decoration: underline;
}

.address-link {
  color: #d76bff;
  text-decoration: none;
}

.address-link:hover {
  color: #e9a1ff;
}

.subline {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
}

.status-pill,
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.status-pill.success {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.failed {
  background: rgba(255, 107, 117, 0.12);
  color: var(--bad);
}

.type-pill {
  background: var(--purple-soft);
  color: #df8bff;
}

.block-cell,
.tx-cell,
.validator-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 17px;
}

.block-list {
  display: grid;
}

.tx-feed {
  display: grid;
}

.tx-feed-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(105px, auto) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

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

.tx-feed-row:hover {
  background: rgba(255, 255, 255, 0.027);
}

.tx-feed-main {
  min-width: 0;
}

.tx-feed-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-feed-type {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.tx-feed-type small {
  color: var(--faint);
  font-size: 10px;
}

.tx-feed-block {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 750;
}

.block-row {
  display: grid;
  grid-template-columns: 42px minmax(110px, 0.7fr) minmax(150px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

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

.block-row:hover {
  background: rgba(255, 255, 255, 0.027);
}

.block-row .row-symbol {
  width: 36px;
  height: 36px;
}

.block-meta {
  min-width: 0;
}

.block-meta strong,
.block-meta span {
  display: block;
}

.block-meta span {
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
}

.block-hash {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
}

.empty-state,
.error-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 34px;
  text-align: center;
}

.empty-state div,
.error-state div {
  max-width: 540px;
}

.empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 24px;
}

.empty-state p,
.error-state p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.error-state .empty-icon {
  border-color: rgba(255, 107, 117, 0.25);
  background: rgba(255, 107, 117, 0.08);
  color: var(--bad);
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.details-grid .panel:first-child {
  grid-row: span 2;
}

.detail-list {
  display: grid;
  padding: 5px 21px;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

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

.detail-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #e8edf8;
  font-size: 13px;
}

.copy-button {
  display: inline-flex;
  margin-left: 7px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.copy-button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.amount {
  color: var(--ink);
  font-weight: 800;
}

.big-address {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.identicon {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(50, 197, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(50, 197, 255, 0.22), rgba(213, 87, 255, 0.17)),
    var(--panel-solid);
  color: #bdefff;
  font-size: 22px;
  font-weight: 900;
}

.big-address > div:last-child {
  min-width: 0;
}

.big-address h1 {
  overflow: hidden;
  max-width: 100%;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-address p {
  margin-top: 7px;
  color: var(--muted);
}

.balance-list {
  display: grid;
  gap: 10px;
  padding: 18px 21px 21px;
}

.balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.balance-row span {
  color: var(--muted);
  font-size: 12px;
}

.balance-row strong {
  text-align: right;
}

.validator-list {
  display: grid;
  gap: 12px;
  padding: 17px;
}

.validator-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(100px, 0.45fr) minmax(100px, 0.45fr);
  align-items: center;
  gap: 18px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.validator-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.038);
}

.validator-card small {
  display: block;
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.pagination span {
  color: var(--muted);
  font-size: 12px;
}

.page-button,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.page-button:hover,
.action-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.action-button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #df2b83);
}

.callout {
  margin-bottom: 18px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 195, 90, 0.18);
  border-radius: 13px;
  background: var(--amber-soft);
  color: #ffd68f;
  line-height: 1.55;
}

.callout strong {
  color: var(--amber);
}

pre.json {
  max-height: 480px;
  margin: 0;
  overflow: auto;
  padding: 20px;
  background: rgba(3, 7, 17, 0.5);
  color: #b9c6dd;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.loading-page {
  display: grid;
  gap: 24px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-title {
  width: min(440px, 80%);
  height: 62px;
}

.skeleton-card {
  height: 130px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(390px, calc(100vw - 32px));
  padding: 13px 16px;
  transform: translateY(18px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #17233c;
  box-shadow: var(--shadow);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.scrim {
  display: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 4vw, 52px) 34px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
}

footer strong {
  color: var(--muted);
}

@media (max-width: 1120px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .details-grid .panel:first-child {
    grid-row: auto;
  }

  .panel.full {
    grid-column: auto;
  }
}

@media (max-width: 880px) {
  body.nav-open {
    overflow: hidden;
  }

  .shell {
    grid-template-columns: 1fr;
    width: 100%;
    overflow: hidden;
  }

  .sidebar {
    height: 100vh;
    height: 100dvh;
    width: min(320px, 86vw);
    overflow-y: auto;
    transform: translateX(-105%);
    box-shadow: 24px 0 80px rgba(0, 0, 0, 0.45);
    visibility: hidden;
    pointer-events: none;
    -webkit-overflow-scrolling: touch;
    transition: transform 180ms ease, visibility 0s linear 180ms;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .workspace {
    grid-column: 1;
    width: 100%;
    min-width: 0;
  }

  .menu-button {
    display: block;
  }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    background: rgba(2, 5, 13, 0.68);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    touch-action: none;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
  }

  body.nav-open .scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .topbar-status {
    display: none;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-chain {
    min-height: 170px;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 72px;
    gap: 10px;
    padding: 11px 14px;
  }

  .search input {
    padding: 12px 9px;
    font-size: 13px;
  }

  .search {
    width: 0;
    min-width: 0;
    flex: 1 1 0;
  }

  .search-icon {
    margin-left: 13px;
  }

  .search button {
    width: 42px;
    height: 38px;
    overflow: hidden;
    padding: 0;
    color: white;
    font-size: 0;
  }

  .search button::after {
    content: "→";
    color: white;
    font-size: 18px;
    line-height: 1;
  }

  #app {
    padding: 26px 14px 48px;
  }

  .page-head {
    display: block;
  }

  .refresh-note {
    display: block;
    margin-top: 12px;
  }

  .hero-panel {
    width: 100%;
    min-width: 0;
    padding: 22px;
    border-radius: 20px;
  }

  .hero-panel > *,
  .hero-copy,
  .hero-chain,
  .metric-card {
    min-width: 0;
  }

  .hero-copy h1 {
    overflow-wrap: anywhere;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-chain {
    padding: 19px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .metric-card {
    min-height: 112px;
    padding: 15px;
    border-radius: 15px;
  }

  .metric-card strong {
    font-size: 1.25rem;
  }

  .dashboard-grid {
    gap: 13px;
  }

  .panel {
    border-radius: 16px;
  }

  .panel-head {
    padding: 17px;
  }

  th,
  td {
    padding: 13px 15px;
  }

  .block-row {
    grid-template-columns: 36px minmax(95px, 1fr) auto;
    padding: 14px 15px;
  }

  .tx-feed-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 14px 15px;
  }

  .tx-feed-type {
    display: none;
  }

  .block-hash {
    display: none;
  }

  .detail-list {
    padding: 4px 16px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 14px 0;
  }

  .validator-card {
    grid-template-columns: 1fr 1fr;
  }

  .validator-cell {
    grid-column: 1 / -1;
  }

  .big-address {
    align-items: flex-start;
  }

  .identicon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  footer {
    display: grid;
    padding: 22px 16px 28px;
  }
}

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