@font-face { font-family: Outfit; src: url(/fonts/Outfit.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/Figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

/* FOMO-like: one deep navy ground, soft lifted panels instead of boxes, round avatars and pills, one clean typeface,
   few borders. Green and orange-red for the tape, indigo for actions. */
:root {
  /* palette shared with /cards/ (ff.css): indigo ground, warm white, orange / blue / green / yellow accents */
  --bg: #0d0b1c;
  --panel: #17142e;
  --panel-2: #1f1b3d;
  --panel-3: #28224d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --ink: #f3efe6;
  --ink-2: #d9d4ea;
  --ink-3: #aeaac6;
  --ink-4: #8f8bae;
  --good: #9bd45a;
  --bad: #ff6b5e;
  --warn: #ffd23f;
  --accent: #2fa9e6;
  --accent-2: #5cbdf0;
  --brand: #f3efe6;
  --safe: #45c48f;
  --balanced: #6a95f5;
  --degen: #e86aae;
  --leaders: #f0b90b;
  --special: #ff8a4c;
  --radius: 16px;
  --radius-sm: 10px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font: Figtree, -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
h2 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-4); }
.pos { color: var(--good); }
.neg { color: var(--bad); }
.hidden, [hidden] { display: none !important; }
code { font-family: var(--mono); font-size: .88em; background: var(--panel-2); padding: 2px 6px; border-radius: 6px; }
.ico { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }

/* ---- header: wordmark, pill tabs, status and wallet */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 20px; background: rgba(13, 11, 28, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { font-family: Outfit, var(--font); font-weight: 900; font-size: 22px; letter-spacing: -.045em; color: var(--brand); text-decoration: none; line-height: 1; white-space: nowrap; margin-right: 4px; }
.brand .fade i { font-style: normal; }
.brand .fade i:nth-child(1) { opacity: .9; } .brand .fade i:nth-child(2) { opacity: .66; } .brand .fade i:nth-child(3) { opacity: .44; } .brand .fade i:nth-child(4) { opacity: .25; }
.tabs { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: center; padding: 7px 13px; border-radius: 999px; text-decoration: none; color: var(--ink-3); font-weight: 600; font-size: 14px; white-space: nowrap; transition: color .15s, background .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); background: var(--panel-3); }
.right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--panel-2); font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.chip.live .dot { background: var(--good); box-shadow: 0 0 0 3px rgba(140, 198, 63, .2); }
.chip.stale .dot { background: var(--warn); }
.chip.off .dot { background: var(--bad); }
.btn { padding: 9px 18px; border-radius: 999px; border: 0; background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 600; cursor: pointer; font-size: 14px; letter-spacing: -.005em; }
.btn:hover { filter: brightness(1.1); }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.ghost { background: var(--panel-2); color: var(--ink); }
.btn.ghost:hover { background: var(--panel-3); filter: none; }
.btn[disabled] { opacity: .5; cursor: default; }
.wallet { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--panel-2); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.wallet button { padding: 5px 11px; font-size: 12px; font-family: var(--font); }

