/* Trenchline terminal skin, v2: flush panels, Axiom-style density and colour.
   Loaded after app.css and scoped to the app shell, so landing/auth/help keep their look. */
body.app {
  --bg: #07080c;
  --bg-2: #0b0c11;
  --panel: #0a0b10;
  --panel-2: #101118;
  --panel-3: #171922;
  --line: #1a1c25;
  --line-2: #252835;
  --text: #f4f5f8;
  --text-2: #c2c4cf;
  --dim: #7a7d8f;
  --faint: #4b4e5f;
  --buy: #2fe3ac;
  --sell: #ec397a;
  --red: #ec397a;
  --accent: #526fff;
  --accent-2: #6b84ff;
  --cyan: #5fc8ff;
  --gold: #f5b93d;
  --blue: #526fff;
  --hover: #0f1017;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 12.5px;
  background: var(--bg);
}
body.app .up { color: var(--buy); }
body.app .down { color: var(--sell); }
body.app .gold { color: var(--gold); }
body.app .link { color: var(--accent-2); }
body.app .link:hover { text-decoration: underline; }
body.app .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
body.app .btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
body.app .sp { flex: 1; }
body.app .empty { padding: 34px 18px; color: var(--dim); }
body.app .empty b { color: var(--text-2); }
body.app *::-webkit-scrollbar-thumb { background: #22252f; }

/* ---------------- top bar ---------------- */
.top { height: 52px; gap: 22px; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-logo { gap: 8px; }
.top-logo img { width: 26px; height: 26px; }
.top-logo span { display: flex; align-items: baseline; gap: 5px; font-size: 16px; letter-spacing: -.02em; }
.top-logo em { font-style: normal; font-weight: 500; color: var(--dim); font-size: 14px; }
.top-nav { gap: 4px; }
.top-nav a { padding: 6px 10px; font-size: 14px; font-weight: 500; color: var(--text-2); border-radius: 8px; }
.top-nav a:hover { color: var(--text); background: transparent; }
.top-nav a.on { color: var(--accent-2); background: transparent; }
.top-right { gap: 10px; }
.top-search { width: 230px; max-width: none; flex: none; height: 34px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; padding: 0 8px 0 12px; }
.top-search:focus-within { border-color: var(--accent); width: 300px; }
.top-search kbd { border-radius: 999px; padding: 0 6px; background: transparent; }
.top-cta { height: 32px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; }
.top-cta:hover { background: var(--accent-2); }
.top-ic { position: relative; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); display: grid; place-items: center; padding: 0; }
.top-ic:hover { color: var(--text); border-color: #343849; }
.top-ic .i { width: 16px; height: 16px; }
.bell-n { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--sell); color: #fff; font: 700 9.5px/16px Inter, sans-serif; text-align: center; }
.acct { height: 34px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; gap: 8px; }
.acct:hover { border-color: #343849; }
.acct-phase { height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; font: 700 10px Inter, sans-serif; letter-spacing: .04em; color: var(--buy); background: rgba(47, 227, 172, .1); }
.acct-phase.gold { color: var(--gold); background: rgba(245, 185, 61, .12); }
.acct-phase.red { color: var(--sell); background: rgba(236, 57, 122, .12); }
.acct-eq { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.acct-pnl { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
svg.i.sol, .i.sol { color: #9b8cff; }
.user-btn { width: 34px; height: 34px; border-radius: 999px; background: var(--panel-3); border-color: var(--line-2); }
.menu { border-radius: 10px; background: #0e0f15; }

/* ---------------- footer ---------------- */
.status { height: 30px; gap: 12px; padding: 0 12px; font-size: 12px; background: var(--bg); }
.status .sep { height: 14px; }
.status .i { width: 13px; height: 13px; }
.st-chip { height: 22px; padding: 0 9px; border-radius: 6px; border: 0; background: rgba(82, 111, 255, .14); color: var(--accent-2); font: 600 11.5px Inter, sans-serif; display: inline-flex; align-items: center; gap: 5px; }
.st-chip b { color: var(--text); font-weight: 600; }
.st-chip:hover { background: rgba(82, 111, 255, .24); }
.st-link { border: 0; background: none; padding: 0; color: var(--text-2); font: 500 12px Inter, sans-serif; display: inline-flex; align-items: center; gap: 5px; }
.st-link:hover { color: var(--text); }
.st-price { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-weight: 600; }
.st-conn { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 6px; font-weight: 600; font-size: 11.5px; color: var(--dim); background: var(--panel-2); }
.st-conn .dot { width: 6px; height: 6px; background: currentColor; }
.st-conn.ok { color: var(--buy); background: rgba(47, 227, 172, .09); }
.st-conn.warn { color: var(--gold); background: rgba(245, 185, 61, .09); }
.verify-bar { background: rgba(82, 111, 255, .08); border-bottom-color: rgba(82, 111, 255, .22); color: #b9c3ff; }
.verify-bar .btn-primary { background: var(--accent); border-color: var(--accent); }

/* ---------------- pulse ---------------- */
.pulse-wrap { display: flex; flex-direction: column; height: 100%; }
.pulse-top { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; flex: none; }
.pulse-top h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.chain { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(82, 111, 255, .14); color: var(--text); font-weight: 600; font-size: 12px; }
.pt-note { color: var(--dim); font-size: 12px; }
.pt-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 600 12px Inter, sans-serif; }
.pt-btn:hover { color: var(--text); border-color: #343849; }
.pt-btn.on { color: var(--accent-2); border-color: rgba(82, 111, 255, .45); background: rgba(82, 111, 255, .08); }
.pt-btn .i { width: 14px; height: 14px; }

.pulse { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr minmax(300px, .72fr); gap: 0; padding: 0; border-top: 1px solid var(--line); }
.pcol { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); background: var(--panel); }
.pcol:last-child { border-right: 0; }
.pcol-head { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.pcol-head h4 { margin: 0; font-size: 15px; font-weight: 650; white-space: nowrap; }
.pcol-head .count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.pcol-body { flex: 1; min-height: 0; overflow: auto; }
.psearch { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--faint); min-width: 0; flex: 0 1 190px; margin-left: 6px; }
.psearch:focus-within { border-color: var(--accent); color: var(--text-2); }
.psearch input { border: 0; outline: 0; background: transparent; font-size: 12px; min-width: 0; width: 100%; color: var(--text); }
.psearch input::placeholder { color: var(--faint); }
.qb { height: 28px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; padding: 0 9px; gap: 4px; }
.qb .i { color: var(--text-2); }
.qb .i.sol, .qb svg:last-child { color: #9b8cff; }
.qb input { width: 34px; font: 600 12px Inter, sans-serif; text-align: center; }
.pp { display: inline-flex; gap: 0; }
.pp button { height: 26px; padding: 0 6px; border: 0; background: transparent; color: var(--dim); font: 600 12px Inter, sans-serif; border-radius: 6px; }
.pp button:hover { color: var(--text); }
.pp button.on { color: var(--accent-2); }
.fbtn { width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--dim); display: grid; place-items: center; padding: 0; position: relative; }
.fbtn:hover { color: var(--text); background: var(--panel-2); }
.fbtn.on { color: var(--accent-2); }
.fbtn.on::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.pcards { display: flex; flex-direction: column; }
.pc { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.pc:hover { background: var(--hover); }
.pc.held::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.pc.flash-b { animation: fb2 .7s; }
.pc.flash-s { animation: fs2 .7s; }
@keyframes fb2 { 25% { background: rgba(47, 227, 172, .06); } }
@keyframes fs2 { 25% { background: rgba(236, 57, 122, .06); } }
.pc-img { width: 74px; height: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pc-av { position: relative; width: 74px; height: 74px; border-radius: 6px; padding: 2px; background: #2fe3ac; }
.pc-av.hot { background: linear-gradient(135deg, #2fe3ac, #f5b93d); }
.pc-av.mig { background: #f5b93d; }
.pc-av .av { width: 70px !important; height: 70px !important; border-radius: 4px; border: 2px solid var(--panel); }
.pc-av .ring { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 3px; border-radius: 3px; background: rgba(0, 0, 0, .55); overflow: hidden; }
.pc-av .ring i { display: block; height: 100%; background: var(--buy); }
.pc-badge { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--panel); border: 1.5px solid currentColor; color: var(--buy); display: grid; place-items: center; }
.pc-av.mig .pc-badge { color: var(--gold); }
.pc-badge .i { width: 10px; height: 10px; stroke-width: 2.4; }
.pc-ca { font-size: 10.5px; color: var(--faint); white-space: nowrap; cursor: copy; }
.pc-ca:hover { color: var(--text-2); }
.pc-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 1px; }
.pc-l1 { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.pc-l1 b { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.pc-l1 .nm { color: var(--dim); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pc-l1 .cp { color: var(--faint); flex: none; }
.pc-l1 .cp:hover { color: var(--text); }
.pc-l2 { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.pc-l2 .age { color: var(--buy); font-weight: 600; }
.pc-l2 a { color: var(--dim); display: inline-flex; }
.pc-l2 a:hover { color: var(--text); }
.pc-l2 .i { width: 14px; height: 14px; }
.pc-l2 .ic { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.pc-l2 .ic .i { color: var(--dim); }
.holding { font-size: 10.5px; font-weight: 700; color: var(--accent-2); background: rgba(82, 111, 255, .14); padding: 1px 6px; border-radius: 999px; }
.pc-l3 { display: flex; gap: 5px; flex-wrap: wrap; }
.mt { height: 22px; padding: 0 7px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .04); font-size: 11.5px; font-weight: 600; gap: 4px; }
.mt .i { width: 12px; height: 12px; }
.mt.good { color: var(--buy); background: rgba(47, 227, 172, .07); }
.mt.bad { color: var(--sell); background: rgba(236, 57, 122, .08); }
.mt.bc { color: var(--text-2); }
.pc-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 2px; min-width: 96px; }
.pc-mc { font-size: 15px; font-weight: 700; display: flex; align-items: baseline; gap: 4px; }
.pc-mc small, .pc-v small, .pc-tx small { color: var(--dim); font-weight: 500; font-size: 11px; margin-right: 0; }
.mc-lo { color: var(--cyan); }
.mc-mid { color: var(--gold); }
.mc-hi { color: var(--buy); }
.pc-v { font-size: 13px; font-weight: 600; color: var(--text); display: flex; gap: 4px; align-items: baseline; }
.pc-tx { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.txbar { display: inline-block; width: 26px; height: 3px; border-radius: 3px; background: var(--sell); overflow: hidden; margin-left: 2px; }
.txbar i { display: block; height: 100%; background: var(--buy); }
.qbtn { height: 28px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font: 700 12px Inter, sans-serif; gap: 4px; margin-top: 4px; }
.qbtn .i { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.qbtn:hover { background: var(--accent-2); color: #fff; }
.qbtn:disabled { opacity: .55; }

.pulse.compact .pc { grid-template-columns: 52px 1fr auto; padding: 8px 10px 8px 12px; gap: 10px; }
.pulse.compact .pc-img, .pulse.compact .pc-av { width: 52px; }
.pulse.compact .pc-av { height: 52px; }
.pulse.compact .pc-av .av { width: 48px !important; height: 48px !important; }
.pulse.compact .pc-ca, .pulse.compact .pc-tx { display: none; }
.pulse.compact .pc-main { gap: 4px; }
.pulse.compact .qbtn { height: 24px; margin-top: 2px; }

/* tracker column + feed rows */
.frow { grid-template-columns: 34px 1fr auto; gap: 10px; padding: 9px 14px; }
.frow:hover { background: var(--hover); }
.frow .av { border-radius: 6px; }
.frow .who { font-weight: 500; font-size: 12.5px; color: var(--text-2); }
.frow .who b { color: var(--text); }
.frow .what { font-size: 11.5px; }
.frow .amt { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; }
.frow .amt .dim { font-size: 11px; font-weight: 500; }
.emo-s { margin-right: 4px; }

/* filter popover */
.pmenu { position: fixed; z-index: 120; width: 250px; padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: #0e0f15; box-shadow: 0 16px 50px rgba(0, 0, 0, .6); font-size: 12.5px; }
.pm-t { font-size: 11px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; margin: 4px 2px 8px; }
.pm-sorts { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.pm-sorts button { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 600 12px Inter, sans-serif; }
.pm-sorts button.on { border-color: var(--accent); color: #fff; background: rgba(82, 111, 255, .18); }
.pm-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: var(--text-2); }
.pm-row input { width: 80px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 8px; outline: 0; text-align: right; }
.pm-row input:focus { border-color: var(--accent); }
.pm-check { display: flex; align-items: center; gap: 8px; color: var(--text-2); margin: 8px 2px 4px; }
.pm-foot { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------------- token page ---------------- */
.tk { display: grid; height: 100%; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: 60px minmax(0, 1fr); grid-template-areas: "head side" "main side"; }
.tk.with-panel { grid-template-columns: minmax(0, 1fr) 290px 340px; grid-template-areas: "head head side" "main tpan side"; }
.tk-head { grid-area: head; display: flex; align-items: center; gap: 20px; padding: 0 14px; border-bottom: 1px solid var(--line); min-width: 0; overflow: hidden; }
.tk-chartcol { grid-area: main; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tk-tpanel { grid-area: tpan; display: none; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); }
.tk.with-panel .tk-tpanel { display: flex; }
.tk-side { grid-area: side; display: flex; flex-direction: column; min-height: 0; overflow: auto; border-left: 1px solid var(--line); }

.tk-id { display: flex; align-items: center; gap: 10px; min-width: 0; flex: none; }
.tk-av { padding: 2px; border-radius: 6px; background: var(--buy); }
.tk-av.mig { background: var(--gold); }
.tk-av .av { border-radius: 4px; border: 2px solid var(--bg); }
.tk-names .l1 { display: flex; align-items: baseline; gap: 6px; }
.tk-names .l1 b { font-size: 16px; font-weight: 700; }
.tk-names .nm { color: var(--dim); font-size: 13.5px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-names .cp { color: var(--faint); cursor: pointer; }
.tk-names .cp:hover { color: var(--text); }
.tk-names .l2 { display: flex; align-items: center; gap: 9px; margin-top: 2px; font-size: 12px; }
.tk-names .l2 .age { color: var(--buy); font-weight: 600; }
.tk-names .l2 a { color: var(--dim); display: inline-flex; }
.tk-names .l2 a:hover { color: var(--text); }
.tk-names .l2 .i { width: 14px; height: 14px; }
.tk-mc { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; flex: none; }
.tk-stats { display: flex; gap: 22px; min-width: 0; overflow: hidden; }
.hs { display: flex; flex-direction: column; gap: 1px; flex: none; }
.hs span { font-size: 11.5px; color: var(--dim); }
.hs b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs b sub { font-size: 9px; }

.tk-tools { display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 10px; border-bottom: 1px solid var(--line); flex: none; overflow: hidden; }
.tool-tf { display: flex; gap: 2px; }
.tool-tf button, .tool, .tool-pair button { height: 26px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font: 500 12.5px Inter, sans-serif; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tool-tf button:hover, .tool:hover, .tool-pair button:hover { color: var(--text); background: var(--panel-2); }
.tool-tf button.on { color: var(--text); background: var(--panel-3); }
.tool.on { color: var(--accent-2); }
.tool .i { width: 14px; height: 14px; }
.tool-sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 4px; }
.tool-pair { display: inline-flex; align-items: center; color: var(--faint); }
.tool-pair button { padding: 0 3px; }
.tool-pair button.on { color: var(--accent-2); background: transparent; }
.legend-dots { display: flex; gap: 10px; font-size: 11px; color: var(--dim); white-space: nowrap; }
.legend-dots i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.lg-b { background: var(--buy); } .lg-s { background: var(--sell); } .lg-y { background: var(--accent); } .lg-t { background: var(--gold); }
.tagkey { color: var(--faint); }
.chart-box { flex: 1; min-height: 0; position: relative; }
.chart-bubbles { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; }
.chart-legend { position: absolute; left: 10px; top: 8px; z-index: 4; display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--dim); pointer-events: none; white-space: nowrap; }
.chart-legend .lg-t { background: none; color: var(--text-2); font-weight: 500; margin-right: 6px; }
.chart-legend span b { font-weight: 500; margin-left: 2px; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 7px 9px; border-radius: 8px; background: #12131b; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 11.5px; line-height: 1.45; }
.chart-tip span { color: var(--dim); }
.chart-wait { z-index: 6; }
.tk-chartfoot { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-top: 1px solid var(--line); flex: none; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tk-chartfoot .tool { height: 22px; font-size: 11.5px; padding: 0 6px; }

.tk-bottom { height: 290px; flex: none; display: flex; flex-direction: column; border-top: 1px solid var(--line); min-height: 0; }
.tk-tabs { display: flex; align-items: center; height: 40px; padding: 0 8px 0 4px; border-bottom: 1px solid var(--line); flex: none; gap: 6px; }
.tabs-row button { padding: 0 11px; font-size: 13px; font-weight: 500; color: var(--dim); border-bottom-width: 2px; }
.tabs-row button.on { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.tabs-row .count { color: var(--dim); font-weight: 500; margin-left: 2px; font-size: 12.5px; }
.tab-note { font-size: 11.5px; }
.tk-tabbody { flex: 1; min-height: 0; overflow: auto; }

table.tbl { font-size: 12.5px; }
.tbl th { background: var(--bg); font-size: 11.5px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--dim); padding: 8px 12px; }
.tbl td { padding: 7px 12px; border-bottom: 1px solid rgba(26, 28, 37, .9); }
.tbl tr:hover td { background: var(--hover); }
.tbl tr.click { cursor: pointer; }
.tbl tr.tracked td { background: rgba(245, 185, 61, .04); }
.tbl tr.mine td { background: rgba(82, 111, 255, .06); }
.tbl .i { width: 12px; height: 12px; }
.tbl a.w { font-family: inherit; color: var(--text-2); }
.solbar { position: relative; display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 96px; padding: 1px 4px; font-weight: 600; z-index: 0; }
.solbar i { position: absolute; right: 0; top: 0; bottom: 0; border-radius: 3px; z-index: -1; }
.solbar.b { color: var(--buy); } .solbar.b i { background: rgba(47, 227, 172, .13); }
.solbar.s { color: var(--sell); } .solbar.s i { background: rgba(236, 57, 122, .13); }
.hbar { height: 4px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--accent); }
.tok-cell { display: inline-flex; align-items: center; gap: 8px; }
.sellbtn { height: 24px; padding: 0 10px; border-radius: 999px; border: 0; background: rgba(236, 57, 122, .14); color: var(--sell); font: 600 11.5px Inter, sans-serif; }
.sellbtn:hover { background: var(--sell); color: #fff; }
.tagp { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .03em; padding: 1px 5px; border-radius: 4px; margin-right: 2px; }
.tagp.dev { color: var(--gold); background: rgba(245, 185, 61, .13); }
.tagp.snp { color: var(--sell); background: rgba(236, 57, 122, .13); }
.tagp.trk { color: var(--gold); background: rgba(245, 185, 61, .1); font-weight: 600; letter-spacing: 0; }
.tagp.you { color: #fff; background: var(--accent); }

/* narrow trades panel */
.tp-head { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 12px; border-bottom: 1px solid var(--line); flex: none; }
.tp-head b { font-size: 14px; font-weight: 650; }
.tp-f { display: flex; gap: 2px; }
.tp-f button { height: 24px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--dim); font: 600 11px Inter, sans-serif; display: inline-flex; align-items: center; gap: 3px; }
.tp-f button .i { width: 11px; height: 11px; }
.tp-f button:hover { color: var(--text); }
.tp-f button.on { color: var(--accent-2); background: rgba(82, 111, 255, .1); }
.tp-cols, .tp-row { display: grid; grid-template-columns: 1.05fr .9fr 1.1fr 34px; gap: 6px; padding: 0 12px; align-items: center; }
.tp-cols { height: 28px; font-size: 11px; color: var(--dim); border-bottom: 1px solid var(--line); flex: none; }
.tp-cols span:last-child, .tp-row span:last-child { text-align: right; }
.tp-body { flex: 1; overflow: auto; min-height: 0; }
.tp-row { height: 25px; font-size: 12px; font-variant-numeric: tabular-nums; }
.tp-row:hover { background: var(--hover); }
.tp-row .amt { position: relative; font-weight: 600; z-index: 0; padding-left: 3px; }
.tp-row .amt i { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: 2px; z-index: -1; }
.tp-row.b .amt { color: var(--buy); } .tp-row.b .amt i { background: rgba(47, 227, 172, .12); }
.tp-row.s .amt { color: var(--sell); } .tp-row.s .amt i { background: rgba(236, 57, 122, .12); }
.tp-row .who { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-row .tagp { font-size: 9px; }

/* right side: order panel */
.volstrip { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 2px 8px; padding: 9px 14px 0; border-bottom: 1px solid var(--line); flex: none; min-height: 60px; }
.volstrip div:not(.vbar) { display: flex; flex-direction: column; gap: 1px; }
.volstrip span { font-size: 11px; color: var(--dim); }
.volstrip b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vbar { grid-column: 1 / -1; display: flex; height: 3px; margin: 7px -14px 0; }
.vbar i:first-child { background: var(--buy); }
.vbar i:last-child { background: var(--sell); }
.order { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); flex: none; }
.bs-pill { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 3px; border-radius: 999px; background: var(--panel-2); }
.bs-pill button { height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font: 650 13px Inter, sans-serif; }
.bs-pill button.on { background: var(--buy); color: #04140d; }
.bs-pill.sell button.on { background: var(--sell); color: #fff; }
.order-tabs { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; color: var(--dim); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.order-tabs .on { color: var(--text); font-weight: 600; position: relative; }
.order-tabs .on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; background: var(--text); }
.order-tabs .bal { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.order-tabs .bal b { font-weight: 600; font-variant-numeric: tabular-nums; }
.amt-box { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 10px 10px 0 0; border: 1px solid var(--line-2); background: var(--bg); }
.amt-box:focus-within { border-color: var(--accent); }
.amt-box > span:first-child { font-size: 11px; font-weight: 600; color: var(--dim); letter-spacing: .04em; }
.amt-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 15px Inter, sans-serif; color: var(--text); text-align: left; font-variant-numeric: tabular-nums; }
.amt-box .i { width: 18px; height: 18px; }
.presets { display: flex; margin-top: -11px; border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 10px 10px; overflow: hidden; }
.presets button { flex: 1; height: 34px; border: 0; border-right: 1px solid var(--line-2); background: var(--bg); color: var(--text-2); font: 600 12.5px Inter, sans-serif; font-variant-numeric: tabular-nums; }
.presets button:last-child { border-right: 0; }
.presets button:hover { color: var(--text); background: var(--panel-2); }
.presets button.on { color: var(--accent-2); background: rgba(82, 111, 255, .08); }
.presets .edit { flex: 0 0 38px; color: var(--dim); }
.order-meta { display: flex; gap: 12px; font-size: 11.5px; color: var(--dim); flex-wrap: wrap; }
.order-meta span { display: inline-flex; align-items: center; gap: 4px; }
.order-meta .i { width: 12px; height: 12px; }
.go { height: 42px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.go.buy { background: var(--buy); color: #04140d; }
.go.buy:hover { background: #4cf0be; }
.go.sell { background: var(--sell); color: #fff; }
.go.sell:hover { background: #f5568d; }
.pos4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding-top: 4px; }
.pos4 div { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.pos4 span { font-size: 11px; color: var(--dim); }
.pos4 b { font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos4 .i { width: 11px; height: 11px; }

.evalbox { padding: 12px 14px; border-bottom: 1px solid var(--line); flex: none; }
.eb-top { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.eb-top b { font-size: 13px; }
.eb-top a { font-size: 11.5px; }
.eb-top a:hover { color: var(--text); }
.eb-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: var(--accent-2); background: rgba(82, 111, 255, .12); padding: 3px 8px; border-radius: 999px; }
.eb-bar { position: relative; height: 6px; border-radius: 6px; margin: 12px 0 6px; background: linear-gradient(90deg, rgba(236, 57, 122, .55), rgba(255, 255, 255, .08) 45%, rgba(47, 227, 172, .55)); }
.eb-bar i { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); transform: translate(-50%, -50%); }
.eb-start { position: absolute; top: -3px; bottom: -3px; width: 1px; background: rgba(255, 255, 255, .35); }
.eb-lbl { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }

.info { flex: none; padding-bottom: 6px; }
.info-head { display: flex; align-items: center; gap: 4px; padding: 12px 14px 8px; font-size: 13.5px; }
.info-head b { font-weight: 650; }
.info-head .i { width: 13px; height: 13px; color: var(--dim); }
.info-head .dim { font-size: 11px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 14px; }
.info-grid > div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--line-2); text-align: center; }
.info-grid b { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.info-grid b .i { width: 13px; height: 13px; }
.info-grid span { font-size: 11px; color: var(--dim); }
.ca-row { display: flex; align-items: center; gap: 10px; margin: 10px 14px 4px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--dim); }
.ca-row .ca { font-family: inherit; font-size: 12px; gap: 6px; color: var(--text-2); }
.ca-row a { color: var(--dim); display: inline-flex; }
.ca-row a:hover { color: var(--text); }
.ca-row .i { width: 14px; height: 14px; }
.info .desc { margin: 8px 14px 6px; color: var(--dim); font-size: 11.5px; line-height: 1.5; }

/* ---------------- floating live trades ---------------- */
.float { position: fixed; z-index: 140; width: 500px; height: 330px; display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--line-2); background: #0b0c12; box-shadow: 0 20px 60px rgba(0, 0, 0, .65); overflow: hidden; resize: both; min-width: 380px; min-height: 180px; }
.fl-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 6px; border-bottom: 1px solid var(--line); cursor: move; user-select: none; flex: none; }
.fl-tabs { display: flex; gap: 2px; }
.fl-tabs button { position: relative; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font: 600 12.5px Inter, sans-serif; }
.fl-tabs button.on { color: var(--text); background: var(--panel-3); }
.fl-dot { position: absolute; top: 5px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--sell); }
.fl-qb { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.fl-qb .i { width: 11px; height: 11px; }
.fl-ic { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--dim); padding: 0; }
.fl-ic:hover { color: var(--text); background: var(--panel-2); }
.fl-cols, .fl-row { display: grid; grid-template-columns: 34px 1.1fr 1.1fr .9fr .8fr 62px; gap: 8px; padding: 0 12px; align-items: center; }
.fl-cols.w, .fl-row.w { grid-template-columns: 1.4fr 1fr 26px; }
.fl-cols { height: 26px; font-size: 11px; color: var(--dim); border-bottom: 1px solid var(--line); flex: none; }
.fl-body { flex: 1; overflow: auto; min-height: 0; }
.fl-row { height: 32px; font-size: 12px; cursor: pointer; font-variant-numeric: tabular-nums; }
.fl-row:hover { background: var(--hover); }
.fl-row .nm, .fl-row .tk { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 5px; }
.fl-row .tk .av { border-radius: 4px; }
.fl-row .i { width: 11px; height: 11px; }
.qpill { height: 22px; padding: 0 8px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font: 700 11px Inter, sans-serif; display: inline-flex; align-items: center; gap: 3px; justify-self: end; }
.qpill .i { fill: currentColor; stroke: none; }
.qpill:hover { background: var(--accent-2); }

/* ---------------- other views: flush, same skin ---------------- */
.pane { border-radius: 10px; background: var(--panel); border-color: var(--line); }
.pane-head h4 { font-size: 14px; }
.seg { border-radius: 999px; background: transparent; border-color: var(--line-2); }
.seg button { border-radius: 999px; }
.seg button.on { background: var(--panel-3); }
.toast { background: #0f1017; border-radius: 10px; min-width: 0; max-width: 340px; padding: 8px 10px; font-size: 12px; line-height: 1.4; gap: 8px; }
.toast .mono { font-family: inherit; font-weight: 600; }
.toast img, .toast .av { width: 24px !important; height: 24px !important; border-radius: 5px; }
.toasts { bottom: 40px; gap: 5px; }
.modal { background: #0d0e14; border-radius: 14px; }
.btn { border-radius: 8px; }

@media (max-width: 1500px) {
  .tk.with-panel { grid-template-columns: minmax(0, 1fr) 250px 320px; }
  .tk { grid-template-columns: minmax(0, 1fr) 320px; }
  .tk-stats .hs:nth-child(n+6) { display: none; }
  .legend-dots .tagkey { display: none; }
  .pt-note { display: none; }
}
@media (max-width: 1280px) {
  .pulse { grid-template-columns: 1fr 1fr; }
  .pulse > .pcol:nth-child(3) { display: none; }
  .tk.with-panel { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "head side" "main side"; }
  .tk.with-panel .tk-tpanel { display: none; }
  .legend-dots { display: none; }
  .psearch { flex-basis: 120px; }
  .top-search { width: 170px; }
  .top-cta { display: none; }
}
@media (max-width: 900px) {
  .top { height: auto; padding: 8px 10px; gap: 8px; flex-wrap: wrap; }
  .top-right { display: contents; }
  .top-logo em { display: none; }
  .top-cta { display: none; }
  #bellBtn { order: 1; margin-left: auto; }
  .acct { order: 2; }
  .menu-wrap { order: 2; }
  .top-search, .top-search:focus-within { order: 3; width: 100%; }
  .top-nav { order: 4; width: 100%; overflow-x: auto; }
  .top-nav a { white-space: nowrap; }
  .pulse-top .pt-btn#soundT { display: none; }
  .chart-legend { right: 70px; overflow: hidden; }
  .chart-legend span:nth-of-type(n+2) { display: none; }
  .toasts { left: 8px; right: 8px; bottom: 8px; }
  .toast { max-width: none; }
  .toasts .toast:not(:last-child) { display: none; }
  .acct-pnl, .acct-phase { display: none; }
  .acct { padding: 0 12px; }
  .pulse-top { height: auto; padding: 10px 12px; flex-wrap: wrap; }
  .pulse { grid-template-columns: 1fr; }
  .pcol { height: 72vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .pcol-head .psearch, .pcol-head .pp { display: none; }
  .pc { grid-template-columns: 56px 1fr auto; }
  .pc-img, .pc-av { width: 56px; }
  .pc-av { height: 56px; }
  .pc-av .av { width: 52px !important; height: 52px !important; }
  .pc-ca, .pc-l1 .nm { display: none; }
  .tk, .tk.with-panel { display: flex; flex-direction: column; height: auto; }
  .tk-head { flex-wrap: wrap; padding: 10px 12px; gap: 10px; }
  .tk-stats { flex-wrap: wrap; gap: 12px; }
  .chart-box { height: 400px; flex: none; }
  .tk-bottom { height: 360px; }
  .tk-side { border-left: 0; overflow: visible; }
  .tk-tools { overflow-x: auto; }
  .float { left: 8px !important; right: 8px; width: auto; top: auto !important; bottom: 8px; }
  .status { display: none; }
}
