:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-2: #09111a;
  --panel: rgba(9, 17, 28, 0.86);
  --panel-2: rgba(12, 25, 39, 0.92);
  --line: rgba(125, 211, 252, 0.20);
  --line-strong: rgba(74, 222, 128, 0.42);
  --text: #ecfdf5;
  --muted: #9fb4c7;
  --soft: #64748b;
  --green: #4ade80;
  --cyan: #38bdf8;
  --amber: #fbbf24;
  --red: #fb7185;
  --ink: #020617;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(56, 189, 248, 0.16), transparent 26rem),
    radial-gradient(circle at 72% 20%, rgba(74, 222, 128, 0.13), transparent 28rem),
    linear-gradient(135deg, #05070c 0%, #07131a 52%, #0d0817 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 128, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

#mesh {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.62;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 6px
  );
  mix-blend-mode: overlay;
  animation: scan 8s linear infinite;
}

.topbar,
.shell {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 16px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--green);
  font-weight: 950;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(56, 189, 248, 0.14));
  box-shadow: 0 0 34px rgba(74, 222, 128, 0.22), inset 0 0 18px rgba(56, 189, 248, 0.10);
}

.brand strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-chip {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(2, 6, 23, 0.34);
  font-size: 0.82rem;
  font-weight: 800;
}

.shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 44px) 56px;
}

.panel,
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(5, 10, 17, 0.88));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: center;
  min-height: 330px;
  margin-bottom: 16px;
  padding: clamp(22px, 4vw, 44px);
  overflow: hidden;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.panel-head span,
.stat span,
label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 900;
}

.hero h1 {
  margin: 12px 0 12px;
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-actions,
.form-actions,
.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vault-orbit {
  min-height: 260px;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.cube {
  position: relative;
  width: 170px;
  height: 170px;
  transform-style: preserve-3d;
  animation: cubeSpin 12s linear infinite;
}

.cube span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 950;
  background: rgba(7, 15, 25, 0.78);
  box-shadow: inset 0 0 28px rgba(56, 189, 248, 0.16), 0 0 30px rgba(74, 222, 128, 0.13);
}

.cube span:nth-child(1) { transform: translateZ(85px); }
.cube span:nth-child(2) { transform: rotateY(90deg) translateZ(85px); }
.cube span:nth-child(3) { transform: rotateY(180deg) translateZ(85px); }
.cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(85px); }

.pulse-ring {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 50%;
  animation: ringPulse 2.6s ease-in-out infinite;
}

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

.stat {
  min-height: 104px;
  padding: 18px;
}

.stat strong {
  display: block;
  margin-top: 14px;
  color: var(--cyan);
  font-size: 32px;
  line-height: 1;
}

.stat.safe strong {
  color: var(--green);
}

.vault-panel {
  margin-bottom: 16px;
}

.vault-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 18px;
  padding: 18px;
}

.vault-copy h3 {
  margin: 10px 0;
  max-width: 780px;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.vault-copy p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.vault-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.vault-facts span,
#vault-status {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

#vault-status.good {
  color: var(--green);
  background: rgba(74, 222, 128, 0.10);
}

#vault-status.warn {
  color: var(--amber);
  background: rgba(251, 191, 36, 0.10);
}

.vault-forms {
  display: grid;
  gap: 12px;
}

.vault-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.34);
}

.vault-form strong {
  font-size: 1rem;
}

.wallet-security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.engine-body,
.security-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.engine-form,
.security-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.34);
}

.wallet-list {
  display: grid;
  gap: 10px;
}

.wallet-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 25, 39, 0.72);
}

.wallet-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.wallet-card small {
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
}

.wallet-card strong {
  display: block;
  margin: 5px 0;
}

.adapter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adapter-pill {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(2, 6, 23, 0.30);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.adapter-pill.active {
  color: var(--green);
  border-color: var(--line-strong);
  background: rgba(74, 222, 128, 0.09);
}

.miner-onboarding-panel {
  margin-bottom: 16px;
}

.miner-onboarding {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.onboarding-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.onboarding-stats div,
.onboarding-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.42);
  box-shadow: inset 0 0 26px rgba(56, 189, 248, 0.04);
}

.onboarding-stats div {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
}

.onboarding-stats span,
.mini-head span,
.onboarding-request span,
.onboarding-request small,
.exact-route-list span,
.route-config-strip span {
  color: var(--muted);
}

