/* Shared product layer. Theme entrypoints own color and typography values. */
:root {
  --np-width: 1280px;
  --np-on-accent: var(--bg-primary);
  --np-hairline: color-mix(in srgb, var(--text-primary) 12%, transparent);
  --np-tint: color-mix(in srgb, var(--accent-primary) 7%, var(--bg-secondary));
}
html[data-theme="calico"] { --np-on-accent: var(--text-primary); }
html { scroll-padding-top: 24px; }
body { text-rendering: optimizeLegibility; }
a, button { -webkit-tap-highlight-color: transparent; }
.skin-black .main-index-header { background: var(--bg-primary) !important; border-bottom: 1px solid var(--np-hairline) !important; box-shadow: none !important; }
.skin-black .main-index-header .navbar { max-width: var(--np-width); min-height: 88px; padding: 18px 40px; justify-content: space-between !important; align-items: center !important; gap: 24px; }
.nerdpool-brand { gap: 11px; font: 600 24px/1 var(--fn); letter-spacing: -1.2px; }
.nerdpool-brand img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.np-brand-dot { color: var(--accent-primary); }
.np-nav-links { display: flex; align-items: center; gap: 30px; margin-right: auto; margin-left: 40px; }
.np-nav-links a, .np-back-link { color: var(--text-muted); font-size: 13px; font-weight: 500; text-decoration: none; }
.np-nav-links a:hover, .np-back-link:hover { color: var(--text-primary); text-decoration: none; }
.np-nav-links a, .np-back-link { display: inline-flex; align-items: center; gap: 7px; }
.np-header-icon { flex: 0 0 16px; width: 16px; font-size: 14px; line-height: 1; text-align: center; }
.np-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.np-header-fees { display: inline-flex; align-items: center; flex-shrink: 0; gap: 7px; min-height: 40px; padding: 9px 4px; color: var(--text-muted); background: transparent; font-size: 12px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.np-header-fees:hover, .np-header-fees:focus-visible { color: var(--text-primary); text-decoration: underline; text-underline-offset: .2em; }
.np-header-connect { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 15px; color: var(--text-primary); border: 1px solid var(--np-hairline); border-radius: var(--r-sm); font-size: 12px; font-weight: 600; text-decoration: none; }
.np-header-connect:hover { border-color: var(--accent-primary); color: var(--accent-primary); text-decoration: none; }
.footer-skin-menu[hidden] { display: none !important; }
.np-header-picker .footer-skin-menu { top: calc(100% + 12px); bottom: auto; right: 0; }
.np-theme-trigger.footer-skin-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 10px; min-height: 40px; color: var(--text-muted); background: transparent; border: 1px solid transparent; border-radius: var(--r-sm); box-shadow: none; font-size: 12px; }
.np-theme-trigger.footer-skin-btn:hover { color: var(--text-primary); border-color: var(--np-hairline); }
.np-theme-trigger .nerdpool-icon { width: 17px; height: 17px; }
.footer-skin-menu { min-width: 190px; padding: 9px; border: 1px solid var(--np-hairline); border-radius: var(--r); background: var(--bg-secondary); box-shadow: var(--shadow-md); }
.footer-skin-title { padding: 8px 10px; font: 500 10px/1.4 var(--fm); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.footer-skin-opt { min-height: 38px; border-radius: var(--r-sm); font-size: 13px; }
.footer-skin-opt.active { color: var(--text-primary); background: var(--np-tint); }
.fsw--graphite { background: #ff9b54; border-color: #25313f; }
#node-status { display: block; min-height: 36px; padding: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--np-hairline); }
.node-status-bar { display: flex; align-items: center; max-width: var(--np-width); margin: 0 auto; padding: 0 10px; }
.node-status-viewport { flex: 1; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scrollbar-color: auto; }
.node-status-viewport::-webkit-scrollbar { display: none; }
.node-status-viewport[tabindex="0"]:not(:focus-visible) { mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent); }
.node-status-track { display: flex; width: max-content; margin-inline: auto; }
.node-status-sequence { display: flex; align-items: center; flex: none; white-space: nowrap; }
.node-status-sequence[hidden], .node-status-toggle[hidden] { display: none; }
.node-status-sequence .node-status-item { display: inline-flex; flex: none; flex-flow: row nowrap; align-items: center; gap: 7px; max-width: none; height: 35px; padding: 0 16px; border: 0; }
.node-status-label, .node-status-loading { font: 400 12px/1.4 var(--fm); color: var(--text-muted); }
.node-status-loading { display: inline-flex; align-items: center; height: 35px; }
.node-status-item::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.node-status-item[data-state="online"]::before { background: var(--green); }
.node-status-item[data-state="syncing"]::before { background: var(--accent-primary); }
.node-status-toggle { display: grid; flex: none; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; border-left: 1px solid var(--np-hairline); border-radius: 0; background: transparent; color: var(--text-muted); cursor: pointer; }
.node-status-toggle:hover { color: var(--text-primary); background: var(--np-tint); }
.node-status-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.node-status-toggle .node-status-play, .node-status-toggle[data-paused="true"] .node-status-pause { display: none; }
.node-status-toggle[data-paused="true"] .node-status-play { display: inline; }
.node-status-toggle:focus-visible, .node-status-viewport:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: -2px; }
.node-status-progress { width: 54px; height: 3px; background: var(--np-hairline); }
.node-status-progress > span { background: var(--accent-primary); }
.node-status-detail { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.idx-page { max-width: var(--np-width); padding: 0 40px 70px; }
.idx-hero.np-hero { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); align-items: center; gap: 40px; padding: 64px 0 52px; border-bottom: 0; }
.nerdpool-eyebrow { margin: 0 0 20px; font: 500 10px/1.6 var(--fm); color: var(--text-muted); letter-spacing: .14em; }
.np-eyebrow-mark { color: var(--accent-primary); margin-right: 6px; font-size: 18px; vertical-align: middle; }
.np-hero .nerdpool-hero-copy :is(h1, .np-hero-heading) { font: 600 clamp(48px,6.3vw,82px)/1.02 var(--fn); letter-spacing: -.07em; margin: 0 0 24px; }
.np-hero :is(h1, .np-hero-heading) span { color: var(--accent-primary); }
.np-hero .nerdpool-intro { max-width: 440px; font-size: 15px; line-height: 1.85; color: var(--text-muted); margin-bottom: 28px; }
.np-hero-actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.nerdpool-primary-link { min-height: 48px; padding: 13px 18px; gap: 30px; border-radius: var(--r-sm); background: var(--accent-primary); color: var(--np-on-accent); font: 600 13px/1.4 var(--fn); }
.nerdpool-primary-link:hover { color: var(--np-on-accent); box-shadow: 0 5px 20px color-mix(in srgb,var(--accent-primary) 15%,transparent); }
.np-secondary-link { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-size: 12px; font-weight: 500; color: var(--text-secondary); text-decoration: none; }
.np-secondary-link:hover { color: var(--text-primary); text-decoration: none; }
.np-hero .nerdpool-facts { margin: 27px 0 0; font: 400 10px/1.6 var(--fm); color: var(--text-muted); }
.nerdpool-facts strong { color: var(--text-primary); font-weight: 500; }
.np-engine { margin: 0; width: 100%; min-width: 0; border: 1px solid var(--np-hairline); border-radius: 20px; background: var(--bg-secondary); overflow: hidden; }
.np-engine-stage { padding: 12px 8px 0; }
.np-engine-svg { display: block; width: 100%; aspect-ratio: 520/390; }
.np-grid-line { stroke: var(--np-hairline); stroke-width: .6; opacity: .55; }
.np-wire { stroke: var(--border-mid); stroke-width: 1.3; stroke-linejoin: round; }
.np-flow { stroke: var(--accent-primary); stroke-width: 2; stroke-dasharray: 6 160; stroke-linejoin: round; }
.np-chip-shadow { fill: var(--bg-primary); opacity: .6; }
.np-chip-side { fill: var(--bg-primary); stroke: var(--border-mid); stroke-width: 1.4; }
.np-chip-edge { stroke: var(--border-mid); stroke-width: 1.2; }
.np-chip-top { fill: var(--bg-tertiary); stroke: var(--accent-primary); stroke-width: 1.2; }
.np-chip-inset { fill: var(--bg-secondary); stroke: var(--border-mid); stroke-width: 1; }
.np-chip-engraving { stroke: var(--border-mid); stroke-width: .8; }
.np-chip-symbol { fill: var(--accent-primary); }
.np-port rect { fill: var(--bg-secondary); stroke: var(--np-hairline); }
.np-port text { fill: var(--text-muted); font: 500 9px var(--fm); text-anchor: middle; letter-spacing: .1em; }
.np-board-node { fill: var(--accent-primary); stroke: var(--bg-secondary); stroke-width: 3; }
.np-board-contact { stroke: var(--border-mid); stroke-linecap: round; }
.np-engine-label { fill: var(--text-muted); font: 400 8px var(--fm); letter-spacing: .2em; text-anchor: middle; }
.np-engine figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 20px; border-top: 1px solid var(--np-hairline); color: var(--text-muted); font: 400 9px/1.4 var(--fm); letter-spacing: .08em; }
.np-engine figcaption i { display: inline-block; width: 5px; height: 5px; background: var(--accent-primary); margin-right: 7px; vertical-align: middle; }
.pool-stats-banner { margin-bottom: 44px; padding: 24px 28px; border: 1px solid var(--np-hairline); border-radius: var(--r); background: var(--bg-secondary); }
.pool-stat-item { gap: 16px; }
.pool-stat-value { font-size: 27px !important; font-weight: 500 !important; letter-spacing: -.05em; }
.pool-stat-label { color: var(--text-muted) !important; font: 400 9px/1.4 var(--fm) !important; letter-spacing: .06em; margin-top: 7px; }
.nerdpool-stat-icon { background: transparent; border: 0; width: 28px; height: 28px; }
.nerdpool-stat-icon .nerdpool-icon { width: 23px; height: 23px; stroke-width: 1.3; }
.pool-stat-divider { background: var(--np-hairline); }
.idx-section { padding: 0 0 44px; }
#pools { scroll-margin-top: 22px; }
.idx-section-header { margin-bottom: 10px; align-items: end; gap: 20px; }
.idx-section-header .nerdpool-eyebrow { margin-bottom: 9px; }
.idx-section-title { font: 500 29px/1.3 var(--fn) !important; letter-spacing: -.04em; }
.nerdpool-mode-note { max-width: 670px; font-size: 12px; line-height: 1.8; margin: 0 0 25px; }
.mode-toggle { border: 1px solid var(--np-hairline); background: var(--bg-secondary); padding: 4px; border-radius: var(--r-sm); box-shadow: none; }
#modeToggle .mode-btn { padding: 9px 21px !important; min-height: 38px; font: 500 11px/1.4 var(--fm) !important; border-radius: 5px !important; text-transform: none; }
#modeToggle .mode-btn.active { background: var(--accent-primary) !important; color: var(--np-on-accent) !important; box-shadow: none !important; }
.pool-coin-grid { gap: 18px !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
.pool-coin-card { padding: 0 !important; animation: none; }
html[data-theme="neon"] .pool-coin-card { --text-muted: color-mix(in srgb, var(--text-2) 35%, var(--text-1)); }
.pool-coin-card .card { height: 100%; background: var(--bg-secondary) !important; border: 1px solid var(--np-hairline) !important; border-radius: var(--r) !important; box-shadow: none !important; overflow: hidden; }
.pool-coin-card .card::before { display: none; }
.pool-coin-card .card:hover { border-color: color-mix(in srgb,var(--accent-primary) 40%,var(--np-hairline)) !important; box-shadow: var(--shadow-sm) !important; }
.pool-coin-card .coin-card-header { justify-content: space-between; padding: 22px 22px 16px !important; background: transparent !important; border-bottom: 0; }
.np-coin-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pool-coin-card .coin-card-icon .coinimg { width: 38px !important; height: 38px; }
.pool-coin-card .coin-card-name { font: 500 18px/1.25 var(--fn) !important; letter-spacing: -.04em; }
.np-coin-ticker { display: block; margin-top: 5px; font: 400 11px/1.4 var(--fm); color: var(--text-muted); letter-spacing: .06em; }
.np-mode-badge { flex-shrink: 0; padding: 5px 7px; border: 1px solid var(--np-hairline); border-radius: 5px; font: 400 9px/1.2 var(--fm); color: var(--text-muted); }
.np-card-context { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 22px; padding-bottom: 17px; border-bottom: 1px solid var(--np-hairline); }
.pool-state-label { font-size: 10px; color: var(--text-muted); }
.coin-status-dot { width: 6px !important; height: 6px !important; }
.np-fee-label { font: 400 9px/1.4 var(--fm); color: var(--text-muted); }
.pool-coin-card .coin-card-body { display: block; padding: 22px !important; }
.np-metric-label { display: block; font: 400 9px/1.5 var(--fm); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.np-hashrate { display: block; margin: 7px 0 24px; font: 500 30px/1.2 var(--fm); color: var(--text-primary); letter-spacing: -.07em; white-space: nowrap; }
.np-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; }
.np-metrics .coin-stat-row { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 36px; padding: 0; gap: 5px; border: 0; }
.np-metrics .stat-label { color: var(--text-muted) !important; white-space: normal; }
.np-metrics .stat-value { max-width: 100%; color: var(--text-secondary); font: 400 12px/1.5 var(--fm); text-align: left; white-space: normal; overflow-wrap: anywhere; }
.np-card-payouts { display: grid; gap: 7px; margin: 18px 0 0; padding: 11px 13px; border-radius: var(--r-sm); background: var(--np-tint); }
.np-card-payouts > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.np-card-payouts dt, .np-card-payouts dd { margin: 0; line-height: 1.5; }
.np-card-payouts dt { color: var(--text-secondary); font-size: 12px; font-weight: 500; }
.np-card-payouts dd { color: var(--text-primary); font: 500 12px/1.5 var(--fm); overflow-wrap: anywhere; }
.np-block-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 21px; margin-top: 21px; border-top: 1px solid var(--np-hairline); font-size: 10px; color: var(--text-muted); }
.np-block-value { font: 400 10px/1.4 var(--fm); text-align: right; }
.np-card-price { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; font: 400 10px/1.5 var(--fm); color: var(--text-muted); }
.np-card-price[hidden] { display: none; }
.np-card-price .coin-price { color: var(--text-secondary); font-weight: 400; }
.pool-coin-card .coin-card-footer { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 17px 22px !important; background: transparent !important; border-top: 1px solid var(--np-hairline); }
.np-stats-link { color: var(--text-muted); font: 500 11px/1.4 var(--fn); text-decoration: none; }
.np-stats-link:hover { color: var(--text-primary); text-decoration: none; }
.pool-coin-card .btn-connect { justify-content: space-between !important; min-width: 0; width: 100% !important; min-height: 40px; padding: 9px 12px !important; background: var(--np-tint) !important; color: var(--accent-primary) !important; border: 1px solid color-mix(in srgb,var(--accent-primary) 22%,transparent) !important; border-radius: var(--r-sm) !important; font: 500 11px/1.4 var(--fn) !important; gap: 16px; box-shadow: none !important; }
.pool-coin-card .btn-connect:hover { color: var(--np-on-accent) !important; background: var(--accent-primary) !important; box-shadow: none !important; }
.np-network-section, .idx-section--table { margin-top: 5px; padding-top: 28px; border-top: 1px solid var(--np-hairline); }
.idx-section--table .idx-section-title { font-size: 22px !important; }
.idx-section--table .idx-section-title i { display: none; }
.idx-section-sub { margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.table-responsive { border-radius: var(--r-sm); }
.table { color: var(--text-secondary); }
.table th { color: var(--text-muted) !important; font: 400 10px/1.5 var(--fm) !important; letter-spacing: .02em; }
.table td { font-size: 12px; border-color: var(--np-hairline) !important; }
.idx-section--table #serverPingTable { border: 1px solid var(--np-hairline); background: var(--bg-secondary); }
.idx-section--table #serverPingTable th { background: var(--bg-secondary); border-color: var(--np-hairline); }
.main-index-footer { max-width: none; min-height: 84px; padding: 20px max(24px,calc((100vw - 1200px)/2)) !important; background: var(--bg-primary) !important; border-top: 1px solid var(--np-hairline); }
.main-index-footer .footer-content { font: 400 10px/1.6 var(--fm); color: var(--text-muted); }
.main-index-footer .glow-text, .main-index-footer .footer-link { color: var(--text-muted) !important; text-shadow: none; }
.main-index-footer .footer-link:hover { color: var(--accent-primary) !important; }
.main-index-footer .separator { color: var(--border-mid); padding: 0 10px; }
.main-index-footer .footer-skin-btn { border-radius: var(--r-sm); font-size: 10px; background: var(--bg-secondary); border-color: var(--np-hairline); }
.np-legal-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0 clamp(14px, 2vw, 28px); padding: 0 8px; box-sizing: border-box;
}
.main-index-footer .np-legal-links {
  flex: 0 0 100%; margin: 3px auto 0; border-top: 1px solid var(--np-hairline);
}
.np-legal-links .footer-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-secondary); font: 500 12px/1.4 var(--fn);
}
.np-legal-links .footer-link:hover, .np-legal-links [aria-current="page"] {
  text-decoration: underline; text-underline-offset: .2em;
}
.np-legal-links a:focus-visible, .np-legal-contents summary:focus-visible {
  outline: 2px solid var(--accent-primary); outline-offset: 2px;
}
.np-document-footer {
  padding: 10px 16px; border-top: 1px solid var(--np-hairline);
  background: var(--bg-primary);
}
.np-legal-contents details { display: none; }
.np-legal-page .np-policy-article ol { list-style: decimal; padding-inline-start: 1.6em; }
@media (max-width: 760px) {
  .np-legal-page .np-legal-contents { width: 100%; }
  .np-legal-page .np-legal-contents > ul { display: none; }
  .np-legal-contents details { display: block; }
  .np-legal-contents summary { width: fit-content; padding: 10px 0; color: var(--text-primary); cursor: pointer; }
  .np-legal-page .np-legal-contents details ul { display: block; margin-block: 8px; }
}
@media print { .np-document-footer { display: none; } }
.main-pool { position: relative; min-height: calc(100vh - 44px); }
.skin-black .main-sidebar { position: absolute; width: 220px; min-height: 100%; height: 100%; top: 0; bottom: 0; background: var(--bg-secondary) !important; border-right: 1px solid var(--np-hairline); box-shadow: none !important; }
.sidebar-wrapper .logo { margin: 0; padding: 24px 15px; border-bottom: 1px solid var(--np-hairline); }
.sidebar-wrapper .simple-text { color: var(--text-primary); font-size: 17px; }
.sidebar-wrapper .simple-text p { margin: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
.sidebar-wrapper .np-sidebar-coin-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; color: var(--text-primary); font: 500 16px/1.25 var(--fn); text-transform: none; }
.sidebar-wrapper .simple-text p > img { flex: none; }
.sidebar-wrapper .nav { padding: 12px; }
.sidebar-wrapper .nav li a { min-height: 42px; padding: 12px 14px; border-radius: var(--r-sm); color: var(--text-muted) !important; font: 400 12px/1.5 var(--fn); }
.sidebar-wrapper .nav li.active a { color: var(--accent-primary) !important; background: var(--np-tint) !important; box-shadow: none !important; }
.sidebar-wrapper .nav li a:hover { background: var(--bg-tertiary) !important; color: var(--text-primary) !important; }
.np-pool-header.main-header { position: relative; width: calc(100% - 220px); left: auto; right: auto; top: auto; margin-left: 220px; background: var(--bg-primary) !important; border-bottom: 1px solid var(--np-hairline) !important; box-shadow: none !important; }
.np-pool-header .navbar { width: auto; display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 12px 28px !important; margin-left: 0 !important; background: transparent !important; }
.np-pool-header .sidebar-toggle { background: transparent; border: 0; padding: 8px; color: var(--text-primary); display: none; }
.skin-black .main-pool .content-wrapper { transition: none !important; transform: none !important; margin-left: 220px !important; padding: 28px; background: var(--bg-primary) !important; min-height: calc(100vh - 200px) !important; }
/* Selected coin and reward mode stay visible on every data/help screen. */
.np-pool-context { margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--np-hairline); }
.np-pool-context[hidden] { display: none; }
.np-context-heading { display: flex; align-items: center; gap: 12px; min-height: 34px; }
.np-context-heading img { flex: 0 0 32px; object-fit: contain; }
.np-context-name { color: var(--text-primary); font: 500 23px/1.3 var(--fn); letter-spacing: -.03em; }
.np-context-note { margin: 12px 0 0; color: var(--text-muted); font: 400 11px/1.7 var(--fn); }
.np-sidebar-mode { display: inline-block; margin-top: 12px; color: var(--accent-primary); font: 400 10px/1.4 var(--fm); letter-spacing: .08em; }
.main-pool .content { padding: 0; }
.main-pool .content-header { padding: 0 0 24px; }
.main-pool .content-header h1 { font: 500 29px/1.3 var(--fn); letter-spacing: -.04em; }
.main-pool .content-header small { color: var(--text-muted); font-size: 16px; padding-left: 10px; }
.main-pool .card { background: var(--bg-secondary) !important; border: 1px solid var(--np-hairline) !important; border-radius: var(--r) !important; box-shadow: none !important; }
.main-pool .card:hover { transform: none; }
.main-pool .card-header { background: transparent !important; border-bottom: 1px solid var(--np-hairline); padding: 22px !important; color: var(--text-primary); }
.main-pool .card-header .card-title { font-size: 16px; letter-spacing: -.02em; }
.main-pool .card-header .card-title p { margin: 0; }
.main-pool .card-header .card-category { color: var(--text-muted); font-size: 12px; margin: 8px 0 0; }
.main-pool .card-body { padding: 22px !important; }
.main-pool .card-footer { background: transparent !important; border-top: 1px solid var(--np-hairline); padding: 18px 22px; }
.main-pool input { min-height: 44px; border: 1px solid var(--np-hairline) !important; border-radius: var(--r-sm); background: var(--bg-primary) !important; color: var(--text-primary) !important; box-shadow: none !important; }
.main-pool .btn-primary { background: var(--accent-primary) !important; color: var(--np-on-accent) !important; border-color: transparent !important; border-radius: var(--r-sm); }
.main-pool .ct-chart .ct-line { stroke: var(--accent-primary); stroke-width: 2px; }
.main-pool .ct-chart .ct-area { fill: var(--accent-primary); fill-opacity: .06; }
.main-pool .ct-chart .ct-grid { stroke: var(--np-hairline); }
.main-pool .ct-chart .ct-label { fill: var(--text-muted); color: var(--text-muted); font-family: var(--fm); font-size: 9px; }
.main-pool .main-index-footer { margin-left: 0; width: 100%; padding: 20px 28px !important; }
.np-guide-body .np-guide-header { border-bottom: 1px solid var(--np-hairline); background: var(--bg-primary); }
.np-guide-header nav { display: flex; align-items: center; gap: 32px; max-width: var(--np-width); min-height: 88px; margin: 0 auto; padding: 18px 40px; }
.np-guide-header .np-header-picker { margin-left: auto; }
.np-guide-body .guide { max-width: 1060px; padding: 50px 40px 80px; }
.guide-header { margin: 0 0 30px; }
.guide h1 { font: 500 clamp(36px,5vw,56px)/1.1 var(--fn); letter-spacing: -.055em; margin-bottom: 18px; }
.guide-intro { max-width: 640px; font-size: 14px; line-height: 1.9; color: var(--text-muted); }
.guide p a, .guide li a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
.guide p a:hover, .guide li a:hover { color: var(--text-primary); }
.guide-coin-nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 32px; }
.guide-coin-link { padding: 18px; gap: 12px; background: var(--bg-secondary); border-color: var(--np-hairline); }
.guide-coin-link strong { font-weight: 500; }
.guide-coin-link small { color: var(--text-muted); font-size: 9px; }
.guide-coin-section { padding: 28px; margin-top: 22px; background: var(--bg-secondary); border-color: var(--np-hairline); }
.guide-coin-heading { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--np-hairline); }
.guide-coin-heading h2 { font-weight: 500; font-size: 23px; }
.guide-coin-section p { font-size: 13px; line-height: 1.9; color: var(--text-muted); }
.guide-coin-section strong { color: var(--text-primary); font-weight: 500; }
.guide td, .guide th { border-color: var(--np-hairline); }
.guide th { font: 400 10px/1.5 var(--fm); }
.guide td { padding-top: 16px; padding-bottom: 16px; font-size: 12px; }
.guide table caption { font: 400 10px/1.8 var(--fm); }
.np-copy-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; margin-top: 10px; border: 1px solid var(--np-hairline); border-radius: var(--r-sm); background: var(--bg-primary); }
.np-copy-row code { font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.np-copy-btn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 68px; min-height: 34px; padding: 7px 12px; border: 1px solid var(--np-hairline); border-radius: 6px; background: var(--bg-secondary); color: var(--text-secondary); font: 500 10px/1.4 var(--fm); cursor: pointer; }
.np-copy-btn:hover { color: var(--accent-primary); border-color: var(--accent-primary); }
.np-copy-btn:active { background: var(--np-tint); }
#copy-feedback { min-height: 20px; margin-top: 10px; font-size: 11px; color: var(--text-muted); }
.guide-notes { padding-top: 8px; }
.guide-notes h2 { font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.guide-notes p { font-size: 13px; color: var(--text-muted); }
.np-field-error { margin: 8px 0 0; color: var(--red); font-size: 12px; }
.np-field-error { min-height: 20px; }
#wallet-lookup .input-group { display: block; }
#wallet-lookup label { margin-bottom: 10px; }
#wallet-lookup input.form-control { float: none; width: 100%; display: block; }
.pool-coin-card .coin-card-body { flex: 1; }
.np-empty-state { grid-column: 1 / -1; padding: 40px; border: 1px solid var(--np-hairline); border-radius: var(--r); background: var(--bg-secondary); }
.np-empty-state h3 { font-size: 22px; font-weight: 500; margin: 0 0 12px; }
.np-empty-state p { color: var(--text-muted); margin-bottom: 20px; }
.np-empty-state a { color: var(--text-secondary); margin-left: 18px; font-size: 12px; }
/* Tables retain native row/column geometry at every viewport. */
.main-pool table.table { display: table; border-collapse: collapse; width: 100%; }
.main-pool table.table thead { display: table-header-group; }
.main-pool table.table tbody { display: table-row-group; }
.main-pool table.table tr { display: table-row; position: static; }
.main-pool table.table th, .main-pool table.table td { display: table-cell; position: static; float: none; width: auto; padding: 14px 16px; border-top: 0; border-bottom: 1px solid var(--np-hairline); vertical-align: middle; }
.main-pool .content-header h1 { font-size: 29px !important; }
.main-pool .content-header { padding-top: 0 !important; }
.np-sidebar-close { display: none; }
.np-connection-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 27px; }
.np-connection-heading img { width: 46px; height: 46px; }
.np-connection-heading h1 { margin: 0 0 6px; font: 500 32px/1.2 var(--fn); letter-spacing: -.04em; }
.np-connection-heading .coin-card-status { margin-top: 7px; }
.np-connect-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; padding: 23px 25px; background: var(--bg-secondary); border: 1px solid var(--np-hairline); border-radius: var(--r); margin-bottom: 30px; }
.np-connect-metrics strong { display: block; font: 500 17px/1.5 var(--fm); color: var(--text-primary); margin-top: 7px; }
.np-connect-section-title { margin: 0 0 10px; font: 500 22px/1.4 var(--fn); letter-spacing: -.03em; }
.np-connect-description { color: var(--text-muted); font-size: 12px; line-height: 1.8; margin-bottom: 20px; }
.np-port-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.np-port-card { padding: 23px; background: var(--bg-secondary); border: 1px solid var(--np-hairline); border-radius: var(--r); }
.np-port-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.np-port-card h3 { font: 500 17px/1.4 var(--fn); margin: 0; letter-spacing: -.025em; }
.np-port-type { flex-shrink: 0; font: 400 9px/1.4 var(--fm); color: var(--text-muted); border: 1px solid var(--np-hairline); border-radius: 5px; padding: 4px 6px; }
.np-port-description { min-height: 35px; font-size: 11px; line-height: 1.75; color: var(--text-muted); margin-bottom: 14px; }
.np-port-card .np-copy-row { padding: 10px; margin-bottom: 16px; }
.np-port-card code { font-size: 10px; color: var(--text-primary); background: transparent; }
.np-port-diff { display: flex; gap: 10px; justify-content: space-between; font: 400 10px/1.7 var(--fm); color: var(--text-muted); }
.np-port-diff strong { color: var(--text-secondary); font-weight: 400; text-align: right; }
.np-worker-panel { margin: 25px 0; padding: 25px; border: 1px solid var(--np-hairline); border-radius: var(--r); background: var(--bg-secondary); }
.np-worker-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 20px; }
.np-worker-grid code { display: block; background: transparent; color: var(--text-primary); font-size: 12px; font-family: var(--fm); padding: 10px 0; overflow-wrap: anywhere; }
.np-worker-panel p { font-size: 12px; line-height: 1.8; color: var(--text-muted); margin-bottom: 0; }
.np-advanced-details { margin-top: 24px; border: 1px solid var(--np-hairline); border-radius: var(--r); background: var(--bg-secondary); overflow: hidden; }
.np-advanced-details summary { padding: 20px 24px; color: var(--text-secondary); font-size: 13px; cursor: pointer; }
.np-advanced-details .table-responsive { margin: 0 20px 20px; }
.np-advanced-details code { color: var(--text-secondary); background: transparent; }
.np-hero-slider { min-width: 0; width: 100%; }
.np-swiper { width: 100%; overflow: hidden; border-radius: 0; }
.np-hero-carousel { padding-bottom: 34px; }
.idx-hero.np-hero-slide { height: 100%; padding-bottom: 24px; }
.np-hero-slide .np-engine { align-self: center; }
.np-swiper .swiper-slide { height: auto; }
.np-swiper { --swiper-wrapper-transition-timing-function: cubic-bezier(.42, 0, .22, 1); }
.np-slider-controls { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 0; gap: 20px; color: var(--text-muted); font: 400 10px/1.4 var(--fm); }
.np-slider-controls > div { display: flex; align-items: center; gap: 7px; }
.np-slider-controls button { min-width: 44px; min-height: 44px; padding: 7px; border: 1px solid var(--np-hairline); border-radius: var(--r-sm); color: var(--text-secondary); background: transparent; font: 400 12px/1.3 var(--fm); cursor: pointer; }
.np-slider-controls button:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.np-slider-controls button:disabled { opacity: .4; cursor: default; }
.np-slider-pagination { display: flex; align-items: center; width: auto; gap: 0; }
.np-slider-pagination .swiper-pagination-bullet { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 7px; border: 0; border-radius: var(--r-sm); background: transparent; opacity: 1; }
.np-slider-pagination .swiper-pagination-bullet::after { content: ''; display: block; width: 24px; height: 3px; border-radius: var(--r-sm); background: var(--text-muted); opacity: .45; }
.np-slider-pagination .swiper-pagination-bullet-active::after { background: var(--accent-primary); opacity: 1; }
.np-slider-pagination .swiper-pagination-bullet:hover::after { opacity: 1; }
.np-slider-controls button:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }
.np-swiper:not(.swiper-initialized) + .np-slider-controls { display: none; }
.np-port-panel { fill: var(--bg-primary); stroke: var(--np-hairline); }
.np-hardware-label { font: 400 8px var(--fm); fill: var(--text-muted); text-anchor: middle; }
.np-fan { fill: color-mix(in srgb,var(--accent-primary) 42%,var(--bg-secondary)); stroke: var(--accent-primary); stroke-width: .8; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .np-fan { animation: npFanTurn 14s linear infinite; }
  .swiper-slide:not(.swiper-slide-active) .np-flow,
  .swiper-slide:not(.swiper-slide-active) .np-chip,
  .swiper-slide:not(.swiper-slide-active) .np-fan,
  .np-hero-slider[data-visible="false"] .np-fan,
  html[data-page-hidden="true"] .np-fan { animation-play-state: paused; }
  .np-hero-slider[data-motion-paused="true"] .np-flow,
  .np-hero-slider[data-motion-paused="true"] .np-chip,
  .np-hero-slider[data-motion-paused="true"] .np-fan { animation-play-state: paused; }
  @keyframes npFanTurn { to { transform: rotate(360deg); } }
}
@media (max-width: 900px) {
  .skin-black .main-sidebar { visibility: hidden; }
  .sidebar-open .main-sidebar { visibility: visible; }
  .sidebar-wrapper .logo { z-index: auto; padding-inline-end: 60px; }
  .sidebar-wrapper .logo .simple-text { white-space: normal; }
  .np-sidebar-close { display: grid; place-items: center; position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; padding: 0; border: 1px solid var(--np-hairline); border-radius: 6px; background: var(--bg-primary); color: var(--text-primary); font: inherit; font-size: 21px; line-height: 1; cursor: pointer; }
}
@media (max-width: 700px) {
  .pool-stat-value { white-space: nowrap; font-size: 18px !important; }
  .pool-stat-item { min-width: 0; padding-left: 0; }
  .pool-stat-value#banner-hashrate { font-size: 16px !important; }
  .np-connect-metrics { grid-template-columns: 1fr 1fr; gap: 22px; padding: 20px; }
  .np-connection-heading h1 { font-size: 27px; }
  .np-port-grid { grid-template-columns: 1fr; }
  .np-port-card { padding: 20px; }
  .np-worker-panel { padding: 20px; }
  .np-worker-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .np-engine-stage { transform: perspective(850px) rotateX(var(--engine-y,0deg)) rotateY(var(--engine-x,0deg)); transition: transform 350ms var(--nerdpool-motion-ease); }
  .np-flow { animation: npPacket 8s linear infinite; }
  .np-flow-two { animation-delay: -3s; animation-duration: 10s; }
  .np-flow-three { animation-delay: -5s; animation-duration: 9s; }
  .np-chip { animation: npChipFloat 7s ease-in-out infinite; }
  .np-engine[data-visible="false"] .np-flow,
  .np-engine[data-visible="false"] .np-chip,
  html[data-page-hidden="true"] .np-flow,
  html[data-page-hidden="true"] .np-chip { animation-play-state: paused; }
  .pool-coin-card .card { transition: transform 220ms var(--nerdpool-motion-ease), border-color 220ms ease, box-shadow 220ms ease; }
  .np-copy-btn, .np-header-connect { transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease; }
  @keyframes npPacket { to { stroke-dashoffset: -166; } }
  @keyframes npChipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
}
@media (prefers-reduced-motion: reduce) { .np-engine-stage { transform: none !important; } }
@media (max-width: 1100px) {
  .np-nav-links { margin-left: 20px; gap: 20px; }
  .np-hero .nerdpool-hero-copy :is(h1, .np-hero-heading) { font-size: 66px; }
  .idx-hero.np-hero { gap: 28px; }
  .pool-coin-card .coin-card-header { padding: 20px 16px 16px !important; }
  .pool-coin-card .coin-card-body { padding: 20px 16px !important; }
  .np-card-context { margin-left: 16px; margin-right: 16px; }
  .pool-coin-card .coin-card-name { font-size: 16px !important; }
  .np-coin-title { gap: 9px; }
  .np-hashrate { font-size: 25px; }
  .pool-coin-card .coin-card-footer { padding: 16px !important; gap: 12px; }
}
@media (max-width: 900px) {
  .np-theme-trigger.footer-skin-btn > span { display: none; }
  .skin-black .main-index-header .navbar { padding: 16px 24px; min-height: 76px; }
  .idx-page { padding-left: 24px; padding-right: 24px; }
  .idx-hero.np-hero { grid-template-columns: 1fr 1fr; padding-top: 42px; }
  .np-hero .nerdpool-hero-copy :is(h1, .np-hero-heading) { font-size: 53px; }
  .np-hero .nerdpool-intro { font-size: 13px; }
  .np-hero-actions { gap: 12px; }
  .nerdpool-primary-link { gap: 20px; font-size: 12px; }
  .np-secondary-link { font-size: 11px; }
  .np-hero .nerdpool-facts { gap: 8px 0; font-size: 9px; }
  .pool-coin-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .pool-stat-value { font-size: 23px !important; }
  .skin-black .main-sidebar { position: fixed; height: 100dvh; min-height: 100dvh; transform: translateX(-220px); z-index: 1040; transition: transform 200ms ease; }
  .sidebar-open .main-sidebar { transform: translateX(0); }
  .np-pool-header.main-header, .skin-black .main-pool .content-wrapper { margin-left: 0 !important; }
  .np-pool-header.main-header { width: 100%; }
  .np-pool-header .sidebar-toggle { display: inline-block; }
  .main-pool .main-index-footer { margin-left: 0; width: 100%; }
}
@media (max-width: 700px) {
  .node-status-bar { padding: 0 4px; }
  .node-status-sequence .node-status-item { padding-inline: 12px; }
  .skin-black .main-index-header .navbar { padding: 14px 20px; min-height: 72px; gap: 12px; }
  .nerdpool-brand { font-size: 21px; letter-spacing: -.9px; gap: 9px; }
  .nerdpool-brand img { width: 32px; height: 32px; }
  .np-nav-links { display: none; }
  .np-header-actions { gap: 6px; }
  .skin-black .main-index-header .navbar, .np-pool-header .navbar, .np-guide-header nav { flex-wrap: wrap; }
  .np-header-fees { min-height: 36px; padding: 8px 4px; font-size: 11px; }
  .np-header-connect { min-height: 36px; padding: 8px 10px; gap: 10px; font-size: 10px; }
  .np-theme-trigger.footer-skin-btn { padding: 8px; min-height: 36px; }
  .idx-page { padding: 0 20px 44px; }
  .idx-hero.np-hero { grid-template-columns: 1fr; gap: 32px; padding: 38px 0 28px; }
  .np-hero .nerdpool-hero-copy { text-align: left; }
  .np-hero .nerdpool-hero-copy :is(h1, .np-hero-heading) { font-size: clamp(48px,12vw,68px); margin-bottom: 20px; }
  .np-hero .nerdpool-intro { margin-left: 0; max-width: 440px; font-size: 14px; line-height: 1.8; }
  .np-hero-actions { gap: 22px; }
  .np-hero .nerdpool-facts { justify-content: flex-start; margin-top: 22px; font-size: 9px; }
  .np-engine { max-width: 460px; }
  .np-engine-stage { padding: 6px 8px 0; }
  .np-engine figcaption { padding: 12px 16px; font-size: 8px; }
  .pool-stats-banner { margin-bottom: 34px; padding: 18px 14px; gap: 10px; }
  .pool-stat-value { font-size: 20px !important; }
  .pool-stat-label { font-size: 8px !important; line-height: 1.5 !important; letter-spacing: 0; }
  .idx-section-header { align-items: flex-start; gap: 20px; }
  .idx-section-title { font-size: 25px !important; }
  .idx-section-header .nerdpool-eyebrow { font-size: 9px; }
  .mode-toggle { align-self: flex-start; }
  #modeToggle .mode-btn { padding: 8px 18px !important; min-height: 35px; }
  .nerdpool-mode-note { margin-top: 7px; font-size: 11px; }
  .pool-coin-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .pool-coin-card .coin-card-header { padding: 22px 22px 16px !important; }
  .pool-coin-card .coin-card-name { font-size: 19px !important; }
  .np-card-context { margin: 0 22px; }
  .pool-coin-card .coin-card-body { padding: 22px !important; }
  .np-hashrate { font-size: 32px; }
  .np-metrics { gap: 22px 20px; }
  .np-metrics .stat-value { font-size: 12px; }
  .pool-coin-card .coin-card-footer { padding: 17px 22px !important; }
  .main-index-footer { padding: 20px !important; min-height: 78px; }
  .main-index-footer .separator { padding: 0 5px; }
  .main-index-footer .footer-content { font-size: 9px; }
  .np-pool-header .navbar { padding: 12px 16px !important; min-height: 64px; gap: 10px; }
  .skin-black .main-pool .content-wrapper { padding: 20px 14px; }
  .main-pool .card-body { padding: 15px !important; }
  .main-pool .card-header { padding: 18px !important; }
  .main-pool .table-responsive { overflow-x: auto; }
  .main-pool .table { min-width: 530px; }
  .np-guide-header nav { min-height: 72px; padding: 14px 20px; gap: 12px; }
  .np-guide-header .np-back-link { display: none; }
  .np-guide-body .guide { padding: 34px 20px 50px; }
  .guide h1 { font-size: 40px; }
  .guide-intro { font-size: 13px; }
  .guide-coin-nav { gap: 10px; }
  .guide-coin-link { padding: 16px; gap: 13px; }
  .guide-coin-link strong { font-size: 14px; }
  .guide-coin-link small { font-size: 10px; }
  .guide-coin-section { padding: 20px 16px; }
  .guide-coin-heading h2 { font-size: 22px; }
  .np-copy-row { padding: 10px; gap: 8px; }
  .np-copy-row code { font-size: 10px; }
  .np-copy-btn { min-width: 55px; padding: 7px 9px; }
}
@media (max-width: 360px) {
  .np-header-connect { gap: 6px; padding-left: 9px; padding-right: 9px; }
  .np-theme-trigger.footer-skin-btn { padding: 7px; }
  .np-hero .nerdpool-hero-copy :is(h1, .np-hero-heading) { font-size: 45px; }
  .pool-stat-value { font-size: 17px !important; }
  .np-hero-actions { gap: 16px; }
}

