/*
  SPL Miner Operator Desk
  An original archival-terminal shell inspired by dense financial workstations.
  The product logic still lives in app.js; this file only owns layout and presentation.
*/

:root {
  --desk-teal: #0c7f70;
  --desk-deep: #06483f;
  --desk-ink: #032d28;
  --desk-white: #f7fbfa;
  --desk-paper-deep: #dcefeb;
  --desk-action: #0c7f70;
  --desk-soft: #73bfb5;
  --desk-muted: #6e938e;
  --desk-white-72: rgba(247, 251, 250, 0.76);
  --desk-white-34: rgba(247, 251, 250, 0.34);
  --desk-white-14: rgba(247, 251, 250, 0.14);
  --desk-teal-10: rgba(12, 127, 112, 0.045);
  --desk-sidebar: 238px;
  --desk-line: 2px solid var(--desk-ink);
  --desk-shadow: 7px 9px 0 rgba(3, 45, 40, 0.62);
  --desk-inset: inset 0 0 0 4px var(--desk-white), inset 0 0 0 6px var(--desk-ink);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body.mine-theme {
  min-width: 0;
  color: var(--desk-white);
  background: var(--desk-deep);
  overflow-x: hidden;
}

body.mine-theme::before {
  content: "";
  position: fixed;
  inset: 0 0 0 var(--desk-sidebar);
  z-index: -2;
  background:
    linear-gradient(rgba(3, 45, 40, 0.7), rgba(3, 45, 40, 0.84)),
    url("assets/site/mine-cave-theme-duotone-v5.png") center top / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

body.mine-theme::after {
  content: "";
  position: fixed;
  inset: 0 0 0 var(--desk-sidebar);
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(247, 251, 250, 0.018) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 12%, transparent 0 24rem, rgba(2, 28, 25, 0.5) 65rem);
  pointer-events: none;
}

.grain {
  opacity: 0.13;
  mix-blend-mode: soft-light;
}

/* Fixed operator rail */
body .topbar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--desk-sidebar);
  height: 100dvh;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  color: var(--desk-deep);
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, var(--desk-teal-10) 3px 4px),
    var(--desk-white);
  border: 0;
  border-right: 4px solid var(--desk-ink);
  box-shadow: inset -7px 0 0 var(--desk-white), inset -9px 0 0 var(--desk-ink);
  overflow-y: auto;
}

body .wordmark {
  width: 100%;
  max-width: none;
  min-height: 102px;
  padding: 14px 18px 12px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--desk-deep);
  border-bottom: var(--desk-line);
  background: var(--desk-white);
  filter: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body .wordmark img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  padding: 5px;
  background: #0c7f70;
  border: 2px solid var(--desk-deep);
  filter: none !important;
  box-shadow: none !important;
}

body .brand-name {
  display: block;
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  font-size: 1.02rem;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-name::after {
  content: "SERIAL SYSTEM";
  display: block;
  margin-top: 8px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  opacity: 0.72;
}

.nav-toggle {
  display: none;
}

body .site-nav {
  width: auto;
  padding: 10px 14px 6px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  border: 0;
}

body .site-nav a {
  min-height: 41px;
  padding: 9px 36px 8px 36px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--desk-deep);
  background: rgba(247, 251, 250, 0.84);
  border: 1px solid var(--desk-ink);
  font-size: 0.72rem;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: inset 0 -4px 0 var(--desk-teal-10);
  transition: transform 140ms linear, color 140ms linear, background 140ms linear;
}

body .site-nav a::before {
  content: attr(data-nav-index);
  position: absolute;
  left: 10px;
  top: 50%;
  translate: 0 -50%;
  font-size: 0.58rem;
  opacity: 0.72;
}

body .site-nav a::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  translate: 0 -50%;
  background: transparent;
  border: 1px solid currentColor;
}

body .site-nav a:hover,
body .site-nav a:focus-visible,
body .site-nav a[aria-current="page"] {
  color: var(--desk-white);
  background: var(--desk-action);
  transform: translateX(3px);
}

body .site-nav a[aria-current="page"]::after {
  background: var(--desk-white);
}

.sidebar-census {
  margin: 8px 14px 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 8px;
  color: var(--desk-deep);
  border: 2px solid var(--desk-deep);
  border-top-width: 6px;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.sidebar-census strong {
  text-align: right;
  font-size: 0.64rem;
}

body .topbar-actions {
  width: auto;
  margin-top: auto;
  padding: 12px 14px 18px;
  display: grid;
  gap: 8px;
  border-top: var(--desk-line);
}

body .network-pill {
  min-height: 34px;
  padding: 8px 10px;
  justify-content: flex-start;
  color: var(--desk-deep);
  background: var(--desk-white);
  border: 2px solid var(--desk-deep);
  font-size: 0.57rem;
  box-shadow: none;
}

body .pulse-dot {
  background: var(--desk-teal);
  border-color: var(--desk-deep);
  box-shadow: none;
}

body .wallet-link {
  min-height: 52px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--desk-white);
  background: var(--desk-action);
  border: 2px solid var(--desk-ink);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  box-shadow: inset 0 -6px 0 rgba(3, 45, 40, 0.42), 3px 3px 0 var(--desk-ink);
}

body .wallet-link:hover,
body .wallet-link:focus-visible {
  color: var(--desk-ink);
  background: var(--desk-white);
}

/* Main workstation and status tape */
main#main {
  width: auto;
  max-width: none;
  margin-left: var(--desk-sidebar);
  padding: 0 24px 56px;
  position: relative;
}

.desk-rails {
  position: sticky;
  top: 0;
  z-index: 60;
  margin: 0 -24px 24px;
  color: var(--desk-deep);
  border-bottom: 3px solid var(--desk-ink);
  box-shadow: 0 5px 0 rgba(3, 45, 40, 0.48);
}

.desk-tape {
  height: 38px;
  overflow: hidden;
  background:
    radial-gradient(circle, var(--desk-action) 0 2px, transparent 2.5px) 0 0 / 18px 18px,
    var(--desk-white);
  border-bottom: 2px solid var(--desk-ink);
}

.desk-tape__track {
  width: max-content;
  min-height: 38px;
  display: flex;
  align-items: center;
  animation: desk-tape 34s linear infinite;
  background: rgba(247, 251, 250, 0.9);
}

.desk-tape__track span {
  padding: 0 24px;
  position: relative;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.desk-tape__track span::after {
  content: "◆";
  position: absolute;
  right: -3px;
  color: var(--desk-action);
}

.desk-context {
  min-height: 36px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--desk-white);
  background: var(--desk-ink);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.desk-context strong {
  letter-spacing: 0.18em;
}

@keyframes desk-tape {
  to { transform: translateX(-50%); }
}

/* Reusable archival panel language */
body main .intro-panel,
body main .mint-console,
body main .site-section {
  color: var(--desk-deep);
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, var(--desk-teal-10) 3px 4px),
    var(--desk-white);
  border: var(--desk-line);
  box-shadow: var(--desk-inset), var(--desk-shadow);
}

body main .mint-layout {
  width: 100%;
  max-width: 1200px;
  min-height: 0;
  margin: 0 auto 24px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(520px, 1.28fr);
  align-items: start;
  gap: 20px;
}

body main .intro-panel {
  min-width: 0;
  min-height: 0;
  padding: 42px 32px 30px;
  display: block;
  position: sticky;
  top: 104px;
  text-align: left;
}

body main .intro-panel::before {
  content: "SERIALIZED MACHINE DROP / 01";
  display: inline-flex;
  margin-bottom: 24px;
  padding: 8px 10px 7px;
  color: var(--desk-white);
  background: var(--desk-action);
  border: 2px solid var(--desk-ink);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 3px 3px 0 var(--desk-ink);
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  transform: none;
}

body main .intro-panel::after {
  content: "";
  position: absolute;
  left: -13px;
  top: 18px;
  width: 11px;
  height: 44%;
  background: var(--desk-action);
  border: 2px solid var(--desk-ink);
}

