:root {
  --midnight: #000b24; --navy: #052950; --steel: #416d91; --halo: #d9c9b1; --light: #d5e0e7; --accent: #acc6e9;
  --page-top: #000b24; --page-bottom: #02182f;
  --surface: #04162c; --surface-2: #07203c; --surface-3: #0b2a4b;
  --line: rgba(172, 198, 233, .12); --line-2: rgba(172, 198, 233, .22);
  --ink: #e6eef5; --ink-2: #aebfd0; --ink-3: #7690aa;
  --ui: var(--accent);
  --up: #14f195; --down: #ff5f6d; --neutral: #7690aa;
  --meme: #bd7f30; --util: #4a8dde; --other: #4b6078;
  --bar: #6f9ccf; --grid: rgba(172, 198, 233, .08);
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 12px;
  color-scheme: dark;
}
:root {
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300; --c7: #9085e9; --c-other: #4b6078;
}
:root[data-theme="light"] {
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300; --c7: #4a3aa7; --c-other: #9aabbd;
}
:root[data-theme="light"] {
  --page-top: #e9f0f5; --page-bottom: #d5e0e7;
  --surface: #f7fafc; --surface-2: #edf3f8; --surface-3: #e1eaf2;
  --line: rgba(5, 41, 80, .12); --line-2: rgba(5, 41, 80, .22);
  --ink: #052950; --ink-2: #2d4d6d; --ink-3: #5a7690;
  --ui: var(--steel);
  --up: #0a8f57; --down: #d13a4a; --neutral: #5a7690;
  --meme: #b8782c; --util: #2f6fbf; --other: #9aabbd;
  --bar: #416d91; --grid: rgba(5, 41, 80, .08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: linear-gradient(180deg, var(--page-top), var(--page-bottom)) fixed; min-height: 100%; }
body { margin: 0; background: transparent; color: var(--ink); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ui); }
button, select, input { font: inherit; color: inherit; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); } .small { font-size: 12px; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--neutral); }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: color-mix(in srgb, var(--page-top) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(160deg, var(--navy), var(--midnight)); box-shadow: inset 0 0 0 1px rgba(172,198,233,.25), 0 0 18px rgba(217,201,177,.12); color: var(--accent); }
.brand-mark svg { width: 19px; height: 17px; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-sub { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.tabs { display: flex; gap: 2px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 7px 12px; border-radius: 8px; color: var(--ink-2); cursor: pointer; font-weight: 500; white-space: nowrap; }
.tabs button:hover { color: var(--ink); background: var(--surface-2); }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface-3); box-shadow: inset 0 -2px 0 var(--ui); }
.top-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.icon-btn, .health, .btn { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.icon-btn:hover, .health:hover, .btn:hover { border-color: var(--line-2); color: var(--ink); }
.health { font-size: 12px; } .health.ok { color: var(--up); } .health.warn { color: #e0b44c; } .health.bad { color: var(--down); }
.health span { color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--ui); outline-offset: 2px; }

/* ticker */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.ticker-track { display: flex; gap: 26px; padding: 7px 20px; width: max-content; animation: slide 80s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.tk { display: flex; align-items: center; gap: 7px; font-size: 12.5px; white-space: nowrap; }
.tk img { width: 16px; height: 16px; border-radius: 50%; }
.tk b { font-weight: 600; }

main { max-width: 1480px; margin: 0 auto; padding: 16px 20px 24px; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 14px; min-width: 0; }
.kpi .k { color: var(--ink-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font: 600 21px/1.25 var(--mono); margin-top: 3px; white-space: nowrap; }
.kpi .d { font: 12px var(--mono); margin-top: 2px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .span3 { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .ch { padding: 14px 16px 8px; }
.ch { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ch h2 { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; }
.ch .sub { color: var(--ink-3); font-size: 12px; }
.ch .more { margin-left: auto; font-size: 12px; color: var(--ui); background: none; border: 0; cursor: pointer; padding: 0; }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 2px; overflow-x: auto; max-width: 100%; }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); }
select, input[type="search"] { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; min-width: 0; }
input[type="search"] { width: 260px; max-width: 100%; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: right; font-weight: 500; color: var(--ink-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--surface); cursor: default; }
th.sortable { cursor: pointer; } th.sortable:hover { color: var(--ink); }
th[aria-sort="descending"]::after { content: " ↓"; } th[aria-sort="ascending"]::after { content: " ↑"; }
td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; }
th:first-child, td:first-child, th.l, td.l { text-align: left; }
td.l { font-family: var(--sans); }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }

.tok { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tok img, .ph { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--surface-3); object-fit: cover; }
.ph { display: grid; place-items: center; font: 600 10px var(--sans); color: var(--ink-2); }
.tok .nm { display: flex; flex-direction: column; min-width: 6ch; line-height: 1.2; }
.tok .nm b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; max-width: 16ch; }
.tok .nm small { color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px; font: 500 11px var(--sans); color: var(--ink-2); white-space: nowrap; }
.chip.meme { border-color: color-mix(in srgb, var(--meme) 60%, transparent); }
.chip.meme::before, .chip.utility::before, .chip.unknown::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--other); }
.chip.meme::before { background: var(--meme); } .chip.utility::before { background: var(--util); }
.chip.utility { border-color: color-mix(in srgb, var(--util) 60%, transparent); }
.chip.weak { border-style: dashed; }
.chip.paid { border-color: color-mix(in srgb, #e0b44c 55%, transparent); color: #e0b44c; }
.chip.src { font-family: var(--mono); font-size: 10.5px; padding: 0 6px; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.score { display: inline-block; min-width: 34px; text-align: center; border-radius: 6px; padding: 1px 6px; font-weight: 600; background: color-mix(in srgb, var(--ui) calc(var(--s) * 0.35%), var(--surface-2)); color: var(--ink); }
.bp { display: inline-flex; width: 60px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--down); vertical-align: middle; gap: 1px; }
.bp i { background: var(--up); display: block; height: 100%; }

/* bars */
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 118px minmax(0, 1fr) 76px 64px; align-items: center; gap: 10px; font-size: 12.5px; cursor: default; padding: 1px 0; border-radius: 6px; }
.bar-row:hover { background: var(--surface-2); }
.bar-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .track { height: 14px; position: relative; }
.bar-row .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bar); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar-row .val, .bar-row .chg { text-align: right; font-family: var(--mono); font-size: 12px; }
.div-row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 62px; gap: 10px; align-items: center; font-size: 12.5px; padding: 2px 0; }
.div-row .track { position: relative; height: 14px; }
.div-row .axis { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-2); }
.div-row .fill { position: absolute; top: 0; bottom: 0; }
.div-row .fill.pos { left: 50%; background: var(--up); border-radius: 0 4px 4px 0; }
.div-row .fill.neg { right: 50%; background: var(--down); border-radius: 4px 0 0 4px; }
.div-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.div-row .val { text-align: right; font-family: var(--mono); font-size: 12px; }

