/*
 * The token page's Comments tab (components/token/Comments.tsx) and the
 * chart's trader avatars tooltip (components/token/TradeChart.tsx). Built
 * from the design tokens of tokens.css, so both themes follow.
 *
 * Comments (redesign 2026-10-17): compact cards on the feed's surface, the author's identity and position up front
 * (name, Creator / holder badges, the holder's share and size), a quiet rail for replies, the composer with the
 * writer's avatar and a live character count, skeleton rows while loading and an empty state that invites the first
 * comment.
 */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- composer ---------- */
.cmts{padding-top:2px}
.cmt-compose{display:flex;flex-direction:column;gap:8px;padding:12px 14px;margin:10px 0 8px;border:1px solid var(--line);
  border-radius:16px;background:var(--surface);transition:border-color .15s ease,box-shadow .15s ease}
.cmt-compose:not(.reply):not(.cmt-gate){display:grid;grid-template-columns:34px minmax(0,1fr);column-gap:12px;row-gap:8px}
.cmt-compose:not(.reply):not(.cmt-gate) > :not(.cmt-me){grid-column:2}
.cmt-me{grid-row:1 / span 2;line-height:0;padding-top:2px}
.cmt-compose.reply{margin:10px 0 2px;padding:10px 12px;border-radius:14px}
.cmt-compose textarea{width:100%;box-sizing:border-box;resize:none;min-height:44px;border:0;outline:0;background:transparent;
  color:var(--ink);font:inherit;font-size:14.5px;line-height:1.5;padding:6px 2px 2px}
.cmt-compose.reply textarea{min-height:34px;font-size:14px;padding-top:2px}
.cmt-compose textarea::placeholder{color:var(--muted)}
.cmt-compose:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-dim)}
.cmt-cbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--line-soft)}
.cmt-compose.reply .cmt-cbar{border-top:none;padding-top:0}
.cmt-attach{position:relative;display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;color:var(--muted);cursor:pointer;flex:none}
.cmt-attach:hover,.cmt-attach:focus-within{color:var(--accent);background:var(--surface-2)}
.cmt-attach:focus-within{outline:2px solid var(--accent);outline-offset:1px}
.cmt-attach input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.cmt-hint{flex:1 1 160px;min-width:0;font-size:12px;color:var(--muted)}
.cmt-hint.bad,.cmt-count.bad{color:var(--bad)}
.cmt-count{font-size:11.5px;color:var(--ink-2);font-variant-numeric:tabular-nums;padding:2px 7px;border-radius:999px;background:var(--surface-2)}
.cmt-count.near{color:var(--warn)}
.cmt-count.bad{background:color-mix(in srgb,var(--bad) 14%,transparent);font-weight:600}
.cmt-btn{flex:none;height:36px;padding:0 18px;border-radius:11px;background:var(--accent);color:var(--accent-ink);font-size:14px;font-weight:600;
  transition:filter .15s ease,opacity .15s ease}
.cmt-btn:hover:not(:disabled){filter:brightness(1.08)}
.cmt-btn:disabled{opacity:.45;cursor:not-allowed}
.cmt-cancel{margin:0}
.cmt-gate{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 14px;font-size:13.5px;color:var(--ink-2)}
.cmt-gate span{flex:1 1 240px}
.cmt-err{color:var(--bad);font-size:12.5px;margin:0}
.cmt-err.small{font-size:12px}
.cmt-picprev{position:relative;width:96px;height:96px;border-radius:12px;overflow:hidden;background:var(--surface-2)}
.cmt-picprev img{width:100%;height:100%;object-fit:cover;display:block}
.cmt-picprev .skl{display:block;width:100%;height:100%}
.cmt-picprev .txx{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;
  display:grid;place-items:center;font-size:16px;line-height:1}

/* ---------- the new-comments pill ---------- */
.cmt-pillrow{position:sticky;top:12px;z-index:5;display:flex;justify-content:center;height:0;overflow:visible}
.cmt-pill{transform:translateY(4px);padding:7px 16px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:13px;
  font-weight:600;box-shadow:0 6px 24px var(--glow);animation:cmtpill .25s ease-out}
@keyframes cmtpill{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(4px)}}

