/* FomoBlock terminal · v4, the mineral build.
   An operating system for capital: deep night, mineral fog, light behind
   glass. The signature material is #cbd0ca, a pale mineral sage that reads
   like a hardware finish. It marks whatever is live, selected, or executable.
   Glass only on objects with conceptual physicality; everything else sits
   directly on the environment.
   General Sans UI · Newsreader only for exceptional figures · Fragment Mono
   only for machine-native data. */

:root {
  --bg: #080a09;
  --t1: #edefec;
  --t2: #a4a8a2;
  --t3: #666a66;
  --t4: #474b48;
  --glass: rgba(226, 230, 224, 0.035);
  --glass2: rgba(226, 230, 224, 0.06);
  --stroke: rgba(226, 230, 224, 0.055);
  --stroke-soft: rgba(226, 230, 224, 0.032);
  --spec: inset 0 1px 0 rgba(238, 241, 236, 0.08);
  --live: #cbd0ca;
  --live-soft: rgba(203, 208, 202, 0.5);
  --pos-c: #9ccfae;
  --neg-c: #d08b84;
  --gold: #c8a976;
  --info: #8fb4c6;
  --sans: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--t1);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* the environment: huge, irregular, diffused fields of low light.
   Mineral sage, smoky graphite, muted blue-grey, a trace of violet-black.
   Felt, never seen. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(72% 54% at 38% 16%, rgba(203, 208, 202, 0.055), transparent 70%),
    radial-gradient(50% 62% at 84% 38%, rgba(146, 154, 160, 0.04), transparent 72%),
    radial-gradient(44% 40% at 68% 78%, rgba(138, 152, 172, 0.032), transparent 70%),
    radial-gradient(38% 34% at 12% 74%, rgba(96, 84, 118, 0.028), transparent 68%),
    linear-gradient(180deg, #090b0a, #070808);
}

/* grain, so the dark fields never feel digitally flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(203, 208, 202, 0.28); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.09); border-radius: 6px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

.m { font-family: var(--mono); }

/* ================= OS bar ================= */

.osbar {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 18px 34px;
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(8, 10, 9, 0.9), rgba(8, 10, 9, 0));
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--t1);
}
.wordmark img { width: 21px; height: 21px; border-radius: 6px; display: block; }
.osright { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ================= floating rail ================= */

.rail {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  width: 56px;
  border-radius: 26px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(36px) saturate(150%);
  backdrop-filter: blur(36px) saturate(150%);
  border: 1px solid var(--stroke-soft);
  box-shadow: var(--spec), 0 20px 50px -24px rgba(0, 0, 0, 0.75);
  padding: 12px 8px;
  overflow: hidden;
  transition: width 0.24s cubic-bezier(0.32, 0.72, 0, 1);
}
.rail:hover, .rail:focus-within { width: 168px; }

.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.rail button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--t3);
  text-align: left;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s;
}
.rail button svg { width: 17px; height: 17px; flex: none; }
.rail button:hover { background: rgba(255, 255, 255, 0.05); color: var(--t1); }
.rail button.active { color: var(--t1); }
.rail button.active svg { color: var(--live); filter: drop-shadow(0 0 6px rgba(203, 208, 202, 0.4)); }
.rail .lbl {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s 0.05s, transform 0.18s 0.05s;
}
.rail:hover .lbl, .rail:focus-within .lbl { opacity: 1; transform: none; }

.rail-foot { margin-top: 14px; display: flex; flex-direction: column; align-items: stretch; }
.rail-dot {
  width: 3px;
  height: 3px;
  border-radius: 99px;
  background: var(--t4);
  margin: 0 auto 12px;
}
.rail-foot button { color: var(--t4); }

.net-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--t3);
}
.net-chip .net-dot {
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--pos-c);
}
.net-chip #netLabel { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em; }

/* identity */
.btn-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
  background: var(--glass2);
  border: 1px solid var(--stroke);
  box-shadow: var(--spec);
  padding: 7px 17px;
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-cta:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.14); }

.id-wrap { position: relative; }
.id-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 6px;
  border-radius: 999px;
  transition: background 0.15s;
}
.id-chip:hover { background: rgba(255, 255, 255, 0.05); }
.id-chip b { font-size: 13px; font-weight: 600; }
.id-ava {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #141613;
  font-size: 10px;
  font-weight: 600;
}
.id-bal { font-family: var(--mono); font-size: 10.5px; color: var(--t3); }