#np-stats-feedback { margin-bottom: 24px; }
#np-stats-feedback[hidden] { display: none; }

/* Shared native pool chooser and compact mining-stat tiles. */
.np-pool-header.main-header { max-height: none; }
.np-pool-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 28px 18px; }
.np-pool-field { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.np-pool-field label { margin: 0; color: var(--text-muted); font: 400 10px/1.5 var(--fm); }
#np-pool-select { width: min(100%, 300px); min-width: 0; min-height: 42px; padding: 9px 12px; border: 1px solid var(--np-hairline); border-radius: var(--r-sm); background: var(--bg-secondary); color: var(--text-primary); font: 500 12px/1.5 var(--fn); cursor: pointer; }
#np-pool-select:hover, #np-pool-select:focus-visible { border-color: var(--accent-primary); }
#np-pool-select:disabled { cursor: wait; opacity: .65; }
.np-pool-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 14px; border: 1px solid var(--np-hairline); border-radius: var(--r-sm); color: var(--accent-primary); background: var(--np-tint); font: 500 11px/1.5 var(--fn); white-space: nowrap; }
.np-pool-action:hover { color: var(--text-primary); border-color: var(--accent-primary); }
.np-pool-action[hidden] { display: none; }
.np-stats-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
#np-stats-updated { color: var(--text-muted); font: 400 10px/1.5 var(--fm); }
#np-stats-refresh { gap: 8px; min-width: 126px; min-height: 40px; }
#np-stats-refresh .nerdpool-icon { width: 15px; height: 15px; }
#np-stats-refresh:disabled { cursor: wait; opacity: .65; }
#np-stats-refresh:disabled svg { animation: np-stat-refresh 1s linear infinite; }
@keyframes np-stat-refresh { to { transform: rotate(360deg); } }
.main-pool .np-stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 0 0 30px; }
.main-pool .np-stats-grid > [class*="col-"] { width: auto; max-width: none; padding: 0; float: none; }
.skin-black .main-pool .np-stats-grid .np-stat-tile { position: relative; display: block; height: 100%; min-height: 138px; margin: 0; padding: 19px 18px; background: var(--bg-secondary) !important; border: 1px solid var(--np-hairline); border-radius: var(--r); box-shadow: none !important; }
.main-pool .np-stat-tile .info-box-icon { position: absolute; top: 16px; right: 15px; width: 26px; min-width: 0; height: 26px; min-height: 0; margin: 0; border: 0 !important; border-radius: 0; background: transparent !important; color: var(--accent-primary) !important; font-size: 16px !important; line-height: 26px; }
.main-pool .np-stat-tile .info-box-content { display: block; margin: 0; padding: 0; min-width: 0; }
.main-pool .np-stat-tile .info-box-text { padding-right: 28px; margin: 0 0 16px; color: var(--text-muted) !important; font: 400 10px/1.6 var(--fm) !important; letter-spacing: .04em; white-space: normal; }
.main-pool .np-stat-tile .info-box-number { display: block; color: var(--text-primary) !important; font: 500 15px/1.6 var(--fm) !important; white-space: normal !important; overflow-wrap: anywhere; }
@media (max-width: 1200px) { .main-pool .np-stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 700px) {
  .np-pool-tools { gap: 10px; padding: 0 16px 15px; }
  .np-pool-field { display: block; }
  .np-pool-field label { display: block; margin: 0 0 5px; font-size: 9px; }
  #np-pool-select { width: 100%; font-size: 12px; }
  .np-pool-action { align-self: flex-end; padding: 9px 10px; font-size: 10px; }
  .main-pool .np-stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .skin-black .main-pool .np-stats-grid .np-stat-tile { min-height: 136px; padding: 16px 13px; }
  .main-pool .np-stat-tile .info-box-number { font-size: 13px !important; }
  .main-pool .np-stat-tile .info-box-text { font-size: 10px !important; }
  .main-pool .np-stat-tile .info-box-icon { top: 13px; right: 10px; width: 22px; font-size: 14px !important; }
}
@media (prefers-reduced-motion: reduce) { #np-stats-refresh:disabled svg { animation: none; } }

.main-pool .np-stats-charts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin: 0 0 26px; }
.main-pool .np-stats-charts > [class*="col-"] { width: auto; max-width: none; padding: 0; float: none; }
.main-pool .np-stats-charts .card { margin-bottom: 0; }
.skin-black .main-pool .np-stats-grid .np-stat-tile { border-radius: var(--r-sm) !important; }
@media (max-width: 700px) { .main-pool .np-stats-charts { grid-template-columns: 1fr; gap: 18px; } }

