:root {
  --bg: #17171c;
  --nav: #111116;
  --row: #1d1d22;
  --row-hover: #26262c;
  --head: #39393e;
  --panel: #28282d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #fff;
  --nav-text: #c9c9ce;
  --muted: #6d6d72;
  --rank: #808080;
  --blue: #5974f0;
  --blue-deep: #354690;
  --up: #48bb78;
  --down: #f56565;
  --zero: #505055;
  --boost: #f0b90b;
  --nav-w: 210px;
  font-family: Poppins, -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; }
sub { font-size: 0.72em; vertical-align: -0.25em; line-height: 0; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.ico svg { display: block; }

/* ---------- nav ---------- */
#nav {
  position: fixed; inset: 0 auto 0 0; width: var(--nav-w); background: var(--nav); display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #333 transparent; z-index: 20;
}
.nav-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 0 12px; height: 46px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 18px; letter-spacing: 0.3px; }
.logo span { font-weight: 400; }
.logo b { font-weight: 700; color: #8ea2ff; }
.collapse { color: var(--muted); font-size: 18px; width: 22px; height: 22px; }
.search-btn {
  margin: 4px 12px 0; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; border-radius: 6px;
  background: var(--panel); color: var(--nav-text); font-weight: 600;
}
.search-btn span:nth-child(2) { flex: 1; text-align: left; }
.search-btn kbd { border: 1px solid #55555a; border-radius: 4px; font: 12px/18px Poppins; width: 20px; text-align: center; color: #9a9aa0; }
.app-btn-wrap { padding: 12px 12px 4px; }
.app-btn { display: block; text-align: center; background: var(--panel); border-radius: 8px; padding: 8px; font-size: 12px; font-weight: 600; color: #fff; }
.nav-main, .nav-chains { list-style: none; margin: 0; padding: 4px 0; }
.nav-main { border-bottom: 1px solid #26262b; margin: 0 12px; padding: 4px 0 8px; }
.nav-main a, .nav-chains a {
  display: flex; align-items: center; gap: 12px; padding: 7px 4px; color: var(--nav-text); font-weight: 500; white-space: nowrap; border-radius: 6px;
}
.nav-chains a { padding: 6px 16px; }
.nav-main a .ico { color: #8a8a90; }
.nav-main a:hover, .nav-chains a:hover { color: #fff; }
.nav-main a.active, .nav-chains a.active { color: #fff; background: #222228; }
.nav-chains a.active { box-shadow: inset 3px 0 0 var(--blue); }
.nav-main a.disabled { opacity: 0.55; cursor: not-allowed; }
.nav-chains img { border-radius: 4px; }
.nav-watch { border-top: 1px solid #26262b; padding: 8px 0; }
.nav-watch-head { display: flex; gap: 6px; align-items: center; padding: 0 12px; font-size: 11px; font-weight: 700; color: #b2b2b7; }
.nav-watch-head svg { width: 12px; height: 12px; }
.nav-watch-sub { font-size: 12px; color: #b2b2b7; padding: 6px 12px; }
.nav-watch-empty { font-size: 11px; color: var(--muted); padding: 0 12px 6px; }
.nav-watch-item { display: grid; grid-template-columns: 14px 1fr auto; gap: 2px 6px; align-items: center; padding: 4px 12px; font-size: 12px; }
.nav-watch-item .pc { grid-column: 3; grid-row: 1 / span 2; font-size: 11px; }
.nav-watch-item .muted { grid-column: 2; font-size: 11px; }
.nav-watch-item:hover { background: #1c1c22; }
.nav-foot { margin-top: auto; border-top: 1px solid #26262b; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
.nav-user { display: flex; align-items: center; gap: 8px; }
.nav-user .dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, #7c93ff, #4fd1a5); }
.nav-social { display: flex; gap: 12px; color: #9a9aa0; }
.nav-social a:hover { color: #fff; }

body.nav-collapsed { --nav-w: 60px; }
body.nav-collapsed .logo span, body.nav-collapsed .search-btn span:nth-child(2), body.nav-collapsed .search-btn kbd,
body.nav-collapsed .app-btn-wrap, body.nav-collapsed .nav-main span:not(.ico), body.nav-collapsed .nav-chains span,
body.nav-collapsed .nav-watch, body.nav-collapsed .nav-social, body.nav-collapsed .nav-user { display: none; }
body.nav-collapsed .nav-top { flex-direction: column; height: auto; gap: 6px; padding: 10px 0 0; }
body.nav-collapsed .collapse { transform: rotate(180deg); }
body.nav-collapsed .search-btn { margin: 8px; padding: 0; justify-content: center; }
body.nav-collapsed .nav-main { margin: 0 8px; }
body.nav-collapsed .nav-main a, body.nav-collapsed .nav-chains a { justify-content: center; padding: 8px 0; }

#page { margin-left: var(--nav-w); min-height: 100vh; }

/* ---------- screener ---------- */
.screener { display: flex; flex-direction: column; height: 100vh; padding: 0; }
.sc-top { padding: 12px 8px 0 12px; }
.trend-bar { display: flex; align-items: center; gap: 8px; height: 33px; overflow: hidden; }
.tb-title { display: flex; align-items: center; gap: 6px; background: #0d0d0d; border-radius: 6px; padding: 0 10px; height: 33px; font-weight: 700; font-size: 15px; white-space: nowrap; color: #ff8a3d; }
.tb-scroll { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tb-item { display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 33px; white-space: nowrap; font-size: 14px; border-radius: 6px; }
.tb-item:hover { background: #222228; }
.tb-rank { color: var(--rank); font-size: 12px; }
.tb-item .tok-img { width: 16px; height: 16px; }
.tb-item .pc { font-size: 12px; }

.chain-tabs { display: flex; align-items: center; gap: 4px; height: 40px; overflow: hidden; }
.chain-tabs a { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 34px; border-radius: 6px; color: var(--nav-text); white-space: nowrap; font-weight: 500; }
.chain-tabs a img { border-radius: 4px; }
.chain-tabs a:hover { background: #222228; color: #fff; }
.chain-tabs a.on { background: #2c2c33; color: #fff; }
.chain-more { margin-left: auto; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; height: 32px; padding: 0 8px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 8px 0 12px; }
.stat { display: flex; justify-content: center; align-items: center; gap: 8px; height: 48px; border: 1px solid var(--line); border-radius: 6px; background: #111116; }
.stat span { color: #9a9aa0; font-size: 13px; }
.stat b { font-size: 16px; }

.controls { display: flex; align-items: center; gap: 8px; padding: 12px 8px 8px 12px; flex-wrap: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px; background: var(--panel); font-size: 13px; font-weight: 600; white-space: nowrap; }
.btn:hover { background: #33333a; }
.btn-blue, .btn-blue:hover { background: var(--blue); color: #fff; }
.btn .caret { opacity: 0.8; }
.btn-group.trending { display: flex; align-items: center; height: 32px; border-radius: 6px; background: var(--panel); padding-right: 4px; }
.btn-group.trending.active { background: var(--blue); }
.tg-label { display: flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; height: 32px; font-size: 13px; font-weight: 600; }
.tg-label .info { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); color: var(--blue); font-size: 10px; font-weight: 700; display: grid; place-items: center; font-style: normal; }
.tf { display: flex; gap: 3px; }
.tf button { height: 24px; padding: 0 8px; border-radius: 6px; background: var(--blue-deep); font-size: 12px; font-weight: 600; }
.btn-group:not(.active) .tf button { background: #3a3a41; }
.tf button.on { background: #fff; color: var(--blue-deep); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-strong); font-size: 12px; color: #d0d0d5; white-space: nowrap; }
.toggle-group { display: flex; border: 1px solid var(--line-strong); border-radius: 6px; height: 32px; overflow: hidden; }
.tgl { display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.92); border-right: 1px solid var(--line-strong); white-space: nowrap; }
.tgl:last-child { border-right: 0; }
.tgl:hover { background: #222228; }
.tgl-st { display: inline-flex; color: #9a9aa0; font-size: 11px; }
.tgl.st-only { background: rgba(89, 116, 240, 0.22); }
.tgl.st-only .tgl-st { color: #9fb0ff; }
.tgl.st-hide { color: #8a8a90; text-decoration: line-through; }
.tgl.st-hide .tgl-st { color: var(--down); text-decoration: none; }
.right-ctl { margin-left: auto; display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 6px; height: 32px; }
.btn-flat { display: flex; align-items: center; gap: 6px; padding: 0 12px; height: 30px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.92); border-right: 1px solid var(--line-strong); white-space: nowrap; }
.right-ctl > :last-child, .right-ctl > .dd:last-child .btn-flat { border-right: 0; }
.btn-flat:hover { background: #222228; }
.btn-flat span { color: #b6b6bb; }
.count { background: var(--blue); color: #fff !important; border-radius: 10px; padding: 0 6px; font-size: 11px; }
.dd { position: relative; }
.dd-menu { display: none; position: absolute; top: 36px; left: 0; min-width: 180px; background: #232329; border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px; z-index: 30; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.dd-menu.dd-right { left: auto; right: 0; }
.dd-menu.open { display: block; }
.dd-menu button { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 6px; font-size: 13px; }
.dd-menu button:hover { background: #2f2f36; }
.dd-menu button.on { color: #9fb0ff; }

/* table */
.sc-table { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ds-table {
  --cols: minmax(330px, 3.9fr) 1fr 1.3fr 0.72fr 1fr 0.93fr 0.93fr 0.93fr 0.93fr 0.87fr 0.87fr 1fr;
  display: flex; flex-direction: column; min-height: 0; flex: 1; border-top: 1px solid var(--line);
}
.t-head, .t-row { display: grid; grid-template-columns: var(--cols); min-width: 1240px; }
.t-head { background: var(--head); height: 45px; position: sticky; top: 0; z-index: 2; }
.th { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 8px; font-size: 12px; font-weight: 600; color: #fff; border-right: 1px solid rgba(255, 255, 255, 0.06); text-transform: uppercase; }
.th-token { justify-content: flex-start; padding-left: 8px; }
button.th:hover { background: #44444a; }
.th.sorted { color: #a8b7ff; }
.usd-badge { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1.5px solid #9a9aa0; border-radius: 50%; font-size: 9px; color: #c0c0c5; }
.t-body { overflow: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #3a3a40 transparent; }
.t-body > .t-row:first-child { margin-top: 0; }
.t-row { height: 41px; background: var(--row); border-bottom: 1px solid #2a2a2f; }
.t-row:hover { background: var(--row-hover); }
.td { display: flex; align-items: center; justify-content: flex-end; padding: 0 8px; font-size: 14px; border-right: 1px solid #2a2a2f; white-space: nowrap; font-variant-numeric: tabular-nums; }
.td-price { font-size: 13px; }
.td-age { font-size: 13px; }
.c-token { display: flex; align-items: center; gap: 4px; padding: 0 4px 0 8px; overflow: hidden; white-space: nowrap; border-right: 1px solid #2a2a2f; }
.rank { color: var(--rank); font-size: 11px; min-width: 24px; }
.cd-icons { display: flex; gap: 4px; margin-right: 4px; }
.cd-icons img { width: 16px; height: 16px; border-radius: 3px; }
.tok-img { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; flex: none; margin-right: 6px; background: #2a2a30; }
.tok-fallback { display: inline-grid; place-items: center; font-weight: 700; color: #aaa; font-size: 12px; }
.tok-sym { font-weight: 700; font-size: 14px; }
.tok-slash { color: var(--muted); font-size: 11px; margin: 0 2px 0 4px; }
.tok-quote { color: var(--muted); font-size: 12px; margin-right: 6px; }
.tok-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.boost { display: inline-flex; align-items: center; gap: 1px; color: var(--boost); font-weight: 700; font-size: 12px; margin-left: 4px; flex: none; }
.pair-label { font-size: 10px; color: #a0a0a6; border: 1px solid #45454b; border-radius: 4px; padding: 0 4px; line-height: 14px; margin-right: 4px; }
.pc.up { color: var(--up); }
.pc.down { color: var(--down); }
.pc.zero { color: var(--zero); }
.mc-1 { color: #4299e1; }
.mc-2 { color: #63b3ed; }
.mc-3 { color: #90cdf4; }
.mc-4 { color: #bee3f8; }
.age-0 { color: #a3d65a; }
.age-1 { color: #badc84; }
.age-2 { color: #d1e9aa; }
.age-3 { color: #e8f4d2; }
.age-4 { color: #f7fbee; }
.age-none { color: var(--zero); }
.bs { display: inline-flex; gap: 3px; font-size: 13px; }
.t-loading, .t-empty { padding: 40px; text-align: center; color: #9a9aa0; }
.layout-new { --cols: minmax(330px, 3.9fr) 1fr 1.3fr 1fr 0.9fr 0.9fr 0.93fr 0.93fr 0.93fr 0.87fr 0.87fr 1fr; }

/* ---------- pair page ---------- */
.pair-page { display: grid; grid-template-columns: 1fr 335px; height: 100vh; }
.pp-main { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.pp-trend { padding: 6px 8px; border-bottom: 1px solid var(--line); min-height: 46px; }
.pp-chart { flex: 1; min-height: 0; }
.pp-chart iframe { width: 100%; height: 100%; border: 0; display: block; background: #131317; }
.pp-side { overflow-y: auto; padding: 10px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.pp-head { display: flex; gap: 10px; align-items: center; padding: 4px 2px 10px; }
.pp-head .tok-img { border-radius: 50%; margin: 0; }
.pp-pairname { display: flex; align-items: center; gap: 4px; font-size: 16px; }
.pp-sub { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #c0c0c5; margin-top: 2px; }
.pp-sub img { border-radius: 3px; }
.pp-sub a:hover { text-decoration: underline; }
.copy-btn { display: inline-flex; align-items: center; gap: 4px; color: #9a9aa0; font-size: 12px; }
.copy-btn:hover, .copy-btn.copied { color: #fff; }
.copy-btn.copied::after { content: "Copied"; color: var(--up); font-size: 11px; }
.pp-banner { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.pp-links { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.pp-links a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pp-links a:hover { background: #222228; }
.grid2, .grid3 { display: grid; gap: 6px; margin-bottom: 6px; }
.grid2 { grid-template-columns: 1fr 1fr; }
.grid3 { grid-template-columns: 1fr 1fr 1fr; }
.box { border: 1px solid var(--line-strong); border-radius: 6px; padding: 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.box span { font-size: 11px; color: #9a9aa0; font-weight: 500; }
.box b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.tf-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-right: 1px solid var(--line-strong); font-size: 11px; color: #9a9aa0; }
.tf-tabs button:last-child { border-right: 0; }
.tf-tabs button .pc { font-size: 14px; font-weight: 600; }
.tf-tabs button.on { background: #2c2c33; color: #fff; }
.txstats { border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 8px; margin-bottom: 6px; }
.txs-row { display: grid; grid-template-columns: 80px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.txs-row:last-child { border-bottom: 0; }
.txs-row > div:first-child { display: flex; flex-direction: column; font-size: 11px; color: #9a9aa0; }
.txs-row > div:first-child b { color: #fff; font-size: 14px; font-weight: 600; }
.txs-labels { display: flex; justify-content: space-between; font-size: 11px; color: #9a9aa0; }
.txs-labels span { display: flex; flex-direction: column; }
.txs-labels span:last-child { text-align: right; }
.txs-labels b { color: #fff; font-size: 13px; font-weight: 600; }
.bar { height: 4px; border-radius: 2px; background: var(--down); margin-top: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--up); }
.actions { margin-bottom: 6px; }
.btn-act { display: flex; justify-content: center; align-items: center; gap: 6px; height: 34px; border-radius: 6px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 13px; }
.btn-act:hover { background: #222228; }
.btn-act.on { color: var(--boost); border-color: rgba(240, 185, 11, 0.5); }
.btn-act svg { width: 16px; height: 16px; }
.btn-buy, .btn-sell { display: flex; justify-content: center; align-items: center; gap: 6px; height: 34px; border-radius: 6px; font-weight: 600; }
.btn-buy { background: rgba(72, 187, 120, 0.16); color: var(--up); }
.btn-sell { background: rgba(245, 101, 101, 0.16); color: var(--down); }
.btn-buy:hover { background: rgba(72, 187, 120, 0.28); }
.btn-sell:hover { background: rgba(245, 101, 101, 0.28); }
.kvs { margin-top: 10px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv > span:first-child { color: #c0c0c5; }
.kv b { font-weight: 600; text-align: right; }
.addr { display: flex; gap: 6px; align-items: center; }
.addr .copy-btn { background: #26262c; padding: 2px 6px; border-radius: 4px; color: #ddd; }
.exp { display: inline-flex; align-items: center; gap: 3px; background: #26262c; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.exp:hover { background: #33333a; }
.pp-searchx { padding: 10px 0; }
.pp-searchx a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 13px; font-weight: 600; }
.pp-section { margin-top: 8px; }
.pp-section h4 { margin: 8px 0 4px; font-size: 13px; color: #c0c0c5; }
.other { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; padding: 6px 4px; border-radius: 6px; font-size: 13px; }
.other:hover { background: #222228; }
.o-r { display: flex; gap: 8px; font-size: 12px; }
.pp-foot { font-size: 11px; padding: 14px 0 6px; text-align: center; }
.pp-foot a { text-decoration: underline; }
.not-found { padding: 80px; text-align: center; }

/* ---------- watchlist / multicharts ---------- */
.page-head { display: flex; align-items: center; gap: 16px; padding: 16px 12px; }
.page-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; }
.multi { display: flex; flex-direction: column; height: 100vh; }
.mc-add { position: relative; margin-left: auto; }
.mc-add input, #mc-layout { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; height: 34px; padding: 0 10px; width: 280px; }
#mc-layout { width: auto; }
.mc-res { position: absolute; top: 38px; left: 0; right: 0; background: #232329; border-radius: 8px; z-index: 5; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.mc-res button { display: flex; gap: 6px; align-items: center; width: 100%; padding: 8px 10px; font-size: 13px; }
.mc-res button:hover { background: #2f2f36; }
.mc-grid { flex: 1; display: grid; gap: 6px; padding: 0 8px 8px; grid-auto-rows: minmax(360px, 1fr); overflow-y: auto; }
.mc-cell { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; min-height: 0; }
.mc-bar { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; background: #1d1d22; font-size: 12px; }
.mc-cell iframe { flex: 1; border: 0; width: 100%; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding-top: 8vh; }
.modal[hidden] { display: none; }
.modal-card { background: #1e1e24; border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.search-card { width: min(900px, 92vw); max-height: 80vh; display: flex; flex-direction: column; }
.search-input-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-strong); }
.search-input-row input { flex: 1; background: transparent; border: 0; outline: 0; font-size: 16px; }
.modal-x { color: #9a9aa0; font-size: 12px; border: 1px solid #45454b; border-radius: 4px; padding: 2px 6px; }
.search-results { overflow-y: auto; }
.search-hint { padding: 24px; text-align: center; color: #9a9aa0; }
.search-row { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.search-row:hover { background: #26262c; }
.sr-icons { display: flex; flex-direction: column; gap: 4px; }
.sr-icons img { border-radius: 3px; }
.sr-name { color: #c0c0c5; font-size: 13px; margin-left: 4px; }
.sr-sub { display: flex; gap: 12px; font-size: 12px; color: #9a9aa0; margin-top: 2px; }
.sr-sub b { color: #ddd; font-weight: 500; }
.sr-addr { font-size: 11px; margin-top: 2px; }
.sr-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.filters-card { width: 520px; padding: 16px; }
.fc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 16px; }
.fc-head .modal-x { border: 0; }
.f-row { display: grid; grid-template-columns: 1fr 120px 120px; gap: 8px; align-items: center; padding: 5px 0; font-size: 13px; color: #c0c0c5; }
.f-row input { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; height: 32px; padding: 0 8px; width: 100%; }
.fc-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

@media (max-width: 900px) {
  :root { --nav-w: 0px; }
  #nav { display: none; }
  .controls { overflow-x: auto; }
  .pair-page { grid-template-columns: 1fr; height: auto; }
  .pp-chart { height: 70vh; }
}

/* ---------- enhanced token info ---------- */
.pp-desc { font-size: 12.5px; line-height: 1.5; color: #d6d6da; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 2px 10px; max-height: 180px; overflow-y: auto; scrollbar-width: thin; }
.pp-enh { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; margin-bottom: 8px; border: 1px dashed rgba(89, 116, 240, 0.6); border-radius: 8px; background: rgba(89, 116, 240, 0.08); font-size: 12px; color: #c9c9ce; }
.pp-enh > b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #fff; }
.pp-enh svg { width: 14px; height: 14px; color: var(--boost); }
.pp-enh:hover { background: rgba(89, 116, 240, 0.16); }
.pp-section .kv a { text-decoration: underline; }

.eti { max-width: 860px; margin: 0 auto; padding: 24px 24px 80px; }
.eti-crumbs { font-size: 13px; color: #9a9aa0; margin-bottom: 18px; }
.eti-crumbs a:hover { color: #fff; }
.eti h1 { font-size: 30px; margin: 0 0 22px; }
.eti h3 { font-size: 22px; margin: 34px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.eti h4 { font-size: 15px; margin: 20px 0 6px; }
.eti-label { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 6px; }
.eti input:not([type="checkbox"]):not([type="file"]), .eti select, .eti textarea {
  width: 100%; background: #111116; border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 12px; font-size: 14px; color: #fff; outline: none;
}
.eti textarea { resize: vertical; font: inherit; }
.eti input:focus, .eti select:focus, .eti textarea:focus { border-color: var(--blue); }
.eti-hint { font-size: 12.5px; color: #9a9aa0; margin: 6px 0 0; line-height: 1.5; }
.eti-hint a { text-decoration: underline; color: #c9c9ce; }
.eti-token { display: flex; align-items: center; gap: 6px; min-height: 22px; margin-top: 6px; font-size: 13px; }
.eti-links { display: flex; flex-wrap: wrap; gap: 8px; }
.eti-add, .eti-small, .eti-upload { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 6px; background: var(--panel); font-size: 13px; font-weight: 600; cursor: pointer; }
.eti-add:hover, .eti-small:hover, .eti-upload:hover { background: #33333a; }
.eti-add[hidden], .eti-small[hidden] { display: none; }
.eti-small { margin-top: 8px; }
.eti-row { margin-top: 8px; }
.eti-inline { display: flex; gap: 8px; align-items: center; }
.eti-rm { flex: none; width: 34px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: #9a9aa0; }
.eti-rm:hover { background: #2a2a30; color: #fff; }
.eti-rules { margin: 4px 0 10px; padding-left: 18px; font-size: 12.5px; color: #9a9aa0; line-height: 1.6; }
.eti-img:empty { display: none; }
.eti-img { margin-bottom: 10px; }
.eti-img img { border-radius: 8px; border: 1px solid var(--line-strong); }
.eti-img-icon img { width: 96px; height: 96px; object-fit: cover; }
.eti-img-header img { width: 100%; max-width: 600px; aspect-ratio: 3 / 1; object-fit: cover; }
.eti-summary { border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.eti-sum-head { display: flex; justify-content: space-between; padding: 10px 14px; background: #1e1e24; font-size: 13px; color: #9a9aa0; font-weight: 600; }
.eti-sum-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px; }
.eti-price { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 16px; }
.eti-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin: 10px 0; cursor: pointer; line-height: 1.5; }
.eti-check input { margin-top: 4px; accent-color: var(--blue); }
.eti-error { margin-top: 14px; padding: 10px 12px; border-radius: 6px; background: rgba(245, 101, 101, 0.12); color: #ff9a9a; font-size: 13px; overflow-wrap: anywhere; }
.eti-status { margin-top: 14px; padding: 10px 12px; border-radius: 6px; background: rgba(89, 116, 240, 0.12); color: #b9c6ff; font-size: 13px; }
.eti-order { margin-top: 18px; width: 100%; height: 46px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; }
.eti-order:hover { filter: brightness(1.1); }
.eti-order:disabled { opacity: 0.6; cursor: progress; }
.eti-done { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.eti-done > svg { width: 48px; height: 48px; color: var(--up); }
.eti-done a:not(.btn) { display: inline-flex; gap: 4px; align-items: center; text-decoration: underline; }

/* ---------- callouts & thesis ---------- */
.pp-social { flex: none; display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); background: #131317; }
.pp-social.collapsed .so-body { display: none; }
.so-tabs { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 8px; border-bottom: 1px solid var(--line); flex: none; }
.so-tabs > button:not(.so-toggle):not(.so-arrow) { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #c0c0c5; }
.so-tabs > button svg { width: 12px; height: 12px; }
.so-tabs > button span { color: #8a8a90; font-weight: 500; }
.so-tabs > button:not(.so-toggle):not(.so-arrow):hover { background: #222228; color: #fff; }
.so-tabs > button.on { background: #2a2a31; color: #fff; }
.so-src { margin-left: auto; font-size: 11px; }
.so-sort { height: 28px; background: #1d1d22; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 6px; font-size: 12px; }
.so-arrow, .so-toggle { width: 28px; height: 28px; border-radius: 6px; color: #9a9aa0; font-size: 18px; line-height: 1; }
.so-toggle { font-size: 14px; }
.so-arrow:hover, .so-toggle:hover { background: #222228; color: #fff; }
.so-body { min-height: 150px; }
.so-rail { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 10px; scroll-snap-type: x proximity; scroll-padding: 10px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.so-card { flex: 0 0 330px; scroll-snap-align: start; max-height: 230px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #1a1a1f; display: flex; flex-direction: column; gap: 8px; }
.so-card header { display: flex; align-items: center; gap: 10px; flex: none; }
.so-card-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.so-ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; }
.so-who { min-width: 0; flex: 1; }
.so-line { display: flex; align-items: center; gap: 5px; min-width: 0; }
.so-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.so-name:hover { text-decoration: underline; }
.so-ver svg { width: 13px; height: 13px; color: var(--blue); }
.so-x svg { width: 12px; height: 12px; opacity: 0.7; }
.so-meta { font-size: 11.5px; color: #8a8a90; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-meta b { color: #c9c9ce; font-weight: 600; }
.so-x-badge { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-size: 15px; }
.so-x-badge small { font-size: 10.5px; font-weight: 600; color: var(--boost); }
.so-pos { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: #9a9aa0; padding: 6px 8px; border-radius: 6px; background: #141418; flex: none; }
.so-pos b { color: #e6e6ea; font-weight: 600; }
.so-pos b.up { color: var(--up); }
.so-pos b.down { color: var(--down); }
.so-text { margin: 0; font-size: 13px; line-height: 1.55; color: #e2e2e6; white-space: pre-wrap; overflow-wrap: anywhere; }
.so-more { color: var(--blue); font-size: 12px; font-weight: 600; }
.so-media { max-width: 100%; max-height: 160px; border-radius: 8px; object-fit: cover; }
.so-updates { border-left: 2px solid #33333a; padding-left: 10px; display: flex; flex-direction: column; gap: 6px; }
.so-up-head { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #9a9aa0; font-weight: 600; }
.so-up-head svg { width: 12px; height: 12px; }
.so-up { font-size: 12px; }
.so-up p { margin: 2px 0 0; color: #c9c9ce; line-height: 1.45; overflow-wrap: anywhere; }
.so-card footer { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #8a8a90; flex: none; margin-top: auto; }
.so-tag { padding: 1px 6px; border-radius: 4px; background: rgba(72, 187, 120, 0.14); color: var(--up); font-size: 11px; font-weight: 600; }
.so-open { margin-left: auto; display: flex; align-items: center; gap: 4px; color: #c0c0c5; font-weight: 600; }
.so-open svg { width: 11px; height: 11px; }
.so-open:hover { color: #fff; }
.so-card.so-all { flex-basis: 190px; align-items: center; justify-content: center; text-align: center; font-size: 13px; font-weight: 600; color: #c0c0c5; border-style: dashed; }
.so-card.so-all span { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: #8a8a90; }
.so-card.so-all:hover { color: #fff; background: #1e1e24; }
.so-card.so-all svg, .so-fomo svg { width: 12px; height: 12px; }
.so-fomo { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 20px; text-align: center; }
.so-fomo p { margin: 0; max-width: 460px; }
.pp-social .t-empty, .pp-social .t-loading { padding: 40px; }
.pp-social .t-empty a { text-decoration: underline; }
.so-stats { display: flex; align-items: center; gap: 4px; flex: none; font-size: 11.5px; color: #9a9aa0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-stats > span { padding: 0 5px; border-radius: 4px; background: #26262c; color: #c0c0c5; font-size: 10.5px; font-weight: 600; margin-right: 2px; }
.so-stats b { color: #e6e6ea; font-weight: 600; }
.so-stats b.up { color: var(--up); }
.so-stats b.down { color: var(--down); }
.so-tag-out { background: rgba(240, 185, 11, 0.14); color: var(--boost); }
button.so-card.so-all { font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.so-card { max-height: 250px; }
