/* /traders/card/ Hyperliquid trader card (Kai 2026-10-04). The card itself is a canvas (assets/trader-card.js). */
.tc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tc-head h1 { font-size: var(--fs-xl); letter-spacing: var(--ls-title); }
.tc-head .desc { max-width: 680px; }
.tc-form { display: flex; gap: var(--space-2); max-width: 760px; margin: var(--space-6) 0 var(--space-3); }
.tc-input { flex: 1; min-width: 0; height: 52px; padding: 0 var(--space-4); font: inherit; font-size: var(--fs-lg); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-card); font-variant-numeric: tabular-nums; }
.tc-input::placeholder { color: var(--text-dim); }
.tc-input:focus { outline: none; border-color: var(--mint-deep); box-shadow: 0 0 0 4px var(--glow); }
.tc-go { height: 52px; padding: 0 var(--space-6); font: inherit; font-size: var(--fs-lg); font-weight: 600; color: var(--bg); background: var(--mint); border: 0; border-radius: var(--radius-card); cursor: pointer; white-space: nowrap; transition: transform .12s ease, box-shadow .2s ease; }
.tc-go:hover { box-shadow: 0 0 0 4px var(--glow), 0 8px 30px rgba(var(--accent-rgb), .25); }
.tc-go:active { transform: translateY(1px); }
.tc-examples { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-height: 36px; }
.tc-ex-k { font-size: var(--fs-sm); color: var(--text-dim); margin-right: 2px; }
.tc-chip { min-height: 36px; padding: 0 var(--space-3); font: inherit; font-size: var(--fs-md); color: var(--text-mid); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; }
.tc-chip:hover { color: var(--text); border-color: var(--border-strong); }
.tc-chip b { font-weight: 600; margin-left: var(--space-1); }
.tc-msg { min-height: 22px; margin: var(--space-3) 0 0; font-size: var(--fs-base); }
.tc-err { color: var(--amber); }

.tc-stage { position: relative; margin-top: var(--space-2); aspect-ratio: 16 / 9; max-width: 1200px; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(var(--accent-rgb), .04); }
.tc-canvas { display: block; width: 100%; height: 100%; }
.tc-empty, .tc-shimmer { position: absolute; inset: 0; display: none; }
.tc-stage.is-empty .tc-canvas, .tc-stage.is-busy .tc-canvas { visibility: hidden; }
/* no card yet: the stage collapses to a short placeholder instead of a 16:9 empty box (Kai 2026-10-08 [2/6] item 11) */
.tc-stage.is-empty { aspect-ratio: auto; height: 140px; }
.tc-stage.is-empty .tc-canvas { position: absolute; }
.tc-stage.is-empty .tc-empty { display: grid; place-items: center; color: var(--text-dim); font-size: var(--fs-lg);
  background: radial-gradient(600px 300px at 85% 0%, rgba(var(--gain-rgb), .10), transparent 70%), radial-gradient(rgba(var(--accent-rgb), .06) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.tc-stage.is-busy .tc-shimmer { display: block; background: linear-gradient(100deg, transparent 30%, rgba(var(--accent-rgb), .07) 50%, transparent 70%) var(--surface); }
@keyframes tc-sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .tc-stage.is-busy .tc-shimmer { animation: none; } }

.tc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-4); max-width: 1200px; }
.tc-actions[hidden] { display: none; }
.tc-btn { min-height: 44px; padding: 0 var(--space-4); font: inherit; font-size: var(--fs-base); font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-ctl); cursor: pointer; }
.tc-btn:hover { border-color: var(--mint-deep); }
.tc-primary { color: var(--bg); background: var(--mint); border-color: var(--mint); }
.tc-btn:disabled, .tc-toggle:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.tc-btn:disabled:hover { border-color: var(--border-strong); }
.tc-toggle { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; padding: 0 var(--space-1); font-size: var(--fs-md); color: var(--text-mid); cursor: pointer; }
.tc-toggle input { accent-color: var(--mint-deep); width: 16px; height: 16px; }
.tc-more { margin-left: auto; font-size: var(--fs-md); color: var(--mint); }
.tc-facts-wrap { max-width: 1200px; margin-top: var(--space-3); }
.tc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-3); }
.tc-facts > div { padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.tc-facts dt { font-size: var(--fs-sm); font-weight: 600; color: var(--mint); margin-bottom: var(--space-1); }
.tc-facts dd { font-size: var(--fs-md); color: var(--text-mid); line-height: var(--lh-prose); }
.tc-note { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--text-dim); }
@media (max-width: 640px) {
  .tc-form { flex-direction: column; }
  .tc-go { width: 100%; }
  .tc-stage { border-radius: var(--radius-card); }
  .tc-more { margin-left: 0; width: 100%; }
  .tc-btn { flex: 1 1 calc(50% - 8px); }
}
/* Recent (this browser) and Most viewed (site-wide, shortened addresses only), Kai 2026-10-08 [5/6] */
.tc-recent { margin-top: var(--space-1); }
.tc-clear { color: var(--text-mid); }
.tc-origin { margin: 0 0 var(--space-2); font-size: var(--fs-xs); color: var(--text-dim); }
.tc-origin:empty { display: none; }
.tc-top-sec { margin-top: var(--space-6); }
.tc-top { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-1) var(--space-4); }
.tc-top li { display: flex; align-items: baseline; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.tc-top-r { width: 1.6em; color: var(--text-dim); font-size: var(--fs-xs); text-align: right; }
.tc-top-a { flex: 1; color: var(--text); white-space: nowrap; }
.tc-top-n { color: var(--text-mid); font-size: var(--fs-xs); white-space: nowrap; }
