/* Reef Watch: readable type and purple themes, without page zoom. */
:root {
  color-scheme: light;
  --bg: #f5f3fa;
  --panel: #ffffff;
  --panel2: #faf8fd;
  --line: #e3ddec;
  --text: #2d2437;
  --muted: #6f607d;
  --accent: #7132c7;
  --accent-dark: #542294;
  --accent-light: #f0e8fa;
  --button: #7132c7;
  --button-hover: #572197;
  --green: #176844;
  --green-bg: #e6f5ec;
  --warn: #855010;
  --warn-bg: #fff4dc;
  --red: #a72e50;
  --red-bg: #fff0f3;
  --focus: #9562d4;
  --chart: #a470db;
  --chart-strong: #8750c8;
  --chart-soft: #c1a0e2;
  --chart-track: #e3d5f2;
  --shadow: 0 4px 18px #37205606;
  --radius: 15px;
  --sidebar-width: 248px;
  font-family:
    "Segoe UI Variable Text",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 100%;
  line-height: 1.6;
  font-synthesis: none;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121019;
  --panel: #1d1828;
  --panel2: #251e32;
  --line: #3d324d;
  --text: #f1ebf8;
  --muted: #c2b5cf;
  --accent: #cda7ff;
  --accent-dark: #e1caff;
  --accent-light: #332444;
  --button: #7940bf;
  --button-hover: #874cd0;
  --green: #93e0b6;
  --green-bg: #18392b;
  --warn: #f6ce8b;
  --warn-bg: #3e2c18;
  --red: #ffa8be;
  --red-bg: #432231;
  --focus: #c19aef;
  --chart: #ad7fea;
  --chart-strong: #9262d8;
  --chart-soft: #795a9e;
  --chart-track: #433354;
  --shadow: 0 5px 22px #00000014;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
summary {
  touch-action: manipulation;
}

button {
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

button:hover {
  box-shadow: 0 2px 8px #4f23871a;
}

button svg,
nav svg {
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

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

.metric-positive,
.metric-warning,
.metric-negative,
.metric-neutral {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  border-radius: 5px;
  padding: 1px 4px;
}

.metric-positive {
  color: var(--green);
  background: var(--green-bg);
}

.metric-warning {
  color: var(--warn);
  background: var(--warn-bg);
}

.metric-negative {
  color: var(--red);
  background: var(--red-bg);
}

.metric-neutral {
  color: var(--muted);
}

:is(.apy, .secondary).metric-positive {
  color: var(--green);
}

:is(.apy, .secondary).metric-warning {
  color: var(--warn);
}

:is(.apy, .secondary).metric-negative {
  color: var(--red);
}

:is(.apy, .secondary).metric-neutral {
  color: var(--muted);
}

.apy[class*="metric-"] small {
  color: inherit;
}

#validator-filter + .table-wrap :is(.metric-positive, .metric-warning, .metric-negative, .metric-neutral) {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.commission-history {
  margin-top: 7px;
  max-width: 30rem;
  white-space: normal;
}

.commission-history summary {
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 4px 0;
}

.commission-history[open] {
  width: min(30rem, calc(100vw - 4rem));
  min-width: min(24rem, calc(100vw - 4rem));
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel2);
}

.commission-history ul {
  padding-left: 18px;
  margin: 8px 0;
}

.commission-history li {
  margin: 8px 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 240px;
  z-index: 20;
  background: var(--panel);
  padding: 10px;
}

.skip-link:focus {
  top: 12px;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--panel);
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 16px 22px;
  z-index: 10;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 760;
  letter-spacing: -1px;
  line-height: 1.12;
}

.brand:hover {
  color: var(--text);
}

.brand-light {
  font-weight: 480;
}

.brand small {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 1.4px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 6px;
}

.brand-mark {
  width: 39px;
  height: 39px;
  display: block;
  flex-shrink: 0;
}

.brand-mark img,
.reef-symbol img,
.orbit-core img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  min-width: 0;
  object-fit: contain;
  /* Trim the original low-resolution rim without altering the source PNG. */
  clip-path: circle(46% at 50% 51%);
}

.network-switch {
  margin: 28px 5px 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 650;
}

.network-switch small {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  margin-top: 2px;
}

.reef-symbol {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-label {
  font-size: 0.8125rem;
  letter-spacing: 1.1px;
  color: var(--muted);
  font-weight: 700;
  padding: 11px 14px 7px;
}

.nav-label:not(:first-child) {
  margin-top: 16px;
}

nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  color: var(--muted);
  font-weight: 550;
  font-size: 1rem;
  border-radius: 8px;
  min-height: 48px;
  line-height: 1.5;
}

nav a svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.65;
  flex-shrink: 0;
}

nav a:hover {
  background: var(--panel2);
}

nav a.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 680;
}

.nav-badge {
  font-size: 0.8125rem;
  font-weight: 750;
  border: 1px solid var(--line);
  padding: 1px 4px;
  border-radius: 4px;
  margin-left: auto;
  letter-spacing: 0;
  color: var(--accent);
}

