:root {
  --bg: #0a0c10;
  --surface: #10131a;
  --surface2: #151922;
  --hover: #171c26;
  --line: #1e2430;
  --line2: #272f3d;
  --text: #e8ebf1;
  --muted: #8b94a8;
  --faint: #5d6679;
  --accent: #7c9cff;
  --green: #3ecf8e;
  --red: #f26671;
  --fomo: #b49cff;
  --pump: #7ee2b0;
  --gold: #f2c94c;
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 13.5px/1.45 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.dim { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------- top bar */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 28px; height: 56px; padding: 0 28px;
  background: rgba(10, 12, 16, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.tabs { display: flex; gap: 4px; }
.tabs button { background: none; border: 0; padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; cursor: pointer; }
.tabs button:hover { color: var(--text); background: var(--surface2); }
.tabs button.on { color: var(--text); background: var(--surface2); box-shadow: inset 0 -2px 0 var(--accent); }
.barright { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.live { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.live.ok::before { background: var(--green); box-shadow: 0 0 0 3px rgba(62, 207, 142, .15); }
.live.bad::before { background: var(--red); }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.link:hover { color: var(--text); }

/* ---------- page head */
.page { max-width: 1440px; margin: 0 auto; padding: 26px 28px 60px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.sub { margin: 4px 0 0; color: var(--muted); max-width: 820px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { background: none; border: 0; padding: 6px 13px; border-radius: 7px; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 12.5px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface2); color: var(--text); box-shadow: 0 0 0 1px var(--line2); }

.tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.grow { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 36px; width: 300px; }
.search:focus-within { border-color: var(--line2); }
.search span { color: var(--faint); font-size: 16px; }
.search input { background: none; border: 0; outline: 0; flex: 1; min-width: 0; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); cursor: pointer; user-select: none; font-weight: 500; }
.toggle:hover { color: var(--text); }
.toggle.on { color: var(--text); border-color: var(--line2); background: var(--surface2); }
.toggle.on::before { content: '✓'; color: var(--accent); font-weight: 700; }
.select { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; border: 0;
  background: var(--accent); color: #0a0c10; font-weight: 650; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface2); }

/* ---------- table */
.tablebox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
th { position: sticky; top: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint);
  background: var(--surface); border-bottom: 1px solid var(--line); user-select: none; }
th.sortable { cursor: pointer; }
th.sortable:hover, th.sorted { color: var(--text); }
th .arrow { color: var(--accent); margin-left: 3px; }
th[title] { text-decoration: underline dotted var(--line2); text-underline-offset: 3px; }
.left { text-align: left; }
tbody tr { border-top: 1px solid var(--line); cursor: pointer; }
tbody tr:first-child { border-top: 0; }
tbody tr:hover { background: var(--hover); }
tbody tr.static { cursor: default; }
td { font-variant-numeric: tabular-nums; }
td.rank { color: var(--faint); width: 44px; text-align: left; font-weight: 600; }
td.rank.top { color: var(--gold); }
.big { font-weight: 650; font-size: 14px; }
.under { display: block; font-size: 12px; color: var(--faint); margin-top: 1px; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); margin: 0; }

/* trader cell */
.who { display: flex; align-items: center; gap: 11px; min-width: 240px; }
.av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #0a0c10; }
.av.anon { background: var(--surface2) !important; color: var(--faint); border: 1px dashed var(--line2); }
.who .name { font-weight: 650; display: flex; align-items: center; gap: 6px; }
.who .name.anon { font-weight: 500; color: var(--faint); }
.badge { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); color: #0a0c10; font-size: 9.5px; font-weight: 800; }
.ids { display: flex; gap: 10px; font-size: 12px; margin-top: 2px; flex-wrap: wrap; }
.id { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
a.id:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.id.fomo { color: var(--fomo); }
.id.pump { color: var(--pump); }
.id.kol { color: var(--gold); }
.tag { display: inline-block; font-size: 10.5px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px;
  background: var(--surface2); color: var(--muted); border: 1px solid var(--line2); }
.tag.warn { color: #f0a35e; border-color: #4a3524; }
.tag.good { color: var(--green); border-color: #1d4636; }

.wallet { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.copy { background: none; border: 0; color: var(--faint); cursor: pointer; padding: 2px 4px; border-radius: 5px; font-size: 13px; line-height: 1; }
.copy:hover { color: var(--text); background: var(--surface2); }
.bar-in { display: inline-block; vertical-align: middle; width: 54px; height: 5px; border-radius: 3px; background: var(--line2); margin-left: 8px; overflow: hidden; }
.bar-in i { display: block; height: 100%; background: var(--green); border-radius: 3px; }

/* ---------- setup cards (FOMO key / extension) */
.setup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; margin-bottom: 14px; }
.setup h2 { margin: 0 0 6px; font-size: 18px; }
.setup p { color: var(--muted); margin: 0 0 18px; max-width: 760px; }
.setup ol { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; max-width: 760px; }
.setup li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; }
.setup li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line2);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--accent); }
.setup code { font-family: var(--mono); background: var(--surface2); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.setup a.inl { color: var(--accent); }
.setup .row { display: flex; gap: 10px; flex-wrap: wrap; }
.note { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; margin-bottom: 12px; color: var(--muted); font-size: 12.5px; }

/* ---------- wallet drawer */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 9; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(860px, 100vw); background: var(--bg); border-left: 1px solid var(--line); z-index: 10;
  overflow-y: auto; padding: 26px 30px 50px; box-shadow: -20px 0 50px rgba(0, 0, 0, .35); }
.close { position: absolute; top: 18px; right: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; }
.close:hover { color: var(--text); }
.phead { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding-right: 40px; }
.phead .av { width: 46px; height: 46px; font-size: 18px; }
.phead h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 12.5px; font-weight: 550; }
.pill:hover { background: var(--surface2); }
.pill.fomo { color: var(--fomo); } .pill.pump { color: var(--pump); } .pill.kol { color: var(--gold); }
.drawer h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin: 24px 0 10px; font-weight: 650; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.card .k { color: var(--faint); font-size: 11.5px; font-weight: 600; }
.card .v { font-size: 17px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.card .s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.drawer .tablebox { border-radius: 10px; }
.drawer th, .drawer td { padding: 8px 10px; }
.drawer tbody tr { cursor: default; }
.calls { display: flex; flex-wrap: wrap; gap: 8px; }
.call { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; font-size: 12.5px; }
.call b { color: var(--green); margin-right: 6px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--surface2); border: 1px solid var(--line2); padding: 9px 16px; border-radius: 10px; z-index: 30; font-weight: 550; }

/* ---------- login */
.loginpage { display: grid; place-items: center; min-height: 100vh; }
.login { width: min(360px, 92vw); display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.login label { display: grid; gap: 6px; color: var(--muted); }
.login input { width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); padding: 0 12px; }
.login button { height: 38px; border-radius: 10px; border: 0; background: var(--accent); color: #0a0c10; font-weight: 700; cursor: pointer; }
.loginerr { color: var(--red); margin: 0; }

@media (max-width: 900px) {
  .bar { gap: 12px; padding: 0 14px; overflow-x: auto; }
  .brand span { display: none; }
  .page { padding: 18px 14px 40px; }
  .head { flex-direction: column; align-items: flex-start; }
  .search { width: 100%; }
}
.seg button.empty { opacity: .45; }
.seg button.empty.on { opacity: 1; }
.tok { color: var(--muted); text-decoration: none; } a.tok:hover { color: var(--accent); }
button.wallet { background: none; border: 0; padding: 3px 5px; margin: -3px -5px; border-radius: 6px; cursor: pointer; }
button.wallet:hover { background: var(--surface2); color: var(--text); }
button.wallet:hover .copy { color: var(--text); }
.btn.small { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }

/* selecting rows: the checkbox + ★ column, the selection bar */
th.pick, td.pick { width: 1%; text-align: left; padding-right: 4px; }
td.pick .pickbox { display: inline-flex; align-items: center; gap: 6px; }
td.pick input, th.pick input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; margin: 0; }
tbody tr.sel { background: rgba(124, 156, 255, .09); }
tbody tr.sel:hover { background: rgba(124, 156, 255, .14); }
.star { background: none; border: 0; padding: 0 2px; font-size: 15px; line-height: 1; color: var(--faint); cursor: pointer; }
.star:hover, .star.on { color: #f2c94c; }
.selbar { position: sticky; top: 56px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px;
  padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.selbar .btn { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.selbar .quick { display: inline-flex; gap: 8px; align-items: center; color: var(--faint); margin-left: auto; }
.selbar .quick .link { color: var(--accent); }
.selbar .hint { color: var(--faint); }
.selbar b { margin-right: 4px; }
/* the watchlist */
.note { width: 170px; background: transparent; border: 1px solid transparent; border-radius: 7px; color: var(--text); padding: 5px 8px; font: inherit; font-size: 12.5px; }
.note:hover, .note:focus { border-color: var(--line2); background: var(--surface2); outline: none; }
.x { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 13px; padding: 2px 6px; border-radius: 6px; }
.x:hover { color: var(--red); background: var(--surface2); }
.addbox { min-width: 360px; height: 36px; resize: vertical; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 8px 10px; font: inherit; font-size: 13px; }
.pill.watchpill { cursor: pointer; font: inherit; }
.pill.watchpill.on { color: #f2c94c; border-color: rgba(242, 201, 76, .4); }
/* the copy & export format dialog */
.dlg { width: min(620px, 92vw); background: var(--surface); color: var(--text); border: 1px solid var(--line2); border-radius: 14px; padding: 20px 22px; }
.dlg::backdrop { background: rgba(5, 7, 10, .65); }
.dlg h2 { margin: 0 0 4px; font-size: 17px; }
.dlg h3 { margin: 16px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dlg .fmtline { width: 100%; box-sizing: border-box; height: 36px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--text);
  padding: 0 10px; font-family: var(--mono); font-size: 13px; margin: 6px 0 8px; }
.dlg .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.dlg .chip { background: var(--surface2); border: 1px solid var(--line); color: var(--text); border-radius: 7px; padding: 4px 8px; font-size: 12px; cursor: pointer; font-family: var(--mono); }
.dlg .chip:hover { border-color: var(--accent); }
.dlg .row { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
.dlg .row.end { justify-content: flex-end; margin-top: 18px; }
.dlg .preview { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 12.5px; white-space: pre-wrap; word-break: break-all;
  max-height: 140px; overflow: auto; margin: 6px 0 0; }
.dlg .mode { display: block; margin: 8px 0; font-size: 13.5px; cursor: pointer; }
.dlg .mode input { accent-color: var(--accent); margin: 0 4px 0 0; }
.dlg .extras { flex-wrap: wrap; font-size: 13px; margin: 4px 0 0 22px; }
.dlg .extras input { accent-color: var(--accent); }
.dlg .sheetprev { overflow-x: auto; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.dlg .sheetprev table { border-collapse: collapse; font-size: 12px; }
.dlg .sheetprev th, .dlg .sheetprev td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 8px;
  text-align: left; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.dlg .sheetprev th { color: var(--muted); font-weight: 600; }
.dlg .chks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; font-size: 13px; }
.dlg .chk input { accent-color: var(--accent); }
/* who's signed in, and the admin's access keys */
.me { color: var(--muted); font-size: 12.5px; }
.dlg table.people { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13.5px; }
.dlg table.people td { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.dlg table.people td.acts { text-align: right; white-space: nowrap; }
.dlg .keybox { background: var(--bg); border: 1px solid var(--accent); border-radius: 10px; padding: 12px; margin: 10px 0; font-size: 13px; }
.dlg .keybox code { display: block; font-family: var(--mono); font-size: 18px; letter-spacing: .04em; margin: 8px 0; user-select: all; }
.link.danger:hover { color: var(--red); }
.tools .link.small { font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.tools .link.small:hover { color: var(--text); }

/* Fixed account name on the login form (for password managers). */
.login input[readonly] { opacity: .6; cursor: default; }
/* the Copy check page (copy.html) */
.tabs a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.tabs a:hover { color: var(--text); background: var(--surface2); }
.tabs a.on { color: var(--text); background: var(--surface2); box-shadow: inset 0 -2px 0 var(--accent); }
.cc-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0 0 14px; color: var(--muted); }
.cc-settings input { width: 84px; height: 32px; margin: 0 4px; border-radius: 8px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); padding: 0 8px; }
.cc-settings .small { font-size: 12.5px; color: var(--accent); }
.cc-modes { margin: 0 0 10px; }
.cc-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 14px; }
.cc-box p { margin: 0 0 10px; }
.cc-box textarea { width: 100%; min-height: 110px; resize: vertical; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--text);
  padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; }
.cc-box .row { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.selbar .chips { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.selbar .toggle { height: 30px; border-radius: 8px; font-size: 12.5px; }
.verdict { display: inline-block; font-weight: 650; font-size: 12px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line2); background: var(--surface2); }
.verdict.v-copy { color: var(--green); border-color: #1d4636; }
.verdict.v-watch { color: var(--gold); border-color: #4a4224; }
.verdict.v-avoid { color: var(--red); border-color: #4a2428; }
.verdict.v-none { color: var(--faint); }
td.wide { white-space: normal; min-width: 320px; max-width: 560px; }
.why { font-size: 12.5px; color: var(--text); }
.why .warn { color: #f0a35e; margin-top: 3px; font-size: 12px; }
.cc-about { margin: 18px 0 0; color: var(--muted); max-width: 980px; }
.cc-about summary { cursor: pointer; color: var(--text); font-weight: 600; }
.cc-about li { margin: 6px 0; }
