:root {
  --bg: #101010;
  --card: #1a1a1a;
  --card2: #222;
  --line: rgba(255,255,255,.08);
  --ink: #fff;
  --mute: rgba(255,255,255,.5);
  --dim: rgba(255,255,255,.32);
  --up: #0eec58;
  --up-bg: rgba(14,236,88,.16);
  --down: #ff194f;
  --down-bg: rgba(255,25,79,.16);
  --amber: #f5b83d;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 14px/1.4 Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
.mono { font-family: 'Geist Mono', monospace; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); height: 56px; }
.top-in { max-width: 1280px; margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 6px 10px; border-radius: 8px; color: var(--mute); font-weight: 500; }
.nav a.on, .nav a:hover { color: var(--ink); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 12px; height: 40px; padding: 0 12px; width: 200px; }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--mute); stroke-width: 2; }
.search input { background: none; border: 0; outline: 0; color: var(--ink); font: inherit; width: 100%; }
.search input::placeholder { color: var(--mute); }
.btn-white { background: #fff; color: #000; height: 40px; padding: 0 22px; border-radius: 12px; font-weight: 500; min-width: 210px; }
.btn-white:hover { background: #e9e9e9; }

/* ---------- layout ---------- */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0,1fr) 288px; gap: 40px; }
.main { padding-top: 16px; min-width: 0; }
.side { padding: 32px 0 24px; position: sticky; top: 56px; align-self: start; max-height: calc(100vh - 56px); overflow: auto; scrollbar-width: none; }
.side h2 { font-size: 14px; font-weight: 600; letter-spacing: .01em; margin-bottom: 14px; }
.side-sec + .side-sec { margin-top: 32px; }