.id-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  border-radius: 16px;
  padding: 6px;
  background: rgba(21, 23, 21, 0.85);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid var(--stroke);
  box-shadow: var(--spec), 0 24px 60px -18px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 120;
}
.id-wrap.open .id-menu { opacity: 1; pointer-events: auto; transform: none; }
.id-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--t2);
}
.id-menu a:hover { background: rgba(255, 255, 255, 0.05); color: var(--t1); }
.id-menu a .ext { font-size: 11px; color: var(--t4); }
.id-row { display: block; padding: 7px 12px 3px; }
.id-row small { font-size: 11px; color: var(--t4); }

/* ================= stage ================= */

.stage {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 34px 90px 110px;
}

.page-head { margin-bottom: 34px; }
.page-head h1 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.page-head p { margin-top: 4px; font-size: 14.5px; color: var(--t3); }

/* section label — quiet, sentence case, sans */
.slabel {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--t3);
  margin-bottom: 14px;
}

/* module — the only glass surface for secondary info */
.module {
  background: var(--glass);
  -webkit-backdrop-filter: blur(36px) saturate(150%);
  backdrop-filter: blur(36px) saturate(150%);
  border: 1px solid var(--stroke-soft);
  box-shadow: var(--spec), 0 20px 50px -28px rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  padding: 20px 22px;
}
.module .slabel { margin-bottom: 12px; }

/* ================= typographic metrics ================= */

.metric-row {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.metric .v {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.metric .v.serif { font-family: var(--serif); font-size: 30px; font-weight: 400; }
.metric .v.pos { color: var(--pos-c); }
.metric .v.neg { color: var(--neg-c); }
.metric .k { margin-top: 3px; font-size: 12.5px; color: var(--t3); }

.hero-figure {
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}
.hero-figure small { font-size: 22px; color: var(--t3); font-family: var(--sans); font-weight: 400; }

/* ================= rows (no boxes) ================= */

.rowlist .rw {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--stroke-soft);
  cursor: pointer;
  transition: background 0.12s;
  border-radius: 8px;
}
.rowlist .rw:hover { background: rgba(255, 255, 255, 0.028); }
.rowlist .rw:last-child { border-bottom: 0; }
.rw .tick { font-weight: 600; font-size: 14px; min-width: 0; }
.rw .tick small { display: block; font-weight: 400; font-size: 12px; color: var(--t3); }
.rw .grow { flex: 1; }
.rw .num { text-align: right; }
.rw .num b { display: block; font-size: 13.5px; font-weight: 500; }
.rw .num small { display: block; font-size: 11.5px; color: var(--t3); }
.rw .num .m, .rw .num small.m { font-size: 11px; }
.rw .num.pos b { color: var(--pos-c); }
.rw .num.neg b { color: var(--neg-c); }

.row-btn {
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t2);
  border: 1px solid var(--stroke);
  transition: background 0.13s, color 0.13s;
}
.row-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--t1); }

.you-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(200, 169, 118, 0.4);
  color: var(--gold);
  font-size: 10.5px;
  vertical-align: 2px;
}

.settled-tag { color: var(--pos-c); font-size: 12.5px; white-space: nowrap; }

/* ================= blocks: the hero object ================= */

.blocks-stage {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.blocks-aside { display: flex; flex-direction: column; gap: 22px; }

.hero-block { text-align: center; padding: 8px 0 0; }
.hb-state {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--live);
}
.hb-sym {
  margin-top: 12px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hb-meta { margin-top: 4px; font-size: 13px; color: var(--t3); }
.hb-meta .m { font-size: 11.5px; }

.hb-count {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 38px;
  color: var(--t1);
  letter-spacing: 0.02em;
}
.hb-count.hot { color: var(--live); text-shadow: 0 0 24px var(--live-soft); }
.hb-count small { display: block; font-family: var(--sans); font-size: 12px; color: var(--t4); letter-spacing: 0; margin-top: 2px; }

.orb-wrap { position: relative; margin: 6px auto 2px; width: 320px; height: 300px; }
.orb-wrap canvas { width: 100%; height: 100%; display: block; }

.hb-commit { font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1; }
.hb-commit-k { margin-top: 4px; font-size: 13px; color: var(--t3); }

.hb-stats {
  margin: 26px auto 0;
  max-width: 340px;
  text-align: left;
}
.hb-stats .kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--stroke-soft);
  font-size: 13.5px;
}
.hb-stats .kv:last-child { border-bottom: 0; }
.hb-stats .kv .k { color: var(--t3); }
.hb-stats .kv .v { font-family: var(--mono); font-size: 12px; }
.hb-stats .kv .v.live { color: var(--live); }

