/* the look: a warm near-black ground, hairline borders, one mint accent, coral for losses, amber for warnings, DM Sans */
:root {
  color-scheme: dark;
  --bg: hsl(40deg 9% 6%); --bg-2: hsl(40deg 5% 9%); --bg-3: hsl(40deg 5% 11%);
  --s1: hsl(215deg 100% 98% / .02); --s2: hsl(215deg 100% 98% / .04); --s3: hsl(215deg 100% 98% / .06); --s4: hsl(215deg 100% 98% / .08);
  --line: hsl(215deg 100% 98% / .1); --line-2: hsl(215deg 100% 98% / .05);
  --t1: hsl(215deg 100% 98%); --t2: hsl(216deg 9% 78%); --t3: hsl(214deg 3% 59%); --t4: hsl(240deg 1% 40%);
  --brand: hsl(166deg 87% 64%); --brand-2: hsl(168deg 87% 70%); --brand-d: hsl(171deg 90% 40%); --brand-a: hsl(166deg 94% 79% / .1); --brand-a2: hsl(166deg 94% 79% / .18);
  --neg: hsl(9deg 65% 60%); --neg-a: hsl(9deg 65% 60% / .12); --warn: hsl(34deg 91% 57%); --warn-a: hsl(34deg 91% 57% / .12);
  --purple: hsl(262deg 100% 70%); --blue: hsl(212deg 100% 62%);
  --r-xs: .25rem; --r-sm: .5rem; --r-md: .75rem; --r-lg: 1rem; --r-full: 100px;
  --sb-thumb: hsl(215deg 100% 98% / .14); --sb-thumb-hover: hsl(215deg 100% 98% / .26);
  --mono: 'DM Mono', ui-monospace, monospace;
}
/* NO STOCK SCROLLBARS (larpcheck/scrollbars.css) */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--sb-thumb, rgba(140, 140, 150, .35)); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover, rgba(160, 160, 170, .6)); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) { * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb, rgba(140, 140, 150, .35)) transparent; } }
.no-sb { scrollbar-width: none; } .no-sb::-webkit-scrollbar { display: none; }

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--t1); font: 400 14px/1.5 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
.muted { color: var(--t3); } .small { font-size: 12px; } .mono { font-family: var(--mono); font-size: .92em; }
.pos { color: var(--brand); } .neg { color: var(--neg); } .warn { color: var(--warn); }
[hidden] { display: none !important; }
.accent { color: var(--brand); }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; background: hsl(40deg 9% 6% / .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
.top-in { max-width: 1440px; margin: 0 auto; height: 56px; padding: 0 20px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; }
.brand-logo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.nav a { padding: 7px 11px; border-radius: var(--r-sm); color: var(--t3); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color .15s, background .15s; }
.nav a:hover { color: var(--t1); background: var(--s2); }
.nav a.on { color: var(--t1); background: var(--s3); }
.top-right { display: flex; align-items: center; gap: 8px; }
.burger { display: none; background: none; border: 0; width: 36px; height: 36px; padding: 9px 7px; cursor: pointer; }
.burger span { display: block; height: 2px; margin: 4px 0; background: var(--t2); border-radius: 2px; }
.xbtn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--t2); border: 1px solid var(--line); }
.xbtn:hover { color: var(--t1); background: var(--s2); }
.ca { height: 32px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--brand-a2); background: var(--brand-a); color: var(--brand); font-size: 12px; font-weight: 600; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.ca span { font-family: var(--mono); color: var(--t2); font-weight: 400; }

