/* PROX theme tokens from 447a3f20, scoped to NOID. Business rendering and APIs stay in app.js. */
/* InnovLab Proxima Pool. One stylesheet; theme = [data-theme] (light | dark), colour palette =
   [data-palette] (sky | pearl | mint | ocean | graphite). Every colour is a token below;
   test/palette-contrast.test.ts parses these blocks and checks text contrast >= 4.5:1. */

/* Every palette follows one recipe: white page and cards, a solid saturated hero in the palette's
   hue with white type (overview band, page heads, miner head), a white key-numbers band and vivid
   chart marks. Hero colours are tokens, so the contrast test covers them too. */

/* ---------- base tokens: light (palette: sky, the default) ---------- */
:root[data-design="prox"] {
  --bg: #f6f9fd;
  --card: #ffffff;
  --card-2: #f4f8fe;
  --line: #e3eaf4;
  --line-2: #eef3f9;
  --text: #0b1324;
  --text-2: #34435c;
  --muted: #56667e;
  --green: #15803d;
  --green-soft: #ecfdf3;
  --amber: #b45309;
  --amber-soft: #fff7e8;
  --red: #c81e3a;
  --red-soft: #fff1f3;
  --code-bg: #f4f8fe;
  --code-text: #1e293b;
  --tip-bg: #0f172a;
  --tip-text: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .03);
  --shadow-h: 0 12px 28px -14px rgba(15, 23, 42, .18);
  --radius: 12px;
  --radius-sm: 8px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
  --accent: #0b66e4;
  --accent-2: #8fb9f7;
  --accent-ink: #0a54bd;
  --accent-soft: #e8f1ff;
  --on-accent: #ffffff;
  --btn-bg: var(--accent);
  --btn-text: var(--on-accent);
  --fill: var(--accent);
  --kpis-bg: #ffffff;
  --kpi-lead: var(--accent);
  --hl: var(--green);
  --c-pool: #0b66e4;
  --c-net: #d97706;
  --c-a: #2b7fff;
  --c-b: #e11d48;
  --area-op: .2;
  --hero-glow: radial-gradient(circle at 92% -30%, rgba(255, 255, 255, .2) 0 150px, transparent 151px),
    radial-gradient(circle at 78% 135%, rgba(255, 255, 255, .1) 0 110px, transparent 111px);
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #1257d6 0%, #0b6bd1 50%, #087a9f 100%);
  --hero-text: #ffffff;
  --hero-text-2: #f4f8ff;
  --hero-eyebrow: #f4f8ff;
  --hero-btn-bg: #ffffff;
  --hero-btn-text: #0a54bd;
  --hero-btn2-bg: transparent;
  --hero-btn2-text: #ffffff;
  --hero-btn2-line: rgba(255, 255, 255, .55);
  --hero-chip: rgba(255, 255, 255, .16);
}
/* ---------- base tokens: dark (palette: sky) ---------- */
:root[data-design="prox"][data-theme="dark"] {
  --bg: #0b1220;
  --card: #111a2c;
  --card-2: #142036;
  --line: #1f2b42;
  --line-2: #182338;
  --text: #e8eef8;
  --text-2: #aab6c8;
  --muted: #8b98ad;
  --green: #34d399;
  --green-soft: #0d2a22;
  --amber: #fbbf24;
  --amber-soft: #2a2213;
  --red: #fb7d93;
  --red-soft: #2e1520;
  --code-bg: #0d1626;
  --code-text: #d8e1ee;
  --tip-bg: #e8eef8;
  --tip-text: #0f172a;
  --shadow-sm: none;
  --shadow-h: 0 14px 30px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
  --accent: #60a5fa;
  --accent-2: #2f5fa8;
  --accent-ink: #93c5fd;
  --accent-soft: #13284a;
  --on-accent: #04142e;
  --kpis-bg: var(--card);
  --c-pool: #60a5fa;
  --c-net: #fbbf24;
  --c-a: #60a5fa;
  --c-b: #f58ba0;
  --hero-glow: radial-gradient(circle at 92% -30%, rgba(255, 255, 255, .08) 0 150px, transparent 151px);
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #123c86 0%, #0f4a8a 50%, #0b5674 100%);
  --hero-text-2: #cfe3ff;
  --hero-eyebrow: #cfe3ff;
  --hero-btn-text: #0f3f8f;
  --hero-btn2-line: rgba(255, 255, 255, .4);
  --hero-chip: rgba(255, 255, 255, .1);
}