.onboarding-stats strong {
  color: var(--green);
  font-size: 1.9rem;
  line-height: 1;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 1fr;
  gap: 12px;
}

.onboarding-card {
  min-width: 0;
  padding: 16px;
}

.mini-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-head strong {
  font-size: 1rem;
}

.package-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.8;
}

.route-config-strip,
.exact-route-list,
.onboarding-request-list {
  display: grid;
  gap: 9px;
}

.route-config-strip {
  margin-top: 14px;
}

.route-config-strip span {
  display: block;
  overflow-wrap: anywhere;
}

.route-config-strip b {
  display: inline-block;
  min-width: 72px;
  color: var(--cyan);
}

.onboarding-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.56);
}

.onboarding-request div:first-child,
.exact-route-list div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.onboarding-request strong,
.exact-route-list b {
  overflow-wrap: anywhere;
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.exact-route-list div {
  padding: 10px;
  border: 1px solid rgba(74, 222, 128, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(74, 222, 128, 0.05);
}

.route-requests-panel {
  margin-bottom: 16px;
  overflow: hidden;
}

.route-request-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.route-request-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(251, 191, 36, 0.10), transparent 46%),
    rgba(2, 6, 23, 0.40);
  box-shadow: inset 0 0 24px rgba(251, 191, 36, 0.04);
}

.route-request-card.ready {
  border-color: var(--line-strong);
  background:
    linear-gradient(120deg, rgba(74, 222, 128, 0.12), transparent 48%),
    rgba(2, 6, 23, 0.42);
}

.route-request-card.pending {
  border-color: rgba(251, 191, 36, 0.30);
  background:
    linear-gradient(120deg, rgba(251, 191, 36, 0.10), transparent 48%),
    rgba(2, 6, 23, 0.40);
}

.route-request-card.stale {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(120deg, rgba(148, 163, 184, 0.08), transparent 48%),
    rgba(2, 6, 23, 0.32);
  opacity: 0.82;
}

.route-request-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.route-request-main strong {
  font-size: 1.12rem;
}

.route-request-main p {
  margin: 0;
  color: var(--muted);
}

.request-status {
  width: fit-content;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.08);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.route-request-card.ready .request-status {
  color: var(--green);
  background: rgba(74, 222, 128, 0.09);
}

.route-request-card.pending .request-status {
  color: var(--amber);
  background: rgba(251, 191, 36, 0.09);
}

.route-request-card.stale .request-status {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.08);
}

.request-cleanup-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.request-cleanup-summary span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  background: rgba(3, 9, 18, 0.46);
  color: var(--text);
}

.request-cleanup-summary b {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.request-meta span {
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.42);
  font-size: 0.72rem;
  font-weight: 850;
}

.route-request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.route-proof-panel {
  margin-bottom: 16px;
  overflow: hidden;
}

.route-proof-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 18px 18px 0;
}

.route-proof-summary div,
.route-proof-algo,
.route-proof-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.42);
  box-shadow: inset 0 0 26px rgba(56, 189, 248, 0.04);
}

.route-proof-summary div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 13px;
}

.route-proof-summary span,
.route-proof-algo span,
.route-proof-card p,
.proof-facts span b {
  color: var(--muted);
}

.route-proof-summary strong {
  font-size: 1.45rem;
  line-height: 1;
  color: var(--green);
}

.route-proof-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.route-proof-algos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.route-proof-algo {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.route-proof-algo strong {
  color: var(--cyan);
  text-transform: uppercase;
}

.route-proof-cards {
  display: grid;
  gap: 10px;
}

.route-proof-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 12px;
  padding: 15px;
}

.route-proof-card.ready {
  border-color: var(--line-strong);
  background:
    linear-gradient(120deg, rgba(74, 222, 128, 0.10), transparent 48%),
    rgba(2, 6, 23, 0.44);
}

.route-proof-card.pending {
  border-color: rgba(251, 191, 36, 0.26);
  background:
    linear-gradient(120deg, rgba(251, 191, 36, 0.09), transparent 48%),
    rgba(2, 6, 23, 0.38);
}

.route-proof-card.blocked {
  border-color: rgba(248, 113, 113, 0.26);
  background:
    linear-gradient(120deg, rgba(248, 113, 113, 0.08), transparent 48%),
    rgba(2, 6, 23, 0.34);
}

.route-proof-card strong,
.route-proof-card p {
  overflow-wrap: anywhere;
}

.proof-status {
  width: fit-content;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 8px;
  padding: 0 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.08);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.route-proof-card.ready .proof-status {
  color: var(--green);
  background: rgba(74, 222, 128, 0.09);
}