body main .intro-panel h1 {
  margin: 0;
  max-width: 8.6ch;
  color: var(--desk-ink);
  font-size: clamp(2.65rem, 4vw, 4.75rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-shadow: none;
}

body main .intro-panel h1 em {
  margin-top: 0.12em;
  padding: 0.05em 0.12em 0.09em;
  color: var(--desk-white);
  background: var(--desk-teal);
  box-shadow: 6px 6px 0 var(--desk-ink);
  font-style: normal;
}

body main .intro-panel .lead {
  max-width: 38ch;
  margin: 28px 0 24px;
  color: var(--desk-ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

body main .hero-specs {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

body main .hero-specs > div {
  min-width: 0;
  padding: 10px;
  color: var(--desk-ink);
  background: transparent;
  border: 1px solid var(--desk-muted);
  box-shadow: inset 0 -4px 0 var(--desk-teal-10);
}

body main .hero-specs dt,
body main .hero-specs dd {
  color: var(--desk-ink);
}

body main .hero-specs dt {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

body main .hero-specs dd {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 800;
}

body main .mint-console {
  min-width: 0;
  padding: 18px;
}

body main .mint-console .console-head {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 64px;
  margin: 0 0 14px !important;
  padding: 4px 4px 14px !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  color: var(--desk-ink);
  border: 0 !important;
  border-bottom: 2px solid var(--desk-ink) !important;
}

body main .console-head > div:first-child {
  display: block;
}

body main .console-tools {
  width: auto;
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
}

body main .console-head h2 {
  margin: 4px 0 0;
  color: var(--desk-ink);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

body main .micro-label,
body main .console-status,
body main .section-index,
body main .panel-code {
  color: var(--desk-teal);
}

body main .status-led {
  background: var(--desk-teal);
  border-color: var(--desk-deep);
  box-shadow: none;
}

body main .pixel-mint-frame {
  margin-top: 14px;
  padding: 10px;
  color: var(--desk-white);
  background: var(--desk-ink);
  border: 2px solid var(--desk-ink);
  box-shadow: none;
}

body main .machine-stage {
  width: 100%;
  max-height: 650px;
  aspect-ratio: 1;
  margin: 0;
  background: var(--desk-teal);
  border: 3px solid var(--desk-white);
  overflow: hidden;
}

body main .machine-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}

body main .machine-stage .scanlines {
  display: none;
}

body main .target-corners::before,
body main .target-corners::after,
body main .pixel-mint-frame::before,
body main .pixel-mint-frame::after {
  border-color: var(--desk-white);
}

body main .serial-console {
  min-height: 62px;
  margin: 10px 0 0;
  padding: 8px;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 2px solid var(--desk-ink);
}

body main .serial-prefix,
body main .serial-state {
  color: var(--desk-teal);
}

body main .reel {
  color: var(--desk-ink);
  background: var(--desk-white);
  border-color: var(--desk-ink);
  box-shadow: inset 0 -6px 0 var(--desk-teal-10);
}

body main .action-row {
  margin-top: 10px;
  padding: 0;
  color: var(--desk-white);
  background: transparent;
  border: 0;
  box-shadow: none;
}

body main .mint-actions {
  gap: 8px;
}

body main .mint-button {
  min-height: 58px;
  border: 3px solid var(--desk-white);
  border-radius: 0;
  font-family: inherit;
  letter-spacing: 0.06em;
}

body main .mint-button--real {
  color: var(--desk-white);
  background: var(--desk-ink);
  opacity: 0.62;
}

body main .mint-button--demo {
  color: var(--desk-white);
  background: var(--desk-action);
  box-shadow: inset 0 -7px 0 rgba(3, 45, 40, 0.34), 4px 4px 0 var(--desk-ink);
}

body main .mint-button--demo:hover:not(:disabled),
body main .mint-button--demo:focus-visible:not(:disabled) {
  color: var(--desk-white);
  background: var(--desk-teal);
  transform: translate(-1px, -1px);
}

body main #mintDisclaimer {
  color: var(--desk-white-72);
}

body main .result-panel {
  margin-top: 12px;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 2px solid var(--desk-ink);
  box-shadow: inset 0 -7px 0 var(--desk-teal-10);
}

body main .result-panel h3,
body main .trait-readout dt,
body main .trait-readout dd {
  color: var(--desk-ink);
}

/* Information sections */
body main .site-section {
  width: 100%;
  max-width: 1200px;
  min-height: 0;
  margin: 0 auto 24px;
  padding: 30px;
  scroll-margin-top: 90px;
}

body main .section-heading {
  margin: 0 0 22px;
  padding: 0 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 24px;
  align-items: end;
  border-bottom: 2px solid var(--desk-ink);
}

body main .section-heading h2 {
  max-width: 18ch;
  margin: 5px 0 0;
  color: var(--desk-ink);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

body main .section-heading p,
body main .site-section p {
  color: var(--desk-ink);
  line-height: 1.45;
}

body main .process-grid,
body main .utility-flow,
body main .docs-grid {
  gap: 9px;
}

body main .process-grid li,
body main .utility-flow article,
body main .docs-grid article,
body main .supply-card,
body main .serial-checker,
body main .serial-ladder,
body main .trait-preview-panel,
body main .trait-browser-panel,
body main .wallet-bay,
body main .faq-list details {
  color: var(--desk-ink);
  background: rgba(247, 251, 250, 0.78);
  border: 1px solid var(--desk-muted);
  border-radius: 0;
  box-shadow: inset 0 -5px 0 rgba(12, 127, 112, 0.04), 3px 4px 0 rgba(3, 45, 40, 0.58);
}

body main .process-grid li b,
body main .utility-flow article b {
  color: var(--desk-white);
  background: var(--desk-action);
}

body main .integrity-strip,
body main .utility-guardrail {
  color: var(--desk-white);
  background: var(--desk-ink);
  border: 2px solid var(--desk-action);
  box-shadow: 4px 4px 0 rgba(3, 45, 40, 0.62);
}

body main .integrity-strip strong,
body main .utility-guardrail strong,
body main .utility-guardrail p {
  color: var(--desk-white);
}

body main .tool-power-deck {
  margin: 18px 0;
  padding: 18px;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 2px solid var(--desk-ink);
  box-shadow: inset 0 0 0 4px var(--desk-paper), 4px 5px 0 rgba(3, 45, 40, 0.58);
}

body main .tool-power-head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: 22px;
  align-items: end;
  border-bottom: 2px solid var(--desk-ink);
}

body main .tool-power-head span {
  color: var(--desk-teal);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

body main .tool-power-head h3 {
  margin: 7px 0 0;
  color: var(--desk-ink);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 0.94;
}

body main .tool-power-head p {
  margin: 0;
}

.route-capacity-ledger {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.route-capacity-ledger article {
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  color: var(--desk-ink);
  background: var(--desk-paper);
  border: 1px solid var(--desk-muted);
  box-shadow: inset 0 -5px 0 var(--desk-teal-10);
}

.route-capacity-ledger span,
.route-capacity-ledger small {
  font-size: 0.54rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
}

.route-capacity-ledger span { color: var(--desk-teal); }
.route-capacity-ledger strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--desk-teal);
  font-size: 1.45rem;
}

.route-capacity-ledger small {
  color: var(--desk-muted);
}

body main .tool-power-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body main .tool-power-card {
  min-width: 0;
  padding: 10px;
  display: grid;
  gap: 7px;
  align-content: start;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 1px solid var(--desk-muted);
  border-top: 6px solid var(--tier-color, var(--desk-teal));
  box-shadow: inset 0 -5px 0 var(--desk-teal-10), 3px 4px 0 rgba(3, 45, 40, 0.46);
}

body main .tool-power-art {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--desk-paper);
  border: 1px solid var(--desk-muted);
}

body main .tool-power-art img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  image-rendering: pixelated;
}

body main .tool-power-card > strong {
  min-height: 2.3em;
  color: var(--desk-ink);
  font-size: 0.78rem;
  line-height: 1.15;
}

body main .tool-power-card > span {
  color: var(--desk-teal);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
}

body main .tool-power-card dl {
  margin: 0;
  padding-top: 7px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--desk-muted);
}

body main .tool-power-card dl > div {
  min-width: 0;
  padding-right: 6px;
}

body main .tool-power-card dl > div + div {
  padding-left: 8px;
  border-left: 1px solid var(--desk-muted);
}

body main .tool-power-card dt {
  color: var(--desk-teal);
  font-size: 0.5rem;
  line-height: 1.2;
}

body main .tool-power-card dd {
  margin: 5px 0 0;
  color: var(--desk-ink);
  font-size: 0.72rem;
}

body main .tool-power-formula {
  margin-top: 14px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: auto minmax(220px, 0.8fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: center;
  color: var(--desk-white);
  background: var(--desk-deep);
  border: 2px solid var(--desk-teal);
}

body main .tool-power-formula span,
body main .tool-power-formula strong,
body main .tool-power-formula small {
  color: var(--desk-white);
}

body main .tool-power-formula span,
body main .tool-power-formula small {
  font-size: 0.58rem;
  line-height: 1.4;
}

body main .tool-power-formula strong {
  font-size: 0.72rem;
}

body main .supply-map {
  gap: 12px;
}

body main .supply-card strong {
  color: var(--desk-teal);
}

body main .supply-card--special,
body main .supply-card--total {
  color: var(--desk-white);
  background: var(--desk-teal);
  box-shadow: inset 0 -7px 0 rgba(9, 80, 70, 0.72), 3px 4px 0 var(--desk-ink);
}

body main .supply-card--total {
  background: var(--desk-deep);
  box-shadow: inset 0 -7px 0 rgba(3, 45, 40, 0.36), 3px 4px 0 var(--desk-ink);
}

body main .supply-card--special p,
body main .supply-card--total p,
body main .supply-card--special strong,
body main .supply-card--total strong {
  color: var(--desk-white);
}

body main .supply-operator {
  color: var(--desk-action);
}

body main .serial-checker h3,
body main .serial-ladder h3,
body main .trait-preview-panel h3 {
  color: var(--desk-ink);
}

body main .serial-checker-form input,
body main .serial-checker-form button,
body main .serial-check-result,
body main .serial-ladder li {
  color: var(--desk-ink);
  background: var(--desk-white);
  border-color: var(--desk-muted);
}

body main .serial-checker-form button {
  color: var(--desk-white);
  background: var(--desk-action);
  box-shadow: inset 0 -5px 0 rgba(3, 45, 40, 0.36);
}

body main .serial-check-result strong,
body main .serial-ladder li span {
  color: var(--desk-teal);
}

body main .special-signal-grid {
  gap: 9px;
}

body main .specials-section .special-signal-grid .special-signal-card {
  min-height: 118px;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 1px solid var(--desk-muted);
  border-top: 6px solid var(--desk-teal);
  border-radius: 0;
  box-shadow: inset 0 -5px 0 var(--desk-teal-10), 3px 4px 0 rgba(3, 45, 40, 0.58);
}

body main .specials-section .special-signal-card:nth-child(3n + 2) {
  border-top-color: var(--desk-deep);
}

body main .specials-section .special-signal-card:nth-child(3n) {
  border-top-color: var(--desk-soft);
}

body main .specials-section .special-signal-card b,
body main .specials-section .special-signal-card span,
body main .specials-section .special-signal-card small {
  color: var(--desk-ink);
}

body main .specials-section .special-signal-card:hover,
body main .specials-section .special-signal-card:focus-visible {
  color: var(--desk-white);
  background: var(--desk-ink);
  box-shadow: inset 0 -7px 0 rgba(12, 127, 112, 0.25), 4px 5px 0 rgba(3, 45, 40, 0.62);
}

body main .specials-section .special-signal-card:hover b,
body main .specials-section .special-signal-card:hover span,
body main .specials-section .special-signal-card:hover small,
body main .specials-section .special-signal-card:focus-visible b,
body main .specials-section .special-signal-card:focus-visible span,
body main .specials-section .special-signal-card:focus-visible small {
  color: var(--desk-white);
}

body main .trait-lab-shell {
  gap: 14px;
}

body main .trait-preview-head,
body main .trait-tabs,
body main .trait-grid {
  color: var(--desk-ink);
}

body main .trait-tabs button,
body main .trait-card {
  color: var(--desk-ink);
  background: var(--desk-white);
  border-color: var(--desk-muted);
  box-shadow: inset 0 -4px 0 var(--desk-teal-10);
}

body main .trait-tabs button[aria-selected="true"],
body main .trait-card[aria-pressed="true"] {
  color: var(--desk-white);
  background: var(--desk-teal);
}

body main .wallet-offline-state,
body main .wallet-metrics div {
  color: var(--desk-ink);
  background: var(--desk-white);
  border-color: var(--desk-muted);
}

body main .wallet-metrics dt,
body main .wallet-metrics dd,
body main .wallet-offline-state small,
body main .wallet-offline-state strong {
  color: var(--desk-ink);
}

body main .wallet-connect-button,
body main .docs-link {
  color: var(--desk-white);
  background: var(--desk-action);
  border: 2px solid var(--desk-ink);
  border-radius: 0;
  box-shadow: inset 0 -7px 0 rgba(3, 45, 40, 0.36), 4px 4px 0 var(--desk-ink);
}

body main .faq-list summary,
body main .faq-list p,
body main .docs-grid h3,
body main .docs-grid p {
  color: var(--desk-ink);
}

/* Final SPL brand palette lock: teal, deep teal, mist, and clean white. */
body .skip-link {
  color: var(--desk-white);
  background: var(--desk-action);
  border-color: var(--desk-ink);
}

body .nav-toggle,
body main .sound-toggle {
  color: var(--desk-white);
  background: var(--desk-action);
  border-color: var(--desk-ink);
}

body main .reveal-flash {
  background: var(--desk-white);
}

body main #mint #mintDisclaimer {
  color: var(--desk-white-72) !important;
  border-color: var(--desk-white-72) !important;
}

body main .trait-readout > div {
  border-color: var(--desk-teal);
}

body main .trait-readout dt,
body main .trait-readout dt[data-tier],
body main .trait-readout dd,
body main .process-grid li span,
body main .serial-checker-form label,
body main #serialCheckLabel,
body main #serialCheckCopy,
body main .serial-ladder li b,
body main .serial-ladder li small,
body main .trait-card small {
  color: var(--desk-ink);
  border-color: var(--desk-ink);
}

body main .serial-ladder li small {
  background: var(--desk-white);
}

body main [data-tier="common"],
body main [data-tier="uncommon"],
body main [data-tier="rare"],
body main [data-tier="epic"],
body main [data-tier="legendary"],
body main [data-tier="special"],
body main [data-tier="invalid"] {
  --tier-color: var(--desk-teal);
}

body main #traitLabCanvas {
  background: var(--desk-teal);
  border-color: var(--desk-deep);
}