/* ---------- empty and loading ---------- */
.cmt-empty{display:flex;flex-direction:column;align-items:center;gap:4px;padding:40px 20px 36px}
.cmt-empty b{margin-bottom:2px}
.cmt-emptyicon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:10px;border-radius:16px;background:var(--accent-dim);color:var(--accent)}
.cmt-emptyicon svg{width:24px;height:24px}
.cmt-empty .cmt-btn{margin-top:14px}
.cmt-btn.ghostbtn{background:transparent;color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.cmt-btn.ghostbtn:hover{background:var(--accent-dim);filter:none}
.cmt-sk .cmt-skhead{display:flex;gap:10px}
.cmt-sk .cmt-skhead .skl{display:inline-block}

/* ---------- the thread ---------- */
.cmt-list,.cmt-replies{list-style:none;margin:0;padding:0}
.cmt-list{overflow-anchor:auto}
.cmt{display:flex;gap:12px;padding:14px 6px;border-top:1px solid var(--line-soft);scroll-margin-top:90px;border-radius:0;transition:background .2s ease}
.cmt-list > .cmt:first-child{border-top:none}
.cmt-list > .cmt:hover{background:color-mix(in srgb,var(--surface) 60%,transparent)}
.cmt-replies{position:relative;margin-top:8px;padding-left:14px}
.cmt-replies::before{content:"";position:absolute;left:0;top:2px;bottom:8px;width:2px;border-radius:2px;background:var(--line)}
.cmt-replies .cmt{padding:8px 0 4px;border-top:none}
.cmt-replies .cmt:hover{background:transparent}
.cmt-av{flex:none;line-height:0;border-radius:50%;height:max-content}
.cmt-av .crav{box-shadow:0 0 0 1px var(--line)}
.cmt-main{flex:1;min-width:0}
.cmt-head{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;font-size:13px;line-height:1.35}
.cmt-name{color:var(--ink);font-weight:600;text-decoration:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmt-name:hover{color:var(--accent)}
.cmt-addr{color:var(--muted);font-size:11.5px}
.cmt-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;padding:1px 7px;border-radius:999px;background:var(--surface-2);
  color:var(--ink-2);white-space:nowrap;line-height:1.6}
.cmt-badge.creator{background:var(--accent-dim);color:var(--accent)}
.cmt-badge.holder{color:var(--ink-2);font-variant-numeric:tabular-nums}
.cmt-badge.holder .cmt-pos{font-size:10.5px;font-weight:500;color:var(--ink-2);padding-left:5px;border-left:1px solid var(--line)}
.cmt-badge.holder.t2 .cmt-pos{color:inherit}
.cmt-badge.holder.t2{background:var(--buy-dim);color:var(--buy)}
.cmt-badge.holder.t3{background:var(--buy);color:var(--buy-ink)}
.cmt-badge.holder.t3 .cmt-pos{color:inherit;opacity:.8;border-left-color:currentColor}
.cmt-badge.you{color:var(--muted);font-weight:500;background:transparent;box-shadow:inset 0 0 0 1px var(--line)}
.cmt-time{margin-left:auto;display:inline-flex;gap:8px;color:var(--muted);font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.cmt-no{font-size:11px;opacity:.8}
.cmt-body{margin-top:4px;font-size:14.5px;line-height:1.55;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;outline:none}
.cmt-replies .cmt-body{font-size:14px}
.cmt-quote{display:inline;padding:0 3px;border-radius:5px;color:var(--accent);font-size:.92em;background:var(--accent-dim);cursor:pointer}
.cmt-quote:hover{filter:brightness(1.12)}
.cmt-pic{display:block;margin-top:8px;padding:0;border:0;background:var(--surface-2);border-radius:12px;overflow:hidden;width:200px;max-width:100%;
  aspect-ratio:1;cursor:zoom-in}
.cmt-pic.big{width:420px;cursor:zoom-out}
.cmt-pic img{width:100%;height:100%;object-fit:cover;display:block}
.cmt-pic.none{display:inline-block;width:auto;aspect-ratio:auto;padding:6px 10px;font-size:12px;color:var(--muted);cursor:default}
.cmt-actions{display:flex;align-items:center;gap:2px;margin-top:4px;margin-left:-8px}
.cmt-actions button{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 9px;border-radius:9px;font-size:12.5px;color:var(--muted);
  transition:color .15s ease,background .15s ease}
.cmt-actions button:hover:not(:disabled){color:var(--ink);background:var(--surface-2)}
.cmt-like .mono{font-size:12px;min-width:1ch}
.cmt-like:hover:not(:disabled){color:var(--bad)!important}
.cmt-like.on{color:var(--bad)}
.cmt-like.on .cmt-heart{animation:cmtheart .3s cubic-bezier(.2,.9,.3,1.4)}
@keyframes cmtheart{from{transform:scale(.6)}to{transform:none}}
.cmt-like:disabled{opacity:.7;cursor:default}
.cmt-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:6px;font-size:12.5px;color:var(--muted)}
.cmt-status .back{margin:0}
.cmt.signing,.cmt.sending{opacity:.72}
.cmt.failed .cmt-body{color:var(--ink-2)}
.cmt-more .back{margin:2px 0 0;font-size:12.5px;color:var(--accent)}
.cmt.in{animation:cmtin .9s ease-out}
.cmt.flash{animation:cmtflash 1.6s ease-out}
@keyframes cmtin{from{background:var(--accent-dim)}to{background:transparent}}
@keyframes cmtflash{0%,30%{background:var(--accent-dim)}100%{background:transparent}}
@media (prefers-reduced-motion: reduce){
  .cmt.in,.cmt.flash,.cmt-pill,.cmt-like.on .cmt-heart{animation:none}
}
@media (max-width: 560px){
  .cmt{gap:10px;padding:12px 2px}
  .cmt-time{margin-left:0}
  .cmt-pic.big{width:100%}
  .cmt-hint{flex-basis:100%;order:3}
  .cmt-post{margin-left:auto}
  .cmt-compose:not(.reply):not(.cmt-gate){grid-template-columns:28px minmax(0,1fr);column-gap:10px}
  .cmt-me .crav{width:28px!important;height:28px!important}
  .cmt-replies{padding-left:12px}
  /* The name links to the profile (the address is its title): no room for the address itself on a phone. */
  .cmt-addr{display:none}
}

/* ---------- chart overlay cards (commenter avatars, My swaps) ----------
 * One card for both overlays: a raised surface with a hairline border and a soft shadow, a caret pointing at the
 * marker or avatar (`--caret`, set from the card's placement: above the anchor when it fits, else below, kept inside
 * the chart's edges), a gentle rise on appearing (none under reduced motion).
 */
.lwc-avtip{position:absolute;z-index:3;pointer-events:auto;min-width:160px;max-width:260px;padding:10px 12px 11px;border-radius:12px;
  background:var(--surface-3);color:var(--ink);border:1px solid var(--line);font-size:12.5px;line-height:1.45;
  box-shadow:0 12px 32px -8px rgba(0,0,0,.5),0 2px 6px rgba(0,0,0,.2);animation:lwccard .14s ease-out}
:root[data-theme="light"] .lwc-avtip{background:var(--surface);box-shadow:0 12px 32px -10px rgba(16,24,40,.24),0 2px 6px rgba(16,24,40,.08)}
@keyframes lwccard{from{opacity:0;translate:0 4px}to{opacity:1;translate:0 0}}
.lwc-avtip.below{animation-name:lwccardb}
@keyframes lwccardb{from{opacity:0;translate:0 -4px}to{opacity:1;translate:0 0}}
/* The caret: a small rotated square in the card's own colours, on the edge facing the anchor. */
.lwc-avtip::after{content:"";position:absolute;left:var(--caret,50%);bottom:-6px;width:10px;height:10px;margin-left:-5px;background:var(--surface-3);
  border:1px solid var(--line);border-top:0;border-left:0;transform:rotate(45deg);border-bottom-right-radius:2px}
:root[data-theme="light"] .lwc-avtip::after{background:var(--surface)}
.lwc-avtip.below::after{bottom:auto;top:-6px;transform:rotate(225deg)}
.lwc-avtip a{color:var(--ink);font-weight:600;text-decoration:none}
.lwc-avtip a:hover{color:var(--accent)}
.lwc-avtip .side.buy{color:var(--buy);font-weight:600}
.lwc-avtip .side.sell{color:var(--sell);font-weight:600}
.lwc-avtip .m{color:var(--muted)}
.lwc-avtip .av-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;white-space:nowrap}
.lwc-avtip .av-h a{min-width:0;overflow:hidden;text-overflow:ellipsis}
.lwc-avtip .av-h .m{flex:none;font-size:11.5px;font-variant-numeric:tabular-nums}
.chartctl .avbtn[aria-pressed="true"]{color:var(--accent);border-color:var(--accent)}
.lwc-avlist{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.lwc-avtip .c{color:var(--ink-2);white-space:normal;overflow-wrap:anywhere;margin:4px 0 0;font-size:13px;line-height:1.5}
@media (prefers-reduced-motion: reduce){.lwc-avtip{animation:none}}

/* ---------- chart trade markers (My swaps) ---------- */
.lwc:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:10px}
.lwc-mkchip{position:absolute;z-index:3;left:8px;top:8px;display:inline-flex;align-items:center;gap:8px;padding:5px 10px;border-radius:999px;
  background:var(--surface-2);border:1px solid var(--line);font-size:12px;color:var(--muted);white-space:nowrap;max-width:calc(100% - 16px);overflow:hidden}