.route-proof-card.blocked .proof-status {
  color: var(--red);
  background: rgba(248, 113, 113, 0.08);
}

.proof-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.proof-facts span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.38);
  overflow-wrap: anywhere;
}

.proof-facts span b {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.proof-blockers {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proof-blockers span {
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0 9px;
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 999px;
  color: #fecaca;
  background: rgba(248, 113, 113, 0.07);
  font-size: 0.72rem;
  font-weight: 800;
}

.backup-button {
  width: 100%;
}

.security-events {
  display: grid;
  gap: 8px;
}

.security-event {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.28);
}

.security-event strong {
  color: var(--cyan);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.security-event span {
  color: var(--text);
}

.security-event small {
  color: var(--muted);
}

.workspace,
.pool-lab,
.payout-lab,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
  gap: 16px;
  align-items: start;
}

.pool-lab,
.payout-lab {
  margin-top: 16px;
}

.split {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  margin-top: 16px;
}

.panel {
  min-width: 0;
  overflow: hidden;
}

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

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.panel h2 {
  margin: 0;
  font-size: 18px;
}

.panel-head span {
  display: block;
  margin-top: 5px;
}

#search,
#route-picker {
  width: min(330px, 44vw);
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
  outline: none;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 86px;
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.button,
.icon-button,
.chip {
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.button:hover,
.icon-button:hover,
.chip:hover {
  transform: translateY(-1px);
  border-color: var(--green);
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.12);
}

.button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.75);
  font-weight: 800;
}

.button.primary {
  color: var(--ink);
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.button.secondary {
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.45);
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.14), rgba(56, 189, 248, 0.08)),
    rgba(15, 23, 42, 0.78);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.035);
}

.small-button {
  min-height: 36px;
}

.route-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.56);
}

.chip.active {
  color: var(--green);
  border-color: var(--line-strong);
}

.address-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.address-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: rgba(7, 15, 25, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.coin-pill {
  display: grid;
  place-items: center;
  width: 58px;
  height: 46px;
  border-radius: var(--radius);
  color: var(--ink);
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-weight: 950;
}

.row-title {
  font-weight: 900;
  margin-bottom: 5px;
}

code {
  display: block;
  color: #dff6ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.row-meta span {
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.readiness {
  position: relative;
  height: 20px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.70);
}

.readiness span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--amber));
}

.readiness b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--text);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  max-width: 460px;
}

.icon-button {
  min-width: 42px;
  height: 36px;
  padding: 0 8px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  font-size: 11px;
  font-weight: 950;
}

.icon-button.primary {
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(74, 222, 128, 0.08);
}

.icon-button.danger {
  color: var(--red);
}

.icon-button[aria-disabled="true"] {
  pointer-events: none;
  color: var(--soft);
  border-color: var(--line);
  opacity: 0.5;
}

.editor-panel {
  position: sticky;
  top: 96px;
}

.entry-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

label {
  display: grid;
  gap: 7px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.preview-box {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.50);
}

.preview-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.message {
  min-height: 22px;
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 13px;
}

.message.error {
  color: var(--red);
}

.empty {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 220px;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.empty.compact {
  min-height: auto;
  padding: 18px;
}

.empty strong {
  color: var(--text);
  font-size: 17px;
}

.generator-panel {
  margin-top: 16px;
}

.generator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.config-box,
.route-note,
.coin-card,
.activity-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 15, 25, 0.76);
}

.config-box {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.config-box span,
.route-note span {
  color: var(--muted);
  font-size: 12px;
}

.route-note {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  padding: 14px;
}

.coin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
  padding: 12px;
}

.coin-card {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 14px;
}

.coin-card.active {
  border-color: var(--line-strong);
  box-shadow: inset 0 0 26px rgba(74, 222, 128, 0.07);
}

.coin-card strong {
  font-size: 16px;
}

.coin-card span {
  color: var(--muted);
  font-size: 13px;
}

.coin-card small {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  color: var(--green);
  background: rgba(74, 222, 128, 0.12);
  border-radius: 999px;
  font-weight: 900;
}

.activity-list,
.pool-session-list,
.worker-payout-list,
.payout-plan-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.activity-row,
.pool-card,
.worker-payout-card,
.payout-plan-row {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.pool-card,
.worker-payout-card,
.payout-plan-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 15, 25, 0.76);
}

