:root {
  /* Direction D (2026-10-31): dark app shell after Streamflow's app; Covena's own accent is green. Dark only. */
  --bg: #070a0f;
  --panel: #0c1017;
  --panel-2: #111722;
  --line: #1a202b;
  --line-2: #262e3c;
  --ink: #ffffff;
  --mute: #919cb1;
  --faint: #5b6577;
  --acc: #12b981;
  --acc-2: #34e0a1;
  --on-acc: #03140d;
  --vest: #6f8cff;
  --drop: #f5a524;
  --stake: #c7cfdd;
  --up: #34e0a1;
  --down: #f87171;
  --on-up: #03140d;
  --on-down: #2b0609;
  --bar-bg: rgba(7, 10, 15, 0.9);
  --mark-glow: #111722;
  --mark-bg-lines: #1a202b;
  --tile-bg-s: 30%;
  --tile-bg-l: 18%;
  --tile-fg-l: 74%;
  --logo-filter: invert(1);
  --r: 12px;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.mute { color: var(--mute); }
.faint { color: var(--faint); }
.up { color: var(--up); }
.down { color: var(--down); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.label { font: 500 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; padding: 14px 0; background: linear-gradient(var(--bg) 60%, transparent); }
.top .bar { display: flex; align-items: center; gap: 26px; height: 60px; padding: 0 10px 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bar-bg); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 14px/1 var(--mono); letter-spacing: 0.08em; }
.brand img { width: 30px; height: 30px; filter: var(--logo-filter); }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { color: var(--mute); }
.nav a:hover, .nav a.on { color: var(--ink); }
.top .spacer { flex: 1; }
.theme { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); cursor: pointer; padding: 0; color: var(--mute); }
.theme:hover { color: var(--ink); }
.theme svg { width: 18px; height: 18px; }
.theme .sun { display: none; }
:root[data-theme='dark'] .theme .sun { display: block; }
:root[data-theme='dark'] .theme .moon { display: none; }
.net { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font: 12px var(--mono); color: var(--mute); }
.net::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--up); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); cursor: pointer; white-space: nowrap; font-weight: 500; font-size: 14px; }
.btn:hover { border-color: var(--faint); }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.solid:hover { opacity: 0.88; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.wide { width: 100%; height: 48px; font-weight: 600; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head > :first-child { font: 600 13px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.panel-head .mute { font: 12px var(--mono); }
.panel-body { padding: 18px; }

/* Coin tile */
.tile { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px; background: hsl(var(--h), var(--tile-bg-s), var(--tile-bg-l)); color: hsl(var(--h), 70%, var(--tile-fg-l)); font: 700 12px var(--mono); }
.tile.lg { width: 84px; height: 84px; border-radius: 18px; font-size: 22px; }

/* Curve meter */
.meter { display: grid; grid-template-columns: repeat(40, 1fr); gap: 2px; height: 12px; }
.meter i { background: var(--line-2); border-radius: 1px; }
.meter i.on { background: var(--ink); }
.meter.sm { grid-template-columns: repeat(24, 1fr); height: 8px; }


/* Trade chips */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 600 11px/1 var(--mono); letter-spacing: 0.04em; }
.chip.pass { background: color-mix(in srgb, var(--up) 13%, transparent); color: var(--up); }
.chip.fail { background: color-mix(in srgb, var(--down) 13%, transparent); color: var(--down); }
.chip.new { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 56px 0 40px; }
.hero h1 { margin: 18px 0 18px; font-size: clamp(44px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 span { color: var(--faint); }
.hero p { max-width: 520px; margin: 0 0 28px; font-size: 17px; color: var(--mute); }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.counters { display: flex; gap: 36px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.counters b { display: block; font: 600 22px/1.2 var(--mono); }
.counters span { font: 12px var(--mono); color: var(--mute); }
.mark { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; justify-self: end; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, transparent, var(--bg) 72%), repeating-linear-gradient(90deg, var(--mark-bg-lines) 0 1px, transparent 1px 5px), var(--mark-glow); overflow: hidden; }
.mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark .ink-d { display: none; }
.mark .band { opacity: 0.22; }
:root[data-theme='dark'] .mark .ink-l { display: none; }
:root[data-theme='dark'] .mark .ink-d { display: inline; }
:root[data-theme='dark'] .mark .band { opacity: 0.55; }
.mark .tag { position: absolute; left: 18px; bottom: 16px; font: 12px var(--mono); color: var(--faint); }
.mark .tag b { color: var(--mute); font-weight: 500; }

/* Bento */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.bento .monitor { grid-row: span 2; }
.bento .span2 { grid-column: span 2; }
.big-stat { font: 600 34px/1.1 var(--mono); letter-spacing: -0.02em; margin: 6px 0 4px; }
.spark { height: 120px; margin: 14px -18px -18px; }
.spark svg { width: 100%; height: 100%; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); }
.mini-list li:first-child { border-top: 0; }
.mini-list .grow { flex: 1; min-width: 0; }
.mini-list b { display: block; font-weight: 600; font-size: 14px; }
.mini-list small { color: var(--mute); font: 12px var(--mono); }
.mini-list .end { text-align: right; font: 13px var(--mono); }

.stream { list-style: none; margin: 0; padding: 0; height: 468px; overflow: hidden; position: relative; }
.stream::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--panel)); pointer-events: none; }
.stream li { display: grid; grid-template-columns: 60px 1fr auto; gap: 10px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); font: 13px var(--mono); animation: drop 0.35s ease-out; }
.stream li:first-child { border-top: 0; }
.stream .t { color: var(--faint); font-size: 12px; }
.stream .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream .what em { font-style: normal; color: var(--mute); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Section titles */
.section { margin-top: 88px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 10px 0 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.section-head h2 span { color: var(--faint); }
.section-head p { margin: 10px 0 0; max-width: 460px; color: var(--mute); }


/* Coins grid */
.board-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.tabs { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.tabs button { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 13px; color: var(--mute); }
.tabs button.on { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: block; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-top { display: flex; gap: 12px; align-items: center; }
.card-top b { display: block; font-weight: 600; }
.card-top small { color: var(--mute); font: 12px var(--mono); }
.card-top .end { margin-left: auto; text-align: right; font: 12px var(--mono); }
.card .mcap { font: 600 26px/1.1 var(--mono); letter-spacing: -0.02em; margin: 18px 0 12px; }
.card-foot { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--mute); }
.grad { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--mono); letter-spacing: 0.06em; color: var(--up); }

/* Steps timeline */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.steps > div { padding: 26px 24px; }
.steps > div + div { border-left: 1px solid var(--line); }
.steps .n { font: 600 13px var(--mono); color: var(--faint); }
.steps h3 { margin: 14px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.steps p { margin: 0 0 16px; color: var(--mute); font-size: 14px; }
.steps code { font: 12px var(--mono); color: var(--faint); }

/* Footer */
.foot { margin-top: 96px; border-top: 1px solid var(--line); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; padding: 44px 24px 48px; }
.foot .big { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.foot .big a { color: var(--mute); }
.foot .big a:hover { color: var(--ink); }
.foot nav { display: flex; gap: 22px; font: 13px var(--mono); color: var(--mute); }
.foot nav a:hover { color: var(--ink); }

/* Forms & trade */
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 16px; }
.seg button { height: 38px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-weight: 600; color: var(--mute); }
.seg button.on { background: var(--up); color: var(--on-up); }
.seg button.on.sell { background: var(--down); color: var(--on-down); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 7px; font: 500 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); outline: none; }
.input:focus { border-color: var(--faint); }
.input::placeholder { color: var(--faint); }
textarea.input { height: 90px; padding: 12px 14px; resize: vertical; }
.input-unit { position: relative; }
.input-unit em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: normal 13px var(--mono); color: var(--mute); }
.quick { display: flex; gap: 6px; margin: -4px 0 16px; }
.quick button { flex: 1; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; font: 12px var(--mono); color: var(--mute); }
.quick button:hover { color: var(--ink); border-color: var(--line-2); }
.rows { width: 100%; border-collapse: collapse; }
.rows td { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rows tr:first-child td { border-top: 0; }
.rows td:last-child { text-align: right; font-family: var(--mono); font-size: 13px; }
.small-link { display: block; text-align: center; margin-top: 12px; font: 12px var(--mono); color: var(--mute); }
.small-link:hover { color: var(--ink); }
.upper { text-transform: uppercase; letter-spacing: 0.06em; }
.note { font-size: 13px; color: var(--mute); margin: 12px 0 0; }

/* Coin identity, stats, controls table */
.coin-id { display: flex; gap: 16px; align-items: center; }
.coin-id h1, .coin-id h2 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
.coin-id .meta { margin-top: 6px; font: 13px var(--mono); color: var(--mute); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 22px 0; }
.stats div { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.stats b { display: block; font: 600 20px/1.2 var(--mono); }
.stats span { font: 11px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }
.curve-row { display: flex; justify-content: space-between; font: 12px var(--mono); margin-bottom: 8px; color: var(--mute); }
.curve-row b { color: var(--ink); font-weight: 600; }

/* Deploy page */
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 36px 0 24px; }
.page-title h1 { margin: 10px 0 0; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -0.035em; font-weight: 800; }
.builder { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.step + .step { margin-top: 20px; }
.step .panel-head .n { color: var(--faint); margin-right: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.drop { display: grid; place-items: center; height: 156px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--mute); font: 12px var(--mono); text-align: center; cursor: pointer; background: var(--bg); }
.drop:hover { border-color: var(--faint); color: var(--ink); }
.sticky { position: sticky; top: 104px; }

/* Coin page */
.coin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 32px 0 0; }
.coin-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.chart { height: 320px; padding: 0; }
.chart svg { width: 100%; height: 100%; }
.side > .panel + .panel { margin-top: 20px; }
.list { width: 100%; border-collapse: collapse; }
.list th { text-align: left; font: 500 11px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.list td { padding: 11px 18px; border-bottom: 1px solid var(--line); font: 13px var(--mono); }
.list tr:last-child td { border-bottom: 0; }
.list .r { text-align: right; }
.below { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

/* Responsive */
@media (max-width: 1080px) {
  .hero, .builder, .coin-layout, .below { grid-template-columns: 1fr; }
  .mark { justify-self: stretch; max-width: none; aspect-ratio: 16 / 10; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .monitor { grid-row: auto; grid-column: 1 / -1; }
  .stream { height: 340px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .sticky { position: static; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 14px; }
  .top { padding: 10px 0; }
  .top .bar { gap: 14px; height: 54px; padding: 0 8px 0 12px; }
  .brand span, .net, .nav a.hide-sm { display: none; }
  .nav { gap: 14px; }
  .hero { padding: 28px 0 24px; gap: 28px; }
  .counters { gap: 22px; flex-wrap: wrap; }
  .bento, .cards, .steps { grid-template-columns: 1fr; }
  .bento .span2 { grid-column: auto; }
  .steps > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .section { margin-top: 64px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid2 { grid-template-columns: 1fr; }
  .coin-id h1, .coin-id h2 { font-size: 24px; }
  .tile.lg { width: 64px; height: 64px; }
  .foot .wrap { grid-template-columns: 1fr; padding: 32px 14px 40px; }
}

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

/* Deploy v2: configurator */
.intro { max-width: 640px; margin: 10px 0 0; color: var(--mute); font-size: 16px; }
.step-head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 0; }
.step-head .num { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-2); font: 600 13px var(--mono); }
.step-head h2 { margin: 2px 0 2px; font-size: 18px; letter-spacing: -0.01em; }
.step-head p { margin: 0; font-size: 14px; color: var(--mute); }
.step-body { padding: 18px; }
.curve-sum { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 16px 0; padding: 16px; border-radius: 12px; background: var(--panel-2); }
.curve-sum b { display: block; font: 600 20px var(--mono); }
.curve-sum span { font: 11px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: 0.06em; }
.curve-sum .arrow { color: var(--faint); font-size: 20px; }
.curve-sum > div:last-child { text-align: right; }
.progress { list-style: none; margin: 14px 0 0; padding: 0; }
.progress li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 13px; color: var(--mute); }
.progress li::before { content: '○'; font-family: var(--mono); color: var(--faint); }
.progress li small { margin-left: auto; font: 11px var(--mono); color: var(--faint); }

/* Commitments (Streamflow tools) */
.commit-sum { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.commit-sum div { padding: 14px 18px; border-right: 1px solid var(--line); }
.commit-sum div:last-child { border-right: 0; }
.commit-sum b { display: block; font: 600 20px/1.2 var(--mono); }
.commit-sum span { font: 11px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: 0.06em; }
.commit-list td { vertical-align: middle; }
.chip.tag-lock { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
.chip.tag-vest { background: color-mix(in srgb, #5b6cff 16%, transparent); color: #5b6cff; }
.chip.tag-drop { background: color-mix(in srgb, #e08a00 16%, transparent); color: #c27600; }
.chip.tag-stake { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.wide-tabs { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-bottom: 16px; }
.act { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.act:last-child { border-bottom: 0; }
.act .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; font: 600 11px var(--mono); color: var(--mute); }
.link-btn:hover { color: var(--ink); }
select.input { appearance: none; cursor: pointer; }
.mono-in { font: 13px/1.5 var(--mono); height: 120px; }
@media (max-width: 720px) { .commit-sum { grid-template-columns: 1fr 1fr; } .commit-sum div:nth-child(2) { border-right: 0; } .commit-sum div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }


/* ── Direction D: app shell ─────────────────────────────────────────────────────────────────────────── */
body { font-size: 14px; }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidenav { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 18px 14px; border-right: 1px solid var(--line); background: var(--bg); z-index: 30; }
.sidenav .brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; font-weight: 600; font-size: 17px; color: var(--ink); }
.navi { position: relative; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-radius: 8px; color: var(--mute); font-size: 14px; }
.navi svg { flex: none; }
.navi:hover { color: var(--ink); }
.navi.on { color: var(--ink); background: var(--panel); }
.navi.on::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--acc); }
.navgroup { margin: 18px 10px 6px; font-size: 12px; color: var(--faint); }
.sidenav .grow { flex: 1; }
.side-foot { display: flex; gap: 14px; padding: 12px 10px 0; font-size: 12px; color: var(--faint); }
.side-foot a:hover { color: var(--ink); }
.maincol { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--bar-bg); backdrop-filter: blur(10px); }
.topbar .menu { display: none; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--mute); cursor: pointer; }
.search { display: flex; align-items: center; gap: 10px; width: 360px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--faint); }
.search svg { flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.search input::placeholder { color: var(--faint); }
.search kbd { font: 11px var(--mono); color: var(--faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.topbar .spacer { flex: 1; }
.topbar .net { height: 30px; border-radius: 8px; background: var(--panel); }
.net::before { background: var(--acc); }
.content { padding: 24px 28px 56px; }
.content > main.wrap, .content > main { max-width: 1240px; margin: 0; padding: 0; }
.top, .foot { display: none; }

/* Components in D */
.panel { border-radius: var(--r); background: var(--panel); border-color: var(--line); }
.panel-head { padding: 14px 16px; font-weight: 500; }
.panel-head > span:first-child { font: 500 14px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.btn { height: 38px; border-radius: 8px; background: var(--panel-2); border-color: var(--line-2); font-size: 14px; }
.btn:hover { border-color: var(--faint); }
.btn.solid { background: var(--acc); color: var(--on-acc); border-color: var(--acc-2); font-weight: 600; }
.btn.solid:hover { background: var(--acc-2); }
.btn.wide { height: 44px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.input { height: 42px; border-radius: 8px; border-color: var(--line-2); background: var(--bg); }
.input:focus { border-color: var(--acc); }
.tabs { border-radius: 10px; padding: 3px; }
.tabs button { height: 30px; border-radius: 7px; }
.tabs button.on { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg { background: var(--bg); border-radius: 10px; padding: 3px; }
.seg button { border-radius: 7px; height: 36px; }
.seg button.on { background: var(--acc); color: var(--on-acc); }
.seg button.on.sell { background: var(--down); color: #2b0609; }
.stats { gap: 0; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.stats div { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.stats div:last-child { border-right: 0; }
.stats b { font: 500 18px/1.2 var(--mono); }
.stats span { font: 12px var(--sans); text-transform: none; letter-spacing: 0; }
.field > span { font: 12px var(--sans); text-transform: none; letter-spacing: 0; color: var(--mute); }
.meter i.on { background: var(--acc); }
.chip { border-radius: 6px; font: 500 11px var(--sans); letter-spacing: 0; height: 22px; }
.chip.pass, .chip.new { background: color-mix(in srgb, var(--acc) 12%, transparent); color: var(--acc-2); }
.label, .eyebrow { font: 12px var(--sans); letter-spacing: 0; text-transform: none; }
h1, h2, h3 { letter-spacing: -0.01em; }
.list th { font: 500 12px var(--sans); color: var(--faint); text-transform: none; letter-spacing: 0; }

/* Banner (home) */
.banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 30px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); }
.banner::after { content: ''; position: absolute; right: -120px; top: -150px; width: 640px; height: 440px; background: radial-gradient(closest-side, rgba(18, 185, 129, 0.3), rgba(18, 185, 129, 0.07) 55%, transparent); pointer-events: none; }
.banner > * { position: relative; z-index: 1; }
.banner h1 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.banner p { margin: 0 0 18px; color: var(--mute); max-width: 540px; }
.banner .figs { display: grid; grid-template-columns: repeat(3, auto); gap: 30px; text-align: right; }
.banner .figs b { display: block; font: 500 24px/1.2 var(--mono); }
.banner .figs span { font-size: 12px; color: var(--mute); }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.sec-h h2 { margin: 0; font-size: 20px; font-weight: 500; }
.coin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ccard { display: block; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.ccard:hover { border-color: var(--line-2); }
.ccard .hd { display: flex; align-items: center; gap: 12px; }
.ccard .hd b { font-weight: 600; }
.ccard .hd small { display: block; color: var(--mute); font-size: 12px; }
.ccard .mc { margin-left: auto; text-align: right; }
.ccard .mc b { display: block; font: 500 14px var(--mono); }
.ccard .mc small { color: var(--mute); font-size: 12px; }
.stack { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line); margin: 16px 0 10px; }
.stack i { display: block; height: 100%; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 14px; min-height: 18px; font-size: 12px; color: var(--mute); }
.keys span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 6px; background: var(--c); }
.keys b { color: var(--ink); font: 500 12px var(--mono); }
.ccard .cf { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.starts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.start { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.start .ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--acc-2); }
.start h3 { margin: 14px 0 4px; font-size: 15px; font-weight: 600; }
.start p { margin: 0 0 14px; color: var(--mute); font-size: 13px; min-height: 40px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.empty-card { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--mute); text-align: center; }

/* Coin page: commitment ring */
.commit-ring { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.ring-legend { display: grid; gap: 10px; }
.ring-legend div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ring-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; background: var(--c); }
.ring-legend b { font: 500 14px var(--mono); }
.chip.tag-lock { background: color-mix(in srgb, var(--acc) 12%, transparent); color: var(--acc-2); }
.chip.tag-vest { background: color-mix(in srgb, var(--vest) 14%, transparent); color: var(--vest); }
.chip.tag-drop { background: color-mix(in srgb, var(--drop) 14%, transparent); color: var(--drop); }
.chip.tag-stake { background: var(--panel-2); color: var(--stake); box-shadow: inset 0 0 0 1px var(--line-2); }
.pbar { height: 4px; margin-top: 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 2px; }
.chips5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.chips5 button { height: 36px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--mute); cursor: pointer; font-size: 13px; }
.chips5 button.on { border-color: var(--acc); color: var(--ink); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.sumbox { display: grid; gap: 6px; margin: 2px 0 14px; padding: 12px; border-radius: 8px; background: var(--panel-2); font-size: 13px; }
.sumbox div { display: flex; justify-content: space-between; gap: 10px; }
.sumbox b { font: 500 13px var(--mono); }

@media (max-width: 1100px) { .coin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .starts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform 0.2s; }
  .sidenav.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55); }
  .topbar { padding: 0 16px; }
  .topbar .menu { display: grid; }
  .search { width: auto; flex: 1; }
  .search kbd, .topbar .net { display: none; }
  .content { padding: 18px 16px 48px; }
  .banner { flex-direction: column; align-items: flex-start; }
  .banner .figs { text-align: left; }
  .commit-ring { grid-template-columns: 1fr; justify-items: center; }
}
@media (max-width: 600px) { .coin-grid, .starts { grid-template-columns: 1fr; } }
.sidenav .brand span { font: 600 17px var(--sans); letter-spacing: -0.01em; text-transform: none; }
.commit-list td, .content .list td { font-family: var(--sans); }
.content .list td.num, .content .list .num { font-family: var(--mono); }
.panel-head { font: 500 14px var(--sans); letter-spacing: 0; text-transform: none; }
.panel-head .coin-id b { font: 600 14px var(--sans); letter-spacing: 0; text-transform: none; }
.panel-head .meta { font: 12px var(--sans); text-transform: none; letter-spacing: 0; color: var(--mute); }
.content h1 { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.content .banner h1 { font-size: 22px; }
.content .coin-head h1 { font-size: 24px; }
@media (max-width: 900px) {
  .topbar #connect { max-width: 132px; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 36px; padding: 0 12px; }
  .sec-h { flex-wrap: wrap; }
  .sec-h .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs button { white-space: nowrap; flex: none; }
  .coin-layout, .grid2 { min-width: 0; }
  .content main { min-width: 0; }
}
.sidenav .brand span { display: inline !important; }
/* Deploy: locked before the official coin is live */
.launch-lock { margin-bottom: 16px; border-color: color-mix(in srgb, var(--acc) 35%, var(--line)); }
.launch-locked main .step { opacity: 0.45; pointer-events: none; }
.side-built { display: block; margin: 10px 10px 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--faint); }
.side-built b { color: var(--mute); font-weight: 600; }
.side-built:hover { border-color: var(--line-2); }