body main .offline-led {
  background: var(--desk-teal);
  border-color: var(--desk-deep);
}

body main .docs-grid article > span {
  color: var(--desk-white);
  background: var(--desk-action);
  border-color: var(--desk-ink);
}

body.mine-theme * {
  text-shadow: none !important;
}

body .site-nav a:hover,
body .site-nav a:focus-visible,
body .site-nav a[aria-current="page"] {
  color: var(--desk-white) !important;
  background: var(--desk-action) !important;
  outline-color: var(--desk-teal) !important;
}

body .skip-link,
body main .sound-toggle {
  box-shadow: 3px 3px 0 var(--desk-ink) !important;
}

body main .hero-specs {
  border-color: var(--desk-paper-deep) !important;
}

body main #mint .serial-console {
  color: var(--desk-ink) !important;
  background: var(--desk-white) !important;
  box-shadow: inset 0 -6px 0 var(--desk-teal-10) !important;
}

body main #mint .mint-button--real {
  color: var(--desk-white) !important;
  background: var(--desk-ink) !important;
  box-shadow: inset 0 -6px 0 var(--desk-teal) !important;
}

body main .wallet-connect-button {
  color: var(--desk-white) !important;
  background: var(--desk-action) !important;
  box-shadow: inset 0 -6px 0 rgba(3, 45, 40, 0.36), 4px 4px 0 var(--desk-ink) !important;
}

body main #mint .mint-button--demo {
  color: var(--desk-white) !important;
  background: var(--desk-action) !important;
  box-shadow: inset 0 -6px 0 rgba(3, 45, 40, 0.36), 4px 4px 0 var(--desk-ink) !important;
}

body main #mint .button-key {
  color: var(--desk-white) !important;
  background: var(--desk-ink) !important;
}

body main #serialInput {
  box-shadow: inset 0 -5px 0 var(--desk-teal-10) !important;
}

body main #traitLabCanvas {
  box-shadow: inset 0 0 0 4px var(--desk-teal), 4px 4px 0 var(--desk-ink) !important;
}

body main .offline-led {
  box-shadow: none !important;
}

body main .process-grid li b {
  box-shadow: 4px 4px 0 var(--desk-ink) !important;
}

body footer {
  width: auto;
  margin-left: var(--desk-sidebar);
  padding: 24px 28px;
  color: var(--desk-white);
  background: var(--desk-deep);
  border: 0;
  border-top: 4px solid var(--desk-white);
  box-shadow: none;
}

body footer a {
  color: var(--desk-white);
}

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

@media (max-width: 1120px) {
  :root { --desk-sidebar: 214px; }

  body main .mint-layout {
    grid-template-columns: minmax(260px, 0.68fr) minmax(470px, 1.32fr);
  }

  body main .intro-panel {
    padding: 34px 24px 26px;
  }

  body main .intro-panel h1 {
    font-size: clamp(2.4rem, 4.6vw, 4rem);
  }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 128px; }

  body.mine-theme::before,
  body.mine-theme::after {
    inset: 0;
  }

  body .topbar {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: 66px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    overflow: visible;
    border-right: 0;
    border-bottom: 3px solid var(--desk-deep);
    box-shadow: inset 0 -6px 0 var(--desk-white), inset 0 -9px 0 var(--desk-deep);
  }

  body .wordmark {
    min-height: 0;
    padding: 0;
    grid-template-columns: 40px 1fr;
    gap: 8px;
    border: 0;
  }

  body .wordmark img {
    width: 36px;
    height: 36px;
    padding: 3px;
  }

  body .brand-name {
    font-size: 0.8rem;
  }

  .brand-name::after,
  .sidebar-census,
  body .network-pill {
    display: none;
  }

  .nav-toggle {
    min-width: 58px;
    min-height: 38px;
    padding: 7px 10px;
    display: block;
    color: var(--desk-deep);
    background: var(--desk-white);
    border: 2px solid var(--desk-deep);
    font: inherit;
    font-size: 0.66rem;
    font-weight: 700;
  }

  body .site-nav {
    position: absolute;
    top: calc(100% - 3px);
    left: 0;
    right: 0;
    max-height: calc(100vh - 66px);
    padding: 12px;
    display: none;
    grid-template-columns: 1fr 1fr;
    background: var(--desk-white);
    border-bottom: 4px solid var(--desk-deep);
    box-shadow: 0 8px 0 rgba(4, 59, 52, 0.45);
    overflow-y: auto;
  }

  body.nav-open .site-nav {
    display: grid;
  }

  body .topbar-actions {
    width: auto;
    margin: 0;
    padding: 0;
    display: block;
    border: 0;
  }

  body .wallet-link {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.62rem;
    box-shadow: inset 0 -4px 0 var(--desk-deep);
  }

  main#main,
  body footer {
    margin-left: 0;
  }

  main#main {
    padding: 0 16px 44px;
  }

  .desk-rails {
    top: 66px;
    margin: 0 -16px 18px;
  }

  .desk-tape {
    height: 32px;
  }

  .desk-tape__track {
    min-height: 32px;
  }

  .desk-context {
    min-height: 32px;
    padding: 7px 14px;
    font-size: 0.58rem;
  }

  body main .mint-layout {
    grid-template-columns: 1fr;
  }

  body main .intro-panel {
    position: relative;
    top: auto;
  }

  body main .intro-panel h1 {
    max-width: 11ch;
  }

  body main .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 620px) {
  main#main {
    padding-inline: 10px;
  }

  .desk-rails {
    margin-inline: -10px;
  }

  .desk-context span {
    display: none;
  }

  body main .intro-panel,
  body main .mint-console,
  body main .site-section {
    box-shadow: inset 0 0 0 3px var(--desk-white), inset 0 0 0 5px var(--desk-deep), 4px 5px 0 var(--desk-deep);
  }

  body main .intro-panel,
  body main .site-section {
    padding: 24px 18px;
  }

  body main .mint-console {
    padding: 10px;
  }

  body main .intro-panel h1 {
    font-size: clamp(2.6rem, 15vw, 4.4rem);
  }

  body main .hero-specs,
  body main .site-nav,
  body main .section-heading,
  body main .process-grid,
  body main .utility-flow,
  body main .docs-grid,
  body main .supply-map,
  body main .rarity-workbench,
  body main .trait-lab-shell,
  body main .wallet-metrics {
    grid-template-columns: 1fr;
  }

  body main .tool-power-head,
  body main .tool-power-formula {
    grid-template-columns: 1fr;
  }

  body main .tool-power-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .site-nav {
    grid-template-columns: 1fr;
  }

  body main .supply-operator {
    min-height: 24px;
  }

  body main .serial-console {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body main .serial-prefix,
  body main .serial-state {
    text-align: center;
  }

  body main .mint-actions {
    grid-template-columns: 1fr;
  }

  body footer {
    padding: 22px 16px;
    display: grid;
    gap: 12px;
  }
}