.pool-card.blocked,
.worker-payout-card.blocked,
.payout-plan-row.blocked {
  border-color: rgba(251, 191, 36, 0.28);
  box-shadow: inset 0 0 24px rgba(251, 191, 36, 0.04);
}

.pool-card.ready,
.worker-payout-card.ready,
.payout-plan-row.ready {
  border-color: rgba(74, 222, 128, 0.34);
  box-shadow: inset 0 0 24px rgba(74, 222, 128, 0.06);
}

.payout-plan-row.acknowledged {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(7, 15, 25, 0.48);
  box-shadow: inset 0 0 18px rgba(148, 163, 184, 0.035);
  opacity: 0.78;
}

.alert-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.pool-card strong,
.worker-payout-card strong,
.payout-plan-row strong {
  display: block;
  font-size: 1rem;
}

.pool-card small,
.worker-payout-card small,
.payout-plan-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.payout-plan-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.payout-plan-summary span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(74, 222, 128, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.09), transparent 68%),
    rgba(3, 9, 18, 0.52);
  color: var(--text);
}

.payout-plan-summary b {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.payout-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.payout-history-head h3 {
  margin: 0;
  font-size: 1rem;
}

.payout-history-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.payout-output-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.payout-output-list span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  background: rgba(3, 9, 18, 0.42);
}

.payout-output-list code {
  min-width: 0;
  overflow: hidden;
  color: var(--green);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payout-output-list b {
  color: var(--text);
}

.payout-output-list small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.pool-meta,
.checklist {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pool-meta span,
.checklist i {
  max-width: 100%;
  padding: 5px 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
}

.pool-runtime-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.pool-runtime-grid span {
  min-width: 0;
  padding: 9px 10px;
  overflow-wrap: anywhere;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(3, 9, 18, 0.42);
}

.pool-runtime-grid b {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pool-runtime-grid code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--green);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pool-runtime-grid .warn {
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.07);
}

.checklist i.ok {
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(74, 222, 128, 0.08);
}

.checklist i.required:not(.ok) {
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.07);
}

.checklist i.optional {
  border-style: dashed;
}

.blocker-list {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius);
  background: rgba(251, 191, 36, 0.06);
}

.blocker-list.ok {
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.06);
}

.blocker-list strong {
  margin-bottom: 6px;
  color: var(--text);
}

.blocker-list ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px currentColor;
}

.status-dot.online {
  background: var(--green);
}

.status-dot.paused,
.status-dot.node-needed {
  background: var(--red);
}

.activity-row span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.activity-row small {
  color: var(--muted);
}

.hidden {
  display: none;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-shell {
  position: relative;
  z-index: 3;
  width: min(560px, 100%);
}

.login-card {
  padding: clamp(22px, 4vw, 34px);
}

.login-brand {
  margin-bottom: 22px;
}

.login-card h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.login-card p,
.login-footer {
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.login-error {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(251, 113, 133, 0.44);
  border-radius: var(--radius);
  color: #ffe4e8;
  background: rgba(251, 113, 133, 0.12);
}

.login-footer {
  margin-top: 18px;
  font-size: 0.84rem;
}

@keyframes cubeSpin {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to { transform: rotateX(-18deg) rotateY(360deg); }
}

@keyframes ringPulse {
  0%, 100% { transform: scale(0.88); opacity: 0.45; }
  50% { transform: scale(1.08); opacity: 0.95; }
}

@keyframes scan {
  from { transform: translateY(-32px); }
  to { transform: translateY(32px); }
}

@media (max-width: 1180px) {
  .hero,
  .workspace,
  .wallet-security-grid,
  .pool-lab,
  .payout-lab,
  .split {
    grid-template-columns: 1fr;
  }

  .editor-panel {
    position: static;
  }

  .vault-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-grid {
    grid-template-columns: 1fr;
  }

  .route-proof-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  .topbar,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .stats,
  .onboarding-stats,
  .route-proof-summary,
  .two-col,
  .generator-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .vault-orbit {
    min-height: 210px;
  }

  #search,
  #route-picker {
    width: 100%;
  }

  .address-row {
    grid-template-columns: 1fr;
  }

  .wallet-card,
  .onboarding-request,
  .route-request-card,
  .route-proof-card,
  .worker-payout-card,
  .payout-plan-row {
    grid-template-columns: 1fr;
  }

  .wallet-card-actions,
  .onboarding-actions,
  .route-request-actions,
  .row-actions {
    justify-content: flex-start;
    max-width: none;
  }
}