.sidebar-bottom {
  margin-top: auto;
  padding: 30px 12px 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.sidebar-bottom p {
  line-height: 1.8;
  margin: 10px 0 15px;
}

.sidebar-bottom a {
  font-weight: 600;
}

.local-label {
  font-size: 0.8125rem;
  letter-spacing: 0.8px;
  font-weight: 750;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.local-label span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #af85e8;
}

.workspace {
  margin-left: var(--sidebar-width);
  min-width: 0;
}

.topbar {
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  gap: 12px;
  min-height: 84px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  min-width: 0;
}

.breadcrumb > span:first-child {
  color: var(--muted);
}

.breadcrumb-divider {
  color: var(--muted);
}

.breadcrumb strong {
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-light);
  font-size: 0.875rem;
  font-weight: 650;
  white-space: nowrap;
}

.telegram-link svg {
  flex: 0 0 18px;
}

.telegram-link:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

footer .telegram-link {
  border: 0;
  padding: 4px 0;
  color: var(--accent);
  background: transparent;
}

.preview-pill {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--accent);
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: var(--accent-light);
  border-radius: 5px;
  white-space: nowrap;
}

.top-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}

.container {
  max-width: 1620px;
  margin: 0 auto;
  padding: 28px 32px 0;
}

.hero {
  background:
    radial-gradient(ellipse at 80% 70%, #9860df55, transparent 55%),
    linear-gradient(105deg, #342050, #482373 65%, #562483);
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  color: white;
  padding: 32px 34px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  box-shadow: 0 8px 20px #57397b12;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: #d3b2fa;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 5px;
  height: 5px;
  background: #b588f0;
  border-radius: 50%;
}

h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 570;
  letter-spacing: -1.35px;
  margin: 15px 0 10px;
}

h1 span {
  color: #d6b8fd;
}

.hero-copy p {
  font-size: 1rem;
  color: #c7b3de;
  margin: 0 0 23px;
  line-height: 1.6;
}

.reef-orbit {
  position: absolute;
  right: 58px;
  top: 6px;
  width: 220px;
  height: 220px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(215, 183, 255, 0.22);
  border-radius: 50%;
  inset: 10px;
  transform: rotate(-30deg) scaleY(0.85);
}

.orbit-two {
  inset: 29px;
  transform: rotate(35deg) scaleY(1.08);
  border-style: dashed;
}

.orbit-three {
  inset: 49px;
  transform: rotate(-25deg) scaleY(1.15);
}

.orbit-core {
  position: absolute;
  inset: 67px;
  display: block;
  filter: drop-shadow(0 10px 16px #24113140);
}

.orbit-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c9a4fd;
  box-shadow: 0 0 15px #b483fda0;
}

.node-one {
  top: 37px;
  left: 39px;
}

.node-two {
  right: 4px;
  top: 103px;
  width: 5px;
  height: 5px;
}

.node-three {
  bottom: 41px;
  left: 59px;
  width: 6px;
  height: 6px;
}

.orbit-caption {
  position: absolute;
  bottom: 3px;
  left: 57px;
  letter-spacing: 3px;
  font-size: 0.875rem;
  color: #bc92e2;
}

.search {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--panel);
  min-width: 0;
  border-radius: 9px;
  padding: 6px 7px 6px 16px;
  box-shadow: 0 4px 10px #170c2812;
  max-width: 900px;
  z-index: 1;
  gap: 12px;
}

.search > svg {
  color: var(--muted);
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.search input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  flex: 1;
  font-size: 1rem;
  color: var(--text);
  height: 44px;
}

.search input::placeholder {
  color: var(--muted);
}

.search button {
  background: var(--button);
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  min-height: 44px;
}

.search button:hover {
  background: var(--button-hover);
}

.search button span {
  padding-left: 12px;
}

kbd {
  font:
    0.875rem ui-monospace,
    monospace;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  padding: 1px 5px;
  font-size: 0.875rem;
}

.search-help {
  grid-column: 1/-1;
  font-size: 0.875rem;
  color: #bda3d4;
  margin: 9px 0 0;
  line-height: 1.7;
}

.search-help span {
  margin: 0 7px;
  color: #b88cdf;
}

.hero .error {
  grid-column: 1/-1;
  background: var(--red-bg);
  color: var(--red);
  margin: 12px 0 0;
}

.detail .hero {
  display: block;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 12px;
}

.detail .hero-copy,
.detail .reef-orbit,
.detail .search-help {
  display: none;
}