/* Onchain controls — state-led mint and pool reroll desk. */
body main .mint-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body main .mint-button--reroll {
  color: var(--desk-ink);
  background: var(--desk-white);
  box-shadow: inset 0 -7px 0 var(--desk-teal-10), 4px 4px 0 var(--desk-ink);
}

body main .mint-button--reroll:hover,
body main .mint-button--reroll:focus-visible {
  color: var(--desk-white);
  background: var(--desk-teal);
  transform: translate(-1px, -1px);
}

.reroll-picker {
  margin-top: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px 12px;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 2px solid var(--desk-ink);
  box-shadow: 3px 3px 0 var(--desk-teal);
}

.reroll-picker label {
  color: var(--desk-teal);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.reroll-picker select {
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 2px solid var(--desk-ink);
  border-radius: 0;
  font: inherit;
  font-size: 0.67rem;
}

.reroll-picker select:disabled {
  color: var(--desk-muted);
  background: var(--desk-teal-10);
}

.reroll-picker > span {
  grid-column: 1 / -1;
  color: var(--desk-muted);
  font-size: 0.53rem;
  line-height: 1.45;
}

body main #mintActionStatus {
  margin-top: 9px;
}

.wallet-offline-state.is-live .offline-led {
  opacity: 1;
  background: var(--desk-teal);
}

.wallet-action-status {
  margin: 0;
  padding: 12px 14px;
  color: var(--desk-ink);
  background: var(--desk-teal-10);
  border: 1px solid var(--desk-muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.wallet-action-status[data-state="pending"] {
  color: var(--desk-white);
  background: var(--desk-deep);
}

.wallet-action-status[data-state="error"] {
  color: var(--desk-white);
  background: var(--desk-ink);
}

.wallet-recovery-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.wallet-recovery-actions[hidden],
.wallet-recovery-actions button[hidden] {
  display: none;
}

.wallet-recovery-actions button,
.miner-reroll-button {
  min-height: 42px;
  padding: 9px 12px;
  color: var(--desk-white);
  background: var(--desk-action);
  border: 2px solid var(--desk-ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--desk-ink);
  font: inherit;
  font-size: 0.61rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.wallet-recovery-actions button:hover,
.wallet-recovery-actions button:focus-visible,
.miner-reroll-button:hover:not(:disabled),
.miner-reroll-button:focus-visible:not(:disabled) {
  color: var(--desk-white);
  background: var(--desk-teal);
  transform: translate(-1px, -1px);
}

.miner-blueprint--live > div:first-child {
  border-bottom: 0;
}

.owned-miner-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.owned-miner-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  color: var(--desk-muted);
  background: var(--desk-teal-10);
  border: 2px dashed var(--desk-muted);
  text-align: center;
}

.owned-miner-card {
  min-width: 0;
  padding: 12px;
  display: grid;
  gap: 10px;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 2px solid var(--desk-ink);
  box-shadow: inset 0 -5px 0 var(--desk-teal-10), 3px 3px 0 var(--desk-muted);
}

.owned-miner-card header {
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--desk-muted);
}

.owned-miner-card header span {
  color: var(--desk-muted);
  font-size: 0.58rem;
}

.owned-miner-card header strong {
  color: var(--desk-teal);
  font-size: 0.8rem;
}

.owned-miner-art {
  margin: 0;
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--desk-deep);
  border: 2px solid var(--desk-ink);
}

.owned-miner-art img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}

.owned-miner-art span {
  padding: 24px 12px;
  color: var(--desk-soft);
  font-size: 0.55rem;
  text-align: center;
}

body main .owned-miner-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 0;
}

body main .owned-miner-card dl > div {
  padding: 8px 7px;
  border: 0;
  border-top: 1px solid var(--desk-teal-10);
}

body main .owned-miner-card dt {
  color: var(--desk-muted);
  font-size: 0.49rem;
}

body main .owned-miner-card dd {
  margin: 3px 0 0;
  color: var(--desk-ink);
  font-size: 0.69rem;
}

.owned-miner-output {
  padding-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  border-top: 2px solid var(--desk-ink);
}

.owned-miner-output > div {
  min-width: 0;
  padding: 7px 8px;
  display: grid;
  gap: 4px;
  background: var(--desk-teal-10);
  border: 1px solid var(--desk-muted);
}

.owned-miner-output span {
  color: var(--desk-muted);
  font-size: 0.48rem;
}

.owned-miner-output strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--desk-teal);
  font-size: 0.58rem;
  line-height: 1.45;
}

.owned-miner-balances {
  display: grid;
  gap: 5px;
}

.owned-miner-balance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 5px 8px;
}

.owned-miner-balance b {
  color: var(--desk-ink);
  font-size: 0.63rem;
}

.owned-miner-balance em {
  color: var(--desk-teal);
  font-size: 0.58rem;
  font-style: normal;
  overflow-wrap: anywhere;
}

.owned-miner-balance small {
  grid-column: 1 / -1;
  color: var(--desk-muted);
  font-size: 0.47rem;
  line-height: 1.35;
}

.owned-miner-output button {
  padding: 8px 10px;
  color: var(--desk-white);
  background: var(--desk-teal);
  border: 2px solid var(--desk-ink);
  box-shadow: 2px 2px 0 var(--desk-ink);
  font: inherit;
  font-size: 0.55rem;
  cursor: pointer;
}

.owned-miner-output button:disabled {
  color: var(--desk-muted);
  background: var(--desk-white);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
}

.miner-reroll-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.reroll-rule-strip {
  margin-top: 14px;
  padding: 11px 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--desk-white);
  background: var(--desk-deep);
  border: 2px solid var(--desk-teal);
  font-size: 0.57rem;
}

.reroll-rule-strip strong {
  color: var(--desk-white);
}

.reroll-rule-strip span {
  color: var(--desk-white-72);
}

@media (max-width: 1000px) {
  body main .mint-actions,
  .owned-miner-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  body main .mint-actions,
  .owned-miner-grid,
  .wallet-recovery-actions {
    grid-template-columns: 1fr;
  }

  .reroll-picker {
    grid-template-columns: 1fr;
  }

  .owned-miner-output {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 621px) and (max-width: 1120px) {
  body main .tool-power-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  body main .tool-power-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .desk-tape__track { animation: none; }
  body .site-nav a,
  body main .mint-button { transition: none; }
}

/* Page router + complete Mine Network product views */
[hidden] {
  display: none !important;
}

body main > section[data-page] {
  min-height: calc(100dvh - 154px);
  animation: page-in 160ms steps(2, end);
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

body main .mine-overview {
  padding: 0;
  overflow: hidden;
}

.overview-hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  color: var(--desk-white);
  background: var(--desk-ink);
  border-bottom: 6px solid var(--desk-teal);
}

.overview-copy {
  padding: clamp(34px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.overview-copy .section-index {
  color: var(--desk-soft);
}

body main .overview-copy h1 {
  max-width: 14ch;
  margin: 12px 0 20px;
  color: var(--desk-white);
  font-size: clamp(2.75rem, 5.4vw, 5.6rem);
  line-height: 0.87;
  letter-spacing: -0.045em;
}

body main .overview-copy h1 em {
  color: var(--desk-soft);
  font-style: normal;
}

body main .overview-copy p {
  max-width: 700px;
  margin: 0;
  color: var(--desk-white);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.overview-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.overview-actions a {
  min-height: 46px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 2px solid var(--desk-white);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--desk-teal);
}

.overview-actions a:first-child {
  color: var(--desk-white);
  background: var(--desk-teal);
}

.overview-actions a:hover,
.overview-actions a:focus-visible {
  color: var(--desk-white);
  background: var(--desk-deep);
}

.overview-mark {
  padding: 28px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--desk-white);
  background: var(--desk-teal);
  border-left: 3px solid var(--desk-white);
}

.overview-mark img {
  width: min(100%, 260px);
  height: auto;
  image-rendering: pixelated;
  filter: none;
}

.overview-mark span {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
}

.overview-census {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: var(--desk-ink);
  border-bottom: 2px solid var(--desk-ink);
}

.overview-census > div {
  padding: 20px;
  display: grid;
  gap: 5px;
}

.overview-census > div + div {
  border-left: 1px solid var(--desk-muted);
}

.overview-census dt,
.overview-census small {
  color: var(--desk-muted);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
}

.overview-census dd {
  margin: 0;
  font-size: clamp(1.35rem, 2.7vw, 2.2rem);
}

.system-equation {
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 10px;
  color: var(--desk-ink);
}

.system-equation article {
  min-width: 0;
  padding: 17px;
  border: 2px solid var(--desk-ink);
  box-shadow: inset 0 -5px 0 var(--desk-teal-10);
}

.system-equation article span {
  color: var(--desk-teal);
  font-size: 0.62rem;
}

.system-equation article strong {
  margin-top: 8px;
  display: block;
  color: var(--desk-ink);
  font-size: 0.82rem;
}

body main .system-equation article p {
  margin: 9px 0 0;
  font-size: 0.83rem;
}

.system-equation > b {
  align-self: center;
  color: var(--desk-teal);
  font-size: 1.5rem;
}

.overview-status {
  margin: 0 26px 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: var(--desk-white);
  background: var(--desk-deep);
  border: 2px solid var(--desk-ink);
}

.overview-status > div {
  padding: 14px;
  display: grid;
  gap: 7px;
}

.overview-status > div + div {
  border-left: 1px solid var(--desk-soft);
}

.overview-status span {
  color: var(--desk-soft);
  font-size: 0.55rem;
}

.overview-status strong {
  color: var(--desk-white);
  font-size: 0.78rem;
}

body main .overview-status p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px 14px;
  color: var(--desk-white);
  border-top: 1px solid var(--desk-soft);
  font-size: 0.72rem;
}

.pattern-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--desk-muted);
  font-size: 0.74rem;
}