/* the join control: glass with a luminous core on hover */
.join-cta {
  position: relative;
  margin-top: 26px;
  padding: 13px 46px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  background: var(--glass2);
  border: 1px solid var(--stroke);
  box-shadow: var(--spec);
  overflow: hidden;
  transition: border-color 0.25s, color 0.2s;
}
.join-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 130% at 50% 100%, rgba(203, 208, 202, 0.24), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.join-cta:hover { border-color: rgba(203, 208, 202, 0.35); }
.join-cta:hover::after { opacity: 1; }
.join-cta span { position: relative; z-index: 1; }
.join-cta:disabled { opacity: 0.5; }

.committed-pill {
  display: inline-block;
  margin-top: 26px;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  background: var(--glass);
  border: 1px solid rgba(200, 169, 118, 0.35);
  box-shadow: var(--spec);
}
.committed-pill .m { font-size: 12.5px; }

/* smaller forming blocks under the hero */
.also-forming { margin-top: 54px; }
.af-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--stroke-soft);
}
.af-row:last-child { border-bottom: 0; }
.af-row .tick { font-weight: 600; font-size: 14.5px; flex: none; min-width: 120px; }
.af-row .fill {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}
.af-row .fill span { display: block; height: 100%; background: var(--live); border-radius: 99px; transition: width 0.6s ease; }
.af-row .cd { font-family: var(--mono); font-size: 12px; color: var(--t2); width: 44px; text-align: right; }
.af-row .eth { font-family: var(--mono); font-size: 11.5px; color: var(--t3); width: 84px; text-align: right; }
.af-row .row-btn { flex: none; }

.mechanism-link { margin-top: 20px; font-size: 13px; color: var(--t3); }
.mechanism-link a { color: var(--t2); border-bottom: 1px solid var(--t4); padding-bottom: 1px; }
.mechanism-link a:hover { color: var(--t1); border-color: var(--t2); }

/* network module rows */
.netlist .nrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--stroke-soft);
  font-size: 13.5px;
}
.netlist .nrow:last-child { border-bottom: 0; }
.netlist .nrow .k { color: var(--t2); }
.netlist .nrow .st { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--t3); }
.netlist .nrow .st i { width: 6px; height: 6px; border-radius: 99px; background: var(--pos-c); }
.netlist .nrow .st.warn i { background: var(--gold); }

/* ================= mandates ================= */

.mand-stage { max-width: 860px; }

.orig-tabs { display: flex; gap: 6px; margin-bottom: 30px; }
.orig-tabs button {
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--t3);
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.orig-tabs button:hover { color: var(--t2); }
.orig-tabs button.active {
  color: var(--t1);
  background: var(--glass);
  border-color: var(--stroke-soft);
  box-shadow: var(--spec);
}

.orig-head h2 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}
.orig-head .sub { margin-top: 8px; font-size: 14px; color: var(--t3); }
.orig-head .note { margin-top: 14px; max-width: 560px; font-size: 13.5px; color: var(--t2); }

.orig-metrics { margin-top: 30px; }

.viz-wrap { margin-top: 44px; }
.viz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.viz-head .t { font-size: 15px; font-weight: 500; }
.viz-head .adv { text-align: right; }
.viz-head .adv b {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  color: var(--live);
  line-height: 1;
}
.viz-head .adv small { font-size: 12.5px; color: var(--t3); }
#fillCanvas { width: 100%; height: 250px; display: block; margin-top: 14px; }

.viz-foot {
  display: flex;
  gap: 44px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.viz-foot .f .v { font-size: 16px; font-weight: 500; }
.viz-foot .f .v .m { font-size: 13px; }
.viz-foot .f .k { font-size: 12px; color: var(--t3); margin-top: 1px; }

.mand-ctas { display: flex; gap: 14px; margin-top: 38px; align-items: center; }
.ghost-btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  border: 1px solid var(--stroke);
  transition: background 0.14s, color 0.14s;
}
.ghost-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--t1); }

