/* Otium app: Market: the watchlist table, the Satellite and Core tables and their rows. Load order: see index.html. */
/* Watchlist table: ETF and Horizon stay in view while the rest scrolls sideways */
#compare .stick { position: sticky; z-index: 1; background: var(--surface); }
#compare tr.held .stick { background: linear-gradient(var(--accent-bg), var(--accent-bg)), var(--surface); }
#compare .s1 { left: 0; width: 190px; min-width: 190px; max-width: 190px; box-shadow: 4px 0 6px -4px rgba(0,0,0,0.25); }   /* only the ETF column is frozen */
.chg { font-weight: 400; font-size: 12px; }
#compare .g { border-left: 1px solid var(--border); } #compare .y1 { border-left: 1px dashed var(--border); } #compare th.grp { text-align: center; color: var(--text); }
#compare thead th { vertical-align: bottom; }
/* Watchlist signals and Contenders fold away under their heading (open by default, since 2.123.0) */
.fold > summary { margin: 28px 0 12px; color: var(--text); font-size: 17px; }
.fold > summary h2 { display: inline; margin: 0; }
.prospects { margin-top: 16px; }
.prospects summary { font-size: 16px; font-weight: 600; color: var(--text); }
.prospects .tablewrap { margin-top: 10px; }
/* a Prospect row opens its price history (since 2.159.0) */
.potwrap.sat { border-left: 4px solid var(--good); } .potwrap.core { border-left: 4px solid var(--best); }
tr.blockrow td { text-align: left; font-size: 12px; font-weight: 600; color: var(--text); background: var(--grid); padding-top: 6px; padding-bottom: 6px; }
tr.divrow td { text-align: left; font-size: 12px; color: var(--text-2); border-top: 2px solid var(--text-2); padding-top: 6px; padding-bottom: 6px; }
.dipc, th.dipc { text-align: left; }   /* the Market table's dip column: score, streak and level pill all from the left (3.4.16) */
/* Hot Movers (3.10.0): per pot four tiles, winner, loser, rising and falling streak; Data Analysis holds the Sats and Core tables */
:root { --mvup: #0ca30c; --mvdn: #d03b3b; }   /* the .gain and .loss colours */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mvup: #3cc43c; --mvdn: #ff5a4f; } }
:root[data-theme="dark"] { --mvup: #3cc43c; --mvdn: #ff5a4f; }
#hotMovers > summary h2, #dataAnalysis > summary h2 { display: inline; margin: 0; }
.mvrow { margin: 14px 0 6px; }
.mvtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .mvtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mvtile { position: relative; overflow: hidden; cursor: default; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.mvtile > * { max-width: 100%; }
.mvtile.tap { cursor: pointer; } .mvtile.tap:hover { border-left-color: var(--series); border-right-color: var(--series); border-bottom-color: var(--series); }   /* the top keeps its colour */
.mvtile:hover { border-color: var(--border); }
.mvtile.mvsat { border-top: 3px solid var(--good); } .mvtile.mvcore { border-top: 3px solid var(--best); }   /* the pill colours (3.11.0) */
.mvglow { position: absolute; right: -30px; bottom: -40px; width: 110px; height: 110px; border-radius: 50%; opacity: .10; pointer-events: none; }
.mvtile.mvsat .mvglow { background: var(--good); } .mvtile.mvcore .mvglow { background: var(--best); }
.mvk { align-self: stretch; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.mvk { gap: 6px; } .mvk > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mvfl svg { display: inline-block; width: 0.8em; height: 0.95em; margin-left: 2px; vertical-align: -0.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }   /* the streak titles' flame, in the title's grey, 2px after the word (3.11.1) */
.mvk .mvw { flex-shrink: 0; white-space: nowrap; text-transform: none; letter-spacing: 0; font-weight: 400; position: relative; z-index: 1; }
.mvw button.link { padding: 0; font-size: 12px; } .mvsat .mvw button.link { color: var(--good); } .mvcore .mvw button.link { color: var(--best); }   /* + Watchlist in the pill colour */
.mvsat .mvw .muted, .mvcore .mvw .muted { font-size: 11px; }
.mvplace { font-size: 11px; font-weight: 600; color: var(--text-2); }   /* the place, next to the ticker (3.11.0) */
.mvtile .t { font-size: 17px; }
.mvn { color: var(--text-2); font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }   /* the full name, 2 lines (3.11.0) */
.mvvrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; } .mvvrow .mvv { margin: 0; }
.mvv { font-size: 26px; font-weight: 700; line-height: 1.15; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.mvd { font-size: 12px; color: var(--text-2); }
.mvnone { margin-top: 10px; font-size: 14px; }
.mvtie { font-size: 11px; font-weight: 400; color: var(--text-2); border: 1px dashed var(--border); border-radius: 99px; padding: 0 6px; white-space: nowrap; }
button.isin.mvisin { position: relative; z-index: 1; margin-top: 4px; padding: 1px 8px; gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--text-2); border: 1px solid var(--border); border-radius: 6px; }
button.isin.mvisin:hover { border-color: var(--series); }
button.isin.mvisin.done { color: var(--mvup); border-color: var(--mvup); } button.isin.mvisin.done svg { display: none; }
button.isin.mvisin.done::after { content: "✓ Copied"; font-family: system-ui, sans-serif; }
#dataAnalysis .prospects { margin-top: 18px; }
h3.tblhead { font-size: 16px; font-weight: 600; margin: 0; }