/* buttons, pills, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--s3); color: var(--t1); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: var(--s4); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: hsl(173deg 70% 9%); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--s2); }
.btn-neg { background: var(--neg-a); color: var(--neg); }
.btn-neg:hover { background: hsl(9deg 65% 60% / .2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 6px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: var(--r-md); }
.pill { height: 32px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--s2); color: var(--t1); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pill:hover { background: var(--s3); }
.pill-new { border-color: var(--brand-a2); color: var(--brand); background: var(--brand-a); }
.pill-points b { color: var(--warn); margin-right: 5px; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 600; background: var(--s3); color: var(--t2); white-space: nowrap; }
.badge.b-brand { background: var(--brand-a); color: var(--brand); } .badge.b-warn { background: var(--warn-a); color: var(--warn); } .badge.b-neg { background: var(--neg-a); color: var(--neg); } .badge.b-purple { background: hsl(262deg 100% 70% / .12); color: var(--purple); }
.input, .select, textarea.input { width: 100%; height: 38px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--s1); outline: none; transition: border-color .15s; }
textarea.input { height: auto; min-height: 72px; padding: 9px 12px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--brand); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--t3) 50%), linear-gradient(135deg, var(--t3) 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.select option { background: var(--bg-3); }
label.f { display: block; font-size: 12px; color: var(--t3); margin: 0 0 6px; font-weight: 500; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.toggle { position: relative; width: 36px; height: 20px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; border-radius: 20px; background: var(--s4); cursor: pointer; transition: background .15s; }
.toggle span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--t2); transition: transform .15s, background .15s; }
.toggle input:checked + span { background: var(--brand-a2); } .toggle input:checked + span::after { transform: translateX(16px); background: var(--brand); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-sm); background: var(--s2); border: 1px solid var(--line-2); gap: 2px; }
.seg button { height: 28px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: var(--t3); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--s4); color: var(--t1); }

/* page frame */
#app { flex: 1; width: 100%; }
.page { max-width: 1440px; margin: 0 auto; padding: 26px 20px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head p { margin: 4px 0 0; color: var(--t3); }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.card h3 { font-size: 15px; margin-bottom: 12px; }
.card-t { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.card-t h3 { margin: 0; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.empty { padding: 50px 20px; text-align: center; color: var(--t3); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty h3 { color: var(--t1); margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 18px; overflow-x: auto; }
.tabs button { height: 40px; padding: 0 14px; border: 0; background: none; color: var(--t3); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--t1); border-bottom-color: var(--brand); }
.stat { padding: 14px 16px; border-radius: var(--r-md); background: var(--s1); border: 1px solid var(--line); min-width: 0; }
.stat span { display: block; font-size: 12px; color: var(--t3); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-weight: 500; color: var(--t3); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.t tr:hover td { background: var(--s1); }
table.t td.num, table.t th.num { text-align: right; }
.tw { overflow-x: auto; }
.tok { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tok-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--s3); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--t2); flex: none; overflow: hidden; }
.tok-ico img { width: 100%; height: 100%; object-fit: cover; }
.tok b { display: block; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.tok small { color: var(--t3); font-size: 11.5px; display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.link { color: var(--brand); cursor: pointer; }
.link:hover { text-decoration: underline; }

/* algorithm cards */
.acard { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--s1); border: 1px solid var(--line); transition: border-color .15s, background .15s; cursor: pointer; min-width: 0; }
.acard:hover { border-color: hsl(215deg 100% 98% / .18); background: var(--s2); }
.acard-t { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.acard-t h3 { font-size: 15.5px; margin: 0 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard-t .by { font-size: 12px; color: var(--t3); }
.acard .meta { display: flex; gap: 12px; font-size: 12px; color: var(--t3); flex-wrap: wrap; }
.acard .meta b { color: var(--t2); font-weight: 600; }
.acard .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acard .nums div { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 10px; min-width: 0; }
.acard .nums span { display: block; font-size: 11px; color: var(--t3); white-space: nowrap; }
.acard .nums b { font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acard .acts { display: flex; gap: 6px; }
.acard .acts .btn { flex: 1; }
.spark { width: 100%; height: 44px; display: block; }
.star { background: none; border: 0; color: var(--t4); font-size: 16px; cursor: pointer; padding: 0 2px; line-height: 1; }
.star.on { color: var(--warn); }
.newcard { display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--r-lg); min-height: 220px; color: var(--t3); cursor: pointer; font-weight: 600; }
.newcard:hover { color: var(--brand); border-color: var(--brand-a2); background: var(--brand-a); }

/* the builder */
.builder { display: grid; grid-template-columns: 300px minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; min-height: 0; }
.panel-h { padding: 14px 16px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel-h h3 { font-size: 14px; margin: 0; }
.panel-b { padding: 14px 16px; }
.sticky { position: sticky; top: 72px; max-height: calc(100vh - 90px); }
.sticky .panel-b { overflow-y: auto; }
.lib-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.lib-tabs button { height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--t3); font-size: 12px; cursor: pointer; }
.lib-tabs button.on { background: var(--s3); color: var(--t1); border-color: var(--line); }
.lib-item { padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.lib-item:hover { background: var(--s2); }
.lib-item b { font-weight: 500; font-size: 13px; }
.lib-item small { display: block; color: var(--t4); font-size: 11.5px; line-height: 1.35; }
.lib-item .plus { color: var(--brand); font-weight: 700; flex: none; }
.lib-item.in { opacity: .4; pointer-events: none; }
.mcard { border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 14px; background: var(--s1); margin-bottom: 10px; }
.mcard-t { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 10px; }
.mcard-t b { font-weight: 600; font-size: 13.5px; }
.mcard-t small { color: var(--t4); font-size: 11.5px; margin-left: 6px; }
.mcard .x { background: none; border: 0; color: var(--t4); cursor: pointer; font-size: 16px; }
.mcard .x:hover { color: var(--neg); }
.range { position: relative; height: 26px; margin: 4px 2px 2px; }
.range .rail { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, hsl(9deg 65% 60% / .55), hsl(34deg 91% 57% / .45), hsl(166deg 87% 64% / .55)); }
.range .rail.rev { background: linear-gradient(90deg, hsl(166deg 87% 64% / .55), hsl(34deg 91% 57% / .45), hsl(9deg 65% 60% / .55)); }
.range .rail.flat { background: var(--s4); }
.range .sel { position: absolute; top: 9px; height: 8px; border-radius: 4px; background: hsl(215deg 100% 98% / .25); border: 1px solid hsl(215deg 100% 98% / .4); }
.range input[type=range] { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 26px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--t1); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line); cursor: grab; }
.range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: var(--t1); border: 3px solid var(--bg); cursor: grab; }
.range input[type=range]::-webkit-slider-runnable-track { background: none; }
.range-ends { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--t4); margin-top: 2px; }
.mm { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.mm .input { height: 32px; font-size: 13px; }
.yn { display: flex; gap: 6px; }
.yn button { flex: 1; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--s1); color: var(--t3); font-weight: 600; cursor: pointer; }
.yn button.on { background: var(--brand-a); color: var(--brand); border-color: var(--brand-a2); }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.res-grid .stat { padding: 10px 12px; } .res-grid .stat b { font-size: 16px; }
.hitbars { display: grid; gap: 6px; margin-bottom: 14px; }
.hitbar { display: grid; grid-template-columns: 44px 1fr 72px; align-items: center; gap: 8px; font-size: 12px; }
.hitbar .bar { height: 8px; border-radius: 4px; background: var(--s3); overflow: hidden; }
.hitbar .bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.hitbar span:last-child { text-align: right; color: var(--t3); font-variant-numeric: tabular-nums; }
.siglist .srow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.siglist .srow:last-child { border-bottom: 0; }
.xchip { font-weight: 700; font-variant-numeric: tabular-nums; }
.loading { color: var(--t3); padding: 18px 0; text-align: center; font-size: 13px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* heatmap */
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 10px; color: var(--t4); }
.heat i { aspect-ratio: 1; border-radius: 3px; background: var(--s2); }
.heat span { display: flex; align-items: center; }

/* AutoTrader */
.tcard { padding: 16px; border-radius: var(--r-lg); background: var(--s1); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tcard-t { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.tcard-t h3 { font-size: 15.5px; margin: 0 0 2px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 12.5px; }
.kv div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line-2); padding: 5px 0; min-width: 0; }
.kv span { color: var(--t3); white-space: nowrap; } .kv b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; background: var(--t4); }
.dot.on { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-a); }
.tp-row { display: grid; grid-template-columns: 1fr 1fr 32px; gap: 8px; margin-bottom: 8px; align-items: end; }
.opt { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 10px; background: var(--s1); }
.opt-t { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.opt-t b { font-weight: 600; font-size: 13.5px; } .opt-t small { display: block; color: var(--t4); font-size: 12px; font-weight: 400; }
.opt-b { margin-top: 10px; }
.sumline { font-size: 12px; margin: 2px 0 10px; }
.trader-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 360px; gap: 14px; align-items: start; }

