/* conclave · app styles
   Layout: fixed left rail, top bar, routed view area. Feed-first home (center column + right rail),
   full-width Session, list pages, detail pages, modals. Single deliberate dark look. */
:root {
  --bg: #070708; --s1: #0e0f12; --s2: #14161a; --s3: #1b1d22; --s4: #23262c;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12); --line3: rgba(255,255,255,.2);
  --fg: #ececee; --fg2: #c9cad0; --dim: #8b8e97; --dim2: #5e616a;
  --up: #5fd39a; --dn: #ef5a5f; --sig: #e5484d; --eth: #9aa4ff;
  --light: #ecebe7; --on-light: #0b0b0c;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --rail: 232px; --right: 320px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: rgba(255,255,255,.2); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .dn { color: var(--dn); } .muted { color: var(--dim); } .faint { color: var(--dim2); }
.strong { font-weight: 500; color: var(--fg); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100%; }
.rail { border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; padding: 18px 14px 16px; overflow-y: auto; min-height: 0; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.04em; padding: 2px 8px 6px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: #b8bac1; }
.nav a:hover { background: var(--s2); color: var(--fg); }
.nav a.on { background: var(--s3); color: #fff; }
.nav svg { width: 17px; height: 17px; flex: none; }
.nav .badge { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.nav .live-dot { margin-left: auto; }
.railstats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: auto; }
.railstats div { background: var(--s1); padding: 11px 12px; display: grid; gap: 1px; }
.railstats b { font-weight: 400; font-size: 15px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.railstats span { font-size: 11px; color: var(--dim); }
.railfoot { display: grid; gap: 8px; font-size: 12px; color: var(--dim); padding: 0 4px; }
.railfoot .links { display: flex; gap: 14px; flex-wrap: wrap; }
.railfoot a:hover { color: var(--fg); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }
.top { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.top .mlogo { display: none; }
.search { flex: 0 1 340px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); color: var(--dim); }
.search:focus-within { border-color: var(--line3); }
.search input { background: transparent; border: 0; outline: 0; width: 100%; min-width: 0; color: var(--fg); }
.search kbd { font-family: var(--mono); font-size: 11px; color: var(--dim2); border: 1px solid var(--line2); border-radius: 5px; padding: 0 5px; }
.top .grow { flex: 1; }
.chainpill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--fg2); white-space: nowrap; }
.chainpill.warn { border-color: rgba(229,72,77,.5); color: #ff9b9e; }
.mode { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line2); padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.banner { margin: 14px 20px 0; padding: 10px 14px; border-radius: 12px; background: rgba(229,72,77,.1); border: 1px solid rgba(229,72,77,.35); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#view { padding: 18px 20px 64px; }

/* ---------- primitives ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; white-space: nowrap; border: 1px solid transparent; transition: background .15s, border-color .15s, opacity .15s; }
.pill.light { background: var(--light); color: var(--on-light); }
.pill.light:hover { background: #fff; }
.pill.ghost { border-color: var(--line2); }
.pill.ghost:hover { border-color: var(--line3); }
.pill.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.pill.block { width: 100%; }
.pill[disabled], .pill.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.pill.on { background: var(--s3); border-color: var(--line2); }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: 18px; min-width: 0; }
.card.pad { padding: 16px; }
.ch { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; min-width: 0; }
.ch h2, .ch h3 { margin: 0; font-size: 13px; font-weight: 500; white-space: nowrap; }
.ch .sub { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ch .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
.ch .more { font-size: 12px; color: var(--dim); }
.ch .more:hover { color: #fff; }
.live-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--up); animation: ping 1.8s infinite; display: inline-block; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95,211,154,.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(95,211,154,0); } }
.tabs { display: inline-flex; gap: 3px; background: var(--s2); padding: 3px; border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 5px 12px; border-radius: 999px; font-size: 12px; color: var(--dim); white-space: nowrap; }
.tabs button:hover { color: var(--fg); }
.tabs button.on { background: var(--s4); color: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; background: rgba(255,255,255,.07); color: var(--fg2); white-space: nowrap; }
.chip.solid { background: #fff; color: var(--on-light); }
.chip.red { background: rgba(229,72,77,.14); color: #ff9b9e; }
.chip.green { background: rgba(95,211,154,.12); color: var(--up); }
.chip.eth { background: rgba(154,164,255,.12); color: var(--eth); }
.av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.92); letter-spacing: -.02em; overflow: hidden; }
.av.sm { width: 24px; height: 24px; font-size: 9px; }
.av.lg { width: 48px; height: 48px; font-size: 15px; }
.av.xl { width: 64px; height: 64px; font-size: 19px; }
.av.sq { border-radius: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot.w { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.55); }
.dot.b { background: #3a3c42; border: 1px solid #5e616a; }
.dot.g { background: var(--up); } .dot.r { background: var(--dn); }
.empty { padding: 22px 16px; color: var(--dim); font-size: 13px; text-align: center; }
.copy { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--dim); padding: 3px 8px; border-radius: 8px; border: 1px solid var(--line); }
.copy:hover { color: #fff; border-color: var(--line2); }
.extlink { color: var(--dim); text-decoration: underline; text-decoration-color: var(--line3); text-underline-offset: 3px; }
.extlink:hover { color: #fff; }

.list { display: grid; }
.li { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 13px; min-width: 0; }
a.li:hover, .li.btn:hover { background: var(--s2); }
.li .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .grow span { color: var(--dim); }
.li .meta { font-size: 12px; color: var(--dim); white-space: nowrap; }
.li.new { animation: slide .4s ease-out; }
@keyframes slide { from { opacity: 0; transform: translateY(-5px); } }
.rank { width: 16px; color: var(--dim); font-family: var(--mono); font-size: 12px; flex: none; }
.prog { height: 4px; border-radius: 99px; background: var(--s3); overflow: hidden; flex: none; }
.prog i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.prog.g i { background: var(--up); }

.gate { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; white-space: nowrap; }
.gate .steps { display: flex; gap: 3px; }
.gate .steps i { width: 14px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.12); }
.gate .steps i.on { background: #fff; }
.gate.g3 .steps i.on { background: var(--up); }

/* ---------- page heads ---------- */
.pagehead { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pagehead h1 { margin: 0; font-size: 24px; font-weight: 300; letter-spacing: -.035em; }
.pagehead .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.crumbs a:hover { color: #fff; }

/* ---------- floor (feed + rail) ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) var(--right); gap: 16px; align-items: start; max-width: 1180px; }
.cols > .side { display: grid; gap: 14px; position: sticky; top: 0; }
.feedwrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.minisession { position: relative; overflow: hidden; }
.minisession canvas { display: block; width: 100%; }
.minisession .over { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.minisession .over .vote { flex: 1; min-width: 0; }
.feedhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feedhead .note { font-size: 12px; color: var(--dim); margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.newpill { position: sticky; top: 8px; z-index: 5; margin: 0 auto; display: none; width: max-content; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--on-light); font-size: 13px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.newpill.on { display: block; }
.feed { display: grid; }
.item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 14px 16px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item.new { animation: slide .5s ease-out; }
.item .hd { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.item .hd b { font-weight: 500; }
.item .hd a:hover b, .item .hd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.item .hd .t { color: var(--dim); font-size: 12px; }
.item p { margin: 4px 0 8px; color: #d6d7dc; overflow-wrap: anywhere; font-size: 14px; }
.item p a.cash { color: #fff; }
.item p a.cash:hover { text-decoration: underline; }
.item .acts { display: flex; gap: 18px; font-size: 12px; color: var(--dim); }
.item .acts button:hover { color: #fff; }
.item .acts .on { color: #fff; }
.attach { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 14px; background: var(--s2); margin: 4px 0 8px; }
.attach:hover { border-color: var(--line3); }
.attach .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.attach .grow b { font-weight: 500; }
.attach .grow span { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sysicon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); }
.sysicon.w { background: #fff; color: var(--on-light); }
.sysicon.g { background: rgba(95,211,154,.15); color: var(--up); }
.sysicon.r { background: rgba(229,72,77,.15); color: #ff9b9e; }
.sysicon svg { width: 16px; height: 16px; }

.claveCard .price { display: flex; align-items: baseline; gap: 10px; padding: 0 16px; }
.claveCard .price .v { font-size: 30px; font-weight: 300; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.claveCard canvas { display: block; width: calc(100% - 32px); height: 70px; margin: 8px 16px 10px; }
.kv2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.kv2 div { background: var(--s2); padding: 10px 12px; font-size: 12px; color: var(--dim); display: grid; gap: 2px; min-width: 0; }
.kv2 b { font-weight: 400; color: var(--fg); font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.kv2.three { grid-template-columns: repeat(3, 1fr); }
.kv2.four { grid-template-columns: repeat(4, 1fr); }

/* ---------- vote cards ---------- */
.vote { background: rgba(20,22,26,.78); border: 1px solid var(--line2); border-radius: 14px; padding: 11px 12px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; gap: 7px; min-width: 0; }
.vote.solid { background: var(--s1); backdrop-filter: none; -webkit-backdrop-filter: none; }
.vote .row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--dim); gap: 8px; }
.vote .row > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vote .tk { font-size: 17px; color: #fff; letter-spacing: -.02em; }
.meter { height: 4px; background: rgba(255,255,255,.1); border-radius: 99px; position: relative; }
.meter b { position: absolute; inset: 0 auto 0 0; background: #fff; border-radius: 99px; transition: width .4s; }
.meter.red b { background: var(--dn); }
.meter i { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--sig); }
.vote.empty { color: var(--dim); font-size: 12px; place-content: center; text-align: center; min-height: 96px; }
.vote.passed { border-color: rgba(255,255,255,.5); }
.vote.failed { border-color: rgba(229,72,77,.5); }

/* ---------- session ---------- */
.sessionStage { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(90% 100% at 50% 0%, #15171c 0%, #0a0b0d 70%); border-radius: 0 0 18px 18px; }
.sessionStage canvas { display: block; width: 100%; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.li[data-href] { cursor: pointer; }
.votegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th { text-align: left; font-weight: 400; font-size: 11px; color: var(--dim); letter-spacing: .04em; text-transform: uppercase; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th.r, td.r { text-align: right; }
th.sortable { cursor: pointer; }
th.sortable:hover, th.sorted { color: #fff; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--s2); }
tbody tr:last-child td { border-bottom: 0; }
.coin { display: flex; align-items: center; gap: 10px; }
.coin .t { display: grid; }
.coin .t b { font-weight: 500; }
.coin .t span { font-size: 11px; color: var(--dim); }

/* ---------- grids ---------- */
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ccard { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 12px; transition: border-color .15s; }
a.ccard:hover { border-color: var(--line3); }
.ccard .h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ccard .h > span { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ccard .h b { font-weight: 500; font-size: 15px; }
.ccard .model { font-size: 12px; color: var(--dim); }
.ccard .bio { font-size: 13px; color: var(--fg2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard .kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12px; color: var(--dim); }
.ccard .kv b { display: block; color: var(--fg); font-weight: 400; font-family: var(--mono); font-size: 13px; }

/* ---------- detail pages ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; max-width: 1180px; }
.detail > .side { display: grid; gap: 14px; position: sticky; top: 0; }
.detail .mainc { display: grid; gap: 14px; min-width: 0; }
.dhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dhead h1 { margin: 0; font-size: 26px; font-weight: 400; letter-spacing: -.035em; }
.dhead .sub { color: var(--dim); font-size: 13px; }
.dhead .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.bigprice { display: flex; align-items: baseline; gap: 12px; padding: 16px 16px 0; flex-wrap: wrap; }
.bigprice .v { font-size: 34px; font-weight: 300; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.chartwrap { padding: 8px 16px 16px; }
.chartwrap canvas { display: block; width: 100%; height: 240px; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px 16px; }
.stepper div { border-top: 2px solid var(--s3); padding-top: 9px; font-size: 13px; color: var(--dim); display: grid; gap: 3px; }
.stepper div.done { border-color: rgba(255,255,255,.45); color: var(--fg2); }
.stepper div.now { border-color: #fff; color: #fff; }
.stepper div.now.g3 { border-color: var(--up); }
.stepper div small { font-family: var(--mono); font-size: 11px; color: var(--dim2); }
.tradebox { padding: 16px; display: grid; gap: 12px; }
.tradebox .lockicon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--s3); }
.quote { margin: 0; padding: 14px 16px; border-left: 2px solid var(--line3); color: var(--fg2); font-size: 15px; line-height: 1.55; }
.statgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.statgrid div { background: var(--s1); padding: 13px 16px; display: grid; gap: 3px; font-size: 12px; color: var(--dim); }
.statgrid b { font-weight: 400; color: var(--fg); font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------- docs ---------- */
.docs { max-width: 760px; }
.docs h1 { font-weight: 200; font-size: 44px; letter-spacing: -.055em; margin: 6px 0 10px; line-height: 1; text-wrap: balance; }
.docs .lede { font-size: 17px; color: var(--fg2); margin: 0 0 8px; max-width: 60ch; }
.docs h2 { font-weight: 400; font-size: 21px; letter-spacing: -.03em; margin: 40px 0 8px; }
.docs p, .docs li { color: var(--fg2); font-size: 15px; line-height: 1.65; }
.docs p { margin: 0 0 12px; }
.docs ul, .docs ol { padding-left: 20px; margin: 0 0 12px; }
.docs li { margin: 4px 0; }
.docs code { font-family: var(--mono); font-size: 13px; background: var(--s2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.docs table { min-width: 0; margin: 8px 0 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.docs td, .docs th { white-space: normal; }
.docs tbody tr { cursor: default; }
.docs tbody tr:hover { background: none; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line2); margin: 12px 0; font-size: 14px; color: var(--fg2); }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 18px; }
.flow div { border: 1px solid var(--line2); border-radius: 14px; padding: 14px; background: var(--s1); display: grid; gap: 6px; }
.flow div b { font-weight: 500; font-size: 14px; }
.flow div span { font-size: 13px; color: var(--dim); line-height: 1.5; }
details.faq { border-top: 1px solid var(--line); padding: 12px 0; }
details.faq summary { cursor: pointer; font-size: 15px; color: var(--fg); list-style: none; display: flex; justify-content: space-between; }
details.faq summary::after { content: "+"; color: var(--dim); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.scrim.on { opacity: 1; pointer-events: auto; }
.modal { position: fixed; z-index: 41; left: 50%; top: 50%; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow-y: auto; transform: translate(-50%, -46%); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; background: var(--s1); border: 1px solid var(--line2); border-radius: 20px; padding: 22px; }
.modal.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal .mh { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.modal .mh h3 { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: -.03em; }
.modal .mh .stepn { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-left: auto; }
.close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; flex: none; color: var(--dim); }
.close:hover { color: #fff; border-color: var(--line3); }
.mbody { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font-size: 12px; color: var(--dim); display: flex; justify-content: space-between; gap: 8px; }
.field input, .field textarea { background: var(--s2); border: 1px solid var(--line2); border-radius: 12px; padding: 11px 12px; outline: 0; width: 100%; }
.field input:focus, .field textarea:focus { border-color: rgba(255,255,255,.35); }
.field textarea { min-height: 92px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--dim2); }
.inputunit { position: relative; }
.inputunit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 12px; color: var(--dim); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; color: var(--fg2); }
.seg button:hover { border-color: var(--line3); }
.seg button.on { background: var(--light); color: var(--on-light); border-color: var(--light); }
.presets { display: flex; gap: 6px; }
.presets button { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--fg2); }
.presets button:hover { border-color: var(--line3); color: #fff; }
.summary { display: grid; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.summary div:first-child { border-top: 0; }
.summary div span:first-child { color: var(--dim); }
.summary div span:last-child { text-align: right; }
.txsteps { display: grid; gap: 10px; }
.txstep { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--dim); }
.txstep .ic { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; flex: none; }
.txstep.active { color: #fff; }
.txstep.active .ic { border-color: #fff; }
.txstep.active .ic::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; border-right-color: transparent; animation: spin .8s linear infinite; }
.txstep.done { color: var(--fg2); }
.txstep.done .ic { background: #fff; border-color: #fff; color: var(--on-light); }
.txstep.err { color: #ff9b9e; }
.txstep.err .ic { border-color: var(--dn); }
@keyframes spin { to { transform: rotate(360deg); } }
.walletlist { display: grid; gap: 8px; }
.walletlist button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--s2); text-align: left; }
.walletlist button:hover { border-color: var(--line3); }
.walletlist img, .walletlist .wi { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--s4); }
.walletlist .grow { flex: 1; display: grid; }
.walletlist .grow span { font-size: 12px; color: var(--dim); }
.menu { position: fixed; z-index: 45; min-width: 240px; background: var(--s2); border: 1px solid var(--line2); border-radius: 14px; padding: 6px; display: none; box-shadow: 0 16px 50px rgba(0,0,0,.5); }
.menu.on { display: block; }
.menu .mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; font-size: 13px; text-align: left; }
.menu .mi:hover { background: var(--s3); }
.menu .mhd { padding: 10px; display: grid; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translate(-50%, 20px); opacity: 0; transition: .25s; background: var(--s3); border: 1px solid var(--line2); border-radius: 14px; padding: 12px 16px; max-width: min(480px, calc(100% - 32px)); font-size: 13px; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { text-decoration: underline; }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: #050506; display: grid; place-items: center; transition: opacity .6s ease; }
.intro.out { opacity: 0; pointer-events: none; }
#introcv { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro .word { position: relative; margin-top: 240px; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity .7s, transform .7s; }
.intro .word.on { opacity: 1; transform: none; }
.intro .word h1 { margin: 0; font-weight: 200; font-size: 44px; letter-spacing: -.06em; }
.intro .word p { margin: 4px 0 0; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }
.skip { position: absolute; right: 20px; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); font-size: 12px; color: var(--dim); padding: 8px 14px; border: 1px solid var(--line2); border-radius: 999px; }

/* ---------- responsive ---------- */
.mtab { display: none; }
@media (max-width: 1240px) {
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: minmax(0, 1fr) 300px; }
  :root { --right: 290px; }
}
@media (max-width: 1020px) {
  .cols, .detail { grid-template-columns: minmax(0, 1fr); }
  .cols > .side, .detail > .side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .votegrid, .two { grid-template-columns: minmax(0, 1fr); }
  .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .top { padding: 10px 16px; gap: 8px; }
  .top .mlogo { display: flex; }
  .top .mlogo svg { width: 22px; height: 22px; }
  .search { flex: 1; }
  .search kbd, .top .grow, .mode, .chainpill .lbl, #buyTop { display: none; }
  #view { padding: 14px 16px 104px; }
  .banner { margin: 12px 16px 0; }
  .cols > .side, .detail > .side { grid-template-columns: minmax(0, 1fr); }
  .cgrid { grid-template-columns: minmax(0, 1fr); }
  .minisession .over { position: static; padding: 0 12px 12px; }
  .minisession .over .vote:nth-child(n+2) { display: none; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .kv2.four { grid-template-columns: repeat(2, 1fr); }
  .docs h1 { font-size: 34px; }
  .ch .sub { display: none; }
  .mtab { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(10,10,12,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 8px 6px calc(env(safe-area-inset-bottom, 0px) + 8px); justify-content: space-around; }
  .mtab a { display: grid; justify-items: center; gap: 3px; font-size: 11px; color: var(--dim); padding: 4px 6px; }
  .mtab a.on { color: #fff; }
  .mtab svg { width: 19px; height: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot, .txstep.active .ic::after { animation: none; }
  .item.new, .li.new { animation: none; }
}

/* ---------- launch curve + pitches ---------- */
.curvestage { position: relative; border-top: 1px solid var(--line); background: radial-gradient(90% 120% at 20% 100%, #121418 0%, #0a0b0d 70%); }
.curvestage canvas { display: block; width: 100%; height: 280px; }
.curvestage.sm canvas { height: 150px; }
.curvestats { margin: 12px 16px 16px; }
.curvetip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; opacity: 0; transition: opacity .12s; background: var(--s3, #1a1c21); border: 1px solid var(--line2); border-radius: 10px; padding: 7px 10px; font-size: 12px; line-height: 1.45; white-space: nowrap; z-index: 2; }
.curvetip.on { opacity: 1; }
.curvetip span { color: var(--dim); }
.pchip { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-family: var(--sans, inherit); letter-spacing: 0; background: rgba(154,164,255,.14); color: var(--eth, #9aa4ff); }
.pitchedby { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); padding: 8px 10px; border-radius: 10px; background: rgba(154,164,255,.08); }
.pitchedby svg { color: var(--eth, #9aa4ff); flex: none; }
.field select { background: var(--s2); border: 1px solid var(--line2); border-radius: 12px; padding: 11px 12px; outline: 0; width: 100%; color: inherit; font: inherit; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select:focus { border-color: rgba(255,255,255,.35); }
.fieldrow { display: grid; grid-template-columns: 1fr 150px; gap: 10px; }
.inputunit.pre input { padding-left: 24px; text-transform: uppercase; }
.inputunit.pre span { left: 12px; right: auto; }
.pitchcta { display: grid; gap: 10px; padding: 16px; }
.pitchcta p { margin: 0; font-size: 13px; color: var(--dim); }
.pstatus { font-size: 11px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: rgba(255,255,255,.07); color: var(--fg2); }
.pstatus.voting { background: rgba(95,211,154,.12); color: var(--up); }
.pstatus.launched { background: #fff; color: var(--on-light); }
.pstatus.rejected { background: rgba(229,72,77,.14); color: #ff9b9e; }
@media (max-width: 560px) { .curvestage canvas { height: 230px; } .fieldrow { grid-template-columns: 1fr; } }

/* vote cards: never let content push a card wider than its slot */
.vote { grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.vote .row > :first-child { flex: 1 1 auto; min-width: 0; }
.vote .row > :last-child:not(:first-child) { flex: none; }
@media (max-width: 1360px) { .minisession .over .vote:nth-child(n+3) { display: none; } }
@media (max-width: 1100px) and (min-width: 821px) { .vote .tk { font-size: 15px; } }