.network-status {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--desk-ink);
}

.network-status > div {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 6px;
  color: var(--desk-ink);
}

.network-status > div + div {
  border-left: 1px solid var(--desk-muted);
}

.network-status span,
.network-status small {
  color: var(--desk-muted);
  font-size: 0.56rem;
}

.network-status strong {
  color: var(--desk-teal);
  font-size: 1.1rem;
}

.mine-activation-console {
  margin-bottom: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, 1fr);
  gap: 14px 18px;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 3px solid var(--desk-ink);
  box-shadow: 5px 5px 0 var(--desk-muted);
}

.mine-activation-copy span,
.mine-activation-console > small {
  color: var(--desk-muted);
  font-size: 0.55rem;
}

.mine-activation-copy h3 {
  margin: 7px 0 8px;
  color: var(--desk-ink);
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
}

body main .mine-activation-copy p {
  margin: 0;
  max-width: 66ch;
  font-size: 0.76rem;
}

.mine-activation-ledger {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid var(--desk-ink);
}

.mine-activation-ledger > div {
  min-width: 0;
  padding: 10px;
  display: grid;
  gap: 5px;
}

.mine-activation-ledger > div + div {
  border-left: 1px solid var(--desk-muted);
}

.mine-activation-ledger dt {
  color: var(--desk-muted);
  font-size: 0.48rem;
}

.mine-activation-ledger dd {
  margin: 0;
  color: var(--desk-teal);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.mine-activation-progress {
  grid-column: 1 / -1;
  height: 14px;
  padding: 2px;
  background: var(--desk-teal-10);
  border: 2px solid var(--desk-ink);
}

.mine-activation-progress span {
  width: 0;
  height: 100%;
  display: block;
  background: repeating-linear-gradient(90deg, var(--desk-teal) 0 12px, transparent 12px 15px);
  transition: width 320ms steps(8, end);
}

.mine-activation-console > button {
  min-height: 46px;
  color: var(--desk-white);
  background: var(--desk-teal);
  border: 2px solid var(--desk-ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--desk-ink);
  font: inherit;
  font-size: 0.67rem;
  cursor: pointer;
}

.mine-activation-console > button:disabled {
  color: var(--desk-muted);
  background: var(--desk-teal-10);
  box-shadow: none;
  cursor: not-allowed;
}

.mine-activation-console > small {
  align-self: center;
  line-height: 1.45;
}

.mine-activation-console[data-state="ready"] {
  box-shadow: 5px 5px 0 var(--desk-action);
}

.mine-activation-console[data-state="active"] {
  color: var(--desk-white);
  background: var(--desk-deep);
  box-shadow: 5px 5px 0 var(--desk-teal);
}

.mine-activation-console[data-state="active"] h3,
.mine-activation-console[data-state="active"] dd,
.mine-activation-console[data-state="active"] p {
  color: var(--desk-white);
}

.mine-activation-console[data-state="active"] .mine-activation-ledger {
  border-color: var(--desk-soft);
}

.mine-activation-console[data-state="active"] .mine-activation-ledger > div + div {
  border-left-color: var(--desk-soft);
}

body main .machine-simulator,
body main .miner-blueprint {
  margin-top: 20px;
  padding: 22px;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 2px solid var(--desk-ink);
  box-shadow: 4px 5px 0 rgba(3, 45, 40, 0.58);
}

.machine-simulator header,
.miner-blueprint > div {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--desk-ink);
}

.machine-simulator h3,
.miner-blueprint h3 {
  margin: 7px 0;
  color: var(--desk-ink);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.machine-simulator header p,
.miner-blueprint p {
  margin: 0;
}

.simulator-controls {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 12px;
}

.simulator-controls label {
  display: grid;
  gap: 7px;
  color: var(--desk-teal);
  font-size: 0.62rem;
}

.simulator-controls input,
.simulator-controls select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 2px solid var(--desk-ink);
  border-radius: 0;
  font: inherit;
}

.simulator-readout,
.miner-blueprint dl {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--desk-ink);
}

.simulator-readout > div,
.miner-blueprint dl > div {
  min-width: 0;
  padding: 13px;
  display: grid;
  gap: 7px;
}

.simulator-readout > div + div,
.miner-blueprint dl > div + div {
  border-left: 1px solid var(--desk-muted);
}

.simulator-readout dt,
.miner-blueprint dt {
  color: var(--desk-muted);
  font-size: 0.55rem;
}

.simulator-readout dd,
.miner-blueprint dd {
  margin: 0;
  color: var(--desk-ink);
  font-size: 0.86rem;
}

.miner-blueprint dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  body main > section[data-page] {
    min-height: calc(100dvh - 148px);
  }

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

  .overview-mark {
    min-height: 230px;
    border-left: 0;
    border-top: 3px solid var(--desk-white);
  }

  .overview-mark img {
    width: 150px;
  }

  .system-equation {
    grid-template-columns: 1fr 1fr;
  }

  .system-equation > b {
    display: none;
  }
}

@media (max-width: 820px) {
  .mine-activation-console {
    grid-template-columns: 1fr;
  }

  .mine-activation-progress {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .mine-activation-ledger {
    grid-template-columns: 1fr;
  }

  .mine-activation-ledger > div + div {
    border-top: 1px solid var(--desk-muted);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .overview-copy {
    padding: 30px 20px;
  }

  body main .overview-copy h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .overview-census,
  .system-equation,
  .overview-status,
  .network-status,
  .simulator-controls,
  .simulator-readout,
  .miner-blueprint dl {
    grid-template-columns: 1fr;
  }

  .overview-census > div + div,
  .overview-status > div + div,
  .network-status > div + div,
  .simulator-readout > div + div,
  .miner-blueprint dl > div + div {
    border-left: 0;
    border-top: 1px solid var(--desk-muted);
  }

  .overview-status > p {
    grid-column: auto;
  }

  .system-equation,
  .overview-status {
    margin-inline: 14px;
  }

  .system-equation {
    padding: 18px 0;
  }
}

/* Unified SPL catalog system — dense registry panels, original shaft marks. */
body main .site-section,
body main .mint-layout {
  max-width: 1420px;
}

body main > section[data-page] {
  min-height: 0;
}

body main .mint-layout {
  grid-template-columns: minmax(340px, 0.78fr) minmax(620px, 1.22fr);
  gap: 16px;
}

body main .intro-panel {
  padding: 36px 30px 28px;
}

body main .intro-panel::before {
  margin-bottom: 20px;
}

body main .intro-panel h1 {
  max-width: 9.4ch;
  font-size: clamp(2.55rem, 3.6vw, 4.25rem);
}

body main .intro-panel .lead {
  margin-block: 20px 14px;
}

body main .mint-guide {
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 2px solid var(--desk-ink);
  box-shadow: inset 0 -5px 0 var(--desk-teal-10), 4px 4px 0 var(--desk-ink);
}

body main .mint-guide__head {
  min-height: 34px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--desk-white);
  background: var(--desk-deep);
  border-bottom: 2px solid var(--desk-ink);
}

body main .mint-guide__head span {
  color: var(--desk-soft);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
}

body main .mint-guide__head strong {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

body main .mint-guide__questions details {
  border-bottom: 1px solid var(--desk-muted);
}

body main .mint-guide__questions summary {
  min-height: 34px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--desk-ink);
  cursor: pointer;
  list-style: none;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

body main .mint-guide__questions summary::-webkit-details-marker {
  display: none;
}

body main .mint-guide__questions summary::before {
  content: "▸";
  flex: 0 0 auto;
  color: var(--desk-teal);
  font-size: 0.78rem;
}

body main .mint-guide__questions details[open] summary {
  color: var(--desk-white);
  background: var(--desk-teal);
}

body main .mint-guide__questions details[open] summary::before {
  content: "▾";
  color: var(--desk-white);
}

body main .mint-guide__questions p {
  margin: 0;
  padding: 8px 12px 9px 26px;
  color: var(--desk-deep);
  background: var(--desk-teal-10);
  font-size: 0.65rem;
  line-height: 1.4;
}

body main .mint-guide__facts {
  margin: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--desk-muted);
}

body main .mint-guide__facts > div {
  min-width: 0;
  padding: 7px 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

body main .mint-guide__facts > div:nth-child(even) {
  border-left: 1px solid var(--desk-muted);
}

body main .mint-guide__facts > div:nth-child(n + 3) {
  border-top: 1px solid var(--desk-muted);
}

body main .mint-guide__facts dt {
  color: var(--desk-teal);
  font-size: 0.54rem;
  letter-spacing: 0.09em;
}

body main .mint-guide__facts dd {
  margin: 0;
  color: var(--desk-ink);
  font-size: 0.7rem;
  font-weight: 800;
}

body main .machine-stage {
  width: min(100%, 650px);
  max-height: none;
  margin-inline: auto;
}

body main .mine-overview {
  background: var(--desk-deep);
  border-color: var(--desk-ink);
}

.overview-hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  border-bottom: 0;
}

.overview-copy {
  min-width: 0;
  padding: clamp(30px, 4vw, 52px);
}

body main .overview-copy h1 {
  max-width: none;
  margin: 10px 0 14px;
  font-size: clamp(3.1rem, 5vw, 5.15rem);
  line-height: 0.88;
}

body main .overview-copy p {
  max-width: 64ch;
  font-size: clamp(0.95rem, 1.15vw, 1.12rem);
}

.overview-actions {
  margin-top: 22px;
}

.overview-mark {
  min-width: 0;
  min-height: 260px;
  padding: 26px;
  grid-template-columns: minmax(92px, 128px) minmax(0, 1fr);
  align-content: center;
  gap: 24px;
  border-left: 3px solid var(--desk-white);
}

.overview-mark img {
  width: 100%;
  max-width: 128px;
}

.overview-mark dl {
  width: 100%;
  margin: 0;
  display: grid;
  border: 2px solid var(--desk-white);
}

.overview-mark dl > div {
  min-width: 0;
  padding: 10px 11px;
}

.overview-mark dl > div + div {
  border-top: 1px solid rgba(247, 251, 250, 0.46);
}

.overview-mark dt,
.overview-mark dd {
  color: var(--desk-white);
}

.overview-mark dt {
  font-size: 0.5rem;
  letter-spacing: 0.12em;
}

.overview-mark dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.68rem;
  font-weight: 700;
}