/* portfolio */
.pbanner { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 20px; border-radius: var(--r-lg); background: linear-gradient(120deg, hsl(166deg 87% 64% / .07), transparent 45%), var(--s1); border: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 19px; background: linear-gradient(135deg, var(--brand-d), hsl(212deg 60% 35%)); color: var(--t1); flex: none; }
.pbanner .who { display: flex; gap: 14px; align-items: center; min-width: 0; }
.pbanner .who h2 { font-size: 19px; }
.pstats { display: flex; gap: 22px; flex-wrap: wrap; }
.pstats div span { display: block; font-size: 11.5px; color: var(--t3); }
.pstats div b { font-size: 17px; font-weight: 600; }
.chart { width: 100%; height: 240px; display: block; }
.chart-sm { height: 160px; }
.wcard { padding: 16px; border-radius: var(--r-lg); background: var(--s1); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.wcard h3 { font-size: 15px; margin: 0; }
.big-num { font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* modal + toast */
.modal-bg { position: fixed; inset: 0; z-index: 60; background: hsl(40deg 9% 3% / .72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 30px 80px hsl(0deg 0% 0% / .5); }
.modal.wide { max-width: 760px; }
.modal h2 { font-size: 19px; margin-bottom: 6px; }
.modal .sub { color: var(--t3); margin: 0 0 16px; }
.modal-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--s1); cursor: pointer; margin-bottom: 8px; font-weight: 600; text-align: left; }
.wallet-opt:hover { background: var(--s3); }
.wallet-opt img { width: 28px; height: 28px; border-radius: 7px; }
.wallet-opt small { margin-left: auto; color: var(--t3); font-weight: 400; }
.codebox { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--s2); border: 1px dashed var(--line); font-family: var(--mono); font-size: 15px; letter-spacing: .04em; margin-bottom: 12px; word-break: break-all; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; padding: 11px 16px; border-radius: var(--r-md); background: var(--bg-3); border: 1px solid var(--line); box-shadow: 0 10px 40px hsl(0deg 0% 0% / .45); font-weight: 500; max-width: calc(100vw - 40px); }
.toast.err { border-color: hsl(9deg 65% 60% / .5); color: var(--neg); }
.toast.ok { border-color: var(--brand-a2); color: var(--brand); }
.menu { position: absolute; right: 0; top: 40px; min-width: 200px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; box-shadow: 0 20px 50px hsl(0deg 0% 0% / .5); z-index: 50; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 11px; border-radius: 6px; border: 0; background: none; cursor: pointer; font-size: 13.5px; }
.menu a:hover, .menu button:hover { background: var(--s3); }
.menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 5px 0; }
.rel { position: relative; }

