:root {
  color-scheme: dark;
  --bg: #030806;
  --surface: #08130d;
  --surface-2: #0c1c12;
  --surface-3: #12291a;
  --well: #040d08;
  --line: #193d27;
  --line-2: #245536;
  --line-3: #39794c;
  --text: #e4ffeb;
  --text-2: #a3c9ae;
  --text-3: #79a686;
  --ice: #69ff8d;
  --ice-2: #b5ffc6;
  --ice-ink: #021707;
  --mint: #5fe0b0;
  --amber: #f2b65c;
  --rose: #f2788f;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px; font: 15px/1.6 var(--sans); color: var(--text);
  background: radial-gradient(1100px 520px at 70% -180px, #07351a 0%, transparent 70%), var(--bg);
  background-repeat: no-repeat; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
code { font-family: var(--mono); }
.icon { width: 16px; height: 16px; display: inline-block; vertical-align: middle; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.pos { color: var(--mint) !important; }
.neg { color: var(--rose) !important; }
.positive { color: var(--mint); }
.negative { color: var(--rose); }

/* Buttons */
.button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: 10px;
  background: var(--surface-2); color: var(--text); font: 600 13.5px/1 var(--sans); white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.button:hover, .icon-button:hover { background: var(--surface-3); border-color: #54b874; }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--ice); border-color: var(--ice); color: var(--ice-ink); }
.button.primary:hover { background: var(--ice-2); border-color: var(--ice-2); }
.button.lg { height: 48px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.button.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.button .icon { width: 15px; height: 15px; }
.icon-button { width: 38px; padding: 0; }
.icon-button.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.icon-button.ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.link-button { background: none; border: 0; padding: 0; color: var(--ice); font: inherit; }
.link-button:hover { text-decoration: underline; }
.text-link { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 8px; color: var(--ice); font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.text-link:hover { color: var(--ice-2); }
.text-link:hover .icon { transform: translateX(2px); }
.text-link .icon { transition: transform .15s; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
  background: #030806cc; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.bar {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px; min-height: 66px;
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 16px; letter-spacing: -.015em; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.brand img { border-radius: 9px; }
.brand b { color: var(--text); font-weight: 650; }
.tabs { display: flex; align-items: center; gap: 2px; min-width: 0; }
.tab { padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.tab-short { display: none; }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.chain-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--text-2);
  font: 500 12px/1 var(--mono); white-space: nowrap;
}
.chain-pill:hover { border-color: var(--line-3); color: var(--text); }
.chain-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px #5fe0b01f; }
.chain-pill em { font-style: normal; color: var(--text-3); }
.wallet-notice {
  max-width: calc(var(--wrap) - 48px); width: calc(100% - 48px); margin: 0 auto 12px; padding: 10px 10px 10px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  border: 1px solid #2a4566; border-radius: 12px; background: #0d1a2b; color: #d4e6fb; font-size: 14px;
}
.wallet-notice > span { flex: 1 1 240px; }

/* Layout */
.workspace { width: min(var(--wrap) - 48px, calc(100% - 48px)); margin: 0 auto; }
.page { padding-top: 40px; }
#page-overview { padding-top: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--ice); font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow i { width: 6px; height: 6px; border-radius: 1px; background: var(--ice); box-shadow: 0 0 12px #69ff8d99; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr); align-items: center; gap: 52px;
  min-height: 580px; padding: clamp(28px,5vw,64px);
  border: 1px solid var(--line-2); border-radius: 22px;
  background: radial-gradient(900px 420px at 90% -5%, #132741 0%, transparent 62%), linear-gradient(180deg, #0b121d 0%, #080d15 100%);
}
.life-field {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 44%, #000 78%);
  mask-image: linear-gradient(90deg, transparent 44%, #000 78%);
  opacity: .8;
}
.hero-copy { position: relative; min-width: 0; }
.hero h1 {
  margin: 22px 0 22px; font: 650 clamp(50px,7.2vw,96px)/.94 var(--sans); letter-spacing: -.05em; color: var(--text);
}
.hero h1 em {
  font-style: normal; display: inline-block; padding-right: .04em;
  background: linear-gradient(95deg, #e2f3ff 0%, #69ff8d 45%, #6fb5f2 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 31em; color: var(--text-2); font-size: clamp(16px,1.35vw,18px); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.ca-row {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 5px 5px 5px 14px; max-width: 100%;
  border: 1px solid var(--line-2); border-radius: 12px; background: #0a111bd9; font: 500 13.5px var(--mono);
}
.ca-label { color: var(--text-3); }
.ca-row code { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.replay-card {
  position: relative; min-width: 0; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  background: #0a1019e6; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 40px 90px -30px #000000d0, 0 0 0 1px #ffffff05 inset;
}
.replay-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.replay-head strong { font-size: 14.5px; font-weight: 600; }
.replay-head .mono { margin-left: auto; color: var(--text-2); font-size: 13px; }
.live { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px 3px 8px; border-radius: 999px; background: #5fe0b014; color: var(--mint); font: 600 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.replay-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.replay-stats > div { padding: 12px 18px; min-width: 0; }
.replay-stats > div + div { border-left: 1px solid var(--line); }
.replay-stats small { display: block; color: var(--text-3); font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.replay-stats strong { display: block; margin-top: 3px; font: 600 22px/1.2 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hero-chart { height: 96px; padding: 12px 14px 2px; }
.hero-chart canvas { display: block; width: 100%; height: 100%; }
.replay-agents { list-style: none; margin: 0; padding: 6px 8px 8px; display: grid; gap: 1px; }
.agent-row {
  display: grid; grid-template-columns: 28px minmax(0,1fr) minmax(60px,34%) 52px; align-items: center; gap: 12px;
  padding: 6px 10px; border-radius: 9px; transition: opacity .5s, background .3s;
}
.agent-glyph { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid; font: 600 12px var(--mono); transition: all .4s; }
.agent-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.agent-name small { margin-left: 8px; color: var(--text-3); font: 400 12px var(--mono); }
.agent-bar { height: 6px; border-radius: 99px; background: #18222f; overflow: hidden; }
.agent-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--mint); transition: width .9s cubic-bezier(.2,.7,.2,1), background .4s; }
.agent-cr { text-align: right; color: var(--text-2); font: 500 12.5px var(--mono); font-variant-numeric: tabular-nums; }
.agent-row.alive .agent-glyph { color: var(--mint); border-color: #2a6e58; background: #0f2620; }
.agent-row.critical .agent-glyph { color: var(--amber); border-color: #74592a; background: #2b2110; }
.agent-row.critical .agent-bar i { background: var(--amber); }
.agent-row.critical .agent-cr { color: var(--amber); }
.agent-row.dead { opacity: .55; }
.agent-row.dead .agent-glyph { color: var(--rose); border-color: #6a2f40; background: #2a141b; }
.agent-row.dead .agent-cr { color: var(--rose); }
.agent-row.pending { opacity: .3; }
.agent-row.pending .agent-glyph { color: var(--text-3); border-style: dashed; border-color: var(--line-3); background: transparent; }
.replay-foot { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; gap: 10px; padding: 13px 18px; border-top: 1px solid var(--line); color: var(--ice); font-size: 14px; font-weight: 500; }
.replay-foot:hover { background: var(--surface-2); color: var(--ice-2); }

/* Proof strip */
.proof-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.proof { padding: 16px 20px; min-width: 0; }
.proof + .proof { border-left: 1px solid var(--line); }
.proof > span { display: block; color: var(--text-3); font: 500 11.5px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.proof strong { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.proof a { color: var(--ice); }
.proof a:hover { text-decoration: underline; }

/* Overview blocks */
.block { margin-top: 104px; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.block h2, .holder-band h2 { margin-top: 14px; font: 650 clamp(28px,3.6vw,44px)/1.08 var(--sans); letter-spacing: -.035em; }
.cycle { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px,.85fr); gap: 16px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.step { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 20px; align-items: start; padding: 26px 26px; }
.step + .step { border-top: 1px solid var(--line); }
.step-no { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 11px; color: var(--ice); font: 500 13px var(--mono); background: var(--well); }
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin: 6px 0 6px; }
.step p { color: var(--text-2); max-width: 52ch; }
.step-fig { align-self: center; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--text-3); font: 500 13px var(--mono); white-space: nowrap; background: var(--well); }
.step-fig b { color: var(--text); font-weight: 600; }
.ledger { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.ledger-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); color: var(--text-3); font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ledger dl { margin: 0; padding: 4px 22px 8px; }
.ledger dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; }
.ledger dl > div + div { border-top: 1px solid var(--line); }
.ledger dt { color: var(--text-2); }
.ledger dd { margin: 0; text-align: right; font: 600 16px var(--mono); color: var(--text); }
.ledger dd small { display: block; margin-top: 2px; color: var(--text-3); font: 400 12px var(--sans); }

.modes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.mode {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; min-width: 0;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  transition: border-color .2s, background .2s, transform .2s;
}
.mode:hover { border-color: var(--line-3); background: var(--surface-2); transform: translateY(-2px); }
.mode-tag { align-self: flex-start; padding: 4px 10px; border: 1px solid var(--line-3); border-radius: 999px; color: var(--text-2); font: 500 12px var(--mono); }
.mode-tag.open { color: var(--mint); border-color: #2a6e58; background: #0f262080; }
.mode h3 { margin-top: 8px; font-size: 23px; font-weight: 600; letter-spacing: -.025em; }
.mode p { flex: 1; color: var(--text-2); }
.mode-go { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; color: var(--ice); font-weight: 500; font-size: 14.5px; }
.mode:hover .mode-go .icon { transform: translateX(3px); }
.mode-go .icon { transition: transform .2s; }

.holder-band {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 28px;
  margin-top: 104px; padding: 34px 36px; border: 1px solid #22405f; border-radius: 22px;
  background: radial-gradient(560px 260px at 0% 0%, #14304e 0%, transparent 72%), var(--surface);
}
.holder-mark { border-radius: 16px; box-shadow: 0 0 0 1px #2c4a6c, 0 18px 40px -12px #000; }
.holder-band h2 { margin-top: 12px; font-size: clamp(24px,2.8vw,34px); }
.holder-band p { margin-top: 8px; color: var(--text-2); max-width: 62ch; }
.holder-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.dev { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 48px; align-items: start; }
.dev h2 { font-size: clamp(26px,3vw,36px); }
.dev-copy p { margin-top: 14px; color: var(--text-2); max-width: 56ch; }
.command { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 24px; padding: 6px 6px 6px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #05080d; }
.command code { color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.command code span { color: var(--ice); margin-right: 4px; }
.dev-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.dev-links > a, .dev-links > button {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 16px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 14.5px; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.dev-links > a:hover, .dev-links > button:hover { border-color: var(--line-3); background: var(--surface-2); }
.dev-links .icon { color: var(--ice); width: 17px; height: 17px; }

/* Inner pages */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.page-head h1 { margin: 14px 0 10px; font: 650 clamp(34px,4.6vw,56px)/1.04 var(--sans); letter-spacing: -.04em; }
.page-head p { color: var(--text-2); font-size: 15.5px; }
.controls, .events-actions, .transport-controls { display: flex; align-items: center; gap: 10px; }
.controls { flex: none; }
.select-wrap { position: relative; display: inline-flex; }
.select-wrap::after { content: ''; position: absolute; top: 15px; right: 15px; width: 6px; height: 6px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg); pointer-events: none; }
select, .chain-form input, #operatorInput, .copy-address {
  appearance: none; height: 40px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: 10px;
  background: var(--well); color: var(--text); font-size: 14px;
}
select { padding-right: 38px; font-weight: 500; background: var(--surface-2); min-width: 190px; }
select option, select optgroup { background: #08130d; color: var(--text); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; min-height: 64px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.panel-head p { margin-top: 2px; color: var(--text-3); font-size: 13.5px; }
.badge { padding: 5px 10px; border: 1px solid var(--line-3); border-radius: 8px; background: var(--well); color: var(--ice); font: 500 12px var(--mono); letter-spacing: .04em; white-space: nowrap; }
.message { margin: 0 0 14px; padding: 11px 16px; border: 1px solid #24405f; border-radius: 12px; background: #0c1828; color: var(--ice-2); font: 500 13.5px/1.5 var(--mono); }
.message:empty { display: none; }
.access-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px 12px 12px 16px; border: 1px solid #2a4566; border-radius: 12px; background: #0d1a2b; color: #d4e6fb; font-size: 14px; }
.access-notice > div { display: flex; align-items: center; gap: 10px; }
.access-notice .icon { color: var(--ice); }

.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.stat { padding: 18px 22px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-label { color: var(--text-3); font: 500 11.5px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.stat > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; }
.stat strong { font: 600 34px/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat small { color: var(--text-3); font-size: 13px; }
.grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(300px,1fr); gap: 16px; align-items: start; }

.map-body { position: relative; height: 420px; overflow: hidden; background: #0a111c; }
#map, .map-nodes { position: absolute; inset: 0; width: 100%; height: 100%; }
.node {
  position: absolute; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; transform: translate(-50%,-50%);
  border: 1.5px solid #2f8a6c; border-radius: 11px; background: #0f2620; color: var(--mint); font: 600 13px var(--mono);
  box-shadow: 0 0 0 5px #5fe0b00d, 0 0 22px #5fe0b026; transition: border-color .15s, box-shadow .15s;
}
.node.critical { color: var(--amber); border-color: #9b7430; background: #2b2110; box-shadow: 0 0 0 5px #f2b65c0d, 0 0 22px #f2b65c22; }
.node.dead { color: var(--rose); border-color: #6a2f40; background: #24121a; box-shadow: none; }
.node.selected { outline: 2px solid var(--ice); outline-offset: 4px; border-radius: 11px; }
.node:hover { z-index: 3; border-color: var(--text); }
.node .node-name { position: absolute; top: 42px; padding: 1px 6px; border-radius: 5px; background: #0a111cdd; color: var(--text-2); font: 500 11px var(--mono); white-space: nowrap; pointer-events: none; }
.node.dead .node-name { color: #c98e9c; }
.map-key { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 16px; color: var(--text-3); font: 500 11.5px var(--mono); pointer-events: none; }
.map-key span, .history-key span { display: inline-flex; align-items: center; gap: 6px; }
.map-key i, .history-key i { display: block; width: 9px; height: 9px; border-radius: 3px; background: var(--mint); }
.map-key .key-critical { background: var(--amber); }
.map-key .key-dead { background: var(--rose); }
.transport { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.scrub { flex: 1; min-width: 20px; display: flex; }
input[type="range"] { width: 100%; height: 18px; margin: 0; accent-color: var(--ice); cursor: pointer; }
.timecode { color: var(--text-2); font: 500 13px var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }

.profile-main { padding: 20px 20px 0; }
.profile-top { display: flex; align-items: center; gap: 10px; }
.profile-name { font-size: 30px; font-weight: 650; letter-spacing: -.035em; line-height: 1.1; overflow-wrap: anywhere; }
.status { margin-left: auto; padding: 4px 10px; border: 1px solid #2a6e58; border-radius: 999px; background: #0f2620; color: var(--mint); font: 600 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.status.critical { color: var(--amber); border-color: #74592a; background: #2b2110; }
.status.dead { color: var(--rose); border-color: #6a2f40; background: #2a141b; }
.profile-line { margin-top: 8px; color: var(--text-3); font: 500 12px/1.5 var(--mono); letter-spacing: .02em; }
.reserve-box { margin: 18px 0 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--well); }
.reserve-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; color: var(--text-3); font: 500 12px var(--mono); letter-spacing: .05em; }
.reserve-row strong { color: var(--text); font-size: 22px; letter-spacing: -.02em; }
.reserve-bar, .trait-bar { display: block; width: 100%; height: 6px; border-radius: 99px; background: #18222f; overflow: hidden; }
.reserve-bar i, .trait-bar i { display: block; height: 100%; border-radius: 99px; background: var(--ice); }
.reserve-bar.critical i { background: var(--amber); }
.reserve-bar.dead i { background: var(--rose); }
.trait-bar i { background: #6f9bd0; }
.trait { display: grid; grid-template-columns: 96px minmax(0,1fr) 48px; align-items: center; gap: 12px; padding: 8px 0; color: var(--text-2); font-size: 13.5px; }
.trait code { text-align: right; color: var(--text); font-size: 13px; }
.profile-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 10px; border-top: 1px solid var(--line); }
.profile-meta div { padding: 12px 4px 2px 0; }
.profile-meta small { display: block; margin-bottom: 2px; color: var(--text-3); font-size: 12.5px; }
.profile-meta strong { font: 600 17px var(--mono); }
.forecast { margin: 14px 20px 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-3); font: 500 13px var(--mono); }
.forecast strong { color: var(--ice); font-weight: 600; }

.observation-panel, .history-panel { margin: 16px 0; }
.source-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.source-row strong { font-weight: 600; }
.source-row span { color: var(--text-2); text-align: right; font-family: var(--mono); font-size: 13.5px; }
.source-row a, .owner-row a, .chain-tx a { color: var(--ice); }
.source-row a:hover, .owner-row a:hover, .chain-tx a:hover { text-decoration: underline; }
.post-list { max-height: 300px; overflow: auto; }
.post { padding: 12px 20px; border-bottom: 1px solid var(--line); }
.post:last-child, .source-row:last-child { border-bottom: 0; }
.post-by { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ice); font: 500 12.5px var(--mono); }
.post-by small { color: var(--text-3); font: inherit; text-transform: uppercase; letter-spacing: .05em; }
.post p { margin-top: 4px; color: var(--text-2); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.post a:hover { text-decoration: underline; }
.empty { padding: 16px 20px; color: var(--text-3); font-size: 14px; }

.history-cells { display: grid; grid-template-columns: repeat(auto-fill,minmax(36px,1fr)); gap: 6px; padding: 20px; }
.history-cell { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: #0c1c12; color: var(--text-2); font: 500 11.5px var(--mono); transition: border-color .15s; }
.history-cell:hover { border-color: var(--line-3); }
.history-cell.cell-birth, .history-key .cell-birth { background: #10302a; border-color: #2f8a6c; color: #c8fbe9; }
.history-cell.cell-death, .history-key .cell-death { background: #36161f; border-color: #8a3a4d; color: #ffd9e1; }
.history-key .cell-stable { background: #2a3a52; }
.history-cell[aria-current="true"] { outline: 2px solid var(--ice); outline-offset: 2px; }
.history-key { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-3); font: 500 12px var(--mono); }
.history-selection { padding: 0 20px 20px; color: var(--text-2); font: 500 13.5px var(--mono); }
.event-list { max-height: 540px; overflow: auto; }
.event { display: grid; grid-template-columns: 52px 22px minmax(0,1fr); align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.event-epoch { color: var(--text-3); font: 500 12.5px var(--mono); }
.event .icon { color: var(--mint); }
.event.loss .icon, .event.death .icon { color: var(--rose); }
.event.quarantine .icon { color: var(--amber); }
.event.settle .icon { color: var(--ice); }
.event strong { font-size: 14.5px; font-weight: 600; }
.event p { margin-top: 1px; color: var(--text-2); font-size: 13.5px; overflow-wrap: anywhere; }

.chain-panel { margin-bottom: 16px; }
.chain-controls { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 16px 20px; }
.chain-form { display: grid; gap: 6px; color: var(--text-3); font-size: 12.5px; }
.chain-form > div { display: flex; gap: 8px; }
.chain-form input { width: 150px; min-width: 0; font-family: var(--mono); }
.chain-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.owner-row, .chain-tx { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--text-2); font: 500 13px/1.4 var(--mono); }
.chain-tx code { overflow-wrap: anywhere; }

/* Docs */
.docs { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 40px; align-items: start; }
.docs-toc { position: sticky; top: 96px; display: grid; gap: 2px; }
.docs-toc > span { margin: 0 0 8px 12px; color: var(--text-3); font: 500 11.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.docs-toc a { padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-size: 14.5px; }
.docs-toc a:hover { background: var(--surface-2); color: var(--text); }
.docs-body { padding: 8px 40px 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.docs-body section { padding: 28px 0; scroll-margin-top: 96px; }
.docs-body section + section { border-top: 1px solid var(--line); }
.doc-no { color: var(--ice); font: 500 13px var(--mono); }
.docs-body h2 { margin: 6px 0 12px; font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.docs-body p { max-width: 68ch; color: var(--text-2); font-size: 16px; line-height: 1.72; }
.docs-body p + p { margin-top: 12px; }
.doc-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 26px; border-top: 1px solid var(--line); }
.doc-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; font-weight: 500; transition: border-color .15s, background .15s; }
.doc-links a:hover { border-color: var(--line-3); background: var(--surface-2); }
.doc-links .icon { color: var(--ice); }

/* Access */
.access-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,1fr); align-items: center; gap: clamp(28px,5vw,72px); padding: 28px 0 8px; }
.access-intro h1 { margin: 18px 0 20px; font: 650 clamp(44px,6vw,82px)/.98 var(--sans); letter-spacing: -.05em; }
.access-intro h1 em { font-style: normal; color: var(--ice); }
.access-intro > p { max-width: 44ch; color: var(--text-2); font-size: 16.5px; }
.access-perks { list-style: none; margin: 26px 0 28px; padding: 0; display: grid; gap: 12px; }
.access-perks li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.access-perks .icon { width: 30px; height: 30px; padding: 6px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--ice); background: var(--surface); }
.access-card { border: 1px solid var(--line-2); border-radius: 22px; background: radial-gradient(420px 200px at 20% -10%, #14294299 0%, transparent 70%), var(--surface); box-shadow: 0 40px 90px -40px #000; overflow: hidden; }
.access-card-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.access-card-head img { border-radius: 12px; }
.access-card-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.access-card-head p { color: var(--text-3); font-size: 13.5px; }
.access-chip { margin-left: auto; padding: 5px 11px; border: 1px solid var(--line-3); border-radius: 999px; background: var(--surface-2); color: var(--text-2); font: 600 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.access-chip.verified { color: var(--mint); border-color: #2a6e58; background: #0f2620; }
.access-chip.insufficient, .access-chip.offline { color: var(--amber); border-color: #74592a; background: #2b2110; }
.access-card dl { margin: 0; padding: 6px 24px; }
.access-card dl > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.access-card dl > div + div { border-top: 1px solid var(--line); }
.access-card dt { flex: none; color: var(--text-3); font-size: 14px; }
.access-card dd { margin: 0; text-align: right; font: 500 13.5px/1.45 var(--mono); overflow-wrap: anywhere; }
#accessTokenAddress { font: inherit; }
.access-feedback { padding: 4px 24px 0; color: var(--text-2); font-size: 14px; }
.access-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 24px 24px; }

/* Footer and dialog */
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 104px; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 600; }
.foot-brand img { border-radius: 6px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.footer-links > a { display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--text); }
.footer-links span a { color: var(--text-2); }
.footer-links .icon { width: 14px; height: 14px; }
dialog { width: min(calc(100% - 32px),500px); padding: 20px 22px; border: 1px solid var(--line-3); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 40px 100px -20px #000; }
dialog::backdrop { background: #03060acc; backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dialog-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
#modalBody p { margin: 8px 0; color: var(--text-2); }
#modalBody strong, #modalBody code, #modalBody a { color: var(--text); }
#modalBody a { text-decoration: underline; }
#modalBody > div > .button { margin-top: 8px; }
#modalBody form { display: grid; gap: 8px; margin: 14px 0 4px; }
#modalBody form label { color: var(--text-3); font-size: 13px; }
#modalBody form .button { justify-self: start; }
#operatorInput, .copy-address { width: 100%; font-family: var(--mono); }
.copy-address { margin-top: 6px; }

/* Responsive */
@media (max-width: 1180px) {
  .bar { gap: 18px; }
  .chain-pill span { display: none; }
  .hero { grid-template-columns: minmax(0,1fr) minmax(340px,.95fr); gap: 36px; }
}
@media (max-width: 1020px) {
  .cycle, .dev { grid-template-columns: minmax(0,1fr); }
  .dev { gap: 28px; }
  .grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 920px) {
  .bar { grid-template-columns: auto minmax(0,1fr); grid-template-areas: "brand actions" "tabs tabs"; row-gap: 0; padding-top: 10px; }
  .brand { grid-area: brand; }
  .bar-actions { grid-area: actions; justify-self: end; }
  .tabs { grid-area: tabs; margin: 8px -24px 0; padding: 0 20px 10px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  html { scroll-padding-top: 130px; }
  .hero { grid-template-columns: minmax(0,1fr); min-height: 0; gap: 36px; }
  .life-field { -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 75%); mask-image: linear-gradient(180deg, transparent 30%, #000 75%); opacity: .6; }
  .replay-card { max-width: 620px; }
  .proof-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .proof:nth-child(3) { border-left: 0; }
  .proof:nth-child(n+3) { border-top: 1px solid var(--line); }
  .modes { grid-template-columns: minmax(0,1fr); }
  .holder-band { grid-template-columns: auto minmax(0,1fr); }
  .holder-actions { grid-column: 1 / -1; }
  .docs { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .docs-toc { position: static; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; }
  .docs-toc::-webkit-scrollbar { display: none; }
  .docs-toc > span { display: none; }
  .docs-toc a { flex: none; border: 1px solid var(--line-2); font-size: 13.5px; }
  .access-layout { grid-template-columns: minmax(0,1fr); }
  .docs-body section { scroll-margin-top: 140px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .bar { padding: 8px 16px 0; min-height: 58px; }
  .tabs { margin: 6px -16px 0; padding: 0 12px 8px; }
  .tab { padding: 7px 10px; font-size: 13.5px; }
  .tab-long { display: none; }
  .tab-short { display: inline; }
  .chain-pill { display: none; }
  .brand { font-size: 15px; gap: 9px; }
  .brand img { width: 30px; height: 30px; }
  .button.wallet { height: 36px; padding: 0 12px; font-size: 13px; }
  .wallet-notice { width: calc(100% - 32px); }
  .workspace { width: calc(100% - 32px); }
  .page { padding-top: 28px; }
  #page-overview { padding-top: 16px; }
  .hero { padding: 28px 20px 20px; border-radius: 18px; gap: 28px; }
  .hero h1 { font-size: clamp(46px,13.5vw,66px); margin: 18px 0 16px; }
  .lede { font-size: 16px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .button { flex: 1 1 auto; }
  .ca-row { display: flex; }
  .replay-head { padding: 12px 14px; }
  .replay-stats > div { padding: 10px 12px; }
  .replay-stats small { font-size: 10.5px; letter-spacing: .03em; }
  .replay-stats strong { font-size: 19px; }
  .hero-chart { height: 80px; padding: 10px 10px 0; }
  .replay-agents { padding: 4px 4px 6px; }
  .agent-row { grid-template-columns: 26px minmax(0,1fr) 26% 46px; gap: 9px; padding: 6px 8px; }
  .agent-glyph { width: 26px; height: 26px; }
  .agent-name { font-size: 13.5px; }
  .agent-name small { margin-left: 6px; font-size: 11px; }
  .replay-foot { padding: 12px 14px; }
  .proof { padding: 14px 14px; }
  .proof > span { font-size: 10.5px; letter-spacing: .05em; }
  .proof strong { font-size: 14px; }
  .block, .holder-band { margin-top: 72px; }
  .block-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
  .step { grid-template-columns: 40px minmax(0,1fr); gap: 14px; padding: 20px 18px; }
  .step-fig { grid-column: 2; justify-self: start; }
  .step-no { width: 36px; height: 36px; }
  .ledger dl, .ledger-head { padding-inline: 18px; }
  .mode { padding: 22px 20px; }
  .holder-band { padding: 24px 20px; gap: 16px; }
  .holder-mark { width: 52px; height: 52px; }
  .holder-actions .button { flex: 1 1 auto; }
  .dev-links { grid-template-columns: minmax(0,1fr); }
  .command code { font-size: 13px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 22px; }
  .page-head .button { align-self: flex-start; }
  .controls { width: 100%; }
  .select-wrap { flex: 1; }
  select { width: 100%; min-width: 0; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat { padding: 14px 16px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat strong { font-size: 28px; }
  .panel-head { padding: 14px 16px; }
  .map-body { height: 340px; }
  .node { width: 32px; height: 32px; font-size: 12px; }
  .node .node-name { top: 37px; font-size: 10.5px; }
  .map-key { left: 12px; bottom: 10px; gap: 12px; font-size: 11px; }
  .transport { padding: 10px 12px; gap: 10px; }
  .profile-main { padding: 18px 16px 0; }
  .forecast { margin: 12px 16px 18px; }
  .source-row, .post, .event, .empty { padding-inline: 16px; }
  .source-row { flex-direction: column; gap: 2px; }
  .source-row span { text-align: left; }
  .history-cells { grid-template-columns: repeat(auto-fill,minmax(32px,1fr)); padding: 16px; }
  .history-panel .panel-head { flex-direction: column; align-items: flex-start; }
  .event { grid-template-columns: 44px 18px minmax(0,1fr); gap: 8px; }
  .chain-controls { padding: 14px 16px; }
  .chain-actions, .chain-actions .button { flex: 1 1 auto; }
  .docs-body { padding: 4px 18px 22px; }
  .docs-body h2 { font-size: 21px; }
  .docs-body p { font-size: 15.5px; }
  .docs-toc { margin: 0 -16px; padding: 0 16px; }
  .access-layout { padding-top: 8px; }
  .access-intro h1 { font-size: clamp(44px,13vw,64px); }
  .access-card-head, .access-card dl, .access-feedback, .access-actions { padding-inline: 18px; }
  .access-card dl > div { flex-direction: column; align-items: flex-start; gap: 2px; }
  .access-card dd { text-align: left; }
  .access-actions .button { flex: 1 1 auto; }
  .access-notice { flex-direction: column; align-items: flex-start; }
  footer { flex-direction: column; align-items: flex-start; margin-top: 72px; }
}
@media (max-width: 420px) {
  .bar-actions .icon-button.ghost { display: none; }
  .brand span { font-size: 14.5px; }
  .chain-pill { padding: 0 10px; }
}
@media (max-width: 360px) {
  .chain-pill { display: none; }
  .replay-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .replay-stats > div:nth-child(3) { border-left: 0; }
  .replay-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.lab-banner{padding:12px 18px;border:1px solid #263a50;background:#101d2b;color:#9eb9cd;font:12px Geist,sans-serif;border-radius:8px;margin:18px 0}.lab-banner a{color:#67e8bc}


/* Corevra Matrix theme */
body{background:radial-gradient(ellipse at 50% 0%,#07351a 0,transparent 60%),#030806;background-attachment:fixed;isolation:isolate}
#matrixRain{position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;opacity:.2}
.site-header{background:rgba(3,12,7,.96);border-bottom-color:#214d30}
.hero{background:linear-gradient(135deg,rgba(5,26,12,.94),rgba(3,12,7,.88));border:1px solid #28653b;border-radius:20px;padding:36px;gap:32px;box-shadow:inset 0 1px 0 #71ff9412}
.hero h1{letter-spacing:-.055em}.hero h1 em{color:#69ff8d;text-shadow:0 0 30px #35ff6b30}
.panel,.replay-card,.mode,.access-card{background:linear-gradient(145deg,#0c1b11f5,#07110bf5);border-color:#254d31}
.ledger,.holder-band{background:#0b1a10;border-color:#2a5938}
.lab-banner{background:#091b0e;color:#a9d9b5;border-color:#265736}
.button.primary{box-shadow:0 0 20px #3aff7018}.button.primary:hover{box-shadow:0 0 28px #3aff7030}.mode:hover{border-color:#69ff8d}
.eyebrow,.badge,.stat-label,.tab{font-family:var(--mono)}
@media(max-width:700px){.hero{padding:22px 18px;border-radius:16px;gap:24px}#matrixRain{opacity:.12}}
@media(prefers-reduced-motion:reduce){#matrixRain{opacity:.09}}

/* Matrix backdrop inside the selected hero panel */
.hero{isolation:isolate;background:#020a05;overflow:hidden}
.hero .life-field{display:none}
#heroMatrixRain{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;opacity:.34}
.hero-copy,.hero .replay-card{position:relative;z-index:1}
.hero-copy{background:radial-gradient(ellipse at 35% 45%,#020a05eb 0%,#020a05a8 55%,transparent 85%);border-radius:16px}
.hero .replay-card{background:linear-gradient(145deg,#06150ce6,#030c07e8);backdrop-filter:blur(3px);border-color:#28673d}
@media(prefers-reduced-motion:reduce){#heroMatrixRain{opacity:.2}}

.live-status{margin:0 0 24px;padding:22px;border:1px solid #28673d;border-radius:16px;background:#07150df5}.live-status-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.live-status-head strong{color:#a3ffbc;display:flex;align-items:center;gap:9px}.live-status-head .button{margin-left:auto}#liveDot{width:8px;height:8px;border-radius:50%;background:#66ff92;box-shadow:0 0 12px #66ff9244}#liveDot.degraded{background:#f2b65c}.live-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:18px 0}.live-status-grid div{display:flex;flex-direction:column;min-width:0}.live-status-grid small{color:#79a686;font-size:11px;text-transform:uppercase}.live-status-grid span,.live-status-grid a{font:12px var(--mono);overflow-wrap:anywhere}.live-status-grid a{color:#69ff8d}.live-status-note{font-size:11px;color:#79a686;margin:8px 0 12px}.live-status details{font-size:12px;border-top:1px solid #193d27;padding-top:10px}.live-archive-row{padding:9px 0;border-bottom:1px solid #193d27}#liveMessage{font-size:13px;color:#c3e7cd}@media(max-width:700px){.live-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.live-status{padding:16px}}