.lwc-mkchip button{color:var(--accent);font-weight:600;font-size:12px;padding:0}
.lwc-mkchip button::before{content:"·";color:var(--muted);margin-right:8px;font-weight:400}
.lwc-mkchip[data-state="error"]{color:var(--ink-2)}
/* The side's colour runs along the card's top edge (a 2 px rule), the rest is the shared card. */
.lwc-mktip{--mk-side:var(--buy);min-width:0;max-width:340px;padding-top:11px;overflow:visible}
.lwc-mktip[data-side="sell"]{--mk-side:var(--sell)}
.lwc-mktip::before{content:"";position:absolute;left:12px;right:12px;top:-1px;height:2px;border-radius:0 0 2px 2px;background:var(--mk-side)}
.lwc-mktip.pinned{min-width:250px}
.lwc-mktip .side.buy{color:var(--buy)}.lwc-mktip .side.sell{color:var(--sell)}
.lwc-mktip .mk-h{display:flex;align-items:center;gap:10px;white-space:nowrap}
.lwc-mktip .mk-chip{display:inline-flex;align-items:center;gap:5px;padding:2px 9px 2px 7px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.5;
  letter-spacing:.01em}
.lwc-mktip .mk-chip.buy{color:var(--buy);background:var(--buy-dim);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--buy) 30%,transparent)}
.lwc-mktip .mk-chip.sell{color:var(--sell);background:var(--sell-dim);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sell) 30%,transparent)}
.lwc-mktip .mk-chev{flex:none}
.lwc-mktip .mk-time{font-size:11.5px;font-variant-numeric:tabular-nums;margin-left:auto}
.lwc-mktip .mk-main{margin-top:8px;font-size:15.5px;font-weight:600;color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:-.005em}
.lwc-mktip .mono{font-size:11.5px}
.lwc-mktip .mk-status{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:12px;color:var(--warn)}
.lwc-mktip .mk-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;animation:mkpulse 1.4s ease-in-out infinite}
.lwc-mktip[data-state="dropped"] .mk-status{color:var(--bad)}
.lwc-mktip[data-state="dropped"] .mk-status::before{animation:none}
@keyframes mkpulse{50%{opacity:.35}}
.lwc-mktip .mk-list{list-style:none;margin:10px 0 0;padding:8px 0 0;border-top:1px solid var(--line);display:grid;gap:1px}
.lwc-mktip .mk-list li{display:grid;grid-template-columns:auto minmax(0,1fr) 20px;gap:10px;align-items:center;white-space:nowrap;font-size:12px;line-height:1.35;
  padding:2px 6px;margin:0 -6px;border-radius:7px;font-variant-numeric:tabular-nums}