.overview-catalog {
  padding: 14px;
  display: grid;
  gap: 14px;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(247, 251, 250, 0.025) 18px 20px),
    var(--desk-deep);
  border-top: 3px solid var(--desk-white);
}

.overview-panel {
  min-width: 0;
  color: var(--desk-ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, var(--desk-teal-10) 3px 4px),
    var(--desk-white);
  border: 2px solid var(--desk-ink);
  box-shadow: inset 0 0 0 4px var(--desk-paper), 4px 5px 0 rgba(3, 45, 40, 0.7);
}

.catalog-panel-head {
  min-height: 74px;
  padding: 17px 20px 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid var(--desk-ink);
}

.catalog-panel-head span,
.catalog-panel-head small {
  color: var(--desk-teal);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.catalog-panel-head h2 {
  margin: 5px 0 0;
  color: var(--desk-ink);
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1;
}

body main .catalog-intro {
  max-width: 88ch;
  margin: 0;
  padding: 15px 20px 0;
  font-size: 0.82rem;
}

.overview-census {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 0;
}

.overview-census > div {
  padding: 18px 20px 20px;
}

.overview-census dd {
  color: var(--desk-teal);
  font-size: clamp(1.45rem, 2.25vw, 2.15rem);
}

.overview-shaft-grid {
  padding: 18px 20px 21px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.overview-shaft-card {
  min-width: 0;
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 11px;
  color: var(--desk-ink);
  background: rgba(247, 251, 250, 0.78);
  border: 1px solid var(--desk-muted);
  border-top: 5px solid var(--desk-teal);
  box-shadow: inset 0 -5px 0 var(--desk-teal-10), 3px 4px 0 rgba(3, 45, 40, 0.28);
}

.overview-shaft-marks,
.tool-route-marks {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

.overview-shaft-marks .shaft-token-mark {
  width: 38px;
  flex: 0 0 38px;
  box-shadow: inset 0 -5px 0 rgba(3, 45, 40, 0.3), 2px 2px 0 var(--desk-ink);
}

.overview-shaft-card > div:not(.overview-shaft-marks) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.overview-shaft-card > .overview-route-tool-art {
  min-height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--desk-paper);
  border: 1px solid rgba(3, 45, 40, 0.36);
  box-shadow: inset 0 -4px 0 var(--desk-teal-10);
}

.overview-route-tool-art img {
  width: 84px;
  height: 68px;
  object-fit: contain;
  image-rendering: pixelated;
}

.overview-shaft-card strong {
  color: var(--desk-ink);
  font-size: 1.08rem;
  line-height: 1;
}

.overview-shaft-card span,
.overview-shaft-card small,
.overview-shaft-card b {
  overflow-wrap: anywhere;
  font-size: 0.62rem;
  line-height: 1.35;
}

.overview-shaft-card span { color: var(--desk-teal); }
.overview-shaft-card .overview-route-assets {
  margin-top: 2px;
  color: var(--desk-ink);
  font-size: 0.69rem;
  font-weight: 700;
}
.overview-shaft-card .overview-route-count {
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 5px 7px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
  color: var(--desk-white);
  background: var(--desk-teal);
  border: 1px solid var(--desk-ink);
  box-shadow: 2px 2px 0 rgba(3, 45, 40, 0.52);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.overview-shaft-card .overview-route-count > span:first-child {
  color: var(--desk-white);
  font-size: 0.7rem;
  font-weight: 900;
}

.overview-shaft-card .overview-route-count > span:last-child {
  color: rgba(247, 251, 250, 0.82);
  font-size: 0.54rem;
  font-weight: 700;
}
.overview-shaft-card .overview-route-tool {
  margin-top: 4px;
  color: var(--desk-muted);
  font-size: 0.6rem;
}
.overview-shaft-card b {
  grid-column: 1 / -1;
  padding-top: 10px;
  color: var(--desk-ink);
  border-top: 1px solid var(--desk-muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.shaft-token-mark {
  --token-brand: var(--desk-teal);
  --token-ink: var(--desk-white);
  position: relative;
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--token-ink);
  background: var(--token-brand);
  border: 2px solid var(--desk-ink);
  box-shadow: inset 0 -7px 0 rgba(3, 45, 40, 0.35), 3px 3px 0 var(--desk-ink);
  image-rendering: pixelated;
}

.shaft-token-glyph {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: currentColor;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  text-transform: none;
}

.shaft-token-glyph--word {
  max-width: 90%;
  font-size: 0.6rem;
  letter-spacing: -0.09em;
}

.shaft-token-glyph--window {
  width: 23px;
  height: 23px;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  place-items: stretch;
}

.shaft-token-glyph--window i { display: block; }

.shaft-token-glyph--window i:nth-child(1) { background: #f25022; }
.shaft-token-glyph--window i:nth-child(2) { background: #7fba00; }
.shaft-token-glyph--window i:nth-child(3) { background: #00a4ef; }
.shaft-token-glyph--window i:nth-child(4) { background: #ffb900; }

.shaft-token-glyph--round {
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0.66rem;
}

.shaft-token-glyph--angular { font-size: 0.58rem; }
.shaft-token-glyph--snow { font-size: 1.35rem; }
.shaft-token-glyph--tesla { font-family: Georgia, serif; font-size: 1.45rem; }

.shaft-token-glyph--palantir {
  width: 23px;
  height: 23px;
  border-top: 4px solid currentColor;
  border-radius: 50%;
}

.shaft-token-glyph--palantir::before,
.shaft-token-glyph--palantir::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.shaft-token-glyph--palantir::before {
  top: -9px;
  width: 10px;
  height: 10px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.shaft-token-glyph--palantir::after {
  bottom: 1px;
  width: 19px;
  height: 4px;
  border: solid currentColor;
  border-width: 0 4px 3px;
}

.shaft-token-glyph--apple {
  width: 19px;
  height: 20px;
  border-radius: 47% 47% 50% 50%;
  background: currentColor;
  color: transparent;
}

.shaft-token-glyph--apple::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 1px;
  width: 8px;
  height: 5px;
  border-radius: 8px 0;
  background: var(--token-ink);
  transform: rotate(-28deg);
}

.shaft-token-glyph--apple::after {
  content: "";
  position: absolute;
  top: 4px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--token-brand);
}

.shaft-token-glyph--eye {
  width: 27px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 55% 15% 55% 15%;
  transform: rotate(-8deg);
}

.shaft-token-glyph--eye::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.shaft-token-mark[data-ticker="intc"] { --token-brand: #0071c5; }
.shaft-token-mark[data-ticker="msft"] { --token-brand: #f3f3f3; --token-ink: #111; }
.shaft-token-mark[data-ticker="ge"] { --token-brand: #0870d8; }
.shaft-token-mark[data-ticker="amd"] { --token-brand: #ed1c24; }
.shaft-token-mark[data-ticker="pltr"] { --token-brand: #141414; }
.shaft-token-mark[data-ticker="snow"] { --token-brand: #29b5e8; }
.shaft-token-mark[data-ticker="tsla"] { --token-brand: #e82127; }
.shaft-token-mark[data-ticker="aapl"] { --token-brand: #55585b; }
.shaft-token-mark[data-ticker="qqq"] { --token-brand: #6538a5; }
.shaft-token-mark[data-ticker="nvda"] { --token-brand: #76b900; --token-ink: #101810; }

.overview-shaft-card .shaft-token-mark,
body main .tool-power-card .shaft-token-mark {
  color: var(--token-ink);
}

.overview-shaft-card .shaft-token-glyph,
body main .tool-power-card .shaft-token-glyph {
  color: inherit;
}

.overview-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.72fr);
  gap: 14px;
}

.overview-record-panel .system-equation {
  padding: 18px 20px 21px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.overview-record-panel .system-equation > b {
  display: none;
}

.overview-record-panel .system-equation article {
  padding: 14px;
  background: rgba(247, 251, 250, 0.72);
  border-width: 1px;
}

.overview-ledger-panel .overview-status {
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 0;
  background: transparent;
}

.overview-ledger-panel .overview-status > div {
  color: var(--desk-ink);
  background: rgba(247, 251, 250, 0.74);
  border-bottom: 1px solid var(--desk-muted);
}

.overview-ledger-panel .overview-status > div + div {
  border-left: 1px solid var(--desk-muted);
}

.overview-ledger-panel .overview-status span,
.overview-ledger-panel .overview-status small { color: var(--desk-muted); }
.overview-ledger-panel .overview-status strong { color: var(--desk-teal); }

body main .overview-ledger-panel .overview-status p {
  color: var(--desk-white);
  background: var(--desk-deep);
  border-top: 0;
}

.tool-power-route {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 8px;
}

.tool-power-route .shaft-token-mark {
  width: 30px;
  flex: 0 0 30px;
  box-shadow: inset 0 -5px 0 rgba(3, 45, 40, 0.35), 2px 2px 0 var(--desk-ink);
}

.tool-power-route .shaft-token-glyph--window { width: 17px; height: 17px; gap: 1px; }
.tool-power-route .shaft-token-glyph--round { width: 22px; height: 22px; font-size: 0.52rem; }
.tool-power-route .shaft-token-glyph--word,
.tool-power-route .shaft-token-glyph--angular { font-size: 0.46rem; }
.tool-power-route .shaft-token-glyph--snow,
.tool-power-route .shaft-token-glyph--tesla { font-size: 1rem; }
.tool-power-route .shaft-token-glyph--palantir { transform: scale(0.76); }
.tool-power-route .shaft-token-glyph--apple { transform: scale(0.78); }
.tool-power-route .shaft-token-glyph--eye { transform: rotate(-8deg) scale(0.78); }

.tool-power-route > div:not(.tool-route-marks) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body main .tool-power-route strong {
  min-height: 0;
  color: var(--desk-ink);
  overflow-wrap: anywhere;
  font-size: 0.72rem;
  line-height: 1.15;
}

.tool-power-route small {
  color: var(--desk-teal);
  font-size: 0.49rem;
  line-height: 1.2;
}

body main .utility-flow article span,
body main .process-grid li span {
  color: var(--desk-ink);
}

@media (min-width: 901px) and (max-width: 1380px) {
  body main .mint-layout {
    grid-template-columns: minmax(260px, 0.7fr) minmax(480px, 1.3fr);
  }

  body main .intro-panel {
    padding: 30px 24px 24px;
  }

  body main .intro-panel h1 {
    font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  }

  .overview-mark {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .overview-mark img {
    width: 86px;
  }

  .overview-mark dl {
    max-width: 230px;
  }

  .overview-shaft-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .overview-census { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-census > div:nth-child(4) { border-left: 0; border-top: 1px solid var(--desk-muted); }
  .overview-census > div:nth-child(5) { border-top: 1px solid var(--desk-muted); }
  .overview-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body main .mint-layout { grid-template-columns: 1fr; }
  .route-capacity-ledger { grid-template-columns: 1fr; }

  .overview-hero { grid-template-columns: 1fr; }
  .overview-mark {
    min-height: 0;
    grid-template-columns: 100px minmax(0, 1fr);
    border-top: 3px solid var(--desk-white);
    border-left: 0;
  }
  .overview-mark img { width: 100px; }
  .overview-shaft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body main .intro-panel h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .overview-copy { padding: 27px 20px; }
  body main .overview-copy h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .overview-mark { padding: 20px; grid-template-columns: 76px minmax(0, 1fr); }
  .overview-mark img { width: 76px; }
  .overview-catalog { padding: 9px; gap: 9px; }
  .catalog-panel-head { min-height: 0; padding: 15px; align-items: start; flex-direction: column; gap: 7px; }
  .catalog-panel-head h2 { font-size: 1.4rem; }
  body main .catalog-intro { padding: 13px 15px 0; }
  .overview-census { grid-template-columns: 1fr 1fr; }
  .overview-census > div { padding: 14px 15px; }
  .overview-census > div:nth-child(odd) { border-left: 0; }
  .overview-census > div:nth-child(even) { border-left: 1px solid var(--desk-muted); }
  .overview-census > div:nth-child(n + 3) { border-top: 1px solid var(--desk-muted); }
  .overview-shaft-grid { padding: 15px; grid-template-columns: 1fr; }
  .overview-shaft-card > .overview-route-tool-art { min-height: 68px; }
  .overview-route-tool-art img { width: 76px; height: 60px; }
  .route-capacity-ledger article { padding: 10px 12px; }
  .overview-record-panel .system-equation { padding: 15px; grid-template-columns: 1fr; }
  .overview-ledger-panel .overview-status { grid-template-columns: 1fr; }
  .overview-ledger-panel .overview-status > div + div { border-left: 0; }
}

/* Final label legibility pass — keep the pixel identity without tiny UI copy. */
body .brand-name::after,
body .site-nav a::before,
body .sidebar-census,
body .network-pill,
body main .intro-panel::before,
body main .micro-label,
body main .console-status,
body main .section-index,
body main .panel-code,
body main .serial-prefix,
body main .serial-state,
body main .reroll-picker label,
body main .tool-power-card dt,
body main .tool-power-route small,
body main .route-capacity-ledger span,
body main .route-capacity-ledger small {
  font-size: 0.68rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body .site-nav a {
  min-height: 44px;
  font-size: 0.78rem;
  line-height: 1.15;
  font-weight: 700;
}

body .sidebar-census {
  gap: 7px 10px;
  line-height: 1.35;
}

body .sidebar-census strong {
  font-size: 0.74rem;
}

body .desk-tape__track span,
body .desk-context {
  font-size: 0.7rem;
  line-height: 1.35;
  font-weight: 700;
}

body main .hero-specs > div {
  min-height: 53px;
  padding: 10px 12px;
  display: grid;
  align-content: center;
}

body main .hero-specs dt {
  font-size: 0.66rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.09em;
}

body main .hero-specs dd {
  margin-top: 5px;
  font-size: 0.9rem;
  line-height: 1.2;
}

body main .console-status {
  min-height: 26px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--desk-deep);
  background: var(--desk-teal-10);
  border: 1px solid var(--desk-soft);
}

body main .serial-prefix,
body main .serial-state {
  min-width: 70px;
  white-space: nowrap;
}

body main .serial-state {
  text-align: right;
}

body main .mint-button {
  padding: 10px 9px;
  gap: 7px;
}

body main .mint-button .button-main {
  font-size: 0.84rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

body main .mint-button .button-key {
  min-height: 30px;
  padding: 7px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.06em;
}

body main .reroll-picker > span,
body main .pixel-mint-frame #mintDisclaimer,
body main .wallet-action-status,
body main .tool-power-formula span,
body main .tool-power-formula small {
  font-size: 0.68rem;
  line-height: 1.55;
}

body main .tool-power-card > span {
  font-size: 0.68rem;
  line-height: 1.3;
  font-weight: 700;
}

body main .tool-power-card dd,
body main .tool-power-route strong,
body main .tool-power-formula strong {
  font-size: 0.78rem;
  line-height: 1.3;
}

@media (min-width: 1381px) and (max-height: 1000px) {
  body main .mint-console {
    padding: 14px;
  }

  body main .mint-console .console-head {
    min-height: 56px;
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
  }

  body main .pixel-mint-frame {
    padding: 8px;
  }

  body main .pixel-mint-frame .machine-stage {
    width: min(100%, 490px);
  }

  body main .serial-console,
  body main .action-row {
    margin-top: 8px;
  }
}

@media (max-width: 620px) {
  body .site-nav a {
    min-height: 42px;
    font-size: 0.74rem;
  }

  body main .mint-button .button-main {
    font-size: 0.84rem;
  }
}

/* Keep the requested slower reel cadence without changing the restored layout. */
body main #mint .machine-stage {
  width: min(100%, 500px);
  margin-inline: auto;
}

body main #mint .mint-status--assistive {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 901px) {
  body main #mint .pixel-mint-frame .machine-stage {
    width: min(100%, clamp(390px, calc(100vh - 460px), 500px));
  }

  body main #mint .pixel-mint-frame .mint-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  body main #mint .pixel-mint-frame .mint-button {
    min-height: 58px;
    padding: 8px 7px;
  }

  body main #mint .reroll-picker {
    margin-top: 7px;
    padding: 7px 8px;
  }

  body main #mint .reroll-picker > span {
    display: none;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  body main #mint .mint-console {
    padding: 11px;
  }

  body main #mint .mint-console .console-head {
    min-height: 48px;
    margin-bottom: 6px !important;
    padding-bottom: 7px !important;
  }

  body main #mint .pixel-mint-frame {
    margin-top: 6px;
    padding: 7px;
  }

  body main #mint .pixel-mint-frame .machine-stage {
    width: min(100%, clamp(300px, calc(100vh - 430px), 360px));
  }

  body main #mint .serial-console {
    min-height: 52px;
    margin-top: 6px;
    padding: 6px;
  }

  body main #mint .pixel-mint-frame .action-row {
    margin-top: 6px;
  }

  body main #mint .pixel-mint-frame .mint-button {
    min-height: 52px;
  }

  body main #mint .reroll-picker {
    margin-top: 6px;
    padding: 5px 7px;
  }

  body main #mint .reroll-picker select {
    min-height: 32px;
    padding-block: 5px;
  }
}

body main #mint .reel.is-spinning span {
  animation-duration: 140ms;
}

body main #mint .reel.is-locking {
  animation: serial-reel-lock 280ms steps(4, end);
}

@keyframes serial-reel-lock {
  0% { transform: translateY(-4px); filter: brightness(1.35); }
  35% { transform: translateY(4px); }
  65% { transform: translateY(-2px); }
  100% { transform: translateY(0); filter: brightness(1); }
}

/* Fusion Lab — same operator-desk language, one deterministic pairing workflow. */
body main .fusion-section {
  color: var(--desk-ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, var(--desk-teal-10) 3px 4px),
    var(--desk-white);
  border: 3px solid var(--desk-ink);
  box-shadow: var(--desk-inset), var(--desk-shadow);
}

body main .fusion-heading h2 {
  max-width: none;
}

body main .fusion-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(480px, 1.18fr);
  gap: 12px;
  align-items: stretch;
}

body main .fusion-concept-panel,
body main .fusion-terminal {
  min-width: 0;
  padding: 22px;
  color: var(--desk-ink);
  background: rgba(247, 251, 250, 0.9);
  border: 2px solid var(--desk-ink);
  box-shadow: 4px 5px 0 var(--desk-muted);
}

body main .fusion-concept-panel h3,
body main .fusion-terminal h3 {
  margin: 8px 0 16px;
  color: var(--desk-ink);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
}

body main .fusion-demo-equation,
body main .fusion-live-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  text-align: center;
}

body main .fusion-demo-equation {
  margin: 18px 0;
  padding: 12px;
  color: var(--desk-white);
  background: var(--desk-deep);
  border: 2px solid var(--desk-ink);
}

body main .fusion-demo-equation strong,
body main .fusion-demo-equation output {
  padding: 10px 8px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
  border: 1px solid var(--desk-soft);
}

body main .fusion-demo-equation output {
  color: var(--desk-ink);
  background: var(--desk-white);
}

body main .fusion-rule-list {
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

body main .fusion-rule-list li {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  border: 1px solid var(--desk-muted);
}

body main .fusion-rule-list li > b {
  display: grid;
  place-items: center;
  color: var(--desk-white);
  background: var(--desk-teal);
  border-right: 1px solid var(--desk-ink);
}

body main .fusion-rule-list li > span {
  padding: 9px 11px;
  font-size: 0.8rem;
  line-height: 1.3;
}

body main .fusion-rule-list li strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

body main .fusion-principles {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid var(--desk-ink);
}

body main .fusion-principles span {
  padding: 10px 8px;
  font-size: 0.66rem;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.08em;
}

body main .fusion-principles span + span {
  border-left: 1px solid var(--desk-ink);
}

body main .fusion-terminal > header {
  padding-bottom: 13px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--desk-ink);
}

body main .fusion-wallet-state {
  max-width: 220px;
  padding: 7px 9px;
  color: var(--desk-deep);
  background: var(--desk-teal-10);
  border: 1px solid var(--desk-muted);
  font-size: 0.62rem;
  line-height: 1.2;
  text-align: right;
  letter-spacing: 0.07em;
}

body main .fusion-wallet-state::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  display: inline-block;
  background: var(--desk-muted);
  border: 1px solid var(--desk-deep);
}