/* Wallet lookup feedback shares the form owner; only errors use the error color. */
.np-wallet-feedback { margin: 8px 0 0; min-height: 20px; color: var(--text-2); font-size: 12px; overflow-wrap: anywhere; }
.np-wallet-feedback[data-state="error"] { color: var(--red); }
#np-wallet-results[hidden] { display: none !important; }
.main-pool .page-dashboard .info-box-icon { width: 48px; min-width: 48px; height: auto; min-height: 76px; flex-shrink: 0; float: none; }
.main-pool .page-dashboard .info-box-content { margin: 0; min-width: 0; flex: 1; padding: 12px; }
.main-pool .page-dashboard .info-box-text { color: var(--text-muted) !important; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.main-pool .page-dashboard .info-box-number { white-space: normal; overflow-wrap: anywhere; }

/* Ranked server list: one native ordered list, with readable fields on phones. */
.idx-section--servers { padding-bottom: 24px; }
.idx-section--servers .idx-section-header { margin-bottom: 18px; }
.idx-section--servers .idx-section-sub { margin: 6px 0 0; }
.np-server-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.np-server-count { color: var(--text-muted); font: 400 11px/1.4 var(--fm); white-space: nowrap; }
.np-server-refresh { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 146px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--np-hairline); border-radius: var(--r-sm); color: var(--text-primary); background: var(--bg-secondary); font: 500 12px/1.4 var(--fn); cursor: pointer; }
.np-server-refresh svg { width: 16px; height: 16px; color: var(--accent-primary); }
.np-server-refresh:hover, .np-server-copy:hover { border-color: var(--accent-primary); }
.np-server-refresh[aria-disabled="true"] { opacity: .7; cursor: progress; }
.np-server-refresh[aria-disabled="true"] svg { animation: np-stat-refresh 1s linear infinite; }
.np-server-refresh:focus-visible, .np-server-copy:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }
.np-server-surface {
  --directory-inset: clamp(21px, 2.4vw, 30px);
}
.np-server-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.np-server-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 15px;
  overflow: hidden;
  min-width: 0;
  padding-top: 21px;
  border: 1px solid var(--np-hairline);
  border-radius: 18px;
  background: var(--bg-secondary);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--bg-primary) 12%, transparent);
}
/* Paint the original SVG at the card's size, behind the text and controls. */
.np-server-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--np-server-flag) center / cover no-repeat;
  opacity: .15;
  mask-image: linear-gradient(105deg, rgb(0 0 0 / .50), rgb(0 0 0 / .76) 56%, black);
}
html[data-theme="calico"] .np-server-card::before { opacity: .10; }
.np-server-actions, .np-server-options { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.np-server-options { gap: 12px; justify-content: space-between; }
.np-server-controls { flex-direction: column; align-items: flex-end; gap: 2px; }
.np-server-auto {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin: 0;
  color: var(--text-secondary); font: 500 12px/1.3 var(--fn); cursor: pointer;
}
.np-server-auto input {
  appearance: none; position: relative; width: 30px; height: 18px; margin: 0;
  border: 1px solid var(--text-muted); border-radius: 12px; background: var(--bg-secondary); cursor: pointer;
}
.np-server-auto input::before {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--text-secondary);
}
.np-server-auto input:checked { background: var(--accent-primary); border-color: var(--accent-primary); }
.np-server-auto input:checked::before { transform: translateX(12px); background: var(--np-on-accent); }
@media (forced-colors: active) {
  .np-server-auto input { appearance: auto; }
  .np-server-auto input::before { display: none; }
}
.np-server-auto input:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }
@media (max-width: 600px) {
  .np-server-controls { align-items: flex-start; }
  .np-server-options { justify-content: flex-start; gap: 10px; }
}
@media (forced-colors: active), print { .np-server-card::before { display: none; } }
.np-server-card--best {
  border-color: color-mix(in srgb, var(--accent-primary) 56%, var(--np-hairline));
  background: linear-gradient(115deg, var(--np-tint), var(--bg-secondary) 63%);
  box-shadow: inset 0 2px var(--accent-primary);
}
.np-server-card:focus-within { border-color: var(--accent-primary); }
.np-server-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-inline: var(--directory-inset);
}
.np-server-identity > div { min-width: 0; }
.np-server-identity h3 { margin: 0 0 3px; color: var(--text-primary); font: 650 clamp(21px, 2vw, 26px)/1.15 var(--fn); letter-spacing: -.035em; }
.np-server-rank {
  flex: none;
  min-width: 3.5em;
  padding: 4px 9px;
  border: 1px solid var(--np-hairline);
  border-radius: 99px;
  background: color-mix(in srgb, var(--bg-secondary) 78%, transparent);
  color: var(--text-secondary);
  text-align: center;
  font: 500 12px/1.4 var(--fm);
  font-variant-numeric: tabular-nums;
}
.np-server-card--best .np-server-rank {
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--accent-primary) 45%, var(--np-hairline));
  background: color-mix(in srgb, var(--accent-primary) 14%, var(--bg-secondary));
}
.np-server-region, .np-server-address > small { display: block; margin: 0; color: var(--text-secondary); font: 400 12px/1.5 var(--fn); overflow-wrap: anywhere; }
.np-server-endpoint {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-self: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-inline: var(--directory-inset);
  padding: 9px 10px 9px 14px;
  border: 1px solid var(--np-hairline);
  border-radius: 11px;
  background: color-mix(in srgb, var(--bg-primary) 78%, transparent);
}
.np-server-address { min-width: 0; }
.np-server-address code {
  display: block;
  margin: 2px 0 3px;
  padding: 0;
  color: var(--text-primary);
  background: transparent;
  font: 500 clamp(15px, 1.4vw, 18px)/1.35 var(--fm);
  white-space: nowrap;
}
.np-server-copy {
  flex: none;
  min-height: 44px;
  min-width: 84px;
  padding: 0 9px;
  border: 1px solid var(--np-hairline);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font: 600 12px/1.25 var(--fn);
  white-space: nowrap;
  cursor: pointer;
}
.np-server-copy:hover, .np-server-copy:active {
  border-color: var(--accent-primary);
  background: color-mix(in srgb, var(--accent-primary) 9%, var(--bg-secondary));
}
.np-server-health {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 51px;
  padding: 9px var(--directory-inset);
  border-top: 1px solid var(--np-hairline);
  background: color-mix(in srgb, var(--bg-secondary) 48%, transparent);
}
.np-server-endpoint .np-server-copy { gap: 5px; }
.np-server-endpoint .np-server-copy i { font-size: 14px; }
.np-server-state { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.np-server-card .np-metric-label { display: block; color: var(--text-secondary); font: 500 11px/1.4 var(--fn); letter-spacing: .025em; text-transform: none; }
.np-server-status { --np-state-color: var(--text-secondary); display: inline-flex; align-items: center; gap: 8px; color: var(--text-primary); font: 500 13px/1.4 var(--fn); }
.np-server-status i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--np-state-color); }
.np-server-status--online { --np-state-color: var(--green, var(--accent-primary)); }
.np-server-status--degraded { --np-state-color: var(--orange, var(--accent-primary)); }
.np-server-status--connecting { --np-state-color: var(--accent-primary); }
.np-server-best { align-self: center; display: inline-flex; align-items: center; gap: 5px; color: var(--text-secondary); font: 500 11px/1.3 var(--fn); }
.np-server-best svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--accent-primary); }
.np-server-measure { display: flex; flex: none; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 2px 7px; text-align: right; }
.np-server-latency { color: var(--text-primary); font: 600 18px/1.2 var(--fm); font-variant-numeric: tabular-nums; letter-spacing: -.035em; white-space: nowrap; }
.np-server-latency small, .np-server-measure > small { color: var(--text-secondary); font: 400 12px/1.4 var(--fn); letter-spacing: 0; }
.np-server-measure > small { display: block; }
@media (max-width: 819px) {
  .np-server-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 1050px) and (min-width: 820px), (max-width: 600px) {
  .np-server-state, .np-server-measure { flex-direction: column; }
  .np-server-state { align-items: flex-start; }
  .np-server-measure { align-items: flex-end; }
  .np-server-best { align-self: flex-start; }
}
@media (max-width: 600px) {
  .np-server-card { --directory-inset: 18px; gap: 13px; padding-top: 18px; }
}
@media (max-width: 359px) {
  .np-server-card { --directory-inset: 14px; }
  .np-server-endpoint { gap: 4px; padding-inline: 9px 6px; }
}
.np-server-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; margin-top: 16px; color: var(--text-muted); font: 400 10px/1.6 var(--fm); }
.np-server-note { max-width: 840px; margin: 6px 0 0; color: var(--text-muted); font: 400 12px/1.9 var(--fn); }
.np-server-note a { color: var(--accent-primary); }
.np-server-note code { color: var(--text-secondary); background: transparent; }
.np-server-empty { grid-column: 1 / -1; padding: 24px var(--directory-inset); border: 1px solid var(--np-hairline); border-radius: 18px; color: var(--text-secondary); }
@media (max-width: 600px) {
  .idx-section--servers .idx-section-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .np-server-controls { width: 100%; justify-content: space-between; }
  .np-server-footer { display: grid; }
}
@media (prefers-reduced-motion: reduce) { .np-server-refresh[aria-disabled="true"] svg { animation: none; } }