.your-mandates { margin-top: 56px; max-width: 640px; }

/* ================= settlement ================= */

.settle-summary { margin-bottom: 40px; }

.filter-line {
  display: flex;
  gap: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 4px;
}
.filter-line button {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--t3);
  transition: color 0.14s;
}
.filter-line button:hover { color: var(--t2); }
.filter-line button.active { color: var(--t1); }

.stl-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--stroke-soft);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.12s;
}
.stl-row:hover { background: rgba(255, 255, 255, 0.028); }
.stl-row .time { font-family: var(--mono); font-size: 11.5px; color: var(--t3); width: 58px; flex: none; }
.stl-row .tick { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; }
.stl-row .tick small { font-weight: 400; color: var(--t3); margin-left: 10px; font-size: 12.5px; }
.stl-row .side { font-size: 12.5px; width: 40px; }
.stl-row .side.pos { color: var(--pos-c); }
.stl-row .side.neg { color: var(--neg-c); }
.stl-row .size { font-family: var(--mono); font-size: 12px; width: 96px; text-align: right; }

/* ================= risk ================= */

.risk-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 60px;
  align-items: start;
  max-width: 1000px;
}
.risk-stage .full { grid-column: 1 / -1; }
.krow {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--stroke-soft);
  font-size: 13.5px;
}
.krow:last-child { border-bottom: 0; }
.krow .k { color: var(--t3); }
.krow .v { text-align: right; font-weight: 500; }
.krow .v .m { font-size: 12px; font-weight: 400; }
.st { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--t2); }
.st i { width: 6px; height: 6px; border-radius: 99px; background: var(--pos-c); }
.st.warn i { background: var(--gold); }
.risk-note { font-size: 14px; color: var(--t2); line-height: 1.65; max-width: 680px; }
.risk-note b { color: var(--t1); font-weight: 600; }

/* ================= overview ================= */

.ov-hero { margin-bottom: 44px; }
.ov-hero .k { font-size: 13px; color: var(--t3); }
.ov-hero .hero-figure { margin-top: 8px; }
.ov-hero .metric-row { margin-top: 30px; gap: 48px; }

.ov-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ================= buttons / modal / sheet ================= */

.btn-dark {
  font-size: 14px;
  font-weight: 600;
  color: #121412;
  background: var(--live);
  padding: 10px 24px;
  border-radius: 999px;
  transition: filter 0.15s;
}
.btn-dark:hover { filter: brightness(1.06); }
.btn-dark:disabled { opacity: 0.5; }

.btn-outline {
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  border: 1px solid var(--stroke);
  padding: 10px 24px;
  border-radius: 999px;
  transition: background 0.14s, color 0.14s;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); color: var(--t1); }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 20px 20px;
  background: rgba(5, 6, 9, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.modal-overlay.open { display: flex; }
.modal {
  width: min(430px, 100%);
  background: rgba(23, 24, 30, 0.8);
  -webkit-backdrop-filter: blur(50px) saturate(160%);
  backdrop-filter: blur(50px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 36px 90px -20px rgba(0, 0, 0, 0.8);
  padding: 24px 26px;
  max-height: 84vh;
  overflow-y: auto;
}
.modal h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.modal .msub { margin-top: 5px; font-size: 13px; color: var(--t2); line-height: 1.55; }
.modal-btns { display: flex; gap: 9px; margin-top: 20px; }
.modal-btns > * { flex: 1; text-align: center; justify-content: center; }

/* side sheet */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  background: rgba(5, 6, 9, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.sheet-overlay.open { display: block; }
.sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 92vw);
  background: rgba(21, 22, 28, 0.85);
  -webkit-backdrop-filter: blur(50px) saturate(160%);
  backdrop-filter: blur(50px) saturate(160%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.06), -30px 0 80px -20px rgba(0, 0, 0, 0.7);
  padding: 28px 28px 24px;
  overflow-y: auto;
  transform: translateX(24px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.sheet-overlay.open .sheet { transform: none; opacity: 1; }
.sheet h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; }
.sheet .ssub { margin-top: 4px; font-size: 13px; color: var(--t3); }
.sheet .divider { border-top: 1px solid var(--stroke-soft); margin: 20px 0; }

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--stroke-soft);
}
.stepper:last-of-type { border-bottom: 0; }
.stepper .k { font-size: 13.5px; color: var(--t2); }
.stepper .ctl { display: flex; align-items: center; gap: 10px; }
.stepper .ctl .val {
  min-width: 84px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
}
.stepper .ctl button {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--t2);
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.12s, color 0.12s;
}
.stepper .ctl button:hover { background: rgba(255, 255, 255, 0.06); color: var(--t1); }