body main .fusion-wallet-state.is-connected::before {
  background: var(--desk-teal);
}

body main .fusion-connect-button,
body main .fusion-action-button {
  min-height: 48px;
  color: var(--desk-white);
  background: var(--desk-teal);
  border: 2px solid var(--desk-ink);
  border-radius: 0;
  box-shadow: 4px 5px 0 var(--desk-ink);
  cursor: pointer;
}

body main .fusion-connect-button {
  width: 100%;
  margin-top: 14px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

body main .fusion-connect-button:hover,
body main .fusion-connect-button:focus-visible {
  transform: translate(-1px, -1px);
  background: var(--desk-deep);
}

body main .fusion-ownership-message {
  min-height: 42px;
  margin: 12px 0;
  padding: 9px 11px;
  border-left: 4px solid var(--desk-teal);
  background: var(--desk-teal-10);
  font-size: 0.76rem;
}

body main .fusion-slots {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

body main .fusion-slots label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--desk-teal);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

body main .fusion-slots select {
  width: 100%;
  min-height: 46px;
  padding: 8px 28px 8px 10px;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 2px solid var(--desk-ink);
  border-radius: 0;
  font: inherit;
  font-size: 0.72rem;
  text-overflow: ellipsis;
}

body main .fusion-slots select:disabled {
  color: var(--desk-muted);
  background: var(--desk-paper-deep);
}

body main .fusion-link-mark {
  min-height: 46px;
  display: grid;
  place-items: center;
  color: var(--desk-white);
  background: var(--desk-deep);
  border: 2px solid var(--desk-ink);
  font-size: 1.25rem;
}

body main .fusion-result {
  margin-top: 14px;
  padding: 12px;
  border: 2px solid var(--desk-ink);
  background: var(--desk-teal-10);
}

body main .fusion-live-equation {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--desk-ink);
}