/* The official black Pearl mark keeps its white brand badge in every theme. */
img[src*="/prl.png"] { background: #fff; border-radius: 50%; padding: 4px; object-fit: contain; }

.guide pre { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }

/* Shared manual Stratum region tabs; existing theme tokens own their appearance. */
.np-country-flag { display: inline-block; width: 20px; height: 14px; flex: 0 0 20px; object-fit: contain; vertical-align: middle; }
.np-region-col { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.np-region-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }
.np-region-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; min-height: 44px; min-width: 94px; padding: 10px 20px; border: 1px solid var(--np-hairline); border-radius: 999px; background: var(--bg-secondary); color: var(--text-secondary); font: 500 12px/1.4 var(--fn); cursor: pointer; }
.np-region-tab:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.np-region-tab[aria-selected="true"] { background: var(--np-tint); border-color: var(--accent-primary); color: var(--accent-primary); }
.np-region-tab:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }
.np-region-panel[hidden] { display: none; }
.np-copy-feedback { min-height: 18px; margin: 8px 0 0; color: var(--text-muted); font: 400 11px/1.6 var(--fn); }

/* Clipboard actions share one status toast and retain their text labels. */
.np-server-copy, .np-copy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.np-server-copy i, .np-copy-btn i { width: 1em; flex-shrink: 0; }
/* The two server-button icons also work when the Font Awesome CDN is unavailable. */
@font-face {
  font-family: "NerdPool Clipboard";
  src: url("../webfonts/fa-solid-900.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  unicode-range: U+F00C, U+F328;
}
.np-server-copy i {
  color: var(--accent-primary);
  font-family: "Font Awesome 6 Free", "NerdPool Clipboard";
  font-size: 18px;
  font-style: normal;
  line-height: 1;
  text-align: center;
}
.np-server-copy .fa-clipboard::before { content: "\f328"; }
.np-server-copy .fa-check::before { content: "\f00c"; }
.np-copy-toast { position: fixed; z-index: 11000; inset-inline-end: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(420px, calc(100vw - 40px)); padding: 16px 20px; border: 1px solid var(--accent-primary); border-radius: var(--r); background: var(--bg-secondary); color: var(--text-primary); box-shadow: 0 8px 24px #0003; font: 500 13px/1.6 var(--fn); overflow-wrap: anywhere; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.np-copy-toast > i { color: var(--accent-primary); flex-shrink: 0; }
.np-copy-toast.is-visible { opacity: 1; transform: translateY(0); }
.np-copy-toast[data-state="error"] { border-color: var(--red); }
.np-copy-toast[data-state="error"] > i { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .np-copy-toast { transition: none; transform: none; } }

/* Keep the two policy links together in the narrow header. */
@media (max-width: 700px) {
  .np-header-actions { max-width: 100%; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .np-header-actions { gap: 4px; }
  .np-header-actions .np-header-fees { gap: 4px; }
  .np-header-actions .np-header-icon { width: 13px; flex-basis: 13px; font-size: 12px; }
}

.np-scrypt-choice { margin: 0 22px 12px; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.np-connect-metrics strong > span { display: block; overflow-wrap: anywhere; }
.np-reward-links a { text-decoration: underline; text-underline-offset: 0.15em; }
@media (max-width: 575px) {
  .np-scrypt-choice { margin-inline: 16px; }
}

.np-merged-icons { position: relative; display: inline-block; width: 42px; height: 38px; flex: 0 0 42px; }
.np-merged-icons img { position: absolute; top: 0; left: 0; width: 27px; height: 27px; object-fit: contain; }
.np-merged-icons img + img { inset: auto 0 0 auto; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg-secondary); }

.np-faq-diagram { display: block; width: fit-content; max-width: min(100%, 820px); margin: 16px 0 22px; border-radius: var(--r-sm); }
.np-faq-diagram img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
.np-faq-diagram > span { display: inline-block; margin-top: 8px; color: var(--accent-primary); text-decoration: underline; text-underline-offset: 3px; }
.np-faq-diagram:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 4px; }

/* Homepage presentation uses the same surfaces and type scale as the regional cards. */
.main-index-header .np-header-connect { border-radius: 999px; padding-inline: 17px; }
.main-index .np-hero-carousel { margin-top: clamp(18px, 3vw, 36px); padding-bottom: clamp(26px, 3vw, 42px); }
.main-index .np-swiper {
  border: 1px solid var(--np-hairline);
  border-radius: clamp(20px, 2.3vw, 30px);
  background: linear-gradient(118deg, var(--bg-secondary) 42%, color-mix(in srgb, var(--accent-primary) 8%, var(--bg-secondary)));
}
.main-index .idx-hero.np-hero-slide {
  grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr);
  gap: clamp(20px, 3.2vw, 48px);
  padding: clamp(28px, 4vw, 62px) clamp(24px, 4vw, 58px);
}
.main-index .np-hero .nerdpool-hero-copy :is(h1,.np-hero-heading) {
  font-size: clamp(44px, 5.3vw, 78px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.055em;
  margin-bottom: 18px;
}
.main-index .np-hero .nerdpool-intro {
  max-width: 43ch;
  margin: 0 0 23px;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
}
.main-index .np-hero-actions { gap: 7px 18px; }
.main-index .nerdpool-primary-link { border-radius: 999px; padding: 12px 19px; gap: 14px; }
.main-index .np-secondary-link { color: var(--text-primary); }
.main-index .np-hero .nerdpool-facts { margin-top: 20px; color: var(--text-secondary); font-family: var(--fn); font-size: 12px; }
.main-index .np-engine {
  border-color: var(--np-hairline);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-primary) 40%, var(--bg-secondary));
}
.main-index .np-engine figcaption { color: var(--text-secondary); padding: 12px 15px; }
.main-index .np-slider-controls { padding-top: 6px; }
.main-index .np-slider-prev, .main-index .np-slider-next { border-radius: 50%; }
.main-index .pool-stats-banner { margin-bottom: clamp(30px, 4vw, 56px); border-radius: 18px; }
.main-index .idx-section-title { font: 600 clamp(29px, 3.25vw, 45px)/1.12 var(--fn) !important; letter-spacing: -.045em; }
.main-index .nerdpool-mode-note, .main-index .idx-section-sub { color: var(--text-secondary); font: 400 14px/1.55 var(--fn); }
.main-index .idx-section--servers .idx-section-header { margin-bottom: 23px; }
.main-index .mode-toggle, .main-index #modeToggle .mode-btn { border-radius: 999px !important; }
.main-index #modeToggle .mode-btn { min-height: 40px; font: 600 12px/1.3 var(--fn) !important; }
.main-index .pool-coin-grid { gap: clamp(14px, 1.5vw, 20px) !important; }
.pool-coin-card {
  --pool-card-inset: clamp(18px, 2vw, 28px);
  --coin-tint: var(--accent-primary);
}
.pool-coin-card[data-coin="BTC"] { --coin-tint: #f7931a; }
.pool-coin-card[data-coin="BCH"] { --coin-tint: #0ac18e; }
.pool-coin-card[data-coin="DGB"] { --coin-tint: #398ff6; }
.pool-coin-card[data-coin="DOGE"] { --coin-tint: #c4a245; }
.pool-coin-card[data-coin="LTC"] { --coin-tint: #608eda; }
.pool-coin-card[data-coin="PRL"] { --coin-tint: #a7a7b7; }
.pool-coin-card[data-coin="KV5"] { --coin-tint: #218bd2; }
.main-index .pool-coin-card .card { border-radius: 19px !important; }
.main-index .pool-coin-card .coin-card-header {
  padding: 19px var(--pool-card-inset) !important;
  border-bottom: 1px solid var(--np-hairline) !important;
  background: linear-gradient(108deg, color-mix(in srgb, var(--coin-tint) 12%, var(--bg-secondary)), var(--bg-secondary) 75%) !important;
}
.main-index .pool-coin-card[data-merged] .coin-card-header {
  background: linear-gradient(108deg, color-mix(in srgb, var(--coin-tint) 13%, var(--bg-secondary)), var(--bg-secondary) 60%, color-mix(in srgb, #c4a245 9%, var(--bg-secondary))) !important;
}
.main-index .pool-coin-card .np-coin-title > div:last-child { min-width: 0; }
.main-index .pool-coin-card .coin-card-name {
  font: 650 clamp(19px, 1.65vw, 24px)/1.18 var(--fn) !important;
  white-space: normal; overflow-wrap: anywhere;
}
.main-index .pool-coin-card .coin-card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--coin-tint) 9%, var(--bg-secondary));
  border: 1px solid color-mix(in srgb, var(--coin-tint) 28%, var(--np-hairline));
}
.main-index .pool-coin-card .coin-card-icon .np-merged-icons img { width: 26px !important; height: 26px !important; }
.main-index .pool-coin-card .np-mode-badge { border-radius: 999px; padding: 5px 9px; font-size: 10px; color: var(--text-secondary); }
.main-index .pool-coin-card .np-scrypt-choice { margin: 12px var(--pool-card-inset) 0; color: var(--text-secondary); }
.main-index .pool-coin-card .np-card-context { margin-inline: var(--pool-card-inset); padding: 11px 0; }
.main-index .pool-coin-card .coin-card-body { padding: 16px var(--pool-card-inset) !important; }
.main-index .pool-coin-card .np-metric-label, .main-index .pool-coin-card .pool-state-label, .main-index .pool-coin-card .np-fee-label { font: 500 12px/1.4 var(--fn); letter-spacing: .01em; text-transform: none; color: var(--text-secondary); }
.main-index .pool-coin-card .np-hashrate { margin: 4px 0 15px; font: 600 clamp(28px, 2.4vw, 36px)/1.2 var(--fn); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.main-index .pool-coin-card .np-card-payouts {
  margin: 0 0 16px; padding: 10px 12px; border-radius: 9px;
  background: color-mix(in srgb, var(--coin-tint) 7%, var(--bg-secondary));
  border-inline-start: 2px solid color-mix(in srgb, var(--coin-tint) 66%, var(--np-hairline));
}
.main-index .pool-coin-card .np-metrics { gap: 12px 16px; }
.main-index .pool-coin-card .np-metrics .coin-stat-row { gap: 2px; min-height: 0; }
.main-index .pool-coin-card .np-metrics .stat-label { font: 400 12px/1.4 var(--fn); color: var(--text-secondary) !important; }
.main-index .pool-coin-card .np-metrics .stat-value { font: 500 14px/1.4 var(--fm); color: var(--text-primary); }
.main-index .pool-coin-card .np-block-meta { margin-top: 14px; padding-top: 12px; }
.main-index .pool-coin-card .np-block-meta, .main-index .pool-coin-card .np-block-value, .main-index .pool-coin-card .np-card-price { color: var(--text-secondary); font-size: 11px; }
.main-index .pool-coin-card .np-card-price { padding-top: 6px; }
.main-index .pool-coin-card .coin-card-footer { grid-template-columns: 1fr auto; gap: 10px; padding: 12px var(--pool-card-inset) !important; }
.main-index .pool-coin-card .np-stats-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.main-index .pool-coin-card .btn-connect { width: auto !important; min-height: 44px; padding-inline: 15px !important; border-radius: 999px !important; color: var(--text-primary) !important; }
.main-index .pool-coin-card .btn-connect:hover { color: var(--np-on-accent) !important; }
@media (max-width: 767px) {
  .main-index .idx-hero.np-hero-slide { grid-template-columns: minmax(0,1fr); padding: 26px clamp(16px, 4vw, 28px) 18px; gap: 22px; }
  .main-index .np-hero .nerdpool-hero-copy :is(h1,.np-hero-heading) { font-size: clamp(35px, 9vw, 58px); margin-bottom: 14px; }
  .main-index .np-hero .nerdpool-intro { font-size: 15px; margin-bottom: 15px; }
  .main-index .np-hero .nerdpool-facts { font-size: 11px; margin-top: 12px; }
  .main-index .np-hero-actions { gap: 4px 12px; }
  .main-index .np-engine { max-width: 490px; margin-inline: auto; }
  .main-index .np-engine figcaption { padding: 9px 10px; }
  .main-index .nerdpool-mode-note { margin-bottom: 18px; }
}

.main-index .pool-coin-card .btn-connect, .main-index .pool-coin-card .np-stats-link { font-size: 12px !important; }
.main-index .np-hero .nerdpool-facts { gap: 4px 14px; }
.main-index .np-hero .nerdpool-facts span + span { margin: 0; padding: 0; border: 0; }
@media (max-width: 700px) {
  .skin-black .main-index-header .navbar {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: 2px 6px;
    padding: 10px clamp(12px, 4vw, 20px) 8px;
  }
  .main-index-header .navbar::before, .main-index-header .navbar::after { display: none; }
  .main-index-header .np-nav-links {
    display: flex;
    justify-self: end;
    gap: 8px;
    margin: 0;
  }
  .main-index-header .np-nav-links a { min-height: 44px; gap: 4px; font-size: 11px; white-space: nowrap; }
  .main-index-header .np-nav-links .np-header-icon { width: 12px; flex-basis: 12px; font-size: 11px; }
  .main-index-header .np-header-actions { grid-column: 1 / -1; width: 100%; justify-content: space-between; gap: 2px; flex-wrap: nowrap; }
  .main-index-header .np-header-fees { min-height: 44px; font-size: 11px; gap: 3px; padding-inline: 0; }
  .main-index-header .np-header-fees .np-header-icon { width: 12px; flex-basis: 12px; font-size: 12px; }
  .main-index-header .np-theme-trigger { min-width: 44px; min-height: 44px; }
  .main-index-header .np-header-connect { padding-inline: 9px; gap: 5px; }
  .main-index-header .np-header-picker .footer-skin-menu { right: -48px; }
}

/* Operational screens share a quiet type hierarchy. Numbers remain easy to compare. */
.main-pool .np-context-name,
.main-pool .np-connection-heading h1 {
  font: 600 clamp(25px, 2.5vw, 35px)/1.14 var(--fn);
  letter-spacing: -.045em;
}
.main-pool .np-context-note,
.main-pool .np-connect-description,
.main-pool .np-port-description {
  color: var(--text-secondary);
  font: 400 14px/1.6 var(--fn);
}
.main-pool .np-context-note { margin-top: 8px; }
.main-pool .np-connect-description { max-width: 74ch; }
.main-pool .np-connect-metrics strong {
  font: 600 clamp(17px, 1.6vw, 22px)/1.25 var(--fn);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.main-pool .np-port-card h3,
.main-pool .np-stats-charts .card-header .card-title,
.main-pool .page-dashboard .card-header .card-title {
  color: var(--text-primary);
  font: 600 18px/1.3 var(--fn) !important;
  letter-spacing: -.025em;
}
.main-pool .np-port-card code { font-size: 12px; }
.main-pool .np-stats-charts .card-header,
.main-pool .np-stats-charts .card-body,
.main-pool .np-stats-charts .card-footer { margin: 0; }
.main-pool .np-stats-charts .card-footer .card-title {
  font: 600 18px/1.4 var(--fn) !important;
  font-variant-numeric: tabular-nums !important;
}
.skin-black .main-pool .np-stats-grid .np-stat-tile {
  min-height: 110px;
  border-radius: var(--r) !important;
}
.main-pool .np-stat-tile .info-box-text {
  color: var(--text-secondary) !important;
  font: 500 12px/1.4 var(--fn) !important;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 12px;
}
.main-pool .np-stat-tile .info-box-number {
  font: 600 clamp(16px, 1.5vw, 21px)/1.35 var(--fn) !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -.025em;
}

/* The lookup field and its submit action share a baseline. */
.main-pool #wallet-lookup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 14px;
}
.main-pool #wallet-lookup .row,
.main-pool #wallet-lookup .card-input { margin: 0; }
.main-pool #wallet-lookup .row > div { min-width: 0; padding: 0; }
.main-pool #wallet-lookup label {
  display: block;
  margin: 0 0 8px;
  color: var(--text-secondary);
  font: 500 13px/18px var(--fn);
  letter-spacing: 0;
  text-transform: none;
}
.main-pool #walletAddress { width: 100%; font-size: 14px; }
.main-pool #walletAddress::placeholder { color: var(--text-muted); opacity: 1; }
.main-pool #load-wallet { min-height: 44px; margin: 26px 0 0; font-size: 13px; }
.main-pool #wallet-lookup .clearfix { display: none; }
.main-pool #np-wallet-feedback { grid-column: 1 / -1; margin: 0; }
.main-pool #walletAddressError:empty { min-height: 0; margin: 0; }

/* The guide starts with one coin directory, followed by readable reference sections. */
.guide .guide-header { max-width: 76ch; }
.guide .guide-intro,
.guide .guide-coin-section p,
.guide .guide-notes p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}
.guide .guide-coin-nav {
  gap: 1px;
  padding: 1px;
  border-radius: var(--r);
  background: var(--np-hairline);
}
.guide .guide-coin-link {
  position: relative;
  min-width: 0;
  gap: 14px;
  padding: 15px clamp(14px, 2vw, 24px);
  border: 0;
  border-radius: 0;
  transform: none;
}
.guide .guide-coin-link:nth-child(1) { border-start-start-radius: var(--r); }
.guide .guide-coin-link:nth-child(2) { border-start-end-radius: var(--r); }
.guide .guide-coin-link:nth-last-child(2) { border-end-start-radius: var(--r); }
.guide .guide-coin-link:last-child { border-end-end-radius: var(--r); }
.guide .guide-coin-link:focus-visible { z-index: 1; outline-offset: -3px; }
.guide .guide-coin-link:hover { background: var(--bg-tertiary); }
.guide .guide-coin-link strong { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.guide .guide-coin-link small { margin-top: 3px; color: var(--text-secondary); font: 400 12px/1.4 var(--fn); }
.guide .guide-coin-link > span:last-child { margin-inline-start: auto; color: var(--text-secondary); }
.guide .guide-coin-heading h2 { font-size: clamp(23px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.035em; }
.guide table caption, .guide th { color: var(--text-secondary); font: 500 12px/1.5 var(--fn); }
.guide td { font-size: 14px; }

@media (max-width: 600px) {
  .main-pool #wallet-lookup { grid-template-columns: minmax(0, 1fr); }
  .main-pool #load-wallet { justify-self: start; margin: 4px 0; }
  .guide .guide-coin-nav { grid-template-columns: minmax(0, 1fr); }
  .guide .guide-coin-link { min-height: 60px; padding-block: 10px; }
  .guide .guide-coin-link:nth-child(n) { border-radius: 0; }
  .guide .guide-coin-link:first-child { border-radius: var(--r) var(--r) 0 0; }
  .guide .guide-coin-link:last-child { border-radius: 0 0 var(--r) var(--r); }
}

/* AOS marks arrivals. All content remains fully rendered without scripting. */
@media (prefers-reduced-motion: no-preference) {
  [data-aos="np-arrive"].aos-animate {
    animation: np-section-arrive 480ms cubic-bezier(.22, .68, .2, 1) backwards;
  }
  [data-aos="np-arrive"].aos-animate:focus-within { translate: none !important; }
  @keyframes np-section-arrive {
    from { translate: 0 9px; }
    to { translate: 0 0; }
  }
  .swiper-slide-active .np-engine-stage::before {
    animation: np-engine-light 4.6s cubic-bezier(.25,.46,.45,.94) both;
  }
  .swiper-slide-active .np-board-node {
    transform-box: fill-box;
    transform-origin: center;
    animation: np-node-signal 3.6s ease-out both;
  }
  @keyframes np-engine-light {
    from { transform: translate(-6%, 5%) scale(.94); opacity: .38; }
    to { transform: translate(5%, -3%) scale(1.04); opacity: .82; }
  }
  @keyframes np-node-signal {
    0%, 68%, 100% { opacity: .8; transform: scale(1); }
    34% { opacity: 1; transform: scale(1.28); }
  }
  .np-hero-slider[data-motion-paused="true"] .np-engine-stage::before,
  .np-hero-slider[data-motion-paused="true"] .np-board-node,
  html[data-page-hidden="true"] .np-engine-stage::before,
  html[data-page-hidden="true"] .np-board-node {
    animation-play-state: paused;
  }
}
.np-engine-stage { position: relative; isolation: isolate; overflow: hidden; }
.np-engine-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12%;
  pointer-events: none;
  background: radial-gradient(ellipse at 56% 51%, color-mix(in srgb, var(--accent-primary) 18%, transparent) 0%, transparent 57%);
}
@media print, (forced-colors: active) {
  .np-engine-stage::before { display: none; }
  [data-aos="np-arrive"].aos-animate, .swiper-slide-active .np-board-node { animation: none; }
}