.hook-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--stroke-soft);
}
.hook-row:last-child { border-bottom: 0; }
.hook-row .txt { flex: 1; }
.hook-row .txt b { display: block; font-size: 13.5px; font-weight: 600; }
.hook-row .txt small { display: block; font-size: 12px; color: var(--t3); margin-top: 1px; }
.switch {
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
  position: relative;
  transition: background 0.18s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s;
}
.switch[aria-checked="true"] { background: var(--pos-c); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }

.sheet-arm {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
  border-radius: 999px;
  background: var(--live);
  color: #121412;
  font-size: 14.5px;
  font-weight: 600;
  transition: filter 0.15s;
}
.sheet-arm:hover { filter: brightness(1.1); }

/* legacy modal internals */
.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--stroke-soft);
}
.sum-row:first-child { padding-top: 0; }
.sum-row dt { color: var(--t3); }
.sum-row dd { font-weight: 500; text-align: right; }
.sum-row dd.m, .sum-row .m { font-family: var(--mono); font-size: 12px; font-weight: 400; }
.sum-row.hl dd { color: var(--gold); }
.sum-row.proof dd { color: var(--live); }
.sum-row.sm { font-size: 12.5px; padding: 6px 0; }
.sum-row.sm dt { font-family: var(--mono); font-size: 11px; }

.deploy-steps { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.dstep {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--t3);
  transition: color 0.2s;
}
.dstep .ic {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  color: transparent;
  transition: all 0.2s;
}
.dstep.active { color: var(--t1); }
.dstep.active .ic { border-color: var(--live); }
.dstep.active .ic::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 99px;
  border: 2px solid var(--live);
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}
.dstep.done { color: var(--t2); }
.dstep.done .ic { background: var(--live); border-color: var(--live); color: #121412; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-wrap { text-align: center; padding: 6px 0 2px; }
.success-wrap .bigcheck {
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border-radius: 99px;
  border: 1px solid rgba(203, 208, 202, 0.3);
  box-shadow: var(--spec), 0 0 30px rgba(203, 208, 202, 0.14);
  display: grid;
  place-items: center;
  color: var(--live);
}
.success-wrap h2 { font-size: 18px; }
.success-wrap p { margin-top: 6px; font-size: 13.5px; color: var(--t2); }
.receipt dl { margin-top: 12px; }

.hook-addr {
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--stroke-soft);
  font-size: 11px;
}
.hook-addr code { font-family: var(--mono); color: var(--t2); overflow: hidden; text-overflow: ellipsis; }
.hook-addr button, .hook-addr a { color: var(--t3); flex: none; font-size: 12.5px; font-weight: 600; font-family: var(--sans); }
.hook-addr button:hover, .hook-addr a:hover { color: var(--t1); }

.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rc-settled { font-size: 12.5px; color: var(--pos-c); }
.rc-cap { font-size: 12px; font-weight: 500; color: var(--t3); margin-bottom: 8px; }
.rc-fair {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--stroke-soft);
}
.rc-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.rc-fgrid span small { display: block; font-size: 11.5px; color: var(--t3); }
.rc-fgrid span b { font-family: var(--mono); font-size: 12px; font-weight: 400; }
.rc-fgrid .gold { color: var(--gold); }
.rc-allocs { margin-top: 14px; }
.rc-more { margin-top: 8px; font-size: 12px; color: var(--t3); text-align: center; }
.side-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(203, 208, 202, 0.28);
  color: var(--live);
  font-size: 10.5px;
}
.side-tag.tag-gold { border-color: rgba(200, 169, 118, 0.4); color: var(--gold); }

