:root {
  --bg: #101214;
  --panel: #16191c;
  --wash: #1e2226;
  --line: #2a2f34;
  --line-soft: #21262a;
  --ink: #eceff1;
  --paper: #101214;
  --mute: #9aa3ab;
  --faint: #667079;
  --up: #5fd38d;
  --up-wash: #14261c;
  --down: #f2776d;
  --down-wash: #2b1b1a;
  --accent: #ff7a2f;
  --accent-ink: #161009;
  --gold: #ff9a5c;
  --gold-wash: #2a1c13;
  --gold-line: rgba(255, 122, 47, .3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.45 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }
.c-tnum { font-variant-numeric: tabular-nums; }
.c-mute { color: var(--mute); }
.c-faint { color: var(--faint); }
.c-up { color: var(--up); }
.c-down { color: var(--down); }
.c-mono { overflow-wrap: anywhere; }

.c-label { font-size: 12.5px; color: var(--mute); }

/* ---- shell ---- */
.c-banner { padding: 6px 16px; text-align: center; font-size: 12.5px; color: var(--gold); background: var(--gold-wash); }
.c-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(23, 23, 21, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.c-top-in { max-width: 1320px; margin: 0 auto; padding: 0 28px; height: 58px; display: flex; align-items: center; gap: 22px; }
.c-brand { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: .01em; flex: none; }
.c-nav { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; }
.c-nav a { padding: 7px 11px; border-radius: 8px; font-weight: 500; color: var(--mute); white-space: nowrap; transition: background .12s, color .12s; }
.c-nav a:hover { background: rgba(35, 35, 33, .6); color: var(--ink); }
.c-nav a.c-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.c-practice { font-size: 12px; font-weight: 500; color: var(--gold); background: var(--gold-wash); border: 1px solid var(--gold-line); border-radius: 999px; padding: 1px 8px; cursor: help; }
.c-top-right { display: flex; align-items: center; gap: 9px; flex: none; }
.c-sol { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 6px 10px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-sol:empty { display: none; }
.c-sol small { font-size: 13px; font-weight: 500; }
.c-x { display: grid; place-items: center; width: 32px; height: 32px; color: var(--mute); border-radius: 6px; transition: color .12s, background .12s; }
.c-x:hover { color: var(--ink); background: var(--wash); }
.c-sol small.c-sol-worth { color: var(--faint); }
.c-sol svg { flex: none; }

main { padding: 21px 28px 48px; width: 100%; max-width: 1320px; margin: 0 auto; }

/* ---- buttons ---- */
.c-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 6px;
  padding: 9px 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s, opacity .12s;
}
.c-btn:hover { background: #ff8d4d; }
.c-btn[disabled] { opacity: .4; cursor: default; }
.c-btn-top { padding: 7px 12px; }
.c-btn-line { background: var(--wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.c-btn-line:hover { background: #2a2a27; }
.c-btn-small { padding: 5px 10px; font-size: 13px; border-radius: 5px; }
.c-table .c-btn, .c-desk-row .c-btn { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.c-table .c-btn:hover, .c-desk-row .c-btn:hover { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.c-btn-wide { width: 100%; padding: 11px 16px; }
.c-text-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--mute); margin-left: 8px; transition: color .12s; }
.c-text-link:hover { color: var(--ink); }
.c-link { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.c-link:hover { text-decoration-color: var(--ink); }

/* ---- segmented pills, search ---- */
.c-pills { display: inline-flex; max-width: 100%; overflow-x: auto; gap: 16px; scrollbar-width: none; }
.c-pills button { appearance: none; flex: none; background: none; border: 0; padding: 6px 0; font-weight: 500; color: var(--faint); cursor: pointer; transition: color .12s; }
.c-pills button:hover { color: var(--ink); }
.c-pills button.c-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.c-pills small { color: var(--faint); font-size: 12px; margin-left: 4px; }
.c-search { display: flex; align-items: center; gap: 8px; height: 34px; width: 280px; max-width: 100%; padding: 0 11px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.c-search:focus-within { border-color: var(--faint); }
.c-search svg { color: var(--faint); flex: none; }
.c-search input { width: 100%; min-width: 0; background: none; border: 0; outline: 0; }
.c-search input::placeholder, .c-input::placeholder { color: var(--faint); }
.c-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.c-tools-right { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }

/* ---- panels, stats ---- */
.c-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.c-page-title { margin-bottom: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; }
.c-page-title h1 { font-size: 25px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.c-page-title p { margin-top: 5px; color: var(--mute); max-width: 620px; }
.c-h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.c-section { margin-top: 28px; }
.c-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.c-section-head p { color: var(--mute); }
.c-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.c-stat { padding: 10px 14px; min-width: 0; border-left: 1px solid var(--line); }
.c-stat:first-child { border-left: 0; }
.c-stat b { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-stat span { display: block; color: var(--faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- home ---- */
.c-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 4px 0 18px; }
.c-intro h1 { font-size: 22px; font-weight: 600; line-height: 1.2; }
.c-intro p { margin-top: 4px; max-width: 720px; color: var(--mute); }
.c-intro .c-ca { margin-top: 8px; max-width: none; font-size: 13px; overflow-wrap: anywhere; }
.c-ca b { color: var(--accent); font-weight: 600; margin-right: 4px; }
.c-ca a:hover { color: var(--ink); }
.c-ca button { margin-left: 6px; font-size: 13px; }
.c-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c-home { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.c-home-foot { margin-top: 12px; }
.c-rail { display: grid; gap: 12px; position: sticky; top: 72px; }
.c-calc, .c-desk { padding: 14px 16px; }
.c-calc h2, .c-desk h2 { font-size: 15px; font-weight: 600; }
.c-calc-size { display: flex; align-items: center; gap: 6px; height: 40px; margin-top: 10px; padding: 0 12px; background: var(--wash); border: 1px solid var(--line); border-radius: 6px; font-size: 16px; font-weight: 600; }
.c-calc-size:focus-within { border-color: var(--faint); }
.c-calc-size span { color: var(--faint); }
.c-calc-size input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: 0; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.c-calc-size input::-webkit-outer-spin-button, .c-calc-size input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.c-calc-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; }
.c-calc-presets button { appearance: none; padding: 5px 0; background: var(--wash); border: 0; border-radius: 4px; font-size: 12.5px; font-weight: 500; color: var(--mute); cursor: pointer; font-variant-numeric: tabular-nums; }
.c-calc-presets button:hover { color: var(--ink); }
.c-calc-presets button.c-on { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: transparent; }
.c-calc-coin { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.c-calc-coin b { font-weight: 600; }
.c-calc-coin span:last-child { margin-left: auto; font-size: 12.5px; }
.c-curve { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.c-curve-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-calc-rows { margin: 10px 0 12px; }
.c-calc-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.c-calc-rows dt { color: var(--mute); margin: 0; }
.c-calc-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-calc .c-hint:last-child { margin-top: 8px; }
.c-desk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.c-desk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; margin: 10px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.c-desk-stats div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.c-desk-stats dt { color: var(--mute); margin: 0; }
.c-desk-stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-desk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); text-align: right; }
.c-desk-row:last-child { border-bottom: 0; padding-bottom: 0; }
.c-desk-row .c-coin { text-align: left; gap: 9px; }
.c-desk-row .c-logo { width: 24px; height: 24px; }
.c-desk-empty { padding-top: 10px; }
.c-table tr.c-picked { background: var(--wash); }
.c-table tr.c-picked td:first-child { box-shadow: inset 2px 0 0 var(--accent); }

/* ---- tables ---- */
.c-table-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.c-table-markets { min-width: 760px; }
.c-table { width: 100%; min-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.c-table-tight { min-width: 0; }
.c-table th { font-size: 12.5px; font-weight: 500; color: var(--faint); text-align: right; white-space: nowrap; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.c-table td { text-align: right; white-space: nowrap; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line-soft); }
.c-table tbody tr:last-child td { border-bottom: 0; }
.c-table th:last-child, .c-table td:last-child { padding-right: 16px; }
.c-table th.c-l, .c-table td.c-l { text-align: left; }
.c-table tr.c-row { cursor: pointer; transition: background .1s; }
.c-table tr.c-row:hover { background: rgba(35, 35, 33, .55); }
.c-table a.c-action { font-weight: 500; }
.c-table tr.c-row:hover a.c-action, a.c-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.c-table td.c-empty-cell { text-align: center; color: var(--mute); padding: 44px 16px; white-space: normal; }
.c-table tr.c-day td { padding: 12px 16px 6px; border-bottom: 0; color: var(--faint); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.c-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.c-coin > div { line-height: 1.25; min-width: 0; }
.c-coin b { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.c-coin small { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--faint); }
.c-coin:hover b > span:first-child { text-decoration: underline; text-underline-offset: 2px; }
.c-logo { display: inline-block; flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--line-soft); }
.c-logo-none { display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--mute); }
.c-two { line-height: 1.25; }
.c-two small { display: block; font-size: 12px; color: var(--faint); }
.c-side-tag { font-size: 11px; font-weight: 600; border-radius: 5px; padding: 1px 5px; }
.c-side-bid { color: var(--up); background: var(--up-wash); }
.c-side-ask { color: var(--down); background: var(--down-wash); }
.c-status { display: inline-block; font-size: 12px; font-weight: 600; }
.c-status-filled { color: var(--up); }
.c-status-cancelled { color: var(--down); }
.c-status-expired { color: var(--faint); }
.c-status-open { color: var(--ink); }
.c-mini { display: inline-block; width: 100%; min-width: 130px; max-width: 170px; text-align: left; }
.c-mini small { display: block; font-size: 12px; color: var(--mute); margin-bottom: 4px; }
.c-mini span { display: block; height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }
.c-mini i { display: block; height: 100%; background: var(--up); }
.c-mini i.c-mini-off { background: var(--down); }
.c-pager { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.c-pager button { appearance: none; min-width: 32px; height: 32px; padding: 0 10px; background: none; border: 1px solid transparent; border-radius: 7px; font-weight: 500; color: var(--mute); cursor: pointer; font-variant-numeric: tabular-nums; }
.c-pager button:hover { color: var(--ink); }
.c-pager button[disabled] { opacity: .4; cursor: default; }
.c-pager button.c-on { border-color: var(--line); background: var(--panel); color: var(--ink); }

.c-outcomes { padding: 14px 16px; margin-bottom: 12px; }
.c-outcome-bar { display: flex; gap: 2px; height: 6px; margin: 10px 0; border-radius: 999px; overflow: hidden; background: var(--line); }
.c-outcome-bar i { display: block; height: 100%; }
.c-outcome-keys { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--mute); }
.c-outcome-keys span { display: inline-flex; align-items: center; gap: 6px; }
.c-outcome-keys i { width: 7px; height: 7px; border-radius: 50%; }

/* ---- offers: two sides of a book ---- */
.c-book { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.c-book-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 16px 11px; border-bottom: 1px solid var(--line); }
.c-book-head h2 { font-size: 14px; font-weight: 600; }
.c-book .c-table, #c-in { min-width: 0; }

/* ---- make an offer ---- */
.c-order { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 340px); gap: 14px; justify-content: center; align-items: start; margin-top: 10px; }
.c-offer-card { padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.c-order-side { position: sticky; top: 72px; padding: 14px 16px; }
.c-order-side h2 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.c-order-side .c-compare { margin: 0; padding: 0; background: none; }
.c-offer-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 10px; }
.c-offer-tabs button { appearance: none; border: 0; background: none; padding: 9px; border-radius: 10px; font-weight: 600; color: var(--mute); cursor: pointer; }
.c-offer-tabs button:hover { color: var(--ink); }
.c-offer-tabs button.c-on { background: var(--wash); }
.c-offer-tabs button.c-on[data-v="bid"] { color: var(--up); }
.c-offer-tabs button.c-on[data-v="ask"] { color: var(--down); }
.c-leg { position: relative; background: var(--wash); border-radius: 12px; padding: 12px 14px; }
.c-leg + .c-flip + .c-leg { margin-top: 4px; }
.c-leg-label { font-size: 13px; color: var(--mute); }
.c-leg-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.c-leg-row input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: 0; font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.02em; -moz-appearance: textfield; }
.c-leg-row input::placeholder { color: var(--faint); }
.c-leg-row input::-webkit-outer-spin-button, .c-leg-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.c-leg-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.c-token-btn { appearance: none; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; transition: border-color .12s; }
.c-token-btn:hover { border-color: var(--faint); }
.c-token-btn .c-logo { width: 24px; height: 24px; }
.c-token-btn.c-empty-token { padding-left: 14px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.c-token-static { cursor: default; }
.c-token-static:hover { border-color: var(--line); }
.c-sol-mark { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #0c0d0e; }
.c-flip { position: relative; z-index: 1; height: 0; display: flex; justify-content: center; }
.c-flip button { appearance: none; position: absolute; top: -13px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; color: var(--mute); cursor: pointer; }
.c-flip button:hover { color: var(--ink); }
.c-price-box { margin-top: 10px; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 12px; }
.c-price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.c-step { appearance: none; width: 34px; height: 34px; background: var(--wash); border: 0; border-radius: 9px; font-size: 18px; line-height: 1; color: var(--ink); cursor: pointer; }
.c-step:hover { background: #2a2a27; }
.c-price-mid { text-align: center; min-width: 0; line-height: 1.25; }
.c-price-mid b { display: block; font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.c-price-mid small { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.c-price-pill { display: table; margin: 8px auto 10px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--wash); }
.c-presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.c-presets button { appearance: none; border: 0; background: var(--wash); border-radius: 8px; padding: 6px 0; font-size: 13px; font-weight: 500; color: var(--mute); cursor: pointer; }
.c-presets button:hover { color: var(--ink); }
.c-presets button.c-on { background: var(--ink); color: var(--paper); }
.c-compare { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--wash); }
.c-compare-row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; font-size: 13px; }
.c-compare-row span { color: var(--mute); }
.c-compare-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.c-compare p { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--mute); }
.c-options { margin: 8px 0 10px; }
.c-options-head { appearance: none; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: none; border: 0; padding: 7px 4px; color: var(--mute); cursor: pointer; text-align: left; }
.c-options-head:hover { color: var(--ink); }
.c-options-body { padding: 4px 4px 10px; display: grid; gap: 12px; }
.c-field > span { display: block; font-size: 13px; color: var(--mute); margin-bottom: 6px; }
.c-field { display: block; }
.c-input { width: 100%; height: 38px; padding: 0 12px; background: var(--wash); border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.c-input:focus { border-color: var(--faint); }
.c-check { display: flex; gap: 9px; align-items: center; cursor: pointer; color: var(--mute); }
.c-check input { accent-color: var(--ink); width: 15px; height: 15px; margin: 0; }
.c-offer-note { margin-top: 10px; text-align: center; font-size: 12.5px; line-height: 1.45; color: var(--faint); padding: 0 8px 4px; }
.c-error { margin: 10px 0; padding: 9px 12px; border-radius: 9px; background: var(--down-wash); color: var(--down); font-weight: 500; }

/* ---- centered lookups ---- */
.c-center { max-width: 560px; margin: 44px auto 28px; text-align: center; }
.c-center h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.c-center > p { margin: 8px auto 0; max-width: 430px; color: var(--mute); }
.c-big-search { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 0 8px 0 16px; height: 50px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.c-big-search:focus-within { border-color: var(--faint); }
.c-big-search svg { color: var(--faint); flex: none; }
.c-big-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; }
.c-big-search input::placeholder { color: var(--faint); }
.c-recent { margin-top: 12px; color: var(--faint); font-size: 13px; }
.c-recent button { margin-left: 8px; }
.c-center-note { margin-top: 14px; color: var(--faint); font-size: 13px; }
.c-center .c-error { text-align: left; }

/* ---- positions ---- */
.c-welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px; }
.c-welcome h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.c-welcome > div > p { margin: 8px 0 16px; color: var(--mute); max-width: 390px; }
.c-welcome-steps { display: grid; gap: 14px; background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.c-welcome-steps div { display: grid; grid-template-columns: 24px 1fr; gap: 2px 12px; }
.c-welcome-steps i { grid-row: span 2; width: 24px; height: 24px; display: grid; place-items: center; background: var(--ink); color: var(--paper); border-radius: 6px; font-style: normal; font-size: 12px; font-weight: 700; }
.c-welcome-steps b { font-weight: 600; }
.c-welcome-steps span { color: var(--mute); font-size: 13px; }
.c-address { color: var(--faint); font-size: 13px; overflow-wrap: anywhere; }
.c-stranded-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--gold-line); }
.c-stranded-block { padding: 14px 20px; border-radius: 12px; border: 1px solid var(--gold-line); background: var(--gold-wash); margin-bottom: 12px; }
.c-stranded-block h3 { font-size: 14px; font-weight: 600; color: var(--gold); }
.c-stranded-block p { margin-top: 3px; color: rgba(242, 196, 109, .8); }

/* ---- coin page ---- */
.c-coin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.c-coin-head .c-logo { width: 44px; height: 44px; }
.c-coin-head > div:nth-child(2) { flex: 1; min-width: 200px; }
.c-coin-head h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.c-coin-head p { color: var(--mute); }
.c-coin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.c-mint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--mute); font-size: 13px; }
.c-mint code { font-family: inherit; color: var(--ink); overflow-wrap: anywhere; }
.c-mint em { font-style: normal; color: var(--faint); margin-left: auto; }

/* ---- docs ---- */
.c-doc { display: grid; grid-template-columns: 190px minmax(0, 700px); gap: 48px; justify-content: center; padding-top: 8px; }
.c-toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 1px; }
.c-toc a { display: block; padding: 5px 0; color: var(--mute); }
.c-toc a:hover { color: var(--ink); }
.c-doc-body h1 { font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1.12; }
.c-doc-lead { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--mute); }
.c-doc-body h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 36px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.c-doc-body p, .c-doc-body li { font-size: 15px; line-height: 1.65; color: #c9c9c2; }
.c-doc-body p { margin-bottom: 12px; }
.c-doc-body strong { color: var(--ink); font-weight: 600; }
.c-doc-body ul { padding-left: 18px; margin: 0 0 12px; }
.c-doc-body li { margin-bottom: 7px; }
.c-doc-body pre { margin: 0 0 14px; padding: 13px 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font: 400 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--mute); white-space: pre-wrap; overflow-wrap: anywhere; }
.c-doc-body .c-panel { margin-bottom: 14px; overflow: hidden; }
.c-doc-body .c-table { min-width: 0; }
.c-doc-body .c-table td { white-space: normal; }
.c-doc-hands { display: flex; flex-wrap: wrap; gap: 26px; margin: 2px 0 14px; color: var(--mute); }
.c-doc-hands div { display: flex; align-items: center; gap: 10px; }
.c-doc-hands svg { color: var(--ink); }

/* ---- modal ---- */
.c-modal-back { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(8, 8, 7, .65); backdrop-filter: blur(3px); overflow-y: auto; }
.c-modal { width: min(440px, 100%); padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.c-modal h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 7px; }
.c-modal > p { margin-bottom: 12px; color: var(--mute); }
.c-modal pre { max-height: 290px; overflow-y: auto; margin: 0 0 12px; padding: 12px 13px; background: var(--wash); border: 1px solid var(--line); border-radius: 10px; font: 400 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--mute); white-space: pre-wrap; overflow-wrap: anywhere; }
.c-modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.c-choices { display: grid; gap: 8px; margin: 14px 0 12px; }
.c-choices .c-btn { padding: 11px 16px; }
.c-hint { color: var(--faint); font-size: 13px; }
.c-lines { margin: 0; }
.c-lines div { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.c-lines div:last-child { border-bottom: 0; }
.c-lines dt { color: var(--mute); margin: 0; }
.c-lines dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.c-picker { width: min(460px, 100%); }
.c-picker .c-search { width: 100%; margin-bottom: 8px; }
.c-pick-list { max-height: 400px; overflow-y: auto; margin: 0 -8px; }
.c-pick { appearance: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; background: none; border: 0; border-radius: 9px; text-align: left; cursor: pointer; }
.c-pick:hover { background: var(--wash); }
.c-pick-right { text-align: right; font-variant-numeric: tabular-nums; line-height: 1.25; }
.c-pick-right small { display: block; font-size: 12px; color: var(--faint); }

/* ---- small screens ---- */
@media (max-width: 1023px) {
  .c-top-in { flex-wrap: wrap; height: auto; padding: 10px 21px 8px; gap: 8px 16px; }
  .c-top-right { margin-left: auto; }
  .c-nav { order: 3; flex: 0 0 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -11px; }
  .c-book, .c-home, .c-order { grid-template-columns: minmax(0, 1fr); }
  .c-rail, .c-order-side { position: static; }
  .c-rail { order: -1; }
  .c-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .c-toc { display: none; }
  .c-welcome { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  main { padding: 16px 16px 40px; }
  .c-top-in { padding: 10px 16px 8px; }
  .c-sol:not(.c-sol-mine) { display: none; }
  .c-sol small.c-sol-worth { display: none; }
  .c-book .c-table th:nth-child(2), .c-book .c-table td:nth-child(2), #c-in th:nth-child(2), #c-in td:nth-child(2) { display: none; }
  .c-search { width: 100%; }
  .c-tools-right { margin-left: 0; width: 100%; }
  .c-offer-card { margin-top: 0; }
  .c-center { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .c-steps span { transition: none; }
  .c-curve-line, .c-curve-fill { animation: none; stroke-dashoffset: 0; opacity: 1; }
}