body main .fusion-live-equation span,
body main .fusion-live-equation output {
  min-width: 0;
  padding: 8px 5px;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 2px solid var(--desk-ink);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1;
}

body main .fusion-live-equation output {
  color: var(--desk-white);
  background: var(--desk-teal);
}

body main .fusion-result[data-signal="high"] .fusion-live-equation output,
body main .fusion-result[data-signal="triple"] .fusion-live-equation output {
  outline: 4px double var(--desk-ink);
  outline-offset: -7px;
}

body main .fusion-result[data-signal="corrupted"] .fusion-live-equation output,
body main .fusion-result[data-signal="glitch"] .fusion-live-equation output {
  background: var(--desk-deep);
}

body main .fusion-result dl {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--desk-muted);
}

body main .fusion-result dl > div {
  min-width: 0;
  padding: 10px;
}

body main .fusion-result dl > div:nth-child(even) {
  border-left: 1px solid var(--desk-muted);
}

body main .fusion-result dl > div:nth-child(n + 3) {
  border-top: 1px solid var(--desk-muted);
}

body main .fusion-result dt {
  color: var(--desk-muted);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
}

body main .fusion-result dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  line-height: 1.2;
}

body main .fusion-action-button {
  width: 100%;
  margin-top: 12px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body main .fusion-action-button span {
  font-size: 0.88rem;
}

body main .fusion-action-button small {
  padding: 6px 8px;
  color: var(--desk-ink);
  background: var(--desk-white);
  border: 1px solid var(--desk-ink);
  font-size: 0.56rem;
  line-height: 1.2;
}

body main .fusion-action-button:disabled {
  color: var(--desk-muted);
  background: var(--desk-paper-deep);
  cursor: not-allowed;
  box-shadow: 3px 4px 0 var(--desk-muted);
}

body main .fusion-disclaimer {
  margin: 11px 0 0;
  color: var(--desk-muted);
  font-size: 0.66rem;
}

body main .fusion-guardrail {
  margin-top: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--desk-white);
  background: var(--desk-deep);
  border: 2px solid var(--desk-teal);
}

body main .fusion-guardrail strong {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

body main .fusion-guardrail span {
  max-width: 60ch;
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: right;
}

@media (max-width: 1080px) {
  body main .fusion-workbench {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body main .fusion-concept-panel,
  body main .fusion-terminal {
    padding: 16px;
  }

  body main .fusion-terminal > header,
  body main .fusion-guardrail {
    align-items: stretch;
    flex-direction: column;
  }

  body main .fusion-wallet-state,
  body main .fusion-guardrail span {
    max-width: none;
    text-align: left;
  }

  body main .fusion-slots {
    grid-template-columns: 1fr;
  }

  body main .fusion-link-mark {
    min-height: 34px;
  }

  body main .fusion-principles,
  body main .fusion-result dl {
    grid-template-columns: 1fr;
  }

  body main .fusion-principles span + span,
  body main .fusion-result dl > div:nth-child(even) {
    border-left: 0;
    border-top: 1px solid var(--desk-ink);
  }

  body main .fusion-result dl > div + div {
    border-top: 1px solid var(--desk-muted);
  }

  body main .fusion-action-button {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  body main .fusion-connect-button {
    transition: none;
  }
}

body main .trait-readout > div.is-entering {
  animation: terminal-row-lock 180ms steps(3, end) both;
}

@keyframes terminal-row-lock {
  0% { opacity: 0; transform: translateX(-6px); }
  45% { opacity: 1; transform: translateX(3px); }
  100% { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  body main .trait-readout > div.is-entering {
    animation: none;
  }
}

/* Mint Desk workbench — one framed machine station with a readable control face. */
body main #mint.mint-layout {
  max-width: 1460px;
  gap: 0;
  align-items: stretch;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, var(--desk-teal-10) 3px 4px),
    var(--desk-white);
  border: 3px solid var(--desk-ink);
  box-shadow: var(--desk-inset), var(--desk-shadow);
}

body main #mint > .intro-panel,
body main #mint > .mint-console {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  position: relative;
  top: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body main #mint > .intro-panel::after {
  display: none;
}

body main #mint > .mint-console {
  border-left: 3px solid var(--desk-ink);
}

body main #mint .pixel-mint-frame {
  width: 100%;
  margin-inline: 0;
}

body main #mint .intro-panel .lead,
body main #mint .mint-guide__questions p,
body main #mint .mint-guide__facts dt,
body main #mint .mint-guide__facts dd,
body main #mint .micro-label,
body main #mint .console-status,
body main #mint .serial-prefix,
body main #mint .serial-state,
body main #mint .mint-button .button-key,
body main #mint .reroll-picker label,
body main #mint .reroll-picker select {
  font-family: Consolas, "Courier New", monospace;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums slashed-zero;
}

body main #mint .intro-panel .lead {
  font-size: 0.94rem;
  line-height: 1.55;
}

body main #mint .mint-guide__questions summary {
  min-height: 38px;
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.025em;
}

body main #mint .mint-guide__questions p {
  font-size: 0.73rem;
  line-height: 1.5;
}

body main #mint .mint-guide__facts > div {
  min-height: 39px;
  padding: 8px 10px;
}

body main #mint .mint-guide__facts dt {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body main #mint .mint-guide__facts dd {
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
}

body main #mint .micro-label,
body main #mint .console-status,
body main #mint .serial-prefix,
body main #mint .serial-state,
body main #mint .reroll-picker label {
  font-size: 0.69rem;
  line-height: 1.25;
  letter-spacing: 0.055em;
}

body main #mint .pixel-mint-frame .mint-button {
  min-width: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: stretch;
  gap: 6px;
  text-align: center;
}

body main #mint .mint-button .button-main {
  font-size: 0.82rem;
  line-height: 1.2;
  overflow-wrap: normal;
}

body main #mint .mint-button .button-key {
  width: 100%;
  min-height: 29px;
  margin: 0;
  padding: 6px 5px;
  font-size: 0.7rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.025em;
  white-space: normal;
}

body main #mint .reroll-picker select {
  font-size: 0.74rem;
  line-height: 1.3;
}

@media (min-width: 901px) {
  body main #mint.mint-layout {
    grid-template-columns: minmax(350px, 0.82fr) minmax(600px, 1.18fr);
  }
}

@media (max-width: 1120px) and (min-width: 901px) {
  body main #mint.mint-layout {
    grid-template-columns: 1fr;
  }

  body main #mint > .mint-console {
    border-top: 3px solid var(--desk-ink);
    border-left: 0;
  }
}

@media (max-width: 900px) {
  body main #mint > .mint-console {
    border-top: 3px solid var(--desk-ink);
    border-left: 0;
  }
}