/* connect */
.providers { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.provider {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.provider:hover { border-color: var(--stroke); background: rgba(255, 255, 255, 0.055); }
.p-ava {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #141613;
  font-size: 13px;
  font-weight: 600;
}
.p-txt { flex: 1; min-width: 0; }
.p-txt b { display: block; font-size: 13.5px; font-weight: 600; }
.p-txt small { display: block; font-size: 12px; color: var(--t3); margin-top: 1px; }
.p-tag { flex: none; font-size: 10.5px; color: var(--live); }

.wallets { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.wallet-opt {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.wallet-opt:hover { border-color: var(--stroke); background: rgba(255, 255, 255, 0.06); }
.wallet-opt:active { transform: scale(0.985); }
.w-ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke-soft);
}
.w-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-ico-gen { color: var(--t2); }
.w-ico-gen svg { width: 19px; height: 19px; }
.w-tag {
  flex: none;
  font-size: 10.5px;
  color: var(--live);
  border: 1px solid rgba(203, 208, 202, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
}
.w-arr {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--t3);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.15s, transform 0.15s;
}
.wallet-opt:hover .w-arr { opacity: 1; transform: none; }

.wallet-empty {
  margin-top: 18px;
  padding: 26px 18px;
  border: 1px dashed var(--stroke);
  border-radius: 16px;
  text-align: center;
}
.we-glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke-soft);
  color: var(--t2);
}
.we-glyph svg { width: 21px; height: 21px; }
.wallet-empty b { display: block; font-size: 13.5px; }
.wallet-empty small { display: block; margin-top: 4px; font-size: 12px; color: var(--t3); line-height: 1.5; }
.we-links { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.we-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 12px;
  transition: color 0.14s, background 0.14s;
}
.we-links a:hover { color: var(--t1); background: rgba(255, 255, 255, 0.05); }
.we-links a span { color: var(--t3); }

.conn-wait { text-align: center; padding-top: 6px; }
.conn-wait .msub { max-width: 300px; margin-left: auto; margin-right: auto; }
.cw-ring {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 4px auto 16px;
  display: grid;
  place-items: center;
}
.cw-ico { display: grid; place-items: center; }
.cw-ico img { width: 44px; height: 44px; border-radius: 12px; display: block; }
.cw-ico.w-ico-gen svg { width: 26px; height: 26px; }
.cw-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 2px solid var(--stroke-soft);
}
.cw-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 2px solid transparent;
  border-top-color: var(--live);
  animation: cwspin 0.9s linear infinite;
}
@keyframes cwspin { to { transform: rotate(360deg); } }

.demo-note {
  margin-top: 16px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--t3);
}

.handle-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 0 13px;
}
.handle-wrap span { color: var(--t3); font-weight: 500; }
.handle-wrap input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 10px 2px;
  font: inherit;
  font-size: 14px;
  color: var(--t1);
  background: none;
}
.field { margin-bottom: 12px; }
.field > label { display: block; font-size: 13px; font-weight: 500; color: var(--t2); margin-bottom: 7px; }

.asset-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.asset-pick button {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--t3);
  border: 1px solid var(--stroke-soft);
  transition: all 0.13s;
}
.asset-pick button:hover { color: var(--t1); border-color: var(--stroke); }
.asset-pick button.active { color: var(--t1); border-color: var(--live); background: rgba(203, 208, 202, 0.09); }

/* empty states */
.empty-hero { padding: 60px 30px; text-align: center; }
.empty-hero h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.empty-hero p { margin: 10px auto 22px; max-width: 400px; font-size: 14px; color: var(--t2); }
.empty-inline { padding: 10px 2px 6px; }
.empty-inline p { font-size: 13px; color: var(--t3); max-width: 400px; }
.empty-inline button { margin-top: 12px; }