.lwc-mktip .mk-list li:hover{background:color-mix(in srgb,var(--ink) 5%,transparent)}
.lwc-mktip .mk-list li > span:nth-child(2){overflow:hidden;text-overflow:ellipsis}
.lwc-mktip .mk-list a{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;color:var(--accent);font-weight:500}
.lwc-mktip .mk-list a:hover{background:var(--accent-dim);color:var(--accent)}
.lwc-mktip .mk-f{display:flex;align-items:center;gap:12px;margin-top:10px;padding-top:8px;border-top:1px solid var(--line-soft)}
.lwc-mktip .mk-f a{margin-left:auto;color:var(--accent);font-weight:600;font-size:12.5px}
.lwc-mktip .mk-f a:hover{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.lwc-mktip .mk-more{color:var(--accent);font-weight:600;font-size:12.5px;padding:0}
.lwc-mktip .mk-more:hover{text-decoration:underline;text-underline-offset:2px}
.lwc-mktip .mk-close{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;margin:-4px -6px -4px 0;border-radius:7px;color:var(--muted);
  font-size:12px;line-height:1}
.lwc-mktip .mk-close:hover{color:var(--ink);background:color-mix(in srgb,var(--ink) 8%,transparent)}
@media (prefers-reduced-motion: reduce){.lwc-mktip .mk-status::before{animation:none}}
/* Phones: the card is a sheet at the bottom of the screen, over the Buy/Sell bar (65), under the trade sheet (68+). */
@media(max-width:560px){
  .lwc-mktip,.lwc-mktip.below{position:fixed;left:0!important;right:0;top:auto!important;bottom:0;transform:none;z-index:66;min-width:0;max-width:none;max-height:70vh;overflow-y:auto;
    border-radius:18px 18px 0 0;padding:24px 18px calc(16px + env(safe-area-inset-bottom));font-size:13px;border-bottom:0;
    box-shadow:0 -12px 36px rgba(0,0,0,.4);animation:mksheet .2s cubic-bezier(.2,.8,.2,1)}
  :root[data-theme="light"] .lwc-mktip,:root[data-theme="light"] .lwc-mktip.below{box-shadow:0 -12px 36px rgba(16,24,40,.18)}
  @keyframes mksheet{from{translate:0 24px;opacity:.4}to{translate:0 0;opacity:1}}
  /* A grab handle in the side's colour in place of the rule and the caret. */
  .lwc-mktip::before{display:none}
  .lwc-mktip::after,.lwc-mktip.below::after,:root[data-theme="light"] .lwc-mktip::after{left:50%;top:9px;bottom:auto;width:36px;height:4px;margin-left:-18px;
    border:0;border-radius:2px;transform:none;background:var(--mk-side)}
  .lwc-mktip .mk-main{font-size:18px;margin-top:10px}
  .lwc-mktip .mono{font-size:12.5px}
  .lwc-mktip .mk-list li{grid-template-columns:auto minmax(0,1fr) 32px;font-size:13px;padding:5px 6px}
  .lwc-mktip .mk-list a{width:32px;height:32px}
  .lwc-mktip .mk-close{width:36px;height:36px;font-size:15px;margin:-8px -8px -8px 0}
  .lwc-mktip .mk-f a,.lwc-mktip .mk-more{font-size:14px;padding:6px 0}
}
@media (max-width:560px) and (prefers-reduced-motion: reduce){.lwc-mktip,.lwc-mktip.below{animation:none}}
/* The Trades tab filtered to the wallet. */
.feedfilter{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 8px;padding:7px 12px;border-radius:999px;
  background:var(--accent-dim);color:var(--ink);font-size:12.5px}
.feedfilter .back{color:var(--accent);font-weight:600;font-size:12.5px;padding:0}

/* ---------- track a trader (phase 2) ----------
 * The chip beside My swaps: "＋ Track trader", or the tracked trader (avatar, name, trade count) in their avatar hue
 * (`--hue`, the ring their markers carry), with ✕. The picker is a popover under it, a sheet on a phone.
 */
.chartctl .trackwrap{position:relative;display:inline-flex}
.chartctl .trackbtn{display:inline-flex;align-items:center;gap:6px}
.chartctl .trackbtn:hover{color:var(--ink)}
.chartctl .trackbtn[aria-expanded="true"]{color:var(--ink);border-color:var(--ink-2)}
.trackplus{flex:none;opacity:.8}
.trackchip{--tk:hsl(var(--hue) 70% 62%);display:inline-flex;align-items:center;height:30px;border-radius:999px;background:var(--surface-2);
  border:1px solid color-mix(in srgb,var(--tk) 70%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--tk) 14%,transparent)}
