/* Personal watchlist stars + pane (js/s8-watchlist.js). Replay (index.aspx) + live sim. */
.s8-wl-star{appearance:none;-webkit-appearance:none;border:0;margin:0;padding:0;background:none;color:var(--s8-fg-3);cursor:pointer;display:inline-grid;place-items:center;flex:none;line-height:0}
.s8-wl-star svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;transition:transform var(--s8-t-fast,.12s) var(--s8-ease,ease),width var(--s8-t-fast,.12s),height var(--s8-t-fast,.12s)}
.s8-wl-star:hover{color:var(--s8-fg)}
.s8-wl-star.is-on,.s8-wl-star.is-on:hover{color:var(--s8-warn)}
.s8-wl-star.is-on svg{fill:currentColor}
.s8-wl-star:focus-visible{outline:2px solid var(--s8-accent);outline-offset:1px}

/* List rows: the star sits over the logo, shows on row hover; a starred row keeps a small
   star on the logo's corner. Live rows are .watchlist-item, replay rows are table rows. */
.watchlist-item .symbol-info,.s8-market-table .s8-sym{position:relative}
.watchlist-item .s8-wl-star,.s8-market-table .s8-wl-star{position:absolute;top:50%;width:28px;height:28px;margin-top:-14px;border-radius:var(--s8-r-sm);background:var(--s8-panel-2);box-shadow:inset 0 0 0 1px var(--s8-line-2);opacity:0;transition:opacity var(--s8-t-fast,.12s) var(--s8-ease,ease)}
.watchlist-item .s8-wl-star{left:10px}
.s8-market-table .s8-wl-star{left:0}
.watchlist-item:hover .s8-wl-star,.s8-market-table tr:hover .s8-wl-star,.s8-wl-star:focus-visible{opacity:1}
.watchlist-item .s8-wl-star.is-on,.s8-market-table .s8-wl-star.is-on{opacity:1;background:transparent;box-shadow:none}
.watchlist-item .s8-wl-star.is-on svg,.s8-market-table .s8-wl-star.is-on svg{width:11px;height:11px;transform:translate(10px,10px);filter:drop-shadow(0 0 1.5px rgba(0,0,0,.85))}
.watchlist-item:hover .s8-wl-star.is-on,.s8-market-table tr:hover .s8-wl-star.is-on{background:var(--s8-panel-2);box-shadow:inset 0 0 0 1px var(--s8-line-2)}
.watchlist-item:hover .s8-wl-star.is-on svg,.s8-market-table tr:hover .s8-wl-star.is-on svg{width:16px;height:16px;transform:none;filter:none}
/* In the watchlist itself every row is starred, so the corner star would just repeat. */
[data-wl-pane] .s8-wl-star.is-on{opacity:0}
[data-wl-pane] .watchlist-item:hover .s8-wl-star,[data-wl-pane] tr:hover .s8-wl-star{opacity:1}
[data-wl-pane] .s8-symdot{width:28px;height:28px;border-radius:var(--s8-r-sm);background:var(--s8-panel-2);font-family:var(--s8-sans);font-size:9px;font-weight:600;letter-spacing:.03em;color:var(--s8-fg-3);display:grid;place-items:center}

/* Chart legend: plain star right after the ticker. The legend overlay is click-through, so opt back in. */
.s8-wl-star--legend{pointer-events:auto;width:20px;height:20px;align-self:center;margin-left:-3px;border-radius:var(--s8-r-sm);color:#8a8f98}
.s8-wl-star--legend:hover{background:rgba(255,255,255,.08)}
.sc-chart-container:not(.dark-mode) .s8-wl-star--legend:not(.is-on){color:#777}

/* Search results (Terminal.Master): a third column; the star shows on the hovered/active row or when starred. */
.sm__row:has(> .sm__star){grid-template-columns:28px minmax(0,1fr) 28px}
.sm__star{width:28px;height:28px;border-radius:var(--s8-r-sm);opacity:0;transition:opacity var(--s8-t-fast,.12s) var(--s8-ease,ease)}
.sm__row:hover .sm__star,.sm__row.is-active .sm__star,.sm__star.is-on{opacity:1}
.sm__star:hover{background:var(--s8-hover)}

.s8-wl-count{font-family:var(--s8-mono);font-variant-numeric:tabular-nums}
.s8-wl-empty{padding:var(--s8-4);color:var(--s8-fg-2);font-size:var(--s8-fs-sm);line-height:1.5}
.s8-wl-empty svg{width:13px;height:13px;vertical-align:-2px;fill:var(--s8-warn);stroke:none}
.s8-wl-empty[hidden]{display:none}

.s8-wl-note{position:fixed;left:50%;bottom:24px;z-index:10000;max-width:calc(100vw - 32px);padding:10px 14px;border-radius:8px;background:var(--s8-panel-2,#1b1f27);color:var(--s8-fg,#e6e8eb);border:1px solid var(--s8-line-2,rgba(255,255,255,.12));box-shadow:0 12px 32px -12px rgba(0,0,0,.6);font-size:var(--s8-fs-sm,13px);opacity:0;transform:translate(-50%,8px);pointer-events:none;transition:opacity .16s ease,transform .16s ease}
.s8-wl-note.is-on{opacity:1;transform:translate(-50%,0)}