/* toasts */
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(340px, calc(100vw - 40px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 16px;
  background: rgba(21, 23, 21, 0.85);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid var(--stroke);
  box-shadow: var(--spec), 0 20px 50px -16px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.26s, transform 0.26s;
}
.toast.in { opacity: 1; transform: none; }
.toast.clickable { cursor: pointer; }
.toast .t-ic {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #141613;
  font-size: 11.5px;
  font-weight: 600;
}
.toast .t-body { min-width: 0; }
.toast .t-body b { display: block; font-size: 13px; font-weight: 600; }
.toast .t-body small { display: block; font-size: 12px; color: var(--t2); margin-top: 1px; }

/* ================= responsive ================= */

@media (max-width: 1000px) {
  .blocks-stage, .ov-cols { grid-template-columns: 1fr; gap: 44px; }
  .risk-stage { grid-template-columns: 1fr; gap: 26px; }
  .osbar { padding: 14px 20px; gap: 16px; }
  .stage { padding: 18px 20px 110px; }
  .rail {
    top: auto;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .rail:hover, .rail:focus-within { width: auto; }
  .rail-nav { flex-direction: row; }
  .rail .lbl { display: none; }
  .rail-foot { margin: 0 0 0 4px; flex-direction: row; align-items: center; }
  .rail-dot { margin: 0 8px 0 4px; }
}
@media (max-width: 640px) {
  .osnav { order: 3; width: 100%; overflow-x: auto; }
  .osbar { flex-wrap: wrap; }
  .metric-row { gap: 28px; }
  .hero-figure { font-size: 42px; }
  .orb-wrap { width: 260px; height: 240px; }
  .id-chip b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .sheet { transition: none; }
}

.vtick { color: var(--live); font-size: 11px; }

/* ---------- provenance + honesty affordances ---------- */

.src-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  vertical-align: 1px;
}
.src-live { color: var(--pos-c); border: 1px solid rgba(156, 207, 174, 0.32); }
.src-demo { color: var(--gold); border: 1px solid rgba(200, 169, 118, 0.34); }

.proof-src {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  line-height: 1.55;
  color: var(--t2);
}
.proof-src b { color: var(--t1); font-weight: 600; }
.proof-demo { border-color: rgba(200, 169, 118, 0.28); }
.proof-link {
  flex: none;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--info);
  white-space: nowrap;
}
.proof-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.settle-note {
  margin-top: 9px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--t3);
  text-align: center;
}

.preview-note {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid rgba(200, 169, 118, 0.3);
  background: rgba(200, 169, 118, 0.05);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--t2);
}
.preview-note b { color: var(--gold); font-weight: 600; }

/* ---------- boot: paint immediately, report progress honestly ---------- */

.net-dot.net-pulse { animation: netpulse 1.25s ease-in-out infinite; }
@keyframes netpulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

.booting {
  max-width: 420px;
  margin: 46px auto 0;
  text-align: center;
}
.boot-orb {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 26px;
}
.boot-orb span {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--live);
  opacity: 0.25;
  animation: bootdot 1.1s ease-in-out infinite;
}
.boot-orb span:nth-child(2) { animation-delay: 0.14s; }
.boot-orb span:nth-child(3) { animation-delay: 0.28s; }
@keyframes bootdot {
  0%, 100% { opacity: 0.22; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}
.boot-step {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--t4);
  text-align: left;
  transition: color 0.25s;
}
.boot-step .bs-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  border: 1px solid var(--t4);
  transition: background 0.25s, border-color 0.25s;
}
.boot-step.active { color: var(--t1); }
.boot-step.active .bs-dot { border-color: var(--live); background: var(--live); }
.boot-step.done { color: var(--t2); }
.boot-step.done .bs-dot { border-color: var(--pos-c); background: var(--pos-c); }
.boot-note {
  margin-top: 20px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--t4);
}

/* A handle nobody has checked must never look like a verified one. */
.vclaim {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(200, 169, 118, 0.35);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--gold);
  vertical-align: 1px;
}

/* ---------- overview: live markets ---------- */

.ov-markets { margin-top: 30px; }
.mkt-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.mkt-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 15px;
  border-radius: 15px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.028);
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.mkt-card:hover { border-color: var(--stroke); background: rgba(255, 255, 255, 0.055); }
.mkt-card:active { transform: scale(0.99); }
.mkt-sym { font-size: 14px; font-weight: 600; color: var(--t1); }
.mkt-price { font-size: 11.5px; color: var(--t2); }
.mkt-depth { font-size: 11px; color: var(--t3); }
.mkt-go {
  margin-top: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--live);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.15s, transform 0.15s;
}
.mkt-card:hover .mkt-go { opacity: 1; transform: none; }
@media (max-width: 620px) { .mkt-grid { grid-template-columns: 1fr 1fr; } }
