/* ═══════════════════════════════════════════════════════════════
   telegram.css — the Telegram tracker (ui-telegram.js): Traders →
   Telegram tracker, its add sheet. Laid out like the wallet tracker.
   ═══════════════════════════════════════════════════════════════ */
.tg{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;align-items:start}
.tg-feed{padding:12px 6px 6px;min-width:0}
.tg-feed .sm-fh{padding:0 6px}
.tg-flt{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tg-flt .seg button{height:26px;padding:0 9px;font-size:12px}
.tg-flt select.inp{height:30px;padding:0 26px 0 9px;font-size:12px;max-width:190px}
.tg-list{display:flex;flex-direction:column;min-height:300px}
.tg-note{margin:4px 6px 8px;padding:9px 11px;border-radius:10px;border:1px solid var(--line);background:var(--card-2);font-size:12.5px;line-height:1.5;color:var(--text-2)}
.tg-note.ex{border-color:rgba(var(--warn-rgb,240,180,60),.35)}
.tg-note b{margin-right:6px;color:var(--text)}
.tg-older{display:flex;justify-content:center;padding:10px 0 6px}
.tg-older[hidden],.tg-note[hidden]{display:none}

/* one post */
.tg-post{display:flex;flex-direction:column;gap:7px;padding:12px 10px;border-bottom:1px solid var(--line);min-width:0}
.tg-post:last-child{border-bottom:0}
.tg-ph{display:flex;align-items:center;gap:9px;min-width:0}
.tg-ph .tk-ib{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:7px;color:var(--faint);flex-shrink:0}
.tg-ph .tk-ib:hover{color:var(--text);background:var(--card-2)}
.tg-ph .tag{margin-left:auto}
.tg-av{--h:210;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;
  background:hsl(var(--h) 55% 50% / .2);color:hsl(var(--h) 70% 74%);font-weight:700;font-size:13px;line-height:1}
.tg-av.sm{width:26px;height:26px;font-size:11.5px}
.tg-pn{display:flex;flex-direction:column;gap:1px;min-width:0}
.tg-pn b{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tg-pn small{font-size:11.5px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tg-fwd{display:flex;align-items:center;gap:5px;margin:0;font-size:11.5px;color:var(--mute)}
.tg-tx{font-size:13px;line-height:1.55;color:var(--text);overflow-wrap:anywhere;white-space:normal}
.tg-tx.clip{display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden}
.tg-more{align-self:flex-start;font-size:12px}
.tg-media{margin:0;font-size:12.5px;color:var(--mute)}
.tg-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.tg-tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;background:var(--card-2);color:var(--text-2);font-size:12px;font-weight:600}
.tg-tag:hover{color:var(--text)}

/* a coin named in a post */
.tg-coins{display:flex;flex-direction:column;gap:6px}
.tg-coin{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:7px 9px;border-radius:10px;border:1px solid var(--line);background:var(--card-2);min-width:0}
.tg-cn{display:flex;align-items:center;gap:7px;min-width:0;color:var(--text)}
.tg-cn b{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
a.tg-cn:hover b{color:var(--brand-text)}
.tg-cn .chain{width:15px;height:15px;flex-shrink:0}
.tg-cn .tag{font-size:9.5px}
.tg-cav{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--hover);color:var(--text-2);font-size:11px;font-weight:700;flex-shrink:0}
.tg-ca{font-size:12px;color:var(--text-2)}
.tg-cv{display:flex;flex-direction:column;gap:1px;min-width:0}
.tg-cv b{font-size:12.5px;font-weight:600}
.tg-cv small{font-size:11px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tg-cc{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.tg-ct{display:flex;align-items:center;gap:4px;justify-self:end}
.tg-ct .btn{min-width:0;padding:0 8px;gap:3px}
.tg-ct .tk-ib{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;color:var(--faint);background:none;border:0;cursor:pointer}
.tg-ct .tk-ib:hover{color:var(--text);background:var(--hover)}
.tg-coin.wait .tg-cv small,.tg-coin.miss .tg-cv small{color:var(--faint)}
.tg-coin.wait,.tg-coin.miss{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto}

/* the side column */
.tg-aside{display:flex;flex-direction:column;gap:14px;position:sticky;top:0;min-width:0}
.tg-cs h3 .tg-addb{margin-left:auto;gap:4px}
.tg-c{display:flex;align-items:center;gap:8px;padding:6px 4px;border-radius:9px;transition:background .15s}
.tg-c:hover{background:var(--hover)}
.tg-c.off{opacity:.6}
.tg-cm{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.tg-cm b{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tg-cm b .tag{font-size:9.5px;vertical-align:1px}
.tg-cm small{font-size:11px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tg-cm small.down{color:var(--down)}
.tg-bell{color:var(--faint)}
.tg-bell.on{color:var(--brand-text)}
.tg-none{font-size:12px;color:var(--mute);padding:6px 2px;margin:0}
.tg-wait{padding:24px 10px;text-align:center}
.tg-cfg{display:flex;flex-direction:column;gap:8px}
.tg-cfg .check{font-size:12.5px;line-height:1.4}
.tg-fine{margin:2px 0 0;font-size:11.5px;color:var(--faint);line-height:1.5}
.tg-how p{margin:0 0 8px;font-size:12px;line-height:1.55;color:var(--text-2)}
.tg-how p:last-child{margin-bottom:0}
.tg-warn{display:flex;gap:6px;align-items:flex-start;color:var(--warn)!important}
.tg-warn svg{flex-shrink:0;margin-top:2px}

.tg-empty{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:46px 16px;color:var(--mute)}
.tg-empty b{font-size:15px;color:var(--text)}
.tg-empty p{margin:0;max-width:440px;font-size:12.5px;line-height:1.6}
.tg-empty small{font-size:11.5px;color:var(--faint);max-width:420px;line-height:1.5}
.tg-empty-ic{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:16px;background:var(--brand-soft,rgba(88,110,246,.12));color:var(--brand-text)}
.tg-sheet .err:empty{display:none}

@media (max-width:1180px){
  .tg{grid-template-columns:minmax(0,1fr)}
  .tg-aside{position:static;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
}
@media (max-width:720px){
  .tg-aside{display:flex}
  .tg-feed{padding:10px 2px 4px}
  .tg-post{padding:11px 6px}
  .tg-coin{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n c" "v t";row-gap:6px}
  .tg-coin .tg-cn{grid-area:n}.tg-coin .tg-cc{grid-area:c;justify-self:end}.tg-coin .tg-cv{grid-area:v}.tg-coin .tg-ct{grid-area:t}
  .tg-coin.wait,.tg-coin.miss{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n t" "v v"}
  .tg-flt select.inp{max-width:150px}
}