.detail .search {
  max-width: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.detail .search input {
  height: 44px;
  font-size: 1rem;
}

.detail .search button {
  padding: 9px 16px;
  font-size: 1rem;
}

.head-strip {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(220px, 1.4fr);
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.head-metric,
.head-connection {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
  padding: 17px 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

.head-metric + .head-metric,
.head-connection {
  border-left: 1px solid var(--line);
}

.head-metric strong {
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.head-strip small {
  font-size: 0.875rem;
  line-height: 1.6;
}

.head-feed-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 650;
}

.head-feed-status.is-delayed { color: var(--warn); }
.head-feed-status.is-neutral { color: var(--muted); }

@media (max-width: 900px) {
  .head-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-metric,
  .head-connection { padding: 14px 16px; }
  .head-metric strong { font-size: 1.25rem; }
  .head-connection { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}

.chain-status {
  display: flex;
  gap: 12px 20px;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 20px 2px 24px;
  flex-wrap: wrap;
}

.chain-status a {
  margin-left: auto;
  font-size: 0.875rem;
}

.chain-status strong {
  font-weight: 600;
  color: var(--muted);
}

.chain-status .dot {
  margin-right: 4px;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4eac7f;
  flex-shrink: 0;
}

.dot.neutral {
  background: #b3aabd;
}

.dot.warning {
  background: #cb963e;
}

.dot.failed {
  background: #c8697f;
}

.muted {
  color: var(--muted);
}

.warning {
  color: var(--warn) !important;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3px 0 14px;
  gap: 10px;
}

.section-heading h2 {
  font-size: 1.25rem;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.3px;
}

.section-heading > span,
.section-heading > a {
  font-size: 0.875rem;
  color: var(--muted);
}

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

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.stat-label svg {
  height: 19px;
  width: 19px;
  color: var(--accent);
}

.stat-value {
  font-weight: 650;
  font-size: 2rem;
  letter-spacing: -0.8px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-value small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
}

.stat-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}

.stat-sub .dot {
  width: 4px;
  height: 4px;
  margin-right: 5px;
}

.stat-sub b {
  font-weight: 600;
  color: var(--green);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-width: 0;
  overflow: hidden;
}

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

.panel-head h2 {
  font-size: 1.125rem;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.1px;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.5;
}

.panel-head h2 svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.panel-head > a {
  font-size: 0.875rem;
  font-weight: 550;
  white-space: nowrap;
}

.panel-subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}

[data-overview-region] {
  min-width: 0;
}

.block-live-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel2);
}

.block-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 650;
}

.block-live-status.is-paused {
  color: var(--muted);
}

.block-live-status.is-delayed {
  color: var(--warn);
}

.block-live-controls button {
  min-height: 44px;
}

.block-live-note {
  padding: 11px 20px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

@keyframes block-arrival {
  from { background-color: var(--green-bg); }
  to { background-color: transparent; }
}

.block-arrival {
  animation: block-arrival 1.8s ease-out;
}

.panel-body {
  padding: 21px;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 20px;
}

.table-wrap {
  overflow: auto;
  overscroll-behavior-x: contain;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
  font-size: 1rem;
  line-height: 1.65;
}

th {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 550;
  letter-spacing: 0.2px;
  padding: 14px 20px;
  background: var(--panel2);
}

td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
  font-size: 1rem;
}

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

tbody tr:hover {
  background: var(--panel2);
}

td > a {
  font-weight: 550;
}

td .secondary {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 5px;
  display: block;
}

.secondary {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.6;
}

.mono,
pre,
code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.number {
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--green-bg);
  color: var(--green);
  white-space: nowrap;
}

.badge svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.badge.failed {
  background: var(--red-bg);
  color: var(--red);
}

.badge.unknown,
.badge.warning {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge.neutral {
  background: var(--accent-light);
  color: var(--muted);
}

.badge.purple {
  background: var(--accent-light);
  color: var(--accent);
}

.call {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.875rem;
  padding: 4px 8px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  line-height: 1.55;
}

.block-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 32px;
  border-radius: 7px;
  background: var(--accent-light);
  color: var(--muted);
  margin-right: 11px;
  vertical-align: middle;
}

.block-icon svg {
  width: 16px;
  height: 16px;
}

.block-ident {
  display: inline-block;
  vertical-align: middle;
}

.account-dot {
  display: inline-block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: conic-gradient(
    from var(--angle, 0deg),
    #cba8f8,
    #7a40c9,
    #ede2fc,
    #a878dd,
    #cba8f8
  );
  border: 3px solid var(--line);
  vertical-align: middle;
  margin-right: 6px;
}