/* ---------- palettes ---------- */
/* Pearl: the PF-like look, blue -> violet hero and buttons with emerald earnings. */
:root[data-design="prox"][data-palette="pearl"] {
  --bg: #f7f8fe; --card-2: #f6f7fe; --line: #e4e6f5; --line-2: #eff0fa; --code-bg: #f6f7fe;
  --accent: #4f46e5; --accent-2: #a5a8f6; --accent-ink: #4338ca; --accent-soft: #eef0ff; --on-accent: #ffffff;
  --green: #047857; --green-soft: #e9f9f2;
  --btn-bg: linear-gradient(90deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%); --btn-text: #ffffff;
  --fill: linear-gradient(90deg, #3b82f6 0%, #6366f1 60%, #8b5cf6 100%);
  --c-pool: #4f46e5; --c-net: #059669; --c-a: #6366f1; --c-b: #e11d48;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%);
  --hero-btn-text: #4338ca;
}
:root[data-design="prox"][data-theme="dark"][data-palette="pearl"] {
  --bg: #0c0f1e; --card: #131733; --card-2: #171c3c; --line: #252b52; --line-2: #1d2245; --code-bg: #0f1329;
  --accent: #a5b4fc; --accent-2: #4c4fb8; --accent-ink: #c7d2fe; --accent-soft: #20265a; --on-accent: #0c0f2e;
  --green: #34d399; --green-soft: #0d2a24;
  --btn-bg: linear-gradient(90deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%); --btn-text: #ffffff;
  --fill: linear-gradient(90deg, #3b82f6 0%, #6366f1 60%, #8b5cf6 100%);
  --c-pool: #a5b4fc; --c-net: #34d399; --c-a: #818cf8; --c-b: #f58ba0;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #1e3a8a 0%, #312e81 55%, #4c1d95 100%);
  --hero-btn-text: #312e81;
}
/* Mint: fresh teal-green. */
:root[data-design="prox"][data-palette="mint"] {
  --bg: #f5faf9; --card-2: #f3faf8; --line: #dfeae7; --line-2: #ecf4f2; --code-bg: #f3faf8;
  --accent: #0b7a70; --accent-2: #8fd3c9; --accent-ink: #0a6158; --accent-soft: #e5f6f3; --on-accent: #ffffff;
  --c-pool: #0d9488; --c-net: #d97706; --c-a: #0f9488; --c-b: #e11d48;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #0f766e 0%, #0b7f74 50%, #0e7490 100%);
  --hero-btn-text: #0a6158;
}
:root[data-design="prox"][data-theme="dark"][data-palette="mint"] {
  --bg: #08131a; --card: #0e1c24; --card-2: #11222b; --line: #1c313a; --line-2: #16272f; --code-bg: #0b1820;
  --accent: #2dd4bf; --accent-2: #17786d; --accent-ink: #5eead4; --accent-soft: #0e2f2f; --on-accent: #032722;
  --c-pool: #2dd4bf; --c-net: #fbbf24; --c-a: #2dd4bf; --c-b: #f58ba0;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #134e4a 0%, #115e59 50%, #164e63 100%);
  --hero-btn-text: #115e59;
}
/* Ocean: deeper, calmer blue. */
:root[data-design="prox"][data-palette="ocean"] {
  --bg: #f5f8fc; --card-2: #f3f8fc; --line: #dfe8f1; --line-2: #ecf2f8; --code-bg: #f3f8fc;
  --accent: #0369a1; --accent-2: #8cc4e4; --accent-ink: #075985; --accent-soft: #e6f2fa; --on-accent: #ffffff;
  --c-pool: #0369a1; --c-net: #ea580c; --c-a: #0284c7; --c-b: #e11d48;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #0c4a6e 0%, #075985 50%, #0369a1 100%);
  --hero-btn-text: #075985;
}
:root[data-design="prox"][data-theme="dark"][data-palette="ocean"] {
  --bg: #07111c; --card: #0d1a2a; --card-2: #112033; --line: #1b2c42; --line-2: #152538; --code-bg: #0a1624;
  --accent: #38bdf8; --accent-2: #19628a; --accent-ink: #7dd3fc; --accent-soft: #0b2a42; --on-accent: #03192b;
  --c-pool: #38bdf8; --c-net: #fb923c; --c-a: #38bdf8; --c-b: #f58ba0;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #082f49 0%, #0c4a6e 50%, #075985 100%);
  --hero-btn-text: #0c4a6e;
}
/* Graphite: neutral slate with a near-black hero. */
:root[data-design="prox"][data-palette="graphite"] {
  --bg: #f6f7f9; --card-2: #f6f7f9; --line: #e2e6ec; --line-2: #eef1f4; --code-bg: #f6f7f9;
  --accent: #334155; --accent-2: #a3afc0; --accent-ink: #1e293b; --accent-soft: #eef1f5; --on-accent: #ffffff;
  --c-pool: #334155; --c-net: #d97706; --c-a: #475569; --c-b: #e11d48;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #0f172a 0%, #1e293b 55%, #334155 100%);
  --hero-btn-text: #1e293b;
}
:root[data-design="prox"][data-theme="dark"][data-palette="graphite"] {
  --bg: #0b0e14; --card: #12161e; --card-2: #161b24; --line: #232a36; --line-2: #1b212b; --code-bg: #0e1218;
  --accent: #cbd5e1; --accent-2: #5d6b80; --accent-ink: #e2e8f0; --accent-soft: #212a37; --on-accent: #0f172a;
  --c-pool: #cbd5e1; --c-net: #fbbf24; --c-a: #94a3b8; --c-b: #f58ba0;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #1e293b 0%, #273449 55%, #334155 100%);
  --hero-btn-text: #1e293b;
}


/* Compatibility hooks preserve the existing portal on every other coin. */
.topbar-inner, .prox-band, .prox-overview-main, .prox-facts, .prox-health-strip { display: contents; }
.prox-only { display: none; }
:root[data-design="prox"] {
  --card2: var(--card-2); --line2: var(--line-2); --tx: var(--text); --tx2: var(--muted);
  --accent2: var(--accent-ink); --ok: var(--green); --pending: var(--amber); --danger: var(--red);
  --gold: var(--green); --shadow: var(--shadow-h);
  --miner-chart-30m: var(--c-pool); --miner-chart-3h: var(--green);
  --miner-chart-stale: var(--amber); --miner-chart-invalid: var(--red);
  color-scheme: light;
}
:root[data-design="prox"][data-theme="dark"] { color-scheme: dark; }
html[data-design="prox"] body { font-family: var(--font); display: flex; flex-direction: column; background: var(--bg); }
html[data-design="prox"] .prox-only { display: block; }
html[data-design="prox"] [hidden] { display: none !important; }
html[data-design="prox"] main { width: 100%; max-width: 1320px; padding: 26px 28px 56px; flex: 1 0 auto; min-width: 0; }
html[data-design="prox"] .topbar { display: block; padding: 0 28px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px); z-index: 30; }
html[data-design="prox"] .topbar-inner { display: grid; grid-template-columns: auto auto 1fr minmax(150px, 230px) auto auto auto; align-items: center; gap: 12px; min-height: 64px; max-width: 1264px; margin: auto; }
html[data-design="prox"] .brand { font-size: 16px; letter-spacing: -.02em; gap: 8px; }
html[data-design="prox"] .logo { display: inline-grid; place-items: center; width: 30px; height: 30px; background: transparent; }
html[data-design="prox"] .logo-mark { width: 100%; height: 100%; }
html[data-design="prox"] .logo-mark .lm-bg { fill: var(--accent); }
html[data-design="prox"] .logo-mark .lm-ring { stroke: var(--on-accent); stroke-opacity: .9; }
html[data-design="prox"] .logo-mark .lm-core { fill: var(--on-accent); }
html[data-design="prox"] .logo-mark .lm-star { fill: var(--on-accent); fill-opacity: .6; }
html[data-design="prox"] .brand-lab { color: var(--text); }
html[data-design="prox"] .brand-word { letter-spacing: -.02em; }
html[data-design="prox"] .coinsel { border-left: 1px solid var(--line); padding-left: 8px; }
html[data-design="prox"] .coinsel select { background: transparent; border: 0; padding: 0 2px; max-width: 86px; font-size: 12px; color: var(--muted); }
html[data-design="prox"] .tabs { gap: 0; margin: 0; align-self: stretch; }
html[data-design="prox"] .tab { padding: 0 10px; font-size: 13px; white-space: nowrap; color: var(--text-2); letter-spacing: 0; }
html[data-design="prox"] .tab.active { color: var(--text); }
html[data-design="prox"] .tab.active::after { left: 10px; right: 10px; bottom: 0; }
html[data-design="prox"] .prox-health-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding-bottom: 14px; }
html[data-design="prox"] .prox-health-strip .status { font-size: 11.5px; }
html[data-design="prox"] .prox-health-strip .poolstatus { padding: 0; }
html[data-design="prox"] .langs { gap: 0; border: 1px solid var(--line); border-radius: 8px; padding: 2px; height: 34px; align-items: center; background: var(--card); }
html[data-design="prox"] .langs button { padding: 4px 5px; font-size: 11px; }
html[data-design="prox"] .langs button.on { background: var(--accent-soft); color: var(--accent-ink); }
html[data-design="prox"] .iconbtn { width: 34px; height: 34px; background: var(--card); }
html[data-design="prox"] .iconbtn svg { fill: none; width: 18px; height: 18px; }
html[data-design="prox"] .prox-search { position: relative; min-width: 0; }
html[data-design="prox"] .prox-search input { width: 100%; height: 36px; padding: 0 10px 0 32px; font-size: 12px; background: var(--card-2); border-radius: 8px; }
html[data-design="prox"] .prox-search > svg { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
html[data-design="prox"] .prox-palette { position: relative; }
.prox-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex: none; }
.sw-sky { background: linear-gradient(135deg, #1257d6, #087a9f); }
.sw-pearl { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.sw-mint { background: linear-gradient(135deg, #0f766e, #0e7490); }
.sw-ocean { background: linear-gradient(135deg, #0c4a6e, #0369a1); }
.sw-graphite { background: linear-gradient(135deg, #0f172a, #475569); }
html[data-design="prox"] .prox-palette-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow-h); z-index: 40; }
html[data-design="prox"] .prox-palette-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px; background: transparent; color: var(--text); font-size: 13px; border-radius: 8px; text-align: left; }
html[data-design="prox"] .prox-palette-menu button:hover { background: var(--card-2); }
html[data-design="prox"] .prox-check { margin-left: auto; visibility: hidden; color: var(--accent); }
html[data-design="prox"] [aria-checked="true"] .prox-check { visibility: visible; }
html[data-design="prox"] .poolstatus { padding: 0 0 14px; font-size: 11.5px; gap: 6px 16px; }
html[data-design="prox"] .prox-band { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
html[data-design="prox"] .prox-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px; background: var(--hero-bg); color: var(--hero-text); border-radius: 11px 11px 0 0; }
html[data-design="prox"] .prox-eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .08em; color: var(--hero-eyebrow); }
html[data-design="prox"] .prox-eyebrow span { margin: 0 8px; opacity: .65; }
html[data-design="prox"] .prox-hero h1 { font-size: 26px; font-weight: 750; letter-spacing: -.03em; line-height: 1.2; margin-top: 6px; }
html[data-design="prox"] :is(.prox-hero, .prox-page-head) p { margin: 7px 0 0; font-size: 13.5px; color: var(--hero-text-2); }
html[data-design="prox"] .prox-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
html[data-design="prox"] .prox-btn { height: 38px; padding: 0 16px; border-radius: 8px; font-size: 13px; border: 1px solid transparent; }
html[data-design="prox"] .prox-primary { background: var(--hero-btn-bg); color: var(--hero-btn-text); }
html[data-design="prox"] .prox-secondary { background: transparent; color: var(--hero-btn2-text); border-color: var(--hero-btn2-line); }
html[data-design="prox"] .metricbar { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding: 0; margin: 0; align-items: stretch; }
html[data-design="prox"] .metricbar .m { justify-content: center; padding: 22px 16px 24px; gap: 7px; }
html[data-design="prox"] .metricbar .mk { font-size: 11px; font-weight: 600; letter-spacing: .02em; }
html[data-design="prox"] .metricbar .mv { font-size: 23px; font-weight: 700; letter-spacing: -.03em; white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.25; }
html[data-design="prox"] .metricbar .m:last-child .mv { color: var(--green); font-size: 17px; white-space: normal; overflow-wrap: anywhere; }
html[data-design="prox"] .metricbar .m:last-child .mv .u { display: block; font-size: 11px; margin: 3px 0 0; }
html[data-design="prox"] .lc-net { stroke: var(--c-net); }
html[data-design="prox"] .lc-cap-net { color: var(--c-net); }
html[data-design="prox"] .lc-hover-net { fill: var(--c-net); }
html[data-design="prox"] .prox-overview-main .linechart { min-height: 280px; }
html[data-design="prox"] .prox-overview-main .lc { height: 280px; }
html[data-design="prox"] .prox-overview-main { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 2fr); gap: 18px; margin-bottom: 18px; }
html[data-design="prox"] .prox-overview-main > .card { margin: 0; }
html[data-design="prox"] .prox-facts { display: block; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow-sm); }
html[data-design="prox"] .prox-card-title { font-size: 14px; font-weight: 650; padding: 15px 20px; border-bottom: 1px solid var(--line-2); }
html[data-design="prox"] .metricmore { display: flex; flex-direction: column; gap: 0; padding: 2px 20px 12px; margin: 0; font-size: 12px; }
html[data-design="prox"] .metricmore .mm { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
html[data-design="prox"] .metricmore .mm:last-child { border-bottom: 0; }
html[data-design="prox"] .metricmore .mmv { text-align: right; font-weight: 600; color: var(--text); }
html[data-design="prox"] .metricmore .mmk { opacity: 1; white-space: normal; }
html[data-design="prox"] .card { min-width: 0; padding: 0 20px 18px; box-shadow: var(--shadow-sm); }
html[data-design="prox"] .card > .card-h { min-height: 52px; align-items: center; flex-wrap: wrap; margin: 0 -20px 16px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); font-weight: 650; }
html[data-design="prox"] .card-h small { font-size: 12px; }
html[data-design="prox"] .grid2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
html[data-design="prox"] .prox-page-head { padding: 22px 26px; border-radius: 12px; background: var(--hero-bg); color: var(--hero-text); margin-bottom: 20px; }
html[data-design="prox"] .prox-page-head h1 { font-size: 24px; line-height: 1.25; margin-top: 6px; letter-spacing: -.02em; }
html[data-design="prox"] table { font-size: 12.5px; }
html[data-design="prox"] th { padding: 11px 12px; background: var(--card-2); border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
html[data-design="prox"] td { padding: 12px; border-bottom-color: var(--line-2); font-variant-numeric: tabular-nums; }
html[data-design="prox"] tr:hover td { background: var(--card-2); }
html[data-design="prox"] .tablewrap { border: 1px solid var(--line); border-radius: 8px; }
html[data-design="prox"] .tablewrap tr:last-child td { border-bottom: 0; }
html[data-design="prox"] :is(.fbtn, .hr-win-b, .miner-analytics-tab, .miner-performance-range, .miner-earnings-range, .my-detail-tab) { border-radius: 7px; font-size: 12px; }
html[data-design="prox"] :is(.fbtn.active, .hr-win-b.on, .miner-analytics-tab.active, .miner-performance-range.active, .miner-earnings-range.active, .my-detail-tab.active) { color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; }
html[data-design="prox"] .badge { border-radius: 5px; font-size: 10.5px; font-weight: 600; }
html[data-design="prox"] .my-card { padding: 0; border: 0; box-shadow: none; background: transparent; }
html[data-design="prox"] .my-heading-row { background: var(--card); padding: 15px 20px; border: 1px solid var(--line); border-radius: 12px 12px 0 0; margin: 0; }
html[data-design="prox"] .lookup { background: var(--card); padding: 0 20px 16px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; margin-bottom: 14px; }
html[data-design="prox"] .lookup button { background: var(--btn-bg); color: var(--btn-text); border-radius: 8px; }
html[data-design="prox"] .lookup input { border-radius: 8px; }
html[data-design="prox"] .my-section-card { background: var(--card); padding: 0 20px 18px; box-shadow: var(--shadow-sm); }
html[data-design="prox"] .my-section-card > .card-h { margin: 0 -20px 16px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); min-height: 50px; align-items: center; }
html[data-design="prox"] .noid-summary-grid { gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
html[data-design="prox"] .noid-summary-grid .stat { border: 0; border-radius: 0; padding: 18px; background: transparent; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
html[data-design="prox"] .noid-summary-grid .stat .v { font-size: 24px; letter-spacing: -.025em; }
html[data-design="prox"] .noid-summary-grid .stat.balance-immature { background: var(--amber-soft); }
html[data-design="prox"] .noid-summary-grid .stat.balance-confirmed { background: var(--green-soft); }
html[data-design="prox"] .block-statistics-heading { font-size: 14px; color: var(--text-2); margin-bottom: 0; }
html[data-design="prox"] .block-statistics-grid { gap: 18px; }
html[data-design="prox"] .endpoint-card { background: var(--card); border-radius: 10px; }
html[data-design="prox"] pre { background: var(--code-bg); color: var(--code-text); border-radius: 8px; }
html[data-design="prox"] footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--card); padding: 22px 28px; color: var(--muted); font-size: 12px; }
html[data-design="prox"] .footerstatus { justify-content: center; font-size: 11.5px; }
html[data-design="prox"] .flinks { margin-bottom: 10px; }
@media (max-width: 1240px) {
  html[data-design="prox"] .topbar-inner { grid-template-columns: auto auto 1fr auto auto auto; }
  html[data-design="prox"] .prox-search { grid-row: 2; grid-column: 1 / -1; margin: 0 0 10px; }
  html[data-design="prox"] .tabs { justify-self: end; }
  html[data-design="prox"] .metricbar .m { padding: 20px 12px; }
  html[data-design="prox"] .metricbar .mv { font-size: 20px; }
}
@media (max-width: 900px) {
  html[data-design="prox"] .topbar-inner { grid-template-columns: auto 1fr auto auto auto; gap: 8px; }
  html[data-design="prox"] .tabs { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; min-height: 40px; justify-content: space-between; overflow-x: auto; }
  html[data-design="prox"] .prox-search { grid-row: 3; }
  html[data-design="prox"] .metricbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html[data-design="prox"] .metricbar .m { border-bottom: 1px solid var(--line-2); }
  html[data-design="prox"] .metricbar .m:nth-child(5) { border-left: 0; }
  html[data-design="prox"] .prox-overview-main { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); }
  html[data-design="prox"] .prox-hero { align-items: start; flex-direction: column; }
  html[data-design="prox"] .metricmore .mm { flex-wrap: wrap; gap: 3px 10px; }
}
@media (max-width: 640px) {
  html[data-design="prox"] main { padding: 18px 14px 36px; }
  html[data-design="prox"] .topbar { padding: 0 14px; }
  html[data-design="prox"] .topbar-inner { min-height: 54px; }
  html[data-design="prox"] .brand { font-size: 14px; }
  html[data-design="prox"] .logo { width: 30px; height: 30px; }
  html[data-design="prox"] .coinsel select { max-width: 62px; font-size: 11px; }
  html[data-design="prox"] .langs button { padding: 4px; }
  html[data-design="prox"] .tab { font-size: 12px; padding: 0 9px; }
  html[data-design="prox"] .prox-hero { padding: 22px 18px; gap: 16px; }
  html[data-design="prox"] .prox-hero h1 { font-size: 24px; }
  html[data-design="prox"] .prox-btn { padding: 0 12px; font-size: 12px; }
  html[data-design="prox"] .metricbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-design="prox"] .metricbar .m { padding: 18px; }
  html[data-design="prox"] .metricbar .m:nth-child(odd) { border-left: 0; }
  html[data-design="prox"] .metricbar .m:last-child { grid-column: 1 / -1; }
  html[data-design="prox"] .metricbar .mv { font-size: 20px; }
  html[data-design="prox"] :is(.prox-overview-main, .grid2) { grid-template-columns: minmax(0, 1fr); }
  html[data-design="prox"] .prox-overview-main > .card { grid-row: 1; }
  html[data-design="prox"] .metricmore .mm { flex-wrap: nowrap; }
  html[data-design="prox"] .prox-page-head { padding: 20px; }
  html[data-design="prox"] .prox-page-head h1 { font-size: 22px; }
  html[data-design="prox"] :is(.card, .my-section-card) { padding-left: 14px; padding-right: 14px; }
  html[data-design="prox"] :is(.card, .my-section-card) > .card-h { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  html[data-design="prox"] .my-card { padding: 0; }
  html[data-design="prox"] .my-heading-row { display: flex; flex-wrap: wrap; padding: 14px; }
  html[data-design="prox"] .my-lookup-note { flex-basis: 100%; }
  html[data-design="prox"] .lookup { padding: 0 14px 14px; }
  html[data-design="prox"] .lookup button { padding: 10px 12px; }
  html[data-design="prox"] .noid-summary-grid .stat { padding: 14px 12px; }
  html[data-design="prox"] .noid-summary-grid .stat .v { font-size: 21px; }
  html[data-design="prox"] .poolstatus { font-size: 10.5px; gap: 4px 12px; }
}
@media (max-width: 480px) {
  html[data-design="prox"] .brand-word { display: none; }
}
@media (max-width: 380px) {
  html[data-design="prox"] .prox-hero-actions { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-design="prox"] * { transition: none !important; animation: none !important; }
}

/* Address history belongs to this browser and pool only. */
.address-suggestions { position: absolute; top: calc(100% + 6px); right: 0; width: max(100%, 290px); max-width: calc(100vw - 32px); padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); box-shadow: 0 8px 24px #0002; z-index: 45; }
.address-suggestions[hidden] { display: none; }
.address-suggestions [role="listbox"] { max-height: 280px; overflow-y: auto; }
.address-suggestions-heading { display: flex; justify-content: space-between; align-items: center; padding: 5px 7px; font-size: 12px; }
.address-suggestions button { border: 0; background: transparent; color: var(--text); cursor: pointer; }
.address-suggestions .address-suggestion { display: block; width: 100%; padding: 10px 7px; border-radius: 5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 12px ui-monospace, monospace; }
.address-suggestion:hover, .address-suggestion:focus-visible, .address-suggestion[aria-selected="true"] { background: var(--card-2); outline: 2px solid var(--accent); outline-offset: -2px; }
.address-suggestions-clear { padding: 5px; text-decoration: underline; font-size: 12px; }
.address-suggestions-note { padding: 6px 7px; font-size: 11px; color: var(--muted); }