.stackbar { display: flex; height: 16px; gap: 2px; margin: 8px 0 10px; }
.stackbar i { display: block; height: 100%; min-width: 3px; }
.stackbar i:first-child { border-radius: 4px 0 0 4px; } .stackbar i:last-child { border-radius: 0 4px 4px 0; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

.signals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sig { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.sig .k { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.sig .v { font-weight: 600; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig .d { font-size: 12px; color: var(--ink-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.news-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: var(--surface-2); }
.news-item .t { font-weight: 500; line-height: 1.35; }
.news-item .meta { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink-3); }
.news-item .heat { font: 12px var(--mono); color: var(--ink-3); align-self: start; }
.sent { font-size: 11px; }
.mini-news { display: flex; flex-direction: column; }
.mini-news a { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.35; }
.mini-news a:last-child { border-bottom: 0; }
.mini-news small { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }

.words { display: flex; flex-wrap: wrap; gap: 6px; }
.word { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; font-size: 12.5px; }
.word b { font-family: var(--mono); color: var(--ui); margin-left: 4px; }

.state { padding: 18px 4px; color: var(--ink-3); font-size: 13px; }
.state.fail { color: var(--down); }
.state button { margin-left: 8px; }
.skel { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.3s infinite; margin: 8px 0; }
@keyframes sk { to { background-position: -200% 0; } }
.stale { font-size: 11px; color: #e0b44c; margin-left: 6px; }
svg.spark { display: block; overflow: visible; }

.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.35); max-width: 280px; }
.tip b { font-weight: 600; } .tip .r { display: flex; justify-content: space-between; gap: 14px; font-family: var(--mono); }
dialog { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px; width: min(560px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0, 11, 36, .6); }
.srcrow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.foot { max-width: 1480px; margin: 0 auto; padding: 8px 20px 28px; color: var(--ink-3); font-size: 12px; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span2 { grid-column: 1 / -1; }
  .brand-sub { display: none; }
}
@media (max-width: 720px) {
  .top { flex-wrap: wrap; padding: 8px 16px; gap: 8px; position: relative; }
  .tabs { order: 3; width: 100%; margin-left: 0; }
  main { padding: 12px 16px 20px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .signals { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 88px minmax(0, 1fr) 64px 54px; gap: 6px; }
  .div-row { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 54px; }
  .foot { padding: 8px 16px 24px; }
  input[type="search"] { width: 100%; }
}

/* DEX volume history */
.vchart { width: 100%; display: block; }
.vchart text { fill: var(--ink-3); font: 11px var(--mono); }
.vchart .gl { stroke: var(--grid); }
.vchart .col:hover .seg-r { opacity: .8; }
.vchart .hit { fill: transparent; }
.vchart .col:hover .hit { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.trend { display: inline-flex; gap: 5px; align-items: center; border-radius: 999px; padding: 1px 9px; font: 500 11.5px var(--sans); border: 1px solid var(--line-2); }
.trend.gain { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, transparent); }
.trend.lose { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, transparent); }
.trend.flat { color: var(--ink-2); }
.multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mcell { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.mcell .h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 13px; }
.mcell .h b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcell .s { font: 12px var(--mono); color: var(--ink-2); margin: 2px 0 6px; display: flex; justify-content: space-between; gap: 8px; }
.mbars { display: flex; align-items: flex-end; gap: 2px; height: 46px; }
.mbars i { flex: 1; min-width: 1px; border-radius: 2px 2px 0 0; background: var(--bar); }
.mbars i.nil { background: var(--line); height: 2px !important; }
.mbars i:hover { opacity: .75; }
.cols-bars { display: inline-flex; align-items: flex-end; gap: 1px; height: 22px; width: 96px; vertical-align: middle; }
.cols-bars i { flex: 1; background: var(--bar); border-radius: 1px 1px 0 0; min-height: 1px; }

/* marketing / stories / kols */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lnk { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 6px; border: 1px solid var(--line-2); font: 600 10.5px var(--sans); color: var(--ink-2); margin-right: 3px; }
.lnk:hover { color: var(--ui); border-color: var(--ui); }
.lnk.off { opacity: .3; pointer-events: none; }
.desc { color: var(--ink-2); font-size: 12.5px; line-height: 1.4; white-space: normal; max-width: 360px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--sans); }
.story { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; }
.story:last-child { border-bottom: 0; }
.story img, .story .ph { width: 36px; height: 36px; border-radius: 10px; grid-row: span 3; }
.story .hd { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.story .hd b { font-size: 14px; }
.story .tx { color: var(--ink-2); font-size: 13px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.story .mt { display: flex; gap: 10px; flex-wrap: wrap; font: 12px var(--mono); color: var(--ink-3); align-items: center; }
.brief p { margin: 0 0 10px; line-height: 1.6; font-size: 14.5px; }
.brief p:last-child { margin-bottom: 0; }
.brief b { font-weight: 600; }
.note { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.strat { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
.strat li::marker { color: var(--ui); }
.strat .ev { color: var(--ink-3); font-size: 12px; }
tr.exp td { background: var(--surface-2); white-space: normal; }
.calls { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 4px 0; }
.call { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font: 12px var(--mono); background: var(--surface); }
.call b { font-family: var(--sans); }
.rowbtn { background: none; border: 0; color: var(--ui); cursor: pointer; padding: 0; font: inherit; }
.verd { font: 600 10.5px var(--sans); border-radius: 5px; padding: 0 5px; border: 1px solid var(--line-2); }
.verd.strong { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, transparent); }
.verd.dumped, .verd.soldInto { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, transparent); }

.chain { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 9px 1px 7px; font: 500 11.5px var(--sans); color: var(--ink); white-space: nowrap; }
.chain i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
#ov-news .mini-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
@media (max-width: 720px) { #ov-news .mini-news { grid-template-columns: minmax(0, 1fr); } }

.mini-news a, .story .hd b, .tok .nm b { overflow-wrap: anywhere; }
.mini-news a b { word-break: break-all; }
