/* LurkChain Track and Analyze pages: wallet feed, large trades, transactions, leaderboard, wallet lookup,
   flow analytics, DCA tracker, wallet clusters. Builds on lc.css tokens and components only. */

[hidden] { display: none !important; }

/* hero extras */
.page-hero .h1, .page-hero .lead { text-wrap: balance; }
.page-hero .eyebrow .sep { color: var(--ink-4); }
.page-hero .eyebrow .tag { height: 20px; font-size: 11px; line-height: 14px; padding: 0 7px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }

/* tab row above a toolbar */
.t-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px var(--gutter); border-top: 1px solid var(--line); }
.t-tabs .grow { flex: 1; }
.t-tabs .t-ctl { display: inline-flex; align-items: center; gap: 10px; }
.t-tabs .chip .pill-live, .t-tabs .chip .pill-sample { height: 18px; font-size: 10px; padding: 0 6px; }
.t-tabs .chip.on .pill-sample { border-color: #c9c9c9; color: #444; }
.t-tabs .chip.on .pill-live { background: rgba(0, 150, 90, .14); color: #0a8a58; }
.t-tabs .chip.on .pill-live i { background: #0a8a58; }

/* toolbar groups */
.t-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.t-lbl { font-size: 12px; line-height: 16px; color: var(--ink-3); margin-right: 2px; white-space: nowrap; }
.chips-sm { gap: 6px; }
.chips-sm .chip { height: 32px; padding: 0 12px; font-size: 13px; }
.toolbar .field { height: 32px; }
.toolbar .field select { cursor: pointer; }
.toolbar .field select option { background: var(--canvas); color: var(--ink); }
.t-upd { font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; }
.t-refresh { height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 7px; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: color .15s, border-color .15s; }
.t-refresh:hover { color: var(--ink); border-color: #4a4a4a; }
.t-refresh svg { width: 13px; height: 13px; }
.t-refresh.spin svg { animation: t-spin .9s linear infinite; }
@keyframes t-spin { to { transform: rotate(360deg); } }

/* kpi extras */
.kpi dd small { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.kpi .kpi-sub { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tables: edge cells line up with the frame gutter */
.t-tbl th:first-child, .t-tbl td:first-child { padding-left: var(--gutter); }
.t-tbl th:last-child, .t-tbl td:last-child { padding-right: var(--gutter); }
.t-tbl td { white-space: nowrap; }
/* lc.css sets .tbl td colour, which beats .up/.down on a cell */
.tbl td.up, .tbl td .up { color: var(--up); }
.tbl td.down, .tbl td .down { color: var(--down); }
.tbl td.muted { color: var(--ink-2); }
.tbl td.faint { color: var(--ink-3); }
.t-tbl .t-ago { color: var(--ink-2); }
.t-tbl .t-ago small { display: block; font-size: 11.5px; line-height: 14px; color: var(--ink-4); }
.t-tbl .tag { height: 22px; font-size: 12px; padding: 0 7px; }
.t-tbl a.ext { color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; transition: color .15s; }
.t-tbl a.ext:hover { color: var(--ink); }
.t-tbl a.ext svg { width: 12px; height: 12px; }
.t-tbl .t-rank { color: var(--ink-3); width: 44px; }
.t-tbl tbody tr.t-new { animation: t-flash 1.6s var(--ease); }
@keyframes t-flash { from { background: rgba(255, 255, 255, .06); } to { background: transparent; } }
.t-tbl .t-who { display: inline-flex; flex-direction: column; min-width: 0; }
.t-tbl .t-who a { color: var(--ink); font-weight: 500; }
.t-tbl .t-who a:hover { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.t-tbl .t-who small { font-family: var(--mono); font-size: 11.5px; line-height: 14px; color: var(--ink-3); letter-spacing: 0; }
.t-tbl tbody tr[data-href] { cursor: pointer; }
.t-tbl .tok b { font-size: 14px; }
.t-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 28px var(--gutter) 14px; border-top: 1px solid var(--line); }
.t-sec-head h2 { font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; }
.t-sec-head p { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.t-more { display: flex; justify-content: center; padding: 14px var(--gutter); border-top: 1px solid var(--line); }
.t-empty { padding: 40px var(--gutter); text-align: center; color: var(--ink-2); font-size: 14px; }
.t-note { padding: 12px var(--gutter); font-size: 13px; line-height: 18px; color: var(--ink-2); border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* buy/sell pressure bar */
.press-wrap { padding: 18px var(--gutter) 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 32px; }
.press-wrap:empty { display: none; }
.press-row { display: grid; gap: 6px; }
.press-cap { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.press-lbl { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; line-height: 16px; color: var(--ink-2); }
.press-lbl b { font-weight: 500; }
.press { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--panel-3); gap: 2px; }
.press i { display: block; height: 100%; background: var(--up); border-radius: 99px 0 0 99px; transition: width .5s var(--ease); }
.press i + i { background: var(--down); border-radius: 0 99px 99px 0; }

/* diverging bar: sells to the left of the axis, buys to the right */
.dv { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 180px; height: 10px; }
.dv::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--line-3); }
.dv span { display: block; height: 100%; }
.dv .s { justify-self: end; background: var(--down); border-radius: 3px 0 0 3px; opacity: .9; }
.dv .b { background: var(--up); border-radius: 0 3px 3px 0; opacity: .9; }

/* tracked trader strip */
.trk { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.trk button { text-align: left; padding: 14px var(--gutter) 14px 16px; border-bottom: 1px solid var(--line); min-width: 0; transition: background-color .15s; }
.trk button:not(:nth-child(5n+1)) { border-left: 1px solid var(--line); }
.trk button:nth-child(5n+1) { padding-left: var(--gutter); }
.trk button:hover { background: rgba(255, 255, 255, .025); }
.trk button.on { background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--ink); }
.trk .r1 { display: flex; gap: 6px; align-items: baseline; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.trk b { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk .pn { display: block; font-size: 13px; line-height: 18px; }

/* two side-by-side panels (top buyers / sellers, most bought / sold) */
.t-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px var(--gutter); border-top: 1px solid var(--line); }
.t-pair .panel { overflow: hidden; min-width: 0; }
.t-pair .panel-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.t-pair .panel-h h3 { font-size: 14px; line-height: 20px; font-weight: 500; }
.t-pair .panel-h span { font-size: 12px; color: var(--ink-3); }
.t-pair .tbl td, .t-pair .tbl th { padding: 9px 16px; }
.t-pair .tbl td { white-space: nowrap; }

/* pool header on the transactions page */
.pool-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pool-h .tok img, .pool-h .tok .tok-dot { width: 40px; height: 40px; font-size: 13px; }
.pool-h .tok b { font-size: 20px; line-height: 28px; }
.pool-h .tok small { font-size: 13px; line-height: 18px; }
.pool-h .links { display: flex; gap: 8px; flex-wrap: wrap; }

/* lookup form */
.lookup { display: flex; gap: 8px; flex: 4 1 380px; min-width: 0; max-width: 620px; }
.lookup .field { flex: 1; height: 36px; min-width: 0; }
.lookup .field input { width: 100%; }
.lookup .field input { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.lookup .btn { height: 36px; flex: none; }

/* wallet profile header */
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px var(--gutter); border-bottom: 1px solid var(--line); }
.w-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.w-av { width: 40px; height: 40px; border-radius: 50%; flex: none; border: 1px solid var(--line-2); }
.w-id b { display: block; font-size: 18px; line-height: 24px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-id .addr { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-id > div { min-width: 0; }
.w-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* "ask your assistant" band, styled after a chat composer */
.t-ask { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 72px var(--gutter); border-top: 1px solid var(--line); }
.t-ask h2 { font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -0.02em; }
.t-ask p { margin-top: 12px; color: var(--ink-2); max-width: 420px; }
.t-ask .link-arrow { margin-top: 18px; }
.composer { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 16px 12px; }
.composer .q { font-size: 15px; line-height: 22px; color: var(--ink); min-height: 44px; }
.composer .bar { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.composer .bar .l { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.composer .plus { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-3); display: grid; place-items: center; color: var(--ink-2); }
.composer .plus svg, .composer .send svg { width: 14px; height: 14px; }
.composer .r { display: flex; align-items: center; gap: 8px; }
.composer .copy { height: 28px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line-2); }
.composer .copy:hover { color: var(--ink); }
.composer .send { width: 28px; height: 28px; border-radius: 50%; background: var(--white); color: #111; display: grid; place-items: center; }

/* explainer cells */
.t-explain .cell { padding: 32px var(--gutter); }
.t-explain h3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.t-explain p { margin-top: 8px; font-size: 14px; line-height: 21px; color: var(--ink-2); }
.t-explain .n { font-size: 12px; line-height: 16px; color: var(--ink-3); margin-bottom: 14px; display: block; }

/* leaderboard podium */
.podium { border-top: 1px solid var(--line); }
.podium .cell { padding: 24px var(--gutter); display: block; transition: background-color .15s; min-width: 0; }
.podium .cell:hover { background: rgba(255, 255, 255, .02); }
.podium .pos { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-3); font-size: 12px; color: var(--ink-2); }
.podium b { display: block; margin-top: 14px; font-size: 16px; line-height: 22px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium .big { display: block; margin-top: 8px; font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -0.03em; }
.podium .meta { display: flex; gap: 2px 14px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; line-height: 18px; color: var(--ink-3); }

/* DCA progress */
.prog { display: inline-flex; align-items: center; gap: 8px; }
.prog .bar { width: 64px; height: 4px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.prog .bar i { display: block; height: 100%; background: var(--ink-2); }

/* cluster graph */
.cg-wrap { padding: 24px var(--gutter); border-top: 1px solid var(--line); }
.cg { position: relative; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cg svg { width: 100%; height: auto; }
.cg .edge { stroke-width: 1.2; opacity: .45; transition: opacity .2s; }
.cg .node { transition: opacity .2s; cursor: pointer; }
.cg .node circle { transition: r .2s; }
.cg .lbl { font-size: 11px; fill: var(--ink-2); font-family: var(--mono); letter-spacing: 0; pointer-events: none; }
.cg .lbl-f { font-size: 12px; fill: var(--ink); font-family: Inter, sans-serif; font-weight: 500; }
.cg.dim .grp { opacity: .14; }
.cg.dim .grp.hot { opacity: 1; }
.cg.dim .grp.hot .edge { opacity: .85; }
.cg-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.cg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cg-legend i, .t-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.cg-tip { position: absolute; pointer-events: none; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 17px; color: var(--ink); opacity: 0; transition: opacity .12s; white-space: nowrap; z-index: 2; }
.cg-tip.show { opacity: 1; }
.cg-tip span { color: var(--ink-3); display: block; }
.t-tbl tbody tr.hot { background: rgba(255, 255, 255, .04); }

/* responsive */
@media (max-width: 900px) {
  .trk { grid-template-columns: repeat(2, 1fr); }
  .trk button:not(:nth-child(5n+1)) { border-left: 0; }
  .trk button:nth-child(5n+1) { padding-left: 16px; }
  .trk button:nth-child(odd) { padding-left: var(--gutter); }
  .trk button:nth-child(even) { border-left: 1px solid var(--line); }
  .t-ask { grid-template-columns: 1fr; padding: 56px var(--gutter); }
  .t-pair { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hide-s { display: none; }
  .t-tbl th, .t-tbl td { padding-left: 8px; padding-right: 8px; }
  .t-tbl th:first-child, .t-tbl td:first-child { padding-left: var(--gutter); }
  .t-tbl th:last-child, .t-tbl td:last-child { padding-right: var(--gutter); }
  .t-tbl .t-rank { width: 28px; }
  .t-pair .tbl td, .t-pair .tbl th { padding: 9px 12px; }
  .prog .bar { display: none; }
  .t-tabs .grow { display: none; }
  .t-tabs .t-ctl { width: 100%; justify-content: space-between; }
  .dv { width: 120px; }
  .t-ask h2 { font-size: 26px; line-height: 32px; }
  .lookup { min-width: 0; width: 100%; max-width: none; flex-basis: 100%; }
  .toolbar .grow { display: none; }
  .podium .big { font-size: 24px; line-height: 30px; }
  .pool-h .tok b { font-size: 18px; }
}
.kpis:empty, .w-head:empty { display: none; }
