:root {
  --bg: #0b0d12;
  --panel: #141821;
  --panel2: #1a2030;
  --line: #232a38;
  --text: #e8edf5;
  --muted: #8b95a8;
  --accent: #3ee0a0;
  --accent2: #6ea8ff;
  --warn: #f5c15c;
  --danger: #ff6b7a;
  --chip: #222a3a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font: 14px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans SC", sans-serif; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.login-body { min-height: 100vh; display: grid; place-items: center; }
.login-card { width: min(420px, calc(100% - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; }
.login-card label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 12px; }
.login-card input { width: 100%; background: #0e121b; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.login-card button { margin-top: 18px; width: 100%; background: var(--accent); color: #062015; border: 0; border-radius: 8px; padding: 10px 12px; font-weight: 700; }
.err { color: var(--danger); margin-top: 10px; }
.disclaimer, .foot { color: var(--muted); font-size: 12px; }
.login-card .disclaimer { margin: 16px 0 0; }
.brand { font-weight: 760; letter-spacing: 0.04em; }
.sub { color: var(--muted); margin: 6px 0 8px; font-size: 12px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #10131b; position: sticky; top: 0; z-index: 5; }
.top-left { display: flex; align-items: baseline; gap: 12px; }
.live { font-size: 12px; color: var(--muted); }
.live.on { color: var(--accent); }
.live.bad { color: var(--danger); }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.btn:hover { border-color: #3a4660; }
.btn.primary { background: var(--accent); color: #062015; border-color: transparent; font-weight: 700; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.tabs { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.tab { background: transparent; border: 0; color: var(--muted); padding: 6px 2px; border-bottom: 2px solid transparent; }
.tab.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 700; }
.tab-right { margin-left: auto; }
.sort { color: var(--muted); font-size: 12px; }
.sort select { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; margin-left: 6px; }
.layout { display: grid; grid-template-columns: minmax(320px, 1.1fr) minmax(340px, 0.9fr); min-height: calc(100vh - 150px); }
.board-col { border-right: 1px solid var(--line); padding: 12px 14px 24px; }
.detail-col { padding: 12px 16px 32px; }
.hint { color: var(--muted); font-size: 12px; margin: 0 0 10px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; }
.row:hover, .row.on { border-color: #3d4b66; background: var(--panel2); }
.avatar, .avatar-lg { width: 44px; height: 44px; border-radius: 50%; background: #0e121b; object-fit: cover; display: block; border: 1px solid var(--line); }
.avatar-lg { width: 72px; height: 72px; }
.avatar.ph, .avatar-lg.ph { display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.meta .name { font-weight: 700; }
.meta .sym { color: var(--muted); margin-left: 6px; font-weight: 500; }
.meta .ca { color: var(--muted); font-size: 11px; margin-top: 2px; word-break: break-all; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.badge { font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--chip); color: #c9d3e5; }
.badge.stonkspump { background: #1c3a2d; color: #86f0bf; }
.badge.groypad { background: #32285a; color: #d4c4ff; }
.badge.tonfun { background: #1a3358; color: #9ec5ff; }
.badge.blum { background: #3a3312; color: #ffe08a; }
.badge.dedust { background: #12333a; color: #8be7f0; }
.badge.stonfi { background: #14284a; color: #8bb6ff; }
.badge.coffee { background: #3a2412; color: #ffc48a; }
.right { text-align: right; }
.mcap { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); }
.age { color: var(--muted); font-size: 11px; margin-top: 2px; }
.empty, .detail-placeholder { color: var(--muted); padding: 28px 8px; text-align: center; }
.detail-head { display: flex; gap: 14px; align-items: center; }
.detail-title { font-size: 20px; font-weight: 760; }
.detail-actions { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 4px 8px; font-size: 13px; margin: 12px 0; }
.kv b { color: var(--muted); font-weight: 500; }
.chart-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 12px 0; }
.chart-wrap h3, .buy h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.chart-note { color: var(--muted); font-size: 11px; margin-top: 6px; }
canvas { width: 100%; height: 180px; display: block; }
.buy { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.presets { display: flex; gap: 8px; margin: 8px 0; }
.presets button.on { background: var(--accent); color: #062015; border-color: transparent; font-weight: 700; }
.buy label { display: block; color: var(--muted); font-size: 12px; margin: 8px 0 4px; }
.buy input, .buy select { width: 100%; background: #0e121b; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.quote-box { margin: 10px 0; font-size: 13px; color: var(--muted); min-height: 3em; }
.quote-box strong { color: var(--text); }
.protect { font-size: 12px; color: var(--muted); background: #0e121b; border-radius: 8px; padding: 8px 10px; margin: 8px 0 12px; }
.wallet-msg { color: var(--warn); margin: 8px 0; }
.foot { padding: 10px 18px 20px; border-top: 1px solid var(--line); }
.copy { border: 0; background: transparent; color: var(--accent2); padding: 0 4px; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .board-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .top { flex-direction: column; align-items: flex-start; }
}
.avwrap{display:inline-block;width:44px;height:44px} .detail-head .avwrap,.detail-head .avatar-lg,.detail-head .avwrap .avatar-lg{width:72px;height:72px}

.search-bar { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0 0 12px; }
.search-bar label { display: block; font-weight: 700; margin: 0 0 8px; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; background: #0e121b; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; min-width: 0; }
.search-result { margin-top: 10px; }
.search-result .row { margin: 0; }
.flag { font-size: 12px; margin-top: 4px; }
.flag.yes { color: var(--accent); }
.flag.mid { color: var(--warn); }
.flag.no { color: var(--danger); }
.tf-btns { display: flex; gap: 6px; margin: 0 0 8px; }
.tf-btns .btn.on { background: var(--accent); color: #062015; border-color: transparent; font-weight: 700; }
canvas.kline { height: 220px; }