:root[data-theme="light"] .trackchip{--tk:hsl(var(--hue) 70% 40%)}
.trackchip .trackwho{display:inline-flex;align-items:center;gap:7px;height:100%;padding:0 6px 0 4px;border-radius:999px 0 0 999px;font-size:12px;color:var(--ink);
  max-width:230px}
.trackchip .trackwho .crav{box-shadow:0 0 0 1.5px var(--surface-2),0 0 0 3px var(--tk)}
.trackchip .trackname{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.trackchip .trackcount{color:var(--muted);font-size:11px;white-space:nowrap}
.trackchip .trackx{display:inline-grid;place-items:center;width:26px;height:100%;border-radius:0 999px 999px 0;color:var(--muted);
  border-left:1px solid var(--line)}
.trackchip .trackx:hover,.trackchip .trackwho:hover .trackname{color:var(--ink)}
.trackchip .trackx:hover{background:color-mix(in srgb,var(--ink) 7%,transparent)}
.trackpick{position:absolute;z-index:20;top:calc(100% + 8px);right:0;width:320px;max-width:calc(100vw - 32px);padding:12px;border-radius:14px;
  background:var(--surface-3);border:1px solid var(--line);box-shadow:0 18px 44px -12px rgba(0,0,0,.6),0 2px 8px rgba(0,0,0,.2);text-align:left;
  animation:lwccard .14s ease-out}
:root[data-theme="light"] .trackpick{background:var(--surface);box-shadow:0 18px 44px -14px rgba(16,24,40,.28),0 2px 8px rgba(16,24,40,.08)}
.trackpick-h{font-size:13px;font-weight:600;margin:0 2px 8px}
.trackpick input{width:100%;box-sizing:border-box;height:38px;padding:0 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);
  color:var(--ink);font-size:13.5px;outline:0}