.coverage {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 16px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  background: var(--accent-light);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.coverage b {
  color: var(--muted);
  font-weight: 600;
}

.coverage a {
  font-size: 0.875rem;
}

.coverage svg {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 5px;
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 3px 0 20px;
  flex-wrap: wrap;
}

.page-title h1,
.page-title h2 {
  font-size: 1.875rem;
  font-weight: 650;
  letter-spacing: -0.6px;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.page-title p {
  font-size: 1rem;
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-title > a {
  font-size: 1rem;
}

.page-title-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.subtle-btn,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  padding: 9px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  min-height: 44px;
}

.subtle-btn:hover {
  border-color: var(--line);
  background: var(--accent-light);
  color: var(--accent);
}

.subtle-btn svg,
.primary-btn svg {
  width: 17px;
  height: 17px;
}

.primary-btn {
  background: var(--button);
  color: #fff;
  border-color: var(--button);
}

.primary-btn:hover {
  background: var(--button-hover);
}

.pagination {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.pagination > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.empty svg {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 12px;
  color: var(--muted);
}

.empty small {
  display: block;
  margin: 7px auto 0;
  font-size: 0.875rem;
  max-width: 380px;
  color: var(--muted);
  line-height: 1.7;
}

.error,
.notice {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--red-bg);
  color: var(--red);
  font-size: 1rem;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.notice {
  background: var(--accent-light);
  border-color: var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.notice.warning {
  background: var(--warn-bg);
  border-color: var(--line);
}

.loading {
  min-height: 200px;
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1rem;
}

.spinner {
  display: inline-block;
  width: 19px;
  height: 19px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.facts {
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr);
  padding: 0 21px;
  margin: 0;
  font-size: 1rem;
}

.facts dt,
.facts dd {
  padding: 17px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.facts dt {
  color: var(--muted);
  padding-right: 20px;
  font-size: 0.875rem;
}

.facts dd {
  overflow-wrap: anywhere;
}

.facts dt:nth-last-of-type(1),
.facts dd:nth-last-of-type(1) {
  border-bottom: 0;
}

.facts dd > a:not(.subtle-btn) {
  font-size: 1rem;
}

.copy-wrap {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.copy-wrap > span,
.copy-wrap > a {
  overflow-wrap: anywhere;
  min-width: 0;
}

.copy-btn {
  border: 0;
  background: none;
  padding: 0 2px;
  color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  min-width: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

.copy-btn:hover {
  color: var(--accent);
  box-shadow: none;
}

details {
  border-bottom: 1px solid var(--line);
}

details:last-child {
  border-bottom: 0;
}

summary {
  padding: 16px 20px;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  overflow-wrap: anywhere;
}

details[open] summary {
  color: var(--accent);
  background: var(--panel2);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  background: var(--panel2);
  padding: 17px 21px;
  color: var(--muted);
  max-height: 500px;
  overflow: auto;
  font-size: 0.875rem;
  line-height: 1.8;
}

.facts pre {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 21px;
  background: var(--panel);
  overflow: auto;
  white-space: nowrap;
}

.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 18px 0 15px;
  font-size: 1rem;
  font-weight: 550;
  min-height: 52px;
}

.tabs button.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.tabs button:hover {
  box-shadow: none;
  color: var(--accent);
}

.tabs .count {
  font-size: 0.8125rem;
  margin-left: 5px;
  background: var(--accent-light);
  color: var(--muted);
  padding: 1px 5px;
  border-radius: 5px;
}

.filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 16px 21px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: var(--panel2);
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.filters input,
.filters select,
.field-input {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 9px 11px;
  font-size: 1rem;
  color: var(--text);
  min-width: 110px;
  max-width: 100%;
  min-height: 44px;
}

.filters input {
  width: 200px;
}

.filters .address-filter {
  width: 285px;
}

.filter-spacer {
  flex: 1;
}

.event-details summary {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.event-details summary::before {
  content: "›";
  font-size: 1rem;
  color: var(--muted);
}

.event-details[open] summary::before {
  transform: rotate(90deg);
}

.event-id {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-size: 0.875rem;
  min-width: 118px;
}

.event-link {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--muted);
}

.event-attributes {
  padding: 0 22px 12px;
}

.arg-list {
  display: grid;
  gap: 9px;
}

.arg {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--panel2);
  border-radius: 7px;
  min-width: 0;
}

.arg > label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.arg label strong {
  font-weight: 600;
  color: var(--text);
}

.arg label code {
  font-size: 0.875rem;
  color: var(--muted);
}

.arg .value {
  color: var(--text);
  overflow-wrap: anywhere;
  font:
    1rem/1.7 "Cascadia Code",
    Consolas,
    monospace;
  font-size: 1rem;
}

.arg pre {
  padding: 0;
  background: none;
  margin: 0;
}

.arg .raw-amount {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 5px;
}

.hash-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-identity {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px;
  flex-wrap: wrap;
}

.account-avatar {
  width: 48px;
  height: 48px;
  background: conic-gradient(from 120deg, #b584f0, #6e32c2, #e5d3fb, #ae75e7);
  border: 7px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
}

.account-identity h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.account-identity > div {
  min-width: 0;
}

.account-identity .mono {
  font-size: 0.875rem;
  color: var(--muted);
}

.account-tools {
  margin-left: auto !important;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.balance-row {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.balance-item {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.balance-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.balance-item > span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 7px;
}

.balance-item > strong {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.balance-item small {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}

.balance-item > small {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
}

.account-note {
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  background: var(--panel2);
  line-height: 1.7;
}

.inline-edit {
  display: flex;
  gap: 8px;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  background: var(--panel2);
  align-items: center;
  flex-wrap: wrap;
}

.inline-edit label {
  font-size: 1rem;
  color: var(--muted);
}

.inline-edit input {
  flex: 1;
  min-width: 120px;
}

.chart-body {
  padding: 18px 21px 16px;
}

.chart-topline {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
}

.chart-topline strong {
  font-size: 1.75rem;
  letter-spacing: -0.6px;
  font-weight: 620;
}

.chart-topline strong small {
  font-size: 0.875rem;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}

.chart-key {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-left: auto;
}

.chart-key i {
  width: 6px;
  height: 6px;
  background: var(--chart-strong);
  border-radius: 2px;
}

.chart {
  display: flex;
  align-items: flex-end;
  height: 120px;
  gap: 5px;
  position: relative;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 31px,
    var(--line) 32px,
    var(--line) 33px
  );
  padding: 0 4px 1px;
}

.chart-bar {
  flex: 1;
  background: var(--chart);
  min-width: 3px;
  border-radius: 3px 3px 0 0;
  position: relative;
  border: 0;
  min-height: 0;
  outline-offset: 1px;
}

.chart-bar:nth-child(3n + 1) {
  background: var(--chart-strong);
}

.chart-bar:hover,
.chart-bar:focus {
  background: var(--accent);
  box-shadow: none;
}

.chart-bar .chart-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #43265f;
  color: white;
  font-size: 0.875rem;
  padding: 6px 9px;
  border-radius: 5px;
  z-index: 3;
}

.chart-bar:focus .chart-tooltip,
.chart-bar:hover .chart-tooltip {
  display: block;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 9px;
}

.chart-foot {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.7;
}

.window-overview {
  display: flex;
  align-items: center;
  padding: 24px 22px 20px;
  gap: 22px;
}

.ring {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: conic-gradient(
    var(--chart) var(--share, 100%),
    var(--chart-track) 0
  );
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--panel);
}

.ring-content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.ring-content strong {
  font-size: 1.625rem;
  letter-spacing: -0.5px;
  font-weight: 600;
}

.ring-content span {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 78px;
  line-height: 1.2;
  margin: 2px auto 0;
}

.window-legend {
  display: grid;
  gap: 12px;
  flex: 1;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--muted);
}

.legend-row i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--chart);
}

.legend-row:nth-child(2) i {
  background: var(--chart-soft);
}

.legend-row:nth-child(3) i {
  background: var(--chart-track);
}

.legend-row b {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-left: auto;
}

.window-note {
  padding: 0 22px 16px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.analytics-list {
  padding: 14px 21px;
}

.analytics-list-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 45px;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

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

.metric-track {
  height: 6px;
  border-radius: 4px;
  background: var(--chart-track);
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--chart);
}

.metric-value {
  text-align: right;
  font-size: 0.875rem;
  color: var(--muted);
}

.service-grid,
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.plan-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.plan-card .eyebrow {
  color: var(--accent);
  letter-spacing: 1.4px;
  font-size: 0.8125rem;
}

.plan-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 14px 0 10px;
}

.plan-card p,
.plan-card li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.plan-card ul {
  padding-left: 17px;
}

.plan-card a {
  font-size: 1rem;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-top: 17px;
}

.feature-list > div {
  display: flex;
  gap: 8px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.feature-list svg {
  width: 19px;
  height: 19px;
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.health-source {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.health-source:last-child {
  border-bottom: 0;
}

.health-source > svg {
  width: 21px;
  height: 21px;
  color: var(--muted);
}

.health-source > div {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.health-source strong {
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.health-source small {
  font-size: 0.875rem;
  color: var(--muted);
  display: block;
  margin-top: 4px;
  line-height: 1.7;
}

.runtime-module {
  border-bottom: 1px solid var(--line);
}

.runtime-module summary {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 1rem;
  padding: 18px 20px;
  flex-wrap: wrap;
}

.runtime-module summary strong {
  font-weight: 600;
  color: var(--text);
}

.runtime-module summary .module-counts {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--muted);
}

.runtime-module .runtime-content {
  padding: 10px 21px 20px;
}

.runtime-item {
  border: 1px solid var(--line);
  margin: 8px 0;
  border-radius: 7px;
  overflow: hidden;
}

.runtime-item > summary {
  padding: 12px 14px;
  background: var(--panel2);
  font-size: 1rem;
}

.runtime-item .facts {
  grid-template-columns: 145px minmax(0, 1fr);
  font-size: 1rem;
  padding: 0 13px;
}

.runtime-item .facts dt,
.runtime-item .facts dd {
  padding: 9px 0;
}

.runtime-item p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  padding: 0 13px;
  white-space: pre-wrap;
}

.apy {
  font-weight: 650;
  color: var(--accent);
}

.apy small {
  font-size: 0.8125rem;
  font-weight: 400;
}

.list-meta {
  color: var(--muted);
  font-size: 0.875rem;
  padding: 14px 20px;
  background: var(--panel2);
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + var(--sidebar-width) / 2);
  transform: translateX(-50%);
  background: #48266d;
  color: #fff;
  font-size: 1rem;
  padding: 11px 19px;
  max-width: calc(100vw - 30px);
  border-radius: 9px;
  box-shadow: 0 6px 20px #3a154833;
  z-index: 20;
}

.watch-intro {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 22px;
}

.watch-intro > svg {
  width: 35px;
  height: 35px;
  color: var(--muted);
  flex-shrink: 0;
}

.watch-intro h2 {
  font-size: 1.25rem;
  margin: 0 0 5px;
  font-weight: 600;
}

.watch-intro p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

.watch-address {
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 1px 28px;
  border-top: 1px solid var(--line);
  margin-top: 15px;
  font-size: 0.875rem;
  color: var(--muted);
  gap: 18px;
  flex-wrap: wrap;
}

footer > div {
  display: flex;
  align-items: center;
  gap: 12px 18px;
  flex-wrap: wrap;
}

footer b {
  font-size: 1.125rem;
  letter-spacing: -0.5px;
  color: var(--muted);
  font-weight: 650;
}

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

.hero .eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 1.4px;
}

.chain-status svg,
.account-note svg {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  margin-right: 3px;
}

.facts .mono {
  font-size: 0.875rem;
}

.filters input,
.filters select {
  font-size: 0.875rem;
}

.chart-key,
.chart-topline strong small {
  font-size: 0.875rem;
  color: var(--muted);
}

.plan-card p,
.plan-card li,
.feature-list > div {
  font-size: 0.875rem;
  color: var(--muted);
}

.panel-body p {
  font-size: 1rem;
  line-height: 1.7;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.theme-toggle:hover {
  background: var(--accent-light);
  border-color: var(--focus);
  color: var(--accent);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

::selection {
  background: var(--accent-light);
  color: var(--text);
}

.chart-bar:focus,
.chart-bar:hover {
  background: var(--chart-strong);
}

.facts dd,
.account-identity > div {
  min-width: 0;
}

/* Carry-over Reef Watch reports use the shared readable theme. */
.legacy-bar {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 235px;
}
.legacy-bar > span {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.legacy-bar .metric-track {
  height: 9px;
}
.legacy-inset {
  padding: 0 20px;
}
.legacy-growth {
  height: 190px;
}
.legacy-reading {
  max-width: 84ch;
  line-height: 1.8;
}
.legacy-formula {
  display: grid;
  gap: 9px;
  padding: 18px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel2);
}
.legacy-formula > span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.legacy-formula code {
  color: var(--text);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

@media (min-width: 1600px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
  }
  .hero {
    padding: 37px 40px 25px;
  }
  .reef-orbit {
    right: 95px;
  }
  td {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

@media (max-width: 1250px) {
  .sidebar {
    padding-left: 13px;
    padding-right: 13px;
  }
  .container {
    padding: 23px 25px 0;
  }
  .topbar {
    padding: 0 25px;
  }
  .brand {
    gap: 8px;
  }
  .hero {
    padding: 28px 28px 20px;
  }
  .reef-orbit {
    right: 24px;
    top: 3px;
    transform: scale(0.9);
  }
  .stat {
    padding: 16px;
  }
  .stats {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .columns {
    gap: 16px;
    grid-template-columns: 1fr;
  }
  th,
  td {
    padding-left: 16px;
    padding-right: 16px;
  }
  .panel-head {
    padding-left: 16px;
    padding-right: 16px;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .window-overview {
    gap: 30px;
    padding: 24px 16px 20px;
    flex-direction: row;
  }
  .ring {
    width: 116px;
    height: 116px;
  }
  .window-legend {
    gap: 14px;
  }
  .top-status {
    display: none;
  }
}

@media (max-width: 1050px) {
  .sidebar {
    padding: 25px 10px 18px;
  }
  .brand {
    gap: 6px;
    padding: 0 5px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  nav a {
    gap: 9px;
    padding: 9px 12px;
  }
  .network-switch {
    padding: 9px 8px;
    gap: 7px;
  }
  .container {
    padding: 20px 20px 0;
  }
  .topbar {
    padding: 0 20px;
  }
  .top-status {
    display: none;
  }
  .hero {
    padding: 25px 24px 19px;
    grid-template-columns: minmax(0, 1fr) 130px;
  }
  .reef-orbit {
    right: 2px;
    top: -4px;
    transform: scale(0.8);
  }
  .hero-copy p {
    max-width: none;
  }
  .search {
    max-width: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 17px 20px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .window-overview {
    flex-direction: row;
    gap: 25px;
    padding: 17px 16px 15px;
  }
  .window-legend {
    width: 100%;
    gap: 7px;
  }
  .ring {
    width: 116px;
    height: 116px;
  }
  .window-note {
    padding: 0 16px 14px;
  }
  .chart {
    height: 134px;
  }
  .chain-status {
    gap: 10px;
  }
  .chain-status a {
    margin-left: 0;
  }
  .facts {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .balance-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 18px;
  }
  .balance-item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .account-identity {
    flex-wrap: wrap;
  }
  .account-tools {
    width: 100%;
    margin-left: 64px !important;
  }
  footer > div:last-child > span {
    display: none;
  }
}

@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: 100%;
    padding: 18px 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
    display: block;
  }
  .brand {
    width: max-content;
    padding: 0;
    font-size: 1.625rem;
  }
  .brand-mark {
    width: 37px;
    height: 37px;
  }
  .network-switch {
    position: absolute;
    top: 21px;
    right: 18px;
    margin: 0;
    border: none;
    background: var(--accent-light);
    padding: 6px 8px;
    gap: 6px;
    font-size: 0.875rem;
  }
  .network-switch small {
    display: none;
  }
  .reef-symbol {
    width: 20px;
    height: 20px;
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
    margin: 19px -18px 0;
    padding: 0 10px 9px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .nav-label,
  .sidebar-bottom,
  .nav-badge {
    display: none;
  }
  .sidebar nav a {
    padding: 11px 12px;
    gap: 7px;
    min-height: 44px;
    white-space: nowrap;
    font-size: 1rem;
  }
  .sidebar nav svg {
    width: 18px;
    height: 18px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 74px;
  }
  .breadcrumb {
    gap: 9px;
    font-size: 0.875rem;
  }
  .preview-pill {
    padding: 4px 7px;
    font-size: 0.8125rem;
  }
  .container {
    padding: 18px 16px 0;
  }
  .hero {
    padding: 25px 21px 22px;
    border-radius: 13px;
    grid-template-columns: 1fr;
  }
  .hero h1 {
    margin: 14px 0 12px;
    font-size: 2.25rem;
  }
  .hero-copy p {
    margin-bottom: 20px;
    max-width: none;
    font-size: 1rem;
  }
  .reef-orbit {
    right: -47px;
    top: -12px;
    transform: scale(0.62);
    display: none;
  }
  .search {
    padding: 5px 6px 5px 10px;
    border-radius: 7px;
    gap: 8px;
  }
  .search input {
    height: 44px;
    font-size: 1rem;
  }
  .search > svg {
    width: 19px;
    height: 19px;
  }
  .search button {
    padding: 9px 12px;
    font-size: 1rem;
    min-height: 44px;
  }
  .search button span,
  .search kbd {
    display: none;
  }
  .search-help {
    max-width: none;
    font-size: 0.875rem;
    line-height: 1.7;
  }
  .search-help span {
    margin: 0 3px;
  }
  .detail .hero {
    padding: 9px 11px;
  }
  .detail .search button {
    padding: 9px 12px;
    font-size: 1rem;
    min-height: 44px;
  }
  .chain-status {
    padding: 17px 0 22px;
    gap: 10px 14px;
    font-size: 0.875rem;
  }
  .chain-status a {
    margin-left: 0;
    font-size: 0.875rem;
  }
  .chain-status .status-extra {
    display: none;
  }
  .stats {
    gap: 12px;
    margin-bottom: 18px;
  }
  .stat {
    padding: 17px 14px;
    border-radius: 11px;
  }
  .stat-label {
    margin-bottom: 8px;
    font-size: 0.875rem;
    align-items: flex-start;
    min-height: 42px;
  }
  .stat-label svg {
    width: 17px;
    height: 17px;
  }
  .stat-sub {
    margin-top: 6px;
    min-height: 12px;
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .coverage {
    padding: 12px 14px;
    margin-bottom: 17px;
    font-size: 0.875rem;
  }
  .coverage > span:last-child {
    display: none;
  }
  .columns {
    gap: 0;
  }
  .panel {
    border-radius: 12px;
    margin-bottom: 17px;
  }
  .panel-head {
    padding: 18px 16px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .panel-head h2 svg {
    width: 14px;
    height: 14px;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .chart {
    height: 90px;
    gap: 5px;
  }
  .window-overview {
    flex-direction: row;
    padding: 24px 20px 20px;
    gap: 20px;
  }
  .ring {
    width: 105px;
    height: 105px;
  }
  .window-legend {
    gap: 13px;
  }
  .window-note {
    padding: 0 22px 17px;
  }
  th {
    padding: 13px 16px;
    font-size: 0.875rem;
  }
  td {
    padding: 16px;
    font-size: 1rem;
  }
  .block-icon {
    width: 30px;
    height: 32px;
    margin-right: 8px;
  }
  .block-icon svg {
    width: 17px;
    height: 17px;
  }
  .badge {
    padding: 4px 7px;
    font-size: 0.8125rem;
  }
  .badge svg {
    width: 12px;
    height: 12px;
  }
  .call {
    max-width: 230px;
    font-size: 0.875rem;
  }
  .page-title {
    margin: 2px 0 17px;
    gap: 15px;
  }
  .page-title-actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .subtle-btn,
  .primary-btn {
    padding: 9px 12px;
    font-size: 1rem;
    min-height: 44px;
  }
  .facts {
    padding: 0 17px;
    grid-template-columns: 1fr;
    font-size: 1rem;
  }
  .facts dt,
  .facts dd {
    padding: 13px 0;
  }
  .facts dt {
    padding-right: 12px;
    font-size: 0.875rem;
    border-bottom: 0;
    padding: 15px 0 3px;
  }
  .notice,
  .error {
    padding: 14px 16px;
    font-size: 1rem;
  }
  .tabs {
    gap: 24px;
    padding: 0 17px;
  }
  .tabs button {
    padding: 17px 0 14px;
    font-size: 1rem;
  }
  .filters {
    padding: 16px;
    gap: 12px;
  }
  .filters label {
    flex: 1;
    min-width: 130px;
    font-size: 0.875rem;
  }
  .filters input,
  .filters select {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    min-height: 44px;
  }
  .filters .address-filter {
    width: 100%;
  }
  .filter-spacer {
    display: none;
  }
  .pagination {
    padding: 16px;
    font-size: 0.875rem;
    gap: 12px;
  }
  .pagination .subtle-btn {
    padding: 8px 11px;
    font-size: 0.875rem;
    min-height: 44px;
  }
  .account-identity {
    padding: 20px;
    gap: 13px;
  }
  .account-identity > div:not(.account-tools) {
    flex: 1;
  }
  .account-avatar {
    width: 40px;
    height: 40px;
    border-width: 6px;
  }
  .account-tools {
    margin-left: 0 !important;
    flex-wrap: wrap;
    width: 100%;
  }
  .balance-row {
    padding: 0 20px 20px;
    gap: 17px;
    grid-template-columns: 1fr;
  }
  .balance-item {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 15px;
  }
  .account-note {
    padding: 14px 20px;
    font-size: 0.875rem;
  }
  .inline-edit {
    padding: 12px 18px;
  }
  .event-details summary {
    padding: 16px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .event-id {
    min-width: 87px;
  }
  .event-attributes {
    padding: 0 14px 12px;
  }
  .arg > label {
    flex-wrap: wrap;
  }
  .service-grid,
  .plan-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .plan-card {
    padding: 22px;
  }
  .watch-intro {
    padding: 19px;
    gap: 12px;
  }
  .watch-intro > svg {
    width: 28px;
    height: 28px;
  }
  .runtime-module summary {
    padding: 17px;
    gap: 8px;
    font-size: 1rem;
  }
  .runtime-module .runtime-content {
    padding: 8px 16px 16px;
  }
  .toast {
    left: 50%;
    bottom: 18px;
    font-size: 1rem;
  }
  footer {
    padding: 24px 0;
    gap: 10px;
    margin-top: 5px;
    align-items: flex-start;
    font-size: 0.875rem;
  }
  footer > div {
    gap: 10px;
    flex-wrap: wrap;
  }
  footer > div:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  footer > div:last-child {
    padding-top: 2px;
    gap: 12px;
  }
  .skip-link {
    left: 15px;
  }
  .brand small {
    font-size: 0.8125rem;
    letter-spacing: 1px;
  }
  .topbar-right {
    margin-left: auto;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .theme-toggle {
    font-size: 0.875rem;
    min-height: 44px;
    padding: 8px 10px;
  }
  .hero .eyebrow {
    font-size: 0.8125rem;
    letter-spacing: 1px;
  }
  .detail .search input {
    font-size: 1rem;
    height: 44px;
  }
  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .section-heading h2 {
    font-size: 1.25rem;
  }
  .section-heading > span,
  .section-heading > a {
    font-size: 0.875rem;
  }
  .stat-value {
    font-size: 1.65rem;
  }
  .stat-value small {
    font-size: 0.875rem;
  }
  .panel-head h2 {
    font-size: 1.125rem;
  }
  .panel-head > a {
    font-size: 0.875rem;
  }
  .coverage a {
    font-size: 0.875rem;
  }
  .page-title h1,
  .page-title h2 {
    font-size: 1.625rem;
  }
  .facts dd {
    font-size: 1rem;
    padding: 0 0 15px;
  }
  .facts dd > a:not(.subtle-btn),
  .facts .mono {
    font-size: 0.875rem;
  }
  .ring-content span {
    font-size: 0.875rem;
  }
  .legend-row {
    font-size: 0.875rem;
    flex-wrap: wrap;
  }
  .legend-row b {
    font-size: 1rem;
  }
  .chart-topline {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .chart-topline strong {
    font-size: 1.625rem;
  }
  .chart-key {
    font-size: 0.875rem;
    margin-left: 0;
  }
  .chart-foot,
  .window-note {
    font-size: 0.875rem;
  }
  .account-identity h2 {
    font-size: 1.25rem;
  }
  .account-identity .mono {
    font-size: 0.875rem;
  }
  .balance-item > strong {
    font-size: 1.5rem;
  }
  .balance-item > span,
  .balance-item small,
  .balance-item > small {
    font-size: 0.875rem;
  }
  .event-id,
  .event-link {
    font-size: 0.875rem;
  }
  .event-link {
    margin-left: 0;
  }
  .arg .value {
    font-size: 1rem;
  }
  .arg > label,
  .arg label code {
    font-size: 0.875rem;
  }
  .runtime-module summary .module-counts {
    font-size: 0.875rem;
    margin-left: 0;
    flex-basis: 100%;
  }
  .runtime-item .facts {
    grid-template-columns: 1fr;
  }
  .runtime-item .facts dt {
    padding: 11px 0 3px;
  }
  .runtime-item .facts dd {
    padding: 0 0 12px;
  }
  .empty {
    font-size: 1rem;
  }
  .empty small {
    font-size: 0.875rem;
  }
  .plan-card h2 {
    font-size: 1.5rem;
  }
  .watch-intro h2 {
    font-size: 1.25rem;
  }
  .watch-intro p {
    font-size: 1rem;
  }
  footer b {
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