/* ---- layout */
main { max-width: 1240px; margin: 0 auto; padding: 28px 20px 48px; }
.panel > * + * { margin-top: 14px; }
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; padding: 0 2px 6px; }
.hero p { margin: 6px 0 0; color: var(--ink-3); max-width: 62ch; font-size: 15px; line-height: 1.5; }
.hero h2 { font-size: 19px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card > h3 { margin-bottom: 10px; }
.card .lead { color: var(--ink-3); font-size: 14px; margin: 0; }
.card.flat { background: transparent; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.tag.ink { background: rgba(47, 169, 230, .16); color: var(--accent-2); }
.tag.good { background: rgba(140, 198, 63, .14); color: var(--good); }
.tag.bad { background: rgba(255, 107, 94, .14); color: var(--bad); }
.tag.warn { background: rgba(255, 210, 63, .13); color: var(--warn); }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; background: var(--ink-3); }
.p-safe .pdot, .pdot.safe { background: var(--safe); } .p-balanced .pdot, .pdot.balanced { background: var(--balanced); } .p-degen .pdot, .pdot.degen { background: var(--degen); }

/* ---- folded detail: the long explanations stay one tap away */
details.fold { margin-top: 14px; }
details.fold > summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; color: var(--ink-3); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--panel-2); user-select: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
details.fold[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details.fold > summary:hover { color: var(--ink); }
details.fold[open] > summary { margin-bottom: 12px; }
details.fold.bare { margin-top: 0; }
details.fold .note { margin: 0; }

/* ---- stat tiles: label above, value below */
.band { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.stat b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { display: block; font-size: 12px; color: var(--ink-3); }

/* ---- profile cards */
.profile { position: relative; }
.profile > .row:first-child h3 { display: flex; align-items: center; font-size: 16px; }
.profile .big { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 16px 0 2px; }
.profile .sub { color: var(--ink-3); font-size: 13px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.profile .tiles { grid-template-columns: repeat(3, 1fr); }
.god { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.god b { color: var(--ink); }
.god .tag { margin-right: 4px; }
.god .cap { font-size: 12px; color: var(--ink-3); }
.god .cap b { color: var(--ink-2); }
.tag.god { background: rgba(177, 75, 255, .16); color: #C98BFF; border-color: rgba(177, 75, 255, .35); }
.profile.p-god::before { background: #B14BFF; }
.tier.t-god { background: rgba(177, 75, 255, .16); color: #C98BFF; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pick { font-size: 12px; background: var(--panel-2); border-radius: var(--radius-sm); padding: 5px 9px; color: var(--ink-2); }
.pick b { color: var(--ink); }
.mini-wrap { overflow-x: auto; margin-top: 12px; }
.grid > .card { min-width: 0; } /* a wide table inside a card scrolls in the card instead of widening the column */
table.mini { width: 100%; min-width: 0; border-collapse: collapse; font-size: 12.5px; } /* the page's tables have a 640 px floor; this one fits its card */
table.mini th { text-align: left; font-weight: 600; color: var(--ink-3); padding: 4px 6px; border-bottom: 1px solid var(--line); }
table.mini td { padding: 5px 6px; border-bottom: 1px solid var(--line); }
table.mini td.num, table.mini th:not(:first-child) { text-align: right; }
.tile { display: flex; flex-direction: column-reverse; justify-content: flex-end; background: var(--panel-2); border-radius: var(--radius-sm); padding: 9px 11px; min-width: 0; }
.tile b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile span { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.25; margin-bottom: 2px; }
.spark { margin-top: 14px; height: 56px; position: relative; }
.spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.spark .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-4); font-size: 13px; background: var(--panel-2); border-radius: var(--radius-sm); }
.rules { margin-top: 12px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.rules b { color: var(--ink-2); font-weight: 600; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin-top: 10px; }
.kv dt { color: var(--ink-4); } .kv dd { margin: 0; color: var(--ink-2); }
details.fold > .kv:first-of-type { margin-top: 0; }

/* ---- tier icons: one line icon in its profile colour on a soft tile */
.tier { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; margin-right: 8px; vertical-align: -6px; color: var(--ink-2); background: var(--panel-3); flex: none; }
.tier svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tier.lg { width: 38px; height: 38px; border-radius: 12px; margin-right: 12px; vertical-align: middle; }
.tier.lg svg { width: 20px; height: 20px; }
.tier.t-safe { color: var(--safe); background: rgba(69, 196, 143, .14); }
.tier.t-balanced { color: var(--balanced); background: rgba(106, 149, 245, .15); }
.tier.t-degen { color: var(--degen); background: rgba(232, 106, 174, .15); }
.tag .tier { width: 16px; height: 16px; border-radius: 5px; margin: 0 1px 0 -5px; vertical-align: -3px; background: transparent; }
.tag .tier svg { width: 12px; height: 12px; }
.tag.p-safe { background: rgba(69, 196, 143, .12); color: var(--safe); }
.tag.p-balanced { background: rgba(106, 149, 245, .13); color: var(--balanced); }
.tag.p-degen { background: rgba(232, 106, 174, .13); color: var(--degen); }

/* ---- charts */
.chart { position: relative; height: 270px; margin-top: 8px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.legend .pdot { margin-right: 6px; }
.axis { font-size: 11px; fill: var(--ink-4); font-family: var(--font); }
.ptag { font-size: 11px; font-weight: 700; fill: #0d0b1c; font-family: var(--font); }

/* ---- bars */
.bars { display: grid; gap: 7px; margin-top: 8px; }
.bar { display: grid; grid-template-columns: 160px 1fr 96px; align-items: center; gap: 10px; font-size: 13px; }
.bar .lbl { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .track { position: relative; height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.bar .fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--ink-4); }
.bar .fill.pos { background: var(--good); } .bar .fill.neg { background: var(--bad); }
.bar .val { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 84px; margin-top: 10px; }
.hours div { position: relative; background: var(--ink-4); border-radius: 3px; min-height: 2px; }
.hours div.pos { background: var(--good); } .hours div.neg { background: var(--bad); }
.hours div span { position: absolute; top: 100%; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--ink-4); margin-top: 4px; }
.hours-wrap { padding-bottom: 24px; }

/* ---- tables: airy rows, hairlines only */
.twrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
th, td { padding: 12px 14px; text-align: left; white-space: nowrap; border-top: 1px solid var(--line); }
thead th { border-top: 0; color: var(--ink-3); font-size: 12px; font-weight: 500; padding-top: 14px; padding-bottom: 10px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(203, 208, 235, .025); }
.tok { font-weight: 700; letter-spacing: -.005em; }
.mint { font-family: var(--mono); font-size: 11px; color: var(--ink-4); text-decoration: none; margin-left: 6px; }
.mint:hover { color: var(--ink-2); }
.ok { color: var(--good); font-weight: 600; }
.why { color: var(--ink-4); font-size: 12.5px; }
.empty-row td { color: var(--ink-4); text-align: center; padding: 30px; }
.filters { display: inline-flex; gap: 2px; border-radius: 999px; padding: 3px; background: var(--panel); border: 1px solid var(--line); }
.filters button { padding: 6px 14px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; color: var(--ink-3); font-weight: 600; font-size: 13px; }
.filters button:hover { color: var(--ink); }
.filters button.on { background: var(--panel-3); color: var(--ink); }
.more { text-align: center; }
.star { color: var(--warn); font-weight: 700; }
.meter { display: inline-block; width: 48px; height: 5px; background: var(--panel-3); border-radius: 999px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.meter i { display: block; height: 100%; background: var(--accent-2); }

/* ---- token cell: round picture, symbol over a small address, like FOMO's list */
.tcell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tav { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: var(--panel-3); display: grid; place-items: center; }
.tav i { font-style: normal; font-weight: 700; font-size: 12.5px; color: var(--ink-3); text-transform: uppercase; }
.tav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tname { display: grid; line-height: 1.3; min-width: 0; }
.tname .l1 { display: flex; align-items: center; gap: 6px; }
.tname .mint { margin-left: 0; }
.flag { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--ink-4); }
.flag.boost { color: var(--warn); }
.chip.bundle { font: inherit; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chip.bundle:hover { border-color: var(--ink-3); }
.chip.bundle.b-good { color: var(--good); }
.chip.bundle.b-warn { color: var(--warn); }
.chip.bundle.b-bad { color: var(--bad); }
.tile .chip.bundle { font-size: 12.5px; }
.grade { display: inline-block; min-width: 42px; text-align: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--panel-2); color: var(--ink-3); }
.grade.g-A { background: rgba(140, 198, 63, .15); color: var(--good); }
.grade.g-B { background: rgba(47, 169, 230, .16); color: var(--accent-2); }
.grade.g-C { background: rgba(255, 210, 63, .12); color: var(--warn); }
.grade.g-D, .grade.g-F { background: rgba(255, 107, 94, .12); color: var(--bad); }
.verdict { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.go { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(140, 198, 63, .15); color: var(--good); font-weight: 700; font-size: 12px; }
.small-dim { font-size: 12px; color: var(--ink-4); font-weight: 500; margin-left: 4px; }

/* ---- signals */
.sig { display: grid; grid-template-columns: 52px 80px 96px minmax(160px, 1fr) 2fr auto; gap: 10px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.sig:first-child { border-top: 0; }
.sig > span { min-width: 0; }
.sig .token { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig .seq { font-family: var(--mono); color: var(--ink-4); font-size: 11.5px; }
.sig .act { font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.sig .act.open { color: var(--good); } .sig .act.sell { color: var(--bad); }
.sig .meta { color: var(--ink-3); font-size: 12.5px; }
.key { font-family: var(--mono); font-size: 11.5px; word-break: break-all; color: var(--ink-2); background: var(--panel-2); padding: 10px 12px; border-radius: var(--radius-sm); }
pre.code { margin: 10px 0 0; padding: 12px 14px; background: var(--panel-2); border-radius: var(--radius-sm); font-family: var(--mono); font-size: 11.5px; line-height: 1.55; overflow-x: auto; color: var(--ink-2); }

/* ---- you / sign-in */
.signin { max-width: 660px; }
.signin ol { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); }
.signin li { margin: 6px 0; }
.lookup { display: flex; gap: 8px; margin-top: 10px; }
.lookup input { flex: 1; min-width: 0; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); font-family: var(--mono); font-size: 13px; }
.lookup input:focus { outline: none; border-color: var(--accent); }
.choice { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.choice button { padding: 11px 15px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; text-align: left; min-width: 160px; }
.choice button.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice button b { display: block; font-size: 14px; }
.choice button span { display: block; font-size: 12px; color: var(--ink-3); }
.note { color: var(--ink-3); font-size: 13px; line-height: 1.55; }
.err { color: var(--bad); font-size: 13px; }

/* ---- modal, tooltip, footer */
.modal[hidden], .tip[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 20, .72); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; }
.modal-card .x { position: absolute; top: 10px; right: 14px; background: transparent; border: 0; font-size: 24px; line-height: 1; color: var(--ink-3); cursor: pointer; }
.modal-card h2 { margin-bottom: 8px; }
.modal-card p { margin: 8px 0; color: var(--ink-2); }
.modal-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tip { position: fixed; z-index: 60; pointer-events: none; padding: 7px 10px; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line-2); font-size: 12px; white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.foot { max-width: 1240px; margin: 0 auto; padding: 0 20px 34px; display: grid; gap: 3px; color: var(--ink-4); font-size: 12px; }

/* ---- one trade on a chart */
tr.detail td { padding: 0; background: var(--bg); white-space: normal; }
tr.detail .tchart { position: sticky; left: 0; box-sizing: border-box; padding: 12px; max-width: 100%; }
tr.clickable { cursor: pointer; }
tr.clickable td:first-child::before { content: "›"; display: inline-block; width: 10px; color: var(--ink-4); margin-right: 6px; font-size: 15px; font-weight: 600; transition: transform .15s; }
tr.clickable.open td:first-child::before { transform: rotate(90deg); }
.thead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.thead .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: linear-gradient(135deg, var(--accent-2), #c084fc); color: #060510; overflow: hidden; }
.thead .name { display: grid; gap: 1px; }
.thead .name b { font-size: 16px; letter-spacing: -.01em; }
.thead .name span { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }
.thead .tiles { display: flex; gap: 6px; margin: 0 0 0 auto; flex-wrap: wrap; }
.thead .tile { min-width: 96px; padding: 6px 11px; }
.tplot { position: relative; height: 330px; background: var(--panel); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.tplot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tplot .ohlc { font-size: 11.5px; fill: var(--ink-2); font-family: var(--font); }
.tsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 10px; }
.tsum > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 13px; }
.tsum b { font-weight: 700; font-size: 15px; }
.tsum .k { color: var(--ink-3); }
.ev { display: grid; grid-template-columns: 70px 100px 1fr; gap: 5px 12px; font-size: 13px; margin-top: 10px; align-items: baseline; padding: 0 2px; }
.ev .k { color: var(--ink-4); }
.ev .arrow { color: var(--ink-3); }

/* ---- confluence */
.conf-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.conf { position: relative; border-radius: var(--radius); padding: 16px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.conf .chead { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.conf .cmid { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.conf .cnums { text-align: right; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.conf .cnums b { color: var(--ink-2); font-weight: 600; }
.conf.buy { border-color: rgba(140, 198, 63, .35); background: linear-gradient(180deg, rgba(140, 198, 63, .07), transparent 60%), var(--panel); }
.conf.sell { border-color: rgba(255, 107, 94, .35); background: linear-gradient(180deg, rgba(255, 107, 94, .07), transparent 60%), var(--panel); }
.conf .big { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.conf.buy .big { color: var(--good); } .conf.sell .big { color: var(--bad); }
.conf .what { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; margin-top: 4px; }
.conf .act { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conf .btnish { padding: 6px 16px; border-radius: 999px; font-weight: 700; letter-spacing: .03em; font-size: 12.5px; }
.conf.buy .btnish { background: var(--good); color: #142006; } .conf.sell .btnish { background: var(--bad); color: #210a02; } .conf.mixed .btnish { background: var(--panel-3); color: var(--ink-2); }
/* the card's BUY / SELL / WATCH opens the token on FOMO, the pill beside it on pump.fun; the picture and ticker open FOMO too */
.conf .trade { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.conf a.btnish { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; padding-right: 12px; }
.conf a.btnish .ico { width: 12px; height: 12px; stroke-width: 2.6; vertical-align: 0; }
.conf a.btnish:hover { filter: brightness(1.12); }
.conf .lnk.pump { width: 30px; height: 30px; }
.conf .lnk.pump .ico { width: 17px; height: 17px; stroke: #0b0d10; stroke-width: 1.2; }
.conf .lnk.pump .pg { fill: #5be08f; } .conf .lnk.pump .pw { fill: #f2f2f5; }
.conf .lnk.pump:hover { background: var(--panel-3); box-shadow: 0 0 0 1px #5be08f; }
.conf a.to-fomo { color: inherit; text-decoration: none; }
.conf a.tok.to-fomo:hover { text-decoration: underline; text-underline-offset: 3px; }
.conf a.to-fomo:hover .tav { box-shadow: 0 0 0 2px var(--accent); }
.avatars { display: flex; flex-wrap: wrap; gap: 4px; }
.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; background: var(--panel-3); color: var(--ink-2); font-family: var(--font); overflow: hidden; }
.av.kol { background: rgba(255, 210, 63, .16); color: var(--warn); box-shadow: 0 0 0 1.5px rgba(255, 210, 63, .55); }
.av.sell { opacity: .75; box-shadow: 0 0 0 1.5px rgba(255, 107, 94, .6); }
.wall { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.trader { border-radius: 14px; padding: 14px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 8px; }
.trader.buying { background: linear-gradient(180deg, rgba(140, 198, 63, .09), transparent 70%), var(--panel); border-color: rgba(140, 198, 63, .35); }
.trader.selling { background: linear-gradient(180deg, rgba(255, 107, 94, .09), transparent 70%), var(--panel); border-color: rgba(255, 107, 94, .35); }
.trader .head { display: flex; align-items: center; gap: 10px; }
.trader .av { width: 34px; height: 34px; font-size: 11px; position: relative; }
.trader .who { min-width: 0; }
.trader .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.trader .who span { display: block; font-size: 11px; color: var(--ink-4); font-family: var(--mono); }
.trader .x { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.trader .x small { font-size: 10.5px; font-weight: 600; color: var(--ink-4); letter-spacing: .05em; text-transform: uppercase; margin-left: 4px; }
.trader .line { font-size: 12.5px; color: var(--ink-3); }
.trader .line b { color: var(--ink-2); font-weight: 600; }
.trader .last { font-size: 12.5px; font-weight: 700; }
.trader.buying .last { color: var(--good); } .trader.selling .last { color: var(--bad); }
.trader .hold { display: flex; flex-wrap: wrap; gap: 4px; }
.trader .hold span { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2); font-weight: 600; }
/* PnL and hit rate as two tiles; a KOL's name, picture and @handle open their X */
.trader .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trader .nums div { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.trader .nums b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trader .nums span { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink-4); letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }
.trader .who b > span { display: inline-block; font-family: var(--font); vertical-align: 1px; } /* the KOL tag and ★ sit beside the name */
.trader .who a.xname { color: inherit; text-decoration: none; }
.trader .who a.xname:hover { text-decoration: underline; text-underline-offset: 3px; }
.trader .who .xh { color: var(--ink-2); text-decoration: none; font-family: var(--font); font-weight: 600; }
.trader .who .xh:hover { color: var(--ink); }
.trader .who .xh .ico { width: 10px; height: 10px; margin-right: 3px; vertical-align: -1px; }
a.avx { display: inline-flex; border-radius: 50%; text-decoration: none; }
a.avx:hover .av { box-shadow: 0 0 0 2px var(--ink); }
.conf .rate { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; cursor: default; }
.conf .rate .grade { min-width: 0; }
.conf .rate .tadj { font-weight: 700; font-size: 11.5px; }

/* ---- token pictures, KOL pictures, admin */
.ticon { width: 20px; height: 20px; border-radius: 50%; vertical-align: -5px; margin-right: 8px; object-fit: cover; background: var(--panel-3); }
.ticon.lg { width: 38px; height: 38px; vertical-align: middle; margin-right: 10px; }
.av img, .thead .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* Admin settings: one row per switch, the control on the right (under the text on a phone) */
.settings .set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.settings .set-row:first-of-type { border-top: 0; }
.settings .set-row > div { min-width: 0; }
.settings .set-row b { display: block; font-size: 14px; }
.settings .set-row > div > span { font-size: 12.5px; color: var(--ink-3); }
.seg { flex: none; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--panel-2); }
.seg button { border: 0; background: transparent; color: var(--ink-3); padding: 6px 14px; border-radius: 999px; font: 600 13px var(--font); cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; }
.seg button:disabled { cursor: default; opacity: .55; }
.capbox { flex: none; display: inline-flex; gap: 6px; align-items: center; }
/* Admin → Website views (fomofade.com's): the numbers beside a bar a day of visitors, then pages and sources */
.views .vw-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 14px; }
.views .vw-head h3 { margin: 0; }
.views .vw-head a { color: inherit; }
.vw-one { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px 28px; align-items: end; }
@media (max-width: 720px) { .vw-one { grid-template-columns: minmax(0, 1fr); } }
.vw-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 8px; }
.vw-now b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.vw-now span { color: var(--ink-3); font-size: 13px; }
.vw-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 13px; }
.vw-kv dt { color: var(--ink-4); }
.vw-kv dd { margin: 0; color: var(--ink-2); min-width: 0; }
.vw-chart { min-width: 0; }
.vw-bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 0 1px; border-bottom: 1px solid var(--line-2); }
.vw-bars i { flex: 1 1 0; min-width: 0; max-width: 28px; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .8; }
.vw-bars i:hover, .vw-bars i:last-child { opacity: 1; }
.vw-axis { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--ink-4); margin: 4px 0 0; }
.vw-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px 28px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.vw-sub { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; align-content: start; }
.vw-sub > span { flex: 0 0 100%; font-size: 11.5px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: .04em; }
.vw-sub em { font-style: normal; font-size: 12.5px; color: var(--ink-2); background: var(--panel-2); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.vw-sub em b { font-weight: 700; color: var(--ink); margin-left: 2px; }
.vw-sub em.dim { background: transparent; padding-left: 0; color: var(--ink-4); }
.capbox input { width: 130px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: 600 13px var(--mono); }
/* the CARDS Index's featured project (Admin): a token picker and a text line */
.capbox select { min-width: 220px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: 600 13px var(--font); }
.capbox.featline input { width: min(420px, 60vw); font: 500 13px var(--font); }
@media (max-width: 640px) { .capbox.featline { flex-wrap: wrap; } .capbox.featline input { width: 100%; } }
@media (max-width: 640px) { .settings .set-row { flex-direction: column; align-items: flex-start; } }
.gauge { height: 10px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.gauge i { display: block; height: 100%; background: var(--good); border-radius: 999px; }
.gauge i.warn { background: var(--warn); } .gauge i.bad { background: var(--bad); }

/* ---- a token you hold: your colour */
.tag.held { background: rgba(167, 139, 250, .16); color: #c4b5fd; }
tr.held-mine { background: rgba(167, 139, 250, .07); box-shadow: inset 3px 0 0 #a78bfa; }
tr.held-paper { box-shadow: inset 3px 0 0 var(--accent); }
.conf.held-mine { border-color: #a78bfa; box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .5), 0 0 24px -12px #a78bfa; }
.conf.held-mine .btnish { background: #a78bfa; color: #15102a; }

/* ---- token links: X, Telegram, website; greyed out when there is none */
.links { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.lnk { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--panel-2); }
.lnk:hover { color: var(--ink); background: var(--panel-3); }
.lnk .ico { width: 13px; height: 13px; vertical-align: 0; }
.lnk.off { color: var(--ink-4); opacity: .5; cursor: default; padding: 4px 8px; }
.ico .f { fill: currentColor; stroke: none; }
.conf .links { flex: none; gap: 4px; }
.conf .lnk { width: 28px; height: 28px; padding: 0; justify-content: center; }
.conf .lnk span { display: none; }

@media (max-width: 760px) {
  .top { height: auto; flex-wrap: wrap; padding: 10px 16px 8px; gap: 8px; }
  .tabs { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 12px; }
  .tabs a { padding: 6px 11px; font-size: 13.5px; }
  main { padding: 18px 16px 40px; }
  h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .card { padding: 16px; }
  .band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 19px; }
  .profile .big { font-size: 30px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .profile .tiles { grid-template-columns: repeat(3, 1fr); }
  table.mini .d7 { display: none; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .chart { height: 210px; }
  .tplot { height: 250px; }
  .bar { grid-template-columns: 104px 1fr 68px; }
  .sig { grid-template-columns: 44px 70px 1fr; grid-auto-rows: auto; padding: 10px 12px; }
  .sig .token { grid-column: 3; }
  .sig .meta, .sig .when { grid-column: 2 / -1; }
  .thead .tiles { margin-left: 0; }
  #statusText { display: inline-block; max-width: 104px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
}

/* ---- long intros: two lines until tapped */
.hero p.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.hero p.clamp.open { display: block; -webkit-line-clamp: unset; cursor: default; }
th .tier { width: 18px; height: 18px; border-radius: 6px; margin-right: 6px; vertical-align: -5px; }
th .tier svg { width: 11px; height: 11px; }

/* ---- the fourth profile: Leaders */
.p-leaders .pdot, .pdot.leaders { background: var(--leaders); }
.tier.t-leaders { color: var(--leaders); background: rgba(240, 185, 11, .14); }
.tag.p-leaders { background: rgba(240, 185, 11, .12); color: var(--leaders); }
.profile.p-leaders::before { background: var(--leaders); }


/* ---- FOMO Trending: the momentum meter and arrows, next-up and list tables, the hourly counts */
.mom { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mom .meter { display: inline-block; width: 56px; height: 6px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.mom .meter b { display: block; height: 100%; border-radius: 999px; background: var(--ink-4); }
.mom.surging .meter b { background: var(--good); }
.mom.climbing .meter b { background: #8fd9a0; }
.mom.steady .meter b { background: var(--accent-2); }
.mom.cooling .meter b { background: var(--warn); }
.mom.fading .meter b { background: var(--bad); }
.mom .num { font-size: 12px; color: var(--ink-2); min-width: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.arw { display: inline-block; min-width: 26px; font-size: 10px; letter-spacing: -1px; text-align: center; }
.arw.up1, .arw.up2, .arw.up3 { color: var(--good); }
.arw.dn1, .arw.dn2 { color: var(--bad); }
.arw.flat, .arw.none { color: var(--ink-4); }
.rankcell { display: inline-flex; align-items: center; gap: 6px; }
.rankcell b { min-width: 30px; }
tr.fresh td:first-child { box-shadow: inset 3px 0 0 var(--good); }
.tag.fomo { background: rgba(255, 140, 40, .14); color: #ff9d4d; }
.tag.fomo.soon { background: rgba(255, 210, 63, .12); color: var(--warn); }
.tag.sm { padding: 1px 7px; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.card.setup { border-color: rgba(47, 169, 230, .35); }
.card.warn { border-color: rgba(255, 210, 63, .35); }
.counts { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .counts { grid-template-columns: 1fr; } }
.hours div.cnt { background: var(--accent); }
.hours div.cnt.zero { background: var(--panel-3); }
details.fold summary { cursor: pointer; color: var(--ink-3); font-weight: 600; font-size: 13px; list-style: none; }
details.fold summary::before { content: "›"; display: inline-block; margin-right: 6px; transition: transform .15s; }
details.fold[open] summary::before { transform: rotate(90deg); }
details.fold.card summary { color: var(--ink); font-size: 14px; }
.howto { margin: 10px 0 0; padding-left: 18px; }
.howto li { margin: 5px 0; }

/* ---- closed for now: everyone but the owner's wallet sees "Coming soon" (the API refuses them too) */
body.soon .tabs, body.soon #statusChip, body.soon main, body.soon .foot, body.soon .top .brand { display: none; }
body.soon .top { background: transparent; border-bottom-color: transparent; }
#soon { display: none; }
body.soon #soon { display: grid; place-items: center; min-height: calc(100vh - 60px); padding: 24px 16px 80px; text-align: center; }
.brand.big { display: inline-block; font-size: 72px; margin: 0; }
.soon-line { margin: 8px 0 0; font-size: 20px; font-weight: 500; color: var(--ink-3); letter-spacing: -.01em; }
#soon .note { margin: 14px 0 0; }
@media (max-width: 760px) { .brand.big { font-size: 52px; } }

/* ---- the fifth profile: Special (copies traders picked by hand, config/special.json) */
.p-special .pdot, .pdot.special { background: var(--special); }
.tier.t-special { color: var(--special); background: rgba(255, 138, 76, .14); }
.tag.p-special { background: rgba(255, 138, 76, .12); color: var(--special); }
.profile.p-special::before { background: var(--special); }
.tag.p-special.mini { padding: 2px 4px; }
.tag.p-special.mini .tier { margin: 0; }
.trader .who .tag.p-special, .trader .who .tag.p-special .tier { color: var(--special); } /* .who span dims every span */
.trader .who .tag.p-special .tier { display: inline-grid; }
.av.kol.special { background: rgba(255, 138, 76, .16); color: var(--special); box-shadow: 0 0 0 2px var(--special); }
.sp-trader { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.sp-trader .head { display: flex; align-items: center; gap: 10px; }
.sp-trader .av { width: 40px; height: 40px; font-size: 12px; }
.sp-trader .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-trader .who span { font-size: 12.5px; color: var(--ink-3); }
.sp-trader .tiles { grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.sp-last { margin-top: 10px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }
.sp-last .tok { margin: 0 2px; }
@media (max-width: 560px) { .sp-trader .tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---- the sixth profile: Early (trades the get-in indicator, lib/getin.mjs) and the Get in tab (2026-10-16) */
:root { --early: #3fd0e0; }
.p-early .pdot, .pdot.early { background: var(--early); }
.tier.t-early { color: var(--early); background: rgba(63, 208, 224, .14); }
.tag.p-early { background: rgba(63, 208, 224, .12); color: var(--early); }
.profile.p-early::before { background: var(--early); }
.panel > .gh { margin-top: 24px; }
.gh .small-dim { font-weight: 500; }
.ggrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
details.fold .ggrid { margin-top: 12px; }
.gcard { position: relative; display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.gcard.s-go { border-color: rgba(140, 198, 63, .45); background: linear-gradient(180deg, rgba(140, 198, 63, .08), transparent 55%), var(--panel); }
.gcard.s-wait { border-color: rgba(255, 210, 63, .4); }
.gcard.s-late, .gcard.s-big, .gcard.s-nodata { opacity: .78; }
.ghead { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.gstate { flex: none; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .06em; background: var(--panel-3); color: var(--ink-2); cursor: default; }
.s-go .gstate { background: var(--good); color: #142006; }
.s-wait .gstate { background: rgba(255, 210, 63, .16); color: var(--warn); }
.s-watch .gstate { background: rgba(47, 169, 230, .16); color: var(--accent-2); }
.s-late .gstate { background: rgba(255, 107, 94, .15); color: var(--bad); }
.gsub { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsub b { color: var(--ink); font-weight: 700; }
svg.gchart { display: block; width: 100%; height: auto; background: var(--bg); border-radius: 10px; }
.gchart.empty { height: 72px; display: grid; place-items: center; color: var(--ink-4); font-size: 12px; background: var(--bg); border-radius: 10px; }
.gax { font-size: 9px; fill: var(--ink-4); font-family: var(--font); }
.gax.good { fill: var(--good); } .gax.bad { fill: var(--bad); }
.gnow { fill: var(--ink); stroke: var(--bg); stroke-width: 1.5; }
.s-go .gnow { fill: var(--good); } .s-late .gnow { fill: var(--bad); } .s-wait .gnow { fill: var(--warn); }
.gchecks { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12.5px; }
.gchecks li { display: flex; gap: 7px; align-items: baseline; color: var(--ink-2); min-width: 0; }
.gchecks li i { font-style: normal; font-weight: 800; width: 12px; flex: none; }
.gchecks li.ok i { color: var(--good); } .gchecks li.no i { color: var(--bad); } .gchecks li.no { color: var(--ink-3); }
.gplan { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-3); padding: 8px 10px; background: var(--panel-2); border-radius: 10px; }
.gplan b { color: var(--ink); }
.gfoot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gmeter { flex: none; width: 56px; height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.gmeter i { display: block; height: 100%; background: var(--accent-2); border-radius: 99px; }
.s-go .gmeter i { background: var(--good); } .s-late .gmeter i { background: var(--bad); } .s-wait .gmeter i { background: var(--warn); }
.gfoot .small-dim { margin-left: 0; }
.gfoot .trade { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.gfoot a.btnish { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 12px; letter-spacing: .03em; background: var(--panel-3); color: var(--ink-2); }
.s-go .gfoot a.btnish { background: var(--good); color: #142006; }
.gfoot .lnk.pump { width: 28px; height: 28px; padding: 0; justify-content: center; }
.gfoot .lnk.pump .ico { width: 16px; height: 16px; stroke: #0b0d10; stroke-width: 1.2; }
.gfoot .lnk.pump .pg { fill: #5be08f; } .gfoot .lnk.pump .pw { fill: #f2f2f5; }
.gdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-right: 7px; vertical-align: 2px; }
.gdot.live { background: var(--good); box-shadow: 0 0 0 3px rgba(140, 198, 63, .18); }
.stat b.gbooks { font-size: 15px; line-height: 1.5; white-space: normal; }
.stat span .tier { width: 16px; height: 16px; border-radius: 5px; margin-right: 4px; vertical-align: -4px; display: inline-grid; place-items: center; }
.stat span .tier svg { width: 11px; height: 11px; }
table.mini tr.good td { background: rgba(140, 198, 63, .06); } table.mini tr.bad td { color: var(--ink-3); }
@media (max-width: 560px) { .ggrid { grid-template-columns: 1fr; } }
/* the runner hours: 24 bars, the sampled hours lit, the hour now outlined */
.rhours h3 .small-dim { margin-left: 6px; }
.rbars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 96px; margin: 14px 0 22px; }
.rbars span { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.rbars i { display: block; border-radius: 3px; background: var(--panel-3); }
.rbars span.on i { background: var(--early); }
.rbars span.now i { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--ink); }
.rbars b { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 500; color: var(--ink-4); }

/* Runner lab (Runners tab) */
table.rlab td { vertical-align: middle; }
table.rlab tr.few td { opacity: .55; }
table.rlab tr.sub td { background: var(--panel-2); color: var(--ink-3); font-size: 12px; font-weight: 600; padding-top: 8px; padding-bottom: 8px; }
table.rlab td.rchips { white-space: normal; min-width: 220px; line-height: 1.9; }
table.rlab td.rchips .tag { font-size: 11px; padding: 1px 8px; }
table.rlab td.rpicks { white-space: normal; min-width: 180px; font-size: 12px; line-height: 1.7; }
table.rlab td.rpicks a { margin-right: 6px; text-decoration: none; font-weight: 600; }
table.rlab td.rpicks a.dim { color: var(--ink-4); font-weight: 500; }
.band.rtest { margin-top: 10px; }
.rnarrs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rnarr { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2); font-size: 12px; }
.rnarr.hot { background: rgba(140, 198, 63, .12); color: var(--good); }
.rnarr .small-dim { margin-left: 2px; }
table.rlab.rpat td:first-child { white-space: normal; min-width: 220px; }
@media (max-width: 560px) {
  table.rlab.rpat { min-width: 0; }
  table.rlab.rpat .wide { display: none; }
  table.rlab.rpat td:first-child { min-width: 0; font-size: 12.5px; }
  table.rlab.rpat th, table.rlab.rpat td { padding: 10px 8px; }
  table.rlab.rpat tr.sub td { white-space: normal; }
}

/* ---- day mode (owner 2026-11-24: "come up with a lighter version of the terminal"): the CARDS pages' day palette,
   every text colour 4.5:1 or more on white. The <head> sets [data-theme="light"] unless this browser chose dark
   (localStorage "ff-theme", shared with /cards/); the moon / sun in the top bar switches (/cards/theme.js).
   Chento keeps its dark look inside its own tab: its styles are drawn for a dark ground. */
.mode { display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--panel-2); }
.mode button { width: 32px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); cursor: pointer; }
.mode button:hover { color: var(--ink); }
.mode button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.mode svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f6; --panel: #ffffff; --panel-2: #f0f0f4; --panel-3: #e6e6ed;
  --line: rgba(16, 14, 36, .12); --line-2: rgba(16, 14, 36, .22);
  --ink: #0e0c20; --ink-2: #24213b; --ink-3: #45425a; --ink-4: #615e78; --brand: #0e0c20;
  --good: #1a7f37; --bad: #cf222e; --warn: #8a5a00; --accent: #0a5c8f; --accent-2: #0b69a3;
  --safe: #127a52; --balanced: #3559c7; --degen: #b8327a; --leaders: #8a5a00; --special: #b54708; --early: #08707d;
}
:root[data-theme="light"] .top { background: rgba(255, 255, 255, .92); }
:root[data-theme="light"] body.soon .top { background: transparent; }
:root[data-theme="light"] tbody tr:hover { background: rgba(16, 14, 36, .035); }
:root[data-theme="light"] .modal { background: rgba(14, 12, 32, .4); }
:root[data-theme="light"] .tip { box-shadow: 0 8px 24px rgba(14, 12, 32, .14); }
:root[data-theme="light"] .tag.god, :root[data-theme="light"] .tier.t-god { color: #7b2fd1; }
:root[data-theme="light"] .tag.held { color: #5b3fc4; }
:root[data-theme="light"] .tag.fomo { color: #b54708; }
/* filled green / red buttons: white words on the darker day colours */
:root[data-theme="light"] .conf.buy .btnish, :root[data-theme="light"] .conf.sell .btnish,
:root[data-theme="light"] .s-go .gstate, :root[data-theme="light"] .s-go .gfoot a.btnish { color: #fff; }
/* charts are drawn in pale ink for the dark ground (app.js): the same marks in dark ink by day */
:root[data-theme="light"] svg [stroke="#ECEAFF" i] { stroke: #0e0c20; }
:root[data-theme="light"] svg [fill="#ECEAFF" i] { fill: #0e0c20; }
:root[data-theme="light"] svg [stroke="#100f1a" i] { stroke: #ffffff; }
:root[data-theme="light"] svg [fill="rgba(236,234,255,.25)"] { fill: rgba(14, 12, 32, .2); }
:root[data-theme="light"] svg [stroke="rgba(236,234,255,.25)"] { stroke: rgba(14, 12, 32, .2); }
:root[data-theme="light"] svg [fill="#9899a3" i] { fill: #615e78; }
:root[data-theme="light"] svg [stroke^="#F0B90B" i] { stroke: #c99400; }
:root[data-theme="light"] svg [fill^="#F0B90B" i] { fill: #c99400; }
/* Chento by day (owner 2026-11-24: "keep this in white colors"): chento.css draws in fixed dark-ground colours, so
   each one gets its day version here (same roles: mint = go / long, rose = short, gold = paused / lock). */
:root[data-theme="light"] .chento { --ch-muted: #45425a; --ch-line: rgba(16, 14, 36, .12); color: #0e0c20; }
:root[data-theme="light"] .chento h1 span { color: #3d4866; }
:root[data-theme="light"] .chento .ch-eyebrow { color: #127a52; }
:root[data-theme="light"] .chento .ch-pill { border-color: rgba(18, 122, 82, .4); color: #127a52; }
:root[data-theme="light"] .chento .ch-pill-paused { border-color: rgba(138, 90, 0, .45); color: #8a5a00; }
:root[data-theme="light"] .chento .ch-metrics article, :root[data-theme="light"] .chento .ch-card { background: #ffffff; }
:root[data-theme="light"] .chento button { border-color: rgba(16, 14, 36, .18); background: #ffffff; color: #0e0c20; }
:root[data-theme="light"] .chento button:hover { border-color: #127a52; }
:root[data-theme="light"] .chento .ch-nav button:not(.active) { background: transparent; border-color: transparent; }
:root[data-theme="light"] .chento .ch-nav .active { background: #c8f2dc; color: #0f3b26; border-color: transparent; }
:root[data-theme="light"] .chento .ch-primary { background: #9deac1; color: #0f3b26; border-color: transparent; }
:root[data-theme="light"] .chento .ch-direction { background: #e3f4e6; color: #1a7f37; }
:root[data-theme="light"] .chento .ch-direction.short { background: #fdebec; color: #cf222e; }
:root[data-theme="light"] .chento .ch-detail b { color: #0e0c20; }
:root[data-theme="light"] .chento .ch-empty { border-color: rgba(16, 14, 36, .22); color: #24213b; }
:root[data-theme="light"] .chento label { color: #45425a; }
:root[data-theme="light"] .chento input, :root[data-theme="light"] .chento select { border-color: rgba(16, 14, 36, .2); background: #ffffff; color: #0e0c20; color-scheme: light; }
:root[data-theme="light"] .chento input:focus, :root[data-theme="light"] .chento select:focus { outline-color: #127a52; }
:root[data-theme="light"] .chento .ch-lock { border-color: rgba(138, 90, 0, .45); }
:root[data-theme="light"] .chento .ch-error { color: #cf222e; }
:root[data-theme="light"] .chento .ch-success, :root[data-theme="light"] .chento .ch-ai-book { color: #1a7f37; }
:root[data-theme="light"] .chento .ch-ai { color: #24213b; }
:root[data-theme="light"] .chento .ch-ai b { color: #127a52; }
:root[data-theme="light"] .chento .ch-order-row .ch-of b.ch-none { color: #8a5a00; }
:root[data-theme="light"] .chento svg [stroke="#27334a" i] { stroke: rgba(16, 14, 36, .12); }
:root[data-theme="light"] .chento svg [stroke="#82efbc" i] { stroke: #12a26a; }
/* phones: the moon / sun, the status and the wallet share the second row; the status text gives way */
@media (max-width: 760px) {
  .right { flex: 1 1 100%; min-width: 0; }
  .right #statusChip { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .right #statusText { overflow: hidden; text-overflow: ellipsis; }
  .right #auth { margin-left: auto; flex: none; }
}

/* ---- top bar: the tabs in topics (owner 2026-11-24: "make sure all tabs fit well and organize them better", then
   "separate them in a nicer way" → look A of the demo: each topic its own rounded track, the open tab a raised chip).
   Paper bots | Market | Smart money | BTC copy | Account, each topic's name small above its track (index.html).
   /app/nav.js picks the first layout that holds every tab: one row → the engine status as its dot (.compact) → the
   tabs on a row of their own (.stack) → a menu under the open tab's name (.menu: phones, narrow windows). Without
   nav.js the row scrolls sideways. Signed in, the address and Sign out are on the You tab, not in the bar. */
.top { height: 64px; gap: 14px; padding: 0 16px; }
.tabs { align-self: stretch; gap: 0; }
.tg { display: flex; flex-direction: column; justify-content: center; gap: 4px; flex: none; }
.tg-l { padding-left: 13px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-4); line-height: 1; white-space: nowrap; }
.tg-r { display: flex; gap: 1px; }
.top:not(.menu) .tabs { gap: 12px; }
.top:not(.menu) .tg-me { margin-left: auto; } /* You / Admin sit with the moon / sun and the status */
.top:not(.menu) .tg-r { padding: 3px; border-radius: 999px; background: var(--panel-2); }
.top:not(.menu) .tabs a { padding: 5px 11px; }
.top:not(.menu) .tabs a:hover { background: var(--panel-3); }
.top:not(.menu) .tabs a.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 0 0 1px var(--line-2); }
:root[data-theme="light"] .top:not(.menu) .tabs a.on { background: #fff; box-shadow: 0 1px 3px rgba(16, 14, 36, .14), 0 0 0 1px rgba(16, 14, 36, .08); }
.menu-btn { display: none; }
body.soon .menu-btn { display: none !important; }
body:not(.soon) #auth:has(#signoutBtn) { display: none; }

.top.compact #statusText { display: none; }
.top.compact #statusChip { width: 30px; height: 30px; padding: 0; justify-content: center; }

.top.stack { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
.top.stack .tabs { order: 3; flex: 1 1 100%; padding: 6px 0 9px; overflow: visible; }

.top.menu .menu-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 14px; border: 0; border-radius: 999px; background: var(--panel-3); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.menu-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.top.menu-open .menu-btn svg { transform: rotate(180deg); }
.top.menu .tabs { display: none; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 4px 16px 16px; flex-direction: column; gap: 0; overflow: auto; max-height: calc(100dvh - 130px); background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0, 0, 0, .28); }
.top.menu.menu-open .tabs { display: flex; }
.top.menu .tg { padding: 12px 0 0; gap: 7px; max-width: 640px; }
.top.menu .tg + .tg { border-top: 1px solid var(--line); margin-top: 12px; }
.top.menu .tg-l { padding-left: 2px; font-size: 11px; }
.top.menu .tg-r { flex-wrap: wrap; gap: 6px; }
.top.menu .tabs a { padding: 9px 14px; font-size: 15px; background: var(--panel-2); }
.top.menu .tabs a.on { background: var(--ink); color: var(--bg); }
:root[data-theme="light"] .top.menu .tabs { box-shadow: 0 16px 32px rgba(16, 14, 36, .12); }
@media (max-width: 760px) {
  .top, .top.stack { height: auto; padding: 10px 16px 8px; }
  .top.menu .menu-btn { margin-left: auto; }
}