/* ---------- logo + ring ---------- */
.logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--card2); flex: none; }
.logo.lg { width: 56px; height: 56px; border-radius: 12px; }
.logo.sm { width: 28px; height: 28px; border-radius: 7px; }
.ring { width: 52px; height: 52px; flex: none; position: relative; display: grid; place-items: center; text-align: center; }
.ring.lg { width: 64px; height: 64px; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring b { font-size: 12px; font-weight: 600; display: block; line-height: 1; }
.ring.lg b { font-size: 14px; }
.ring i { font-style: normal; font-size: 9px; color: var(--mute); }

/* ---------- feature ---------- */
.feat { background: var(--card); border-radius: 24px; padding: 24px; margin-bottom: 20px; }
.feat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.feat-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.meta { color: var(--mute); font-size: 13px; display: flex; gap: 8px; margin-top: 3px; }
.feat-head .ring { margin-left: auto; }
.feat-body { display: grid; grid-template-columns: 240px 1fr; gap: 24px; height: 260px; }
.tape { overflow: hidden; display: flex; flex-direction: column; gap: 6px; mask-image: linear-gradient(#000 75%, transparent); }
.tape-row { display: flex; align-items: center; gap: 8px; font-size: 13px; animation: in .4s ease; }
@keyframes in { from { opacity: 0; transform: translateY(-6px); } }
.av { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.tape-row .who { font-weight: 500; }
.tape-row .what { color: var(--mute); }
.tag { margin-left: auto; font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 5px; }
.tag.up { color: var(--up); background: var(--up-bg); }
.tag.down { color: var(--down); background: var(--down-bg); }
.chart-top { display: flex; align-items: flex-end; gap: 28px; margin-bottom: 8px; }
.chart-top small { display: block; color: var(--mute); font-size: 12px; margin-bottom: 3px; }
.chart-top strong { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.chart-top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--up); font-weight: 500; }
.chip { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--up-bg); color: var(--up); }
.chart { position: relative; height: 190px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.feat-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.b-up, .b-down { height: 36px; border-radius: 6px; font-weight: 500; width: 100%; }
.b-up { background: var(--up-bg); color: var(--up); }
.b-down { background: var(--down-bg); color: var(--down); }
.b-up:hover { background: rgba(14,236,88,.26); }
.b-down:hover { background: rgba(255,25,79,.26); }
.b-up:disabled, .b-down:disabled { opacity: .35; cursor: default; }
.b-flat { height: 36px; border-radius: 6px; font-weight: 500; width: 100%; background: rgba(255,255,255,.07); color: var(--mute); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.tabs button { height: 32px; padding: 0 12px; border-radius: 999px; color: var(--mute); font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.tabs button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.tabs button.on { background: rgba(255,255,255,.08); color: var(--ink); }
.tabs button:hover { color: var(--ink); }
.tabs .sep { width: 1px; background: var(--line); margin: 6px 4px; flex: none; }

/* ---------- grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.card { background: var(--card); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: background .15s; }
.card:hover { background: #1f1f1f; }
.card-head { display: flex; gap: 10px; align-items: flex-start; }
.card-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.card-head .meta { font-size: 12px; }
.card-head .ring { margin-left: auto; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--down); display: inline-block; align-self: center; }
.dot.g { background: var(--up); }
.dot.a { background: var(--amber); }
.dot.m { background: var(--dim); }
.card-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-foot { display: flex; gap: 14px; color: var(--mute); font-size: 13px; align-items: center; }
.card-foot span { display: flex; align-items: center; gap: 5px; }
.card-foot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.card-foot .r { margin-left: auto; }
.empty { color: var(--mute); padding: 40px 0; text-align: center; }

/* ---------- side lists ---------- */
.top-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.top-list li { display: flex; align-items: center; gap: 12px; padding: 6px 0; cursor: pointer; }
.top-list .n { color: var(--mute); width: 12px; font-size: 13px; }
.top-list .nm b { display: block; font-weight: 600; }
.top-list .nm small { color: var(--mute); font-size: 12px; }
.top-list .pc { margin-left: auto; font-size: 13px; font-weight: 500; }
.act { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.act li { display: flex; gap: 10px; font-size: 13px; }
.act .av { width: 28px; height: 28px; }
.act b { font-weight: 600; }
.act .what { color: var(--mute); }
.act .sub { font-size: 12px; }
.act .t { margin-left: auto; color: var(--mute); font-size: 12px; white-space: nowrap; }
.up-t { color: var(--up); } .down-t { color: var(--down); }
.how { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.how li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; font-size: 13px; }
.how li::before { content: counter(s); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 11px; color: var(--mute); }
.how b { font-weight: 600; }
.how span { color: var(--mute); }

/* ---------- footer ---------- */
.foot { margin-top: 64px; border-top: 1px solid var(--line); padding: 48px 24px 24px; }
.foot-in { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--mute); margin-top: 12px; max-width: 260px; }
.foot nav { display: flex; flex-direction: column; gap: 12px; }
.foot h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.foot nav a, .foot nav span { color: var(--mute); }
.foot nav a:hover { color: var(--ink); }
.foot-base { max-width: 1280px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--dim); font-size: 13px; }
.mob { display: none; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.66); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.sheet { background: var(--card); border-radius: 24px; width: 100%; max-width: 440px; padding: 24px; position: relative; max-height: calc(100vh - 32px); overflow: auto; }
.sheet .x { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.07); font-size: 18px; line-height: 1; }
.sheet h2 { font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.sheet p.desc { color: var(--mute); margin: 14px 0 18px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.stat { background: var(--card2); border-radius: 12px; padding: 12px; }
.stat small { color: var(--mute); font-size: 12px; display: block; margin-bottom: 3px; }
.stat b { font-weight: 600; font-size: 15px; }
.bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; margin: 6px 0 18px; }
.bar i { display: block; height: 100%; background: var(--up); border-radius: 3px; }
.amt { display: flex; align-items: center; background: var(--card2); border-radius: 12px; height: 52px; padding: 0 14px; gap: 10px; }
.amt input { background: none; border: 0; outline: 0; color: var(--ink); font: 600 20px Geist; width: 100%; }
.amt span { color: var(--mute); font-weight: 500; }
.quick { display: flex; gap: 6px; margin: 10px 0 14px; }
.quick button { flex: 1; height: 30px; border-radius: 8px; background: rgba(255,255,255,.07); color: var(--mute); font-size: 13px; }
.quick button:hover { color: var(--ink); }
.qrows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-size: 13px; }
.qrows div { display: flex; justify-content: space-between; }
.qrows span { color: var(--mute); }
.note { color: var(--mute); font-size: 12px; margin-top: 10px; text-align: center; }

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; gap: 0; }
  .side { position: static; max-height: none; }
  .nav, .search { display: none; }
  .btn-white { margin-left: auto; min-width: 0; }
  .feat-body { grid-template-columns: 1fr; height: auto; }
  .tape { height: 140px; order: 2; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .mob { display: flex; position: fixed; inset: auto 0 0; z-index: 60; background: rgba(16,16,16,.92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 16px; justify-content: space-around; }
  .mob a { color: var(--mute); font-weight: 500; } .mob a.on { color: var(--ink); }
  .foot { padding-bottom: 80px; }
}
@media (max-width: 600px) {
  .top-in, .shell { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  .feat { padding: 18px; border-radius: 20px; }
  .chart-top { gap: 16px; flex-wrap: wrap; }
}

/* ---------- lower blocks ---------- */
.block { margin-top: 40px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.block-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.link { color: var(--mute); font-weight: 500; }
.link:hover { color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.kpi { background: var(--card); border-radius: 16px; padding: 18px; }
.kpi small { color: var(--mute); font-size: 13px; display: block; margin-bottom: 6px; }
.kpi b { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.kpi span { display: block; color: var(--mute); font-size: 12px; margin-top: 4px; }
.rows { background: var(--card); border-radius: 16px; padding: 6px 16px; }
.row { display: grid; grid-template-columns: 28px 1fr 180px 80px; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.row + .row { border-top: 1px solid var(--line); }
.row b { font-weight: 600; } .row small { color: var(--mute); display: block; font-size: 12px; }
.row .bar { margin: 0; }
.row .pc { text-align: right; font-weight: 500; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.step { background: var(--card); border-radius: 16px; padding: 16px; }
.step .art { height: 110px; border-radius: 10px; background: #121212; margin-bottom: 14px; overflow: hidden; }
.step .art svg { width: 100%; height: 100%; }
.step small { color: var(--mute); font-size: 12px; }
.step h3 { font-size: 15px; font-weight: 600; margin: 3px 0 6px; letter-spacing: -.02em; }
.step p { color: var(--mute); font-size: 13px; }
.faq { background: var(--card); border-radius: 16px; padding: 0 16px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 500; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--mute); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--mute); padding: 0 0 16px; max-width: 640px; }

/* ---------- intro walkthrough ---------- */
.intro { background: var(--card); border-radius: 24px; width: 100%; max-width: 440px; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.intro .art { height: 250px; background: linear-gradient(180deg, #141414, #0d0d0d); position: relative; border-bottom: 1px solid rgba(255,255,255,.05); }
.intro .art svg { width: 100%; height: 100%; display: block; }
.intro .pips { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.intro .pips i { width: 6px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); transition: width .25s, background .25s; }
.intro .pips i.on { width: 22px; background: #fff; }
.intro .skip { position: absolute; top: 8px; right: 10px; color: var(--mute); font-weight: 500; font-size: 13px; padding: 4px 8px; }
.intro .skip:hover { color: var(--ink); }
.intro .txt { padding: 20px 20px 0; }
.intro h2 { font-size: 21px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 8px; }
.intro p { color: var(--mute); min-height: 60px; }
.intro .go { display: flex; gap: 8px; padding: 20px; }
.intro .go button { height: 44px; border-radius: 999px; font-weight: 500; }
.intro .back { width: 44px; background: rgba(255,255,255,.07); flex: none; }
.intro .skip-b { padding: 0 20px; background: rgba(255,255,255,.07); color: var(--mute); }
.intro .skip-b:hover { color: var(--ink); }
.intro .next { flex: 1; background: #fff; color: #000; }
.intro .next:hover { background: #e9e9e9; }
.intro .slide { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateX(10px); } }

@media (max-width: 960px) { .kpis, .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .row { grid-template-columns: 28px 1fr 60px; } .row .bar { display: none; } }

/* ---------- actions + filing ---------- */
.btn-ghost-sm { height: 40px; padding: 0 18px; border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 500; }
.btn-ghost-sm:hover { background: var(--card2); }
#connect.connected .dot, #wallet-btn.connected .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--up); margin-right: 8px; vertical-align: middle; }
#act-zone { display: flex; flex-direction: column; gap: 8px; }
.act-note { color: var(--mute); font-size: 13px; }
.act-status { font-size: 13px; color: var(--mute); text-align: center; min-height: 18px; }
.act-status a { color: var(--ink); text-decoration: underline; }
.act-err { color: var(--down); }
.act-link { display: grid; place-items: center; }
.sheet.create h2 { margin-bottom: 4px; }
.sheet.create form { display: flex; flex-direction: column; gap: 12px; }
.sheet.create label { display: grid; gap: 6px; font-size: 13px; color: var(--mute); }
.sheet.create input:not([type=range]):not([type=file]), .sheet.create textarea { background: var(--card2); border: 0; outline: 0; border-radius: 10px; padding: 12px; color: var(--ink); font: 400 14px Geist, sans-serif; resize: vertical; }
.sheet.create .amt input { background: none; padding: 0; }
.sheet.create .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet.create .quick { margin: 0; }
.sheet.create .quick button.on { background: #fff; color: #000; }
.drop { height: 120px; border-radius: 14px; background: var(--card2) center/cover no-repeat; display: grid !important; place-items: center; cursor: pointer; border: 1px dashed rgba(255,255,255,.18); }
.drop span { background: rgba(0,0,0,.55); padding: 6px 12px; border-radius: 999px; color: var(--ink); }
.days { display: flex; align-items: center; gap: 12px; }
.days input { flex: 1; accent-color: #fff; }
.wallet-pick { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6); display: grid; place-items: center; }
.wallet-pick-card { background: var(--card); border-radius: 18px; padding: 18px; display: grid; gap: 8px; min-width: 260px; }
.wallet-pick-card button { display: flex; gap: 10px; align-items: center; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--card2); color: var(--ink); }
.wallet-pick-card img, .wallet-pick-card i { width: 22px; height: 22px; border-radius: 6px; }
@media (max-width: 960px) { #create-btn { margin-left: auto; } .btn-white#connect { margin-left: 0; } }

/* before the first offering */
.no-book #tabs, .no-book #grid, .no-book #empty, .no-book .block:has(#kpis), .no-book .block:has(#almost), .no-book #board, .no-book .side-sec:has(#act) { display: none; }
.first { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; overflow: hidden; margin-bottom: 8px; }
.first-art { background: linear-gradient(180deg, #141414, #0d0d0d); min-height: 280px; }
.first-art svg { width: 100%; height: 100%; display: block; }
.first-txt { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.first-txt small { color: #0eec58; font-size: 12px; font-weight: 500; }
.first-txt h2 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.first-txt p { color: var(--mute); font-size: 14px; }
.first-txt dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0; }
.first-txt dl div { background: rgba(255,255,255,.04); border-radius: 10px; padding: 8px 12px; }
.first-txt dt { color: var(--mute); font-size: 11px; }
.first-txt dd { font-size: 14px; font-weight: 500; }
.first-go { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.first-go .btn-white { min-width: 0; }
@media (max-width: 760px) { .first { grid-template-columns: 1fr; } .first-art { min-height: 200px; } }