/* landing */
.landing { max-width: 1240px; margin: 0 auto; padding: 0 20px 40px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: 70px 0 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-full); background: var(--s2); border: 1px solid var(--line); color: var(--t2); font-size: 12.5px; font-weight: 500; margin: 0 0 22px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand-a2); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 hsl(166deg 87% 64% / .45); } 70% { box-shadow: 0 0 0 8px hsl(166deg 87% 64% / 0); } 100% { box-shadow: 0 0 0 0 hsl(166deg 87% 64% / 0); } }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.lead { font-size: 17px; color: var(--t2); max-width: 560px; margin: 20px 0 28px; line-height: 1.6; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 36px; }
.hero-stats div { border-left: 1px solid var(--line); padding-left: 12px; min-width: 0; }
.hero-stats b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-stats span { font-size: 12px; color: var(--t3); }
.hero-panel { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--s2), var(--s1)); padding: 16px; box-shadow: 0 40px 120px hsl(166deg 87% 40% / .07); min-height: 420px; }
.hp-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; gap: 10px; }
.hp-title { font-weight: 600; } .hp-sub { font-size: 12px; color: var(--t3); }
.hp-list { display: flex; flex-direction: column; gap: 6px; max-height: 380px; overflow: hidden; }
.hp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); background: var(--s1); border: 1px solid var(--line-2); font-size: 13px; animation: rowin .5s ease both; }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hp-row .algo { font-size: 11.5px; color: var(--t3); }
.hp-empty { padding: 40px 10px; color: var(--t3); text-align: center; font-size: 13px; }
.section { padding: 56px 0; border-top: 1px solid var(--line-2); }
.kicker { color: var(--brand); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.section h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; margin-bottom: 26px; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 22px; border-radius: var(--r-lg); background: var(--s1); border: 1px solid var(--line); }
.feature h3 { font-size: 17px; margin: 14px 0 8px; }
.feature p { color: var(--t3); margin: 0; font-size: 13.5px; line-height: 1.6; }
.f-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-a); color: var(--brand); font-size: 18px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps li { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--s1); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--mono); color: var(--brand); margin-bottom: 14px; }
.steps b { display: block; font-size: 16px; margin-bottom: 6px; } .steps span { color: var(--t3); font-size: 13.5px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.split h2 { margin-bottom: 12px; }
.cta-end { text-align: center; }
.cta-end h2 { margin-bottom: 20px; }

/* docs */
.doc { max-width: 820px; margin: 0 auto; padding: 36px 20px 80px; }
.doc h1 { font-size: 32px; margin-bottom: 8px; }
.doc h2 { font-size: 20px; margin: 34px 0 10px; }
.doc h3 { font-size: 16px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--t2); line-height: 1.7; }
.doc code, .doc pre { font-family: var(--mono); background: var(--s2); border: 1px solid var(--line-2); border-radius: 6px; }
.doc code { padding: 1px 5px; font-size: .9em; }
.doc pre { padding: 14px; overflow-x: auto; font-size: 12.5px; line-height: 1.6; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0; }
.doc td, .doc th { border-bottom: 1px solid var(--line-2); padding: 7px 8px; text-align: left; vertical-align: top; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 6px; }

/* footer */
.foot { border-top: 1px solid var(--line-2); margin-top: 20px; }
.foot-in { max-width: 1440px; margin: 0 auto; padding: 22px 20px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 13px; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; } .foot nav a { color: var(--t3); } .foot nav a:hover { color: var(--t1); }
.foot-brand { font-weight: 700; }

/* responsive */
@media (max-width: 1240px) {
  .builder { grid-template-columns: 270px minmax(0, 1fr); } .builder .results { grid-column: 1 / -1; } .builder .sticky { position: static; max-height: none; }
  .trader-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .trader-form .results { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .nav { display: none; } .burger { display: block; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .pill-new { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0; } .hero-panel { min-height: 0; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .split, .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .builder, .trader-form { grid-template-columns: 1fr; }
  .top-in { gap: 10px; } .xbtn { display: none; } .ca { display: none; }
  .page-head h1 { font-size: 22px; }
}
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } .acard .nums { grid-template-columns: 1fr 1fr; } }