.trackpick input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-dim)}
.trackpick input[aria-invalid="true"]{border-color:var(--bad)}
.trackpick-list,.trackpick-list ul{list-style:none;margin:0;padding:0}
.trackpick-list{max-height:300px;overflow-y:auto;margin-top:6px}
.trackpick-g{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);padding:8px 4px 4px}
.trackopt{display:flex;align-items:center;gap:10px;padding:6px;border-radius:10px;cursor:pointer}
.trackopt.on{background:color-mix(in srgb,var(--ink) 7%,transparent)}
.trackopt-av{--tk:hsl(var(--hue) 70% 62%);line-height:0;border-radius:50%;box-shadow:0 0 0 2px var(--surface-3),0 0 0 3.5px var(--tk)}
:root[data-theme="light"] .trackopt-av{--tk:hsl(var(--hue) 70% 40%);box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--tk)}
.trackopt-main{display:flex;flex-direction:column;min-width:0}
.trackopt-main b{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trackopt-main .mono{font-size:11px;color:var(--muted)}
.trackpick-s{font-size:12px;color:var(--muted);padding:6px 4px 0;min-height:1em}
.trackpick-s:empty{display:none}
.trackpick-s.bad{color:var(--bad)}
@media (max-width:560px){
  .trackpick{position:fixed;left:0;right:0;top:auto;bottom:0;width:auto;max-width:none;border-radius:18px 18px 0 0;
    padding:16px 16px calc(16px + env(safe-area-inset-bottom));z-index:66;animation:mksheet .2s cubic-bezier(.2,.8,.2,1)}
  .trackpick input{height:44px;font-size:16px}
  .trackopt{padding:9px 6px}
  .chartctl .trackchip .trackwho{max-width:180px}
}
@media (prefers-reduced-motion: reduce){.trackpick{animation:none}}
/* A tracked trader's card names them: their hue as a small ring beside the name. */
.lwc-mktip .mk-who{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--ink-2);margin:-2px 0 8px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.lwc-mktip .mk-hue{--tk:hsl(var(--hue) 70% 62%);flex:none;width:10px;height:10px;border-radius:50%;box-shadow:inset 0 0 0 2.5px var(--tk)}
:root[data-theme="light"] .lwc-mktip .mk-hue{--tk:hsl(var(--hue) 70% 40%)}
/* A Trades or Holders row's "Show on chart". */
.fshowchart{display:inline-grid;place-items:center;width:24px;height:24px;margin-left:6px;border-radius:7px;color:var(--muted);vertical-align:middle}
.fshowchart:hover{color:var(--accent);background:var(--accent-dim)}
a.ghost.pact{display:inline-flex;align-items:center;text-decoration:none;color:var(--ink);white-space:nowrap}
/* The average-entry rail toggle (phase 3): a dashed glyph, the accent when on. */
.chartctl .railbtn{display:inline-flex;align-items:center;gap:6px}
.chartctl .vwapbtn.railbtn[aria-pressed="true"]{color:var(--accent);border-color:var(--accent)}
