:root {
  color-scheme: dark;
  --canvas: #050607;
  --surface: #090b0d;
  --surface-raised: #101316;
  --surface-soft: #080a0b;
  --surface-warm: #0d0e0c;
  --line: #24282b;
  --line-strong: #40464b;
  --ink: #f7f8f6;
  --muted: #838b90;
  --muted-bright: #bec4c7;
  --gold: #f0b90b;
  --gold-bright: #ffd84d;
  --cyan: #58dbc4;
  --cyan-soft: #102d29;
  --green: #63dda7;
  --red: #ff8178;
  --max-width: 1320px;
  --radius: 5px;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
body::selection { background: var(--gold); color: #15130c; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .42; }
a { color: inherit; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
h1, h2, p { margin-top: 0; }
h2 { margin-bottom: 0; font-size: 19px; line-height: 1.3; letter-spacing: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 12, .94);
  backdrop-filter: blur(20px);
}

.topbar-inner {
  max-width: var(--max-width);
  min-height: 70px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(2.35);
  filter: brightness(0) saturate(100%) invert(76%) sepia(95%) saturate(1447%) hue-rotate(355deg) brightness(101%) contrast(101%);
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 12px; font-weight: 820; letter-spacing: 0; }
.brand-copy small { color: var(--muted); font-size: 9px; font-weight: 720; letter-spacing: 0; }
.top-actions { min-width: 0; display: flex; align-items: center; gap: 8px; }

.language-switch {
  height: 36px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0e12;
}
.language-switch > svg { width: 14px; margin: 0 4px 0 5px; color: var(--muted); }
.language-option {
  min-width: 36px;
  height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}
.language-option:hover { color: var(--ink); }
.language-option.active { background: #252015; color: var(--gold-bright); box-shadow: inset 0 0 0 1px #66562e; }

.top-link {
  height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted-bright);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
}
.top-link:hover { border-color: var(--line-strong); color: var(--ink); }
.top-link svg { width: 13px; }
.whitepaper-link { border-color: #62562f; color: var(--gold-bright); }
.social-link { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted-bright); text-decoration: none; }
.social-link:hover { border-color: var(--gold); color: var(--gold-bright); }
.social-link svg { width: 14px; }
.social-link.disabled { opacity: .42; cursor: not-allowed; }
.network-badge {
  height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2d5147;
  border-radius: var(--radius);
  color: #baeada;
  font-size: 10px;
  font-weight: 760;
}
.network-badge > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(102, 223, 169, .1);
  animation: network-pulse 2.2s ease-in-out infinite;
}

.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}
.button span { min-width: 0; text-align: center; overflow-wrap: anywhere; }
.button svg { width: 16px; flex: 0 0 16px; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.wallet-button { min-height: 38px; height: 38px; padding-top: 0; padding-bottom: 0; border-color: #826d36; background: var(--gold); color: #17130a; }
.wallet-button:hover:not(:disabled) { background: var(--gold-bright); }
.wallet-button.connected { border-color: #347b65; background: #15382c; color: #bff2dd; }
.button.primary { min-height: 50px; background: var(--gold); color: #18130a; box-shadow: 0 10px 28px rgba(229, 199, 107, .1); }
.button.primary:hover:not(:disabled) { background: var(--gold-bright); }
.button.secondary { border-color: var(--line-strong); background: var(--surface-raised); color: #dce2e6; }
.button.secondary:hover:not(:disabled) { border-color: var(--cyan); color: #d9ffff; }
.button.compact { height: 42px; min-height: 42px; padding-top: 0; padding-bottom: 0; border-color: #796631; border-radius: 0 var(--radius) var(--radius) 0; background: #242012; color: var(--gold-bright); }
.button.compact:hover:not(:disabled) { background: #302917; transform: none; }
.icon-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #11171d;
  color: var(--muted-bright);
  transition: border-color .18s ease, color .18s ease;
}
.icon-button:hover { border-color: var(--cyan); color: var(--cyan); }
.icon-button svg { width: 15px; }

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #050607;
}
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 76px; height: 1px; pointer-events: none; background: #15191b; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); opacity: .48; }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  min-height: 430px;
  margin: 0 auto;
  padding: 66px 24px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 48px;
}
.hero-copy { align-self: center; max-width: 700px; }
.protocol-line { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; color: #c8cdd1; font-size: 10px; font-weight: 800; }
.protocol-line span { display: inline-flex; align-items: center; gap: 7px; }
.protocol-line span + span { color: var(--muted); }
.protocol-line i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
h1 { margin-bottom: 14px; font-size: 58px; line-height: 1; font-weight: 430; letter-spacing: 0; }
h1 strong { color: var(--gold-bright); font-weight: 820; }
.hero-thesis { margin: 0 0 12px; color: #f2f4f3; font-size: 16px; font-weight: 720; }
.lede { max-width: 620px; margin: 0; color: #bac2c7; font-size: 14px; line-height: 1.78; }
.rate-strip { width: min(600px, 100%); margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(229, 199, 107, .38); background: rgba(7, 9, 12, .82); backdrop-filter: blur(10px); }
.rate-strip div { position: relative; min-height: 70px; padding: 13px 15px; display: grid; align-content: center; gap: 5px; border-right: 1px solid rgba(229, 199, 107, .24); }
.rate-strip div:last-child { border-right: 0; }
.rate-strip span { color: #979e9e; font-size: 9px; font-weight: 800; }
.rate-strip strong { color: var(--gold-bright); font-size: 19px; }
.rate-strip div:last-child::after { content: ""; position: absolute; right: 0; top: 0; width: 3px; height: 100%; background: var(--cyan); }
.storm-visual { position: relative; align-self: center; justify-self: end; width: 350px; height: 300px; display: grid; place-items: center; color: var(--gold); }
.storm-logo { width: 190px; height: 190px; object-fit: contain; transform: scale(2.2); filter: brightness(0) saturate(100%) invert(76%) sepia(95%) saturate(1447%) hue-rotate(355deg) brightness(101%) contrast(101%); }
.storm-visual > b { position: absolute; bottom: 48px; color: var(--ink); font: 800 12px "SFMono-Regular", Consolas, monospace; }
.storm-visual > small { position: absolute; bottom: 29px; color: var(--muted); font: 700 8px "SFMono-Regular", Consolas, monospace; }
.storm-orbit { position: absolute; display: block; border: 1px solid #343a3e; border-radius: 50%; }
.orbit-one { width: 300px; height: 118px; transform: rotate(-8deg); border-color: #685617; }
.orbit-two { width: 246px; height: 178px; transform: rotate(17deg); border-color: #255e55; }
.orbit-three { width: 184px; height: 238px; transform: rotate(-22deg); }
.storm-axis { position: absolute; width: 1px; height: 284px; background: #32373a; transform: rotate(32deg); }
.state-badge { position: absolute; right: 24px; top: 28px; align-self: start; min-width: 156px; min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #475059; border-radius: var(--radius); background: #0b0e10; color: #bdc5ca; font-size: 10px; }
.state-badge svg { width: 15px; }
.state-badge.active { border-color: #39745f; color: #c3f4df; background: rgba(15, 42, 32, .9); }
.state-badge.paused { border-color: #856335; color: #ffe5ab; background: rgba(48, 36, 18, .92); }

.band-inner { max-width: var(--max-width); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.donation-band { border-bottom: 1px solid #4e4318; background: #0d0e0b; }
.donation-inner { min-height: 104px; display: grid; grid-template-columns: minmax(280px, .9fr) minmax(390px, 1.25fr) auto; align-items: center; gap: 28px; }
.donation-title-wrap { min-width: 0; display: flex; align-items: center; gap: 13px; }
.donation-title-wrap > div, .donation-destination { min-width: 0; display: grid; gap: 6px; }
.donation-title-wrap span, .donation-destination > span { color: #9f9878; font-size: 9px; font-weight: 800; }
.donation-title-wrap strong { color: #f3efd9; font-size: 13px; line-height: 1.45; }
.donation-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid #746632; border-radius: var(--radius); background: #242012; color: var(--gold); }
.donation-icon svg { width: 20px; }
.address-line { min-width: 0; display: flex; align-items: center; gap: 8px; }
.address-line a { min-width: 0; overflow: hidden; color: var(--gold-bright); text-decoration: none; }
.address-line a:hover { color: #fff2bb; }
.address-line code { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.source-link { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #746632; border-radius: var(--radius); color: #e8dfb2; text-decoration: none; font-size: 11px; font-weight: 740; white-space: nowrap; }
.source-link:hover { border-color: var(--gold); color: #fff2bb; }
.source-link svg { width: 14px; }
.source-link svg:last-child { color: #918556; }

.story-band { border-bottom: 1px solid var(--line); background: #07090a; }
.story-heading { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.story-heading > div { display: grid; gap: 7px; }
.story-heading span { color: var(--gold); font-size: 9px; font-weight: 820; }
.story-heading h2 { font-size: 21px; }
.story-link { min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: #dce1e3; text-decoration: none; font-size: 10px; font-weight: 740; }
.story-link:hover { border-color: var(--gold); color: var(--gold-bright); }
.story-link svg { width: 14px; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.story-grid article { position: relative; min-height: 180px; padding: 25px; display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; align-content: start; border-right: 1px solid var(--line); }
.story-grid small { color: #5e666b; font: 700 9px "SFMono-Regular", Consolas, monospace; }
.story-grid svg { grid-column: 1; grid-row: 2 / 4; width: 20px; margin-top: 3px; color: var(--cyan); }
.story-grid strong { grid-column: 2; color: #edf0ef; font-size: 12px; }
.story-grid p { grid-column: 2; margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.metrics-band { border-bottom: 1px solid var(--line); background: #0a0d11; }
.metrics-heading { min-height: 62px; display: flex; align-items: center; justify-content: space-between; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.metrics-heading > div { display: grid; gap: 4px; }
.metrics-heading span { color: var(--cyan); font-size: 9px; font-weight: 800; }
.metrics-heading strong { font-size: 14px; }
.metrics-heading > svg { width: 18px; color: var(--cyan); }
.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric { position: relative; min-height: 106px; padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric span, .metric small { color: var(--muted); font-size: 10px; }
.metric small { font-size: 8px; font-weight: 800; }
.metric strong { color: #e9edf0; font-size: 17px; white-space: nowrap; }
.metric.emphasis::before, .metric.donation-metric::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--cyan); }
.metric.donation-metric::before { background: var(--gold); }
.metric.burn-metric::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: #ff6b7a; }
.metric.emphasis strong { color: #bdf3ef; }
.metric.donation-metric strong { color: var(--gold-bright); }
.metric.burn-metric strong { color: #ff9ca7; }
.status-metric strong { color: var(--green); }

.workspace-shell { max-width: var(--max-width); margin: 0 auto; padding: 58px 24px 72px; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.panel-kicker { margin: 0 0 7px; color: var(--cyan); font-size: 9px; font-weight: 800; }
.security-mark { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #315a59; border-radius: var(--radius); color: #b9e9e6; font-size: 10px; }
.security-mark svg { width: 14px; }
.receipt-warning { min-height: 74px; margin-bottom: 18px; padding: 14px 16px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid #6a3c43; border-left: 3px solid var(--red); background: #130d0f; }
.receipt-warning > svg { width: 21px; color: #ff958d; }
.receipt-warning > div { display: grid; gap: 5px; }
.receipt-warning strong { color: #ffe3df; font-size: 12px; }
.receipt-warning p { margin: 0; color: #bca5a7; font-size: 10px; line-height: 1.55; }
.receipt-warning > span { min-height: 28px; padding: 0 9px; display: inline-flex; align-items: center; border: 1px solid #75454a; color: #ffc3bd; font-size: 9px; font-weight: 760; white-space: nowrap; }
.workspace-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: stretch; border: 1px solid var(--line); }
.mode-rail { grid-column: 1 / -1; min-height: 58px; padding: 0; display: grid; grid-template-columns: 118px minmax(0, 1fr) 110px; align-items: center; border-bottom: 1px solid var(--line); background: #080a0b; }
.mode-label { display: block; margin: 0; padding-left: 18px; color: var(--muted); font-size: 9px; font-weight: 800; }
.segmented { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.segment { position: relative; min-width: 0; min-height: 57px; padding: 0 16px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--muted); display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 9px; text-align: left; font-size: 11px; font-weight: 750; }
.segment:last-child { border-right: 0; }
.segment svg { width: 16px; }
.segment small { color: #5f6870; font: 9px "SFMono-Regular", Consolas, monospace; }
.segment:hover { color: var(--ink); background: #101315; }
.segment.active { color: #17130a; background: var(--gold); }
.segment.active::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-bright); }
.segment.active small { color: var(--gold); }
.segment.active svg, .segment.active small { color: #2a2105; }
.rail-signature { margin: 0; padding: 0 14px; display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 4px 7px; border: 0; }
.rail-signature svg { grid-row: 1 / 3; width: 16px; color: var(--green); }
.rail-signature span { color: var(--muted); font-size: 8px; font-weight: 800; }
.rail-signature strong { color: #dfe5e8; font: 12px "SFMono-Regular", Consolas, monospace; }

.workspace-main { min-width: 0; }
.tool-panel { min-height: 454px; padding: 32px; border-right: 1px solid var(--line); background: var(--surface); }
.tool-panel:not(.active) { display: none; }
.panel-head, .activity-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel-actions { display: flex; align-items: center; gap: 8px; }
.compact-action { min-height: 32px; padding: 5px 10px; font-size: 10px; }
.audit-chip { min-height: 32px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #315c61; border-radius: var(--radius); color: #b9e9ec; background: #0c1b20; font-size: 10px; white-space: nowrap; }
.audit-chip svg { width: 14px; }
.form-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.full { grid-column: 1 / -1; }
.claim-steps { min-height: 76px; margin-top: 26px; padding: 0 19px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #090d11; }
.claim-steps > div { min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 11px; align-items: center; }
.claim-steps > div > span { grid-row: 1 / 3; color: var(--gold); font: 700 20px "SFMono-Regular", Consolas, monospace; }
.claim-steps strong { color: #e5eaed; font-size: 11px; line-height: 1.35; }
.claim-steps small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.claim-steps > svg { width: 15px; color: var(--cyan); }
.field { min-width: 0; display: grid; gap: 8px; }
.field > span, .note-block span, .receipt-hash span { color: #d8dde0; font-size: 11px; font-weight: 650; }
.field small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.field input, .record-search input { width: 100%; min-width: 0; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #080b0f; color: var(--ink); padding: 0 13px; outline: 0; }
.field input:focus, .record-search input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(91, 214, 209, .08); }
.salt-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.salt-input input { border-radius: var(--radius) 0 0 var(--radius); }
.salt-input .icon-button { width: 48px; height: 48px; border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.claim-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.claim-actions .button { width: 100%; }
.access-fee { border: 1px solid #5f3941; background: #110d11; }
.access-fee-heading { min-height: 72px; padding: 13px 15px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid #3a292e; }
.access-fee-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #8b4b58; color: #ff8492; background: #211016; }
.access-fee-icon svg { width: 18px; }
.access-fee-heading > div { min-width: 0; display: grid; gap: 5px; }
.access-fee-heading > div > span { color: #c99ca4; font-size: 8px; font-weight: 800; }
.access-fee-heading strong { color: #f0e6e8; font-size: 13px; }
.access-fee-heading strong b { color: #ff9ca7; font-size: 16px; }
.fee-source { min-height: 28px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #315c61; color: #b9e9ec; background: #0c1b20; font-size: 8px; font-weight: 800; white-space: nowrap; }
.fee-source svg { width: 13px; }
.access-fee-grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.access-fee-grid > div { min-width: 0; padding: 13px 15px; display: grid; gap: 6px; border-right: 1px solid #3a292e; }
.access-fee-grid > div:last-child { border-right: 0; }
.access-fee-grid dt { color: var(--muted); font-size: 8px; font-weight: 800; }
.access-fee-grid dd { margin: 0; color: #ebe5e6; font: 11px "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.access-fee > p { min-height: 38px; margin: 0; padding: 8px 15px; display: flex; align-items: center; gap: 8px; border-top: 1px solid #3a292e; color: #b5a5a8; font-size: 9px; line-height: 1.5; }
.access-fee > p svg { width: 13px; flex: 0 0 auto; color: var(--cyan); }
.note-block { min-height: 84px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #090e12; }
.note-block > div { min-width: 0; display: grid; gap: 9px; }
.note-block code { color: var(--gold-bright); font-size: 12px; }
.receipt-hash { min-height: 64px; padding: 14px 16px; display: grid; align-content: center; gap: 8px; border-left: 2px solid var(--cyan); background: #0c171b; }
.receipt-hash code { color: #c8f3f0; font-size: 11px; }
.result-band { margin-top: 20px; min-height: 68px; padding: 12px 14px; display: flex; align-items: center; gap: 28px; border: 1px solid #35745f; border-radius: var(--radius); background: #0d231a; }
.result-band > div { display: grid; gap: 4px; }
.result-band span { color: #9fc9b8; font-size: 10px; }
.result-band strong { color: #c5f5e2; }
.result-band a { color: var(--cyan); }
.result-band .button { margin-left: auto; }
.commit-result { border-color: #566235; background: #1b1d11; }
.commit-result strong { color: var(--gold-bright); }
.record-search { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.record-search input { border-radius: var(--radius) 0 0 var(--radius); }
.record-search .button { border-radius: 0 var(--radius) var(--radius) 0; }
.record-grid { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.record-grid div { min-width: 0; min-height: 76px; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.record-grid dt { margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.record-grid dd { margin: 0; color: #dce2e6; font-size: 11px; overflow-wrap: anywhere; }

.activity { min-height: 100%; padding: 26px 18px; background: #07090a; }
.activity-head { align-items: center; }
#activity-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; }
#activity-list li { min-height: 64px; padding: 10px 0; display: grid; grid-template-columns: 1fr; align-content: center; gap: 5px; border-top: 1px solid var(--line); color: #c8ced2; font-size: 11px; }
#activity-list li time { color: var(--muted); font-size: 9px; }
#activity-list li a, #activity-list li code { color: var(--cyan); }
#activity-list .empty-activity { display: flex; align-items: center; color: var(--muted); }
.wallet-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid #3d464e;
  border-radius: var(--radius);
  background: #0b0f13;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .72);
}
.wallet-dialog::backdrop { background: rgba(2, 4, 6, .78); backdrop-filter: blur(7px); }
.wallet-dialog-shell { min-width: 0; }
.wallet-dialog-head { min-height: 128px; padding: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #0e1318; }
.wallet-dialog-copy { min-width: 0; display: grid; gap: 7px; }
.wallet-dialog-copy > span { color: var(--gold); font-size: 9px; font-weight: 820; }
.wallet-dialog-copy h2 { color: var(--ink); font-size: 22px; }
.wallet-dialog-copy p { margin: 0; color: var(--muted-bright); font-size: 11px; line-height: 1.5; }
.wallet-options { max-height: min(440px, calc(100vh - 208px)); padding: 12px; display: grid; gap: 8px; overflow-y: auto; }
.wallet-option { width: 100%; min-height: 66px; padding: 10px 13px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #0d1217; color: var(--ink); text-align: left; }
.wallet-option:hover { border-color: #7d6936; background: #17160f; }
.wallet-option-icon { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border: 1px solid #3a444d; border-radius: var(--radius); background: #171d23; color: var(--gold); }
.wallet-option-icon img { width: 100%; height: 100%; object-fit: cover; }
.wallet-option-icon svg { width: 19px; }
.wallet-option-copy { min-width: 0; display: grid; gap: 5px; }
.wallet-option-copy strong { overflow: hidden; color: #eef1f2; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-option-copy small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-option > svg { width: 16px; color: var(--muted); }
.wallet-empty { min-height: 154px; padding: 28px; display: grid; place-items: center; align-content: center; gap: 9px; color: var(--muted); text-align: center; }
.wallet-empty svg { width: 24px; color: var(--gold); }
.wallet-empty strong { color: #dfe4e7; font-size: 12px; }
.wallet-empty span { max-width: 290px; font-size: 10px; line-height: 1.6; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 40; max-width: min(390px, calc(100vw - 44px)); padding: 13px 14px; border: 1px solid #40616a; border-radius: var(--radius); background: #101c22; color: #ddecf1; font-size: 12px; line-height: 1.5; box-shadow: 0 18px 48px rgba(0, 0, 0, .5); }
.toast.error { border-color: #874b47; background: #291719; color: #ffd0cc; }
footer { min-height: 72px; padding: 0 max(24px, calc((100vw - var(--max-width)) / 2 + 24px)); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #69737a; font-size: 9px; font-weight: 750; }

@keyframes network-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

@media (max-width: 1120px) {
  .network-badge { display: none; }
  .workspace-layout { grid-template-columns: 1fr; }
  .workspace-main { grid-column: 1; }
  .activity { grid-column: 1 / -1; min-height: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  #activity-list li { grid-template-columns: 120px 1fr auto; min-height: 50px; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
  .storm-visual { width: 270px; }
  .state-badge { position: absolute; top: 24px; right: 24px; }
  .donation-inner { grid-template-columns: 1fr 1.35fr; }
  .source-link { grid-column: 1 / -1; margin-bottom: 17px; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar, .topbar-inner { min-height: 64px; }
  .topbar-inner { padding: 0 14px; gap: 10px; }
  .brand-copy, .top-link:not(.whitepaper-link) { display: none; }
  .whitepaper-link { width: 36px; padding: 0; }
  .whitepaper-link span { display: none; }
  .top-actions { gap: 6px; }
  .language-switch > svg { display: none; }
  .wallet-button { padding-left: 11px; padding-right: 11px; }
  .hero { min-height: 510px; }
  .hero-inner { min-height: 510px; padding: 54px 14px 24px; grid-template-columns: 1fr; }
  .state-badge { top: 18px; right: 14px; min-width: 0; }
  .hero-copy { padding-top: 35px; }
  .storm-visual { position: absolute; right: -82px; bottom: -40px; width: 290px; height: 250px; opacity: .38; }
  .storm-logo { width: 146px; height: 146px; }
  .storm-visual > b, .storm-visual > small { display: none; }
  .orbit-one { width: 250px; }
  .orbit-two { width: 210px; }
  .orbit-three { width: 150px; height: 205px; }
  .storm-axis { height: 232px; }
  h1 { font-size: 43px; }
  .hero-thesis { max-width: 78%; font-size: 14px; }
  .lede { max-width: 96%; font-size: 13px; }
  .rate-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rate-strip div { min-height: 61px; padding: 10px; }
  .rate-strip strong { font-size: 16px; }
  .band-inner { padding-left: 14px; padding-right: 14px; }
  .donation-inner { padding-top: 18px; padding-bottom: 18px; grid-template-columns: 1fr; gap: 16px; }
  .source-link { grid-column: auto; margin-bottom: 0; white-space: normal; }
  .address-line code { font-size: 10px; }
  .story-heading { min-height: 120px; padding-top: 20px; padding-bottom: 20px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .story-heading h2 { font-size: 18px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-grid article { min-height: 132px; border-bottom: 1px solid var(--line); }
  .metrics-heading { min-height: 58px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-metric { grid-column: auto; }
  .metric { min-height: 96px; padding: 14px; }
  .metric strong { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
  .workspace-shell { padding: 38px 14px 48px; }
  .workspace-heading { align-items: flex-start; }
  .security-mark { display: none; }
  .receipt-warning { grid-template-columns: 24px minmax(0, 1fr); }
  .receipt-warning > span { grid-column: 1 / -1; justify-self: start; }
  .workspace-layout { grid-template-columns: 1fr; border: 0; }
  .mode-rail { min-height: 0; padding: 0; grid-template-columns: 1fr; border: 1px solid var(--line); border-bottom: 0; }
  .mode-label, .rail-signature { display: none; }
  .segmented { grid-column: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 0; }
  .segment { min-height: 54px; padding: 0 9px; grid-template-columns: 16px 1fr; justify-items: center; border: 0; border-right: 1px solid var(--line); border-radius: 0; text-align: center; }
  .segment:last-child { border-right: 0; }
  .segment small { display: none; }
  .segment.active { border-color: transparent; }
  .segment.active::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 2px; }
  .tool-panel { min-height: 0; padding: 20px; border: 1px solid var(--line); }
  .activity { min-height: 0; margin-top: 14px; padding: 20px; border: 1px solid var(--line); }
  .form-grid, .record-grid { grid-template-columns: 1fr; }
  .full { grid-column: 1; }
  .claim-steps { padding: 13px; gap: 10px; }
  .claim-steps > div { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 4px; }
  .claim-steps > div > span { grid-row: auto; font-size: 14px; }
  .claim-actions { grid-template-columns: 1fr; }
  .panel-head { align-items: stretch; flex-direction: column; }
  .panel-actions { align-items: center; flex-direction: row; flex-wrap: wrap; }
  .panel-head > .audit-chip { align-self: flex-start; }
  .audit-chip { font-size: 9px; }
  .note-block { align-items: stretch; flex-direction: column; }
  .note-block .button { width: 100%; }
  .access-fee-heading { grid-template-columns: auto minmax(0, 1fr); }
  .fee-source { grid-column: 1 / -1; justify-self: start; }
  .access-fee-grid { grid-template-columns: 1fr; }
  .access-fee-grid > div { border-right: 0; border-bottom: 1px solid #3a292e; }
  .access-fee-grid > div:last-child { border-bottom: 0; }
  .result-band { align-items: stretch; display: grid; gap: 12px; }
  .result-band .button { margin-left: 0; }
  #activity-list li { grid-template-columns: 1fr; padding: 11px 0; gap: 5px; }
  .wallet-dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .wallet-dialog-head { min-height: 116px; padding: 19px; }
  .wallet-dialog-copy h2 { font-size: 19px; }
  .wallet-options { max-height: calc(100vh - 164px); padding: 9px; }
  footer { min-height: 84px; padding: 0 14px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 5px; }
}

@media (max-width: 420px) {
  .language-switch { height: 34px; }
  .language-option { min-width: 32px; padding: 0 5px; }
  .wallet-button { font-size: 11px; }
  .protocol-line { gap: 10px; }
  h1 { font-size: 39px; }
  .rate-strip span { font-size: 8px; }
  .metric strong { font-size: 13px; }
  .segment { font-size: 10px; }
  .tool-panel { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
