/* Member home */
.home {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px 24px;
  grid-template-areas: "mkt side" "lower side"; grid-template-rows: auto 1fr; align-items: start; padding-top: 6px;
}

/* ---------- market hero ---------- */
.mh { grid-area: mkt; overflow: hidden; position: relative; }
.mh::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 160px; pointer-events: none;
  background: radial-gradient(600px 160px at 0% 0%, var(--brand-soft), transparent 70%); }
.mh-status { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mh .mkt { min-width: 0; max-width: 100%; }
.mh .mkt-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* a long holiday name ellipsizes */

/* ---------- market depth header (home-market.js): bullish steps out left of the centre line, bearish right ---------- */
.mh-top { position: relative; display: grid; gap: 8px; padding: 18px 24px 12px; container-type: inline-size; }
.dp-asof { margin-left: auto; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.dp-ttl { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
/* wide card: the status line shares the top band with the taller side's count */
.mh-top > .mh-status { grid-area: 1 / 1; align-self: start; height: 34px; position: relative; z-index: 1; pointer-events: none; }
.mh-top > .mh-status > * { pointer-events: auto; }
.mh-top > .mh-status .mkt { max-width: calc(50% - 150px); } /* clear of the count on the taller peak */
.dp { grid-area: 1 / 1; min-width: 0; padding-top: 34px; --dp-a: .15; }
.dp .bull { --c: var(--bull); }
.dp .bear { --c: var(--bear); }
/* one SVG stretched to the card (strokes stay 1px), text in HTML on top */
.dp-plot { position: relative; height: 72px; touch-action: pan-y; }
/* the terminal's corner brackets around the plot */
.dp-plot::after { content: ''; position: absolute; inset: -10px -8px -4px; pointer-events: none; --b: var(--ink-4);
  background: linear-gradient(var(--b), var(--b)) 0 0 / 8px 1px, linear-gradient(var(--b), var(--b)) 0 0 / 1px 8px,
    linear-gradient(var(--b), var(--b)) 100% 0 / 8px 1px, linear-gradient(var(--b), var(--b)) 100% 0 / 1px 8px,
    linear-gradient(var(--b), var(--b)) 0 100% / 8px 1px, linear-gradient(var(--b), var(--b)) 0 100% / 1px 8px,
    linear-gradient(var(--b), var(--b)) 100% 100% / 8px 1px, linear-gradient(var(--b), var(--b)) 100% 100% / 1px 8px;
  background-repeat: no-repeat; }
.dp-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.dp-svg path { fill: none; stroke-width: 1px; vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.dp-svg .dp-grid { stroke: var(--line-2); stroke-dasharray: 1 3; }
.dp-svg .dp-base { stroke: var(--line-2); }
.dp-svg .dp-fill { stroke: none; }
#dpg-bull stop { stop-color: var(--bull); }
#dpg-bear stop { stop-color: var(--bear); }
.dp-svg .g0 { stop-opacity: calc(var(--dp-a) * 2.4); }
.dp-svg .g1 { stop-opacity: calc(var(--dp-a) * .15); }
.dp-svg .dp-seam { stroke: var(--surface); } /* every 10 stocks: the area reads as stacked order bars */
/* heat: stocks per 0.1% bin, stronger where they cluster */
.dp-heat path { fill: var(--c); }
.dp-heat .h0 { fill-opacity: .08; } .dp-heat .h1 { fill-opacity: .17; } .dp-heat .h2 { fill-opacity: .3; } .dp-heat .h3 { fill-opacity: .48; }
.dp-svg .dp-glow { stroke: var(--c); stroke-width: 5px; stroke-opacity: .13; stroke-linejoin: round; shape-rendering: auto; }
.dp-svg .dp-edge { stroke: var(--c); stroke-width: 1.25px; }
.dp-svg .dp-tip { stroke: var(--c); stroke-width: 2px; } /* each side's strongest move */
/* a soft wash of each side's colour rising from the baseline, and the centre spine between the two books */
.dp-plot::before { content: ''; position: absolute; inset: -34px 0 0; pointer-events: none;
  background: radial-gradient(46% 110% at 30% 100%, color-mix(in srgb, var(--bull) 7%, transparent), transparent 72%),
    radial-gradient(46% 110% at 70% 100%, color-mix(in srgb, var(--bear) 6%, transparent), transparent 72%); }
.dp-spine { position: absolute; left: 50%; top: -30px; bottom: 0; width: 1px; margin-left: -.5px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--ink-4) 30%, var(--ink-2)); }
.dp-spine::after { content: ''; position: absolute; left: -3px; bottom: -4px; width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
/* level marks on each whole %: a dot on the curve and how many stocks moved at least that far */
.dp-lv { position: absolute; width: 7px; height: 7px; margin: 0 0 -3.5px -3.5px; border-radius: 50%; pointer-events: none;
  background: var(--c); box-shadow: 0 0 0 2px var(--surface), 0 0 8px color-mix(in srgb, var(--c) 55%, transparent); }
.dp-lv b { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font: 600 10px/1 var(--font-num); letter-spacing: -.03em;
  color: var(--c); padding: 2px 4px; border-radius: 4px; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.dp-lv.bull { --c: var(--bull); }
.dp-lv.bear { --c: var(--bear); }
/* the two counts stand on their own peaks, either side of the centre line */
.dp-n { position: absolute; display: flex; align-items: baseline; gap: 7px; line-height: 1; white-space: nowrap; pointer-events: none; transition: opacity .15s; }
.dp-n.dim { opacity: 0; }
.dp-n.l { right: calc(50% + 9px); flex-direction: row-reverse; }
.dp-n.r { left: calc(50% + 9px); }
.dp-n b { font: 600 28px/1 var(--font-num); letter-spacing: -.05em; color: var(--c); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 38%, transparent); }
.dp-nt { display: flex; flex-direction: column; gap: 3px; }
.dp-n.l .dp-nt { align-items: flex-end; }
.dp-n i { font-style: normal; font-size: 10.5px; line-height: 1; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.dp-n em { font: 600 10.5px/1 var(--font-num); font-style: normal; color: var(--ink-3); } /* the side's share of the market */
.dp-ax { position: relative; height: 18px; font: 500 10px/1 var(--font-num); color: var(--ink-3); letter-spacing: -.02em; }
.dp-ax span { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; }
/* crosshair readout (pointer only) */
.dp-hair { position: absolute; bottom: 0; width: 1px; margin-left: -.5px; background: var(--c); pointer-events: none; }
.dp-hair::before { content: ''; position: absolute; left: -3px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface); }
.dp-read { position: absolute; z-index: 2; transform: translateX(-50%); padding: 4px 8px; border-radius: 7px; background: var(--ink); color: var(--bg);
  font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-2); }
.dp-read b { font-weight: 750; }
/* first paint only: both sides rise out of the centre, the counts follow */
.dp.enter .dp-side { transform-box: view-box; transform-origin: 50% 100%; animation: dpRise .68s var(--ease) both; }
.dp.enter .dp-side.bear { animation-delay: .05s; }
.dp.enter .dp-n { animation: dpIn .45s .3s var(--ease) both; }
.dp.enter .dp-lv { animation: dpIn .4s .5s var(--ease) both; }
@keyframes dpRise { from { transform: scale(.3, 0); } }
@keyframes dpIn { from { opacity: 0; transform: translateY(6px); } }
/* live session only: a pulse runs down each edge from the centre to the strongest mover; after the close nothing moves */
.dp-svg .dp-flow { stroke: var(--c); stroke-width: 2px; stroke-dasharray: 22 4000; stroke-dashoffset: 22; stroke-linecap: round; opacity: 0; shape-rendering: auto; }
.dp.live .dp-flow { animation: dpFlow 4s linear var(--ph, 0ms) infinite; } /* --ph: wall-clock phase, survives the minute re-render */
.dp.live .bear .dp-flow { animation-delay: calc(var(--ph, 0ms) - 2s); }
@keyframes dpFlow { 0% { stroke-dashoffset: 22; opacity: 0; } 4%, 70% { opacity: 1; } 88%, 100% { stroke-dashoffset: -640; opacity: 0; } }
:root[data-theme=dark] .dp { --dp-a: .16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .dp { --dp-a: .16; } }
/* narrow card (phones, and the 900–1050px band): the status line gets its own row */
@container (max-width: 639px) {
  .mh-top > .mh-status, .dp { grid-area: auto; }
  .mh-top > .mh-status { height: auto; }
  .mh-top > .mh-status .mkt { max-width: 100%; }
  .dp { padding-top: 28px; }
  .dp-plot { height: 50px; }
  .dp-n b { font-size: 22px; }
}
@container (max-width: 420px) { .dp-ttl, .dp-ax .o, .dp-lv b { display: none; } }

.mh-picks { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); background: var(--surface); }
.mh-picks.calm { display: block; }
.picks { padding: 14px 12px 12px; min-width: 0; }
.picks + .picks { border-left: 1px solid var(--line); }
.picks-h { display: flex; align-items: center; gap: 10px; padding: 0 10px 8px; }
.picks-h h3 { font-size: 13.5px; }
/* ---------- top picks (home-market.js): logo, name, a ten-cell order-block meter on one scale for all six ---------- */
.picks { container-type: inline-size; }
.pick {
  --c: var(--bull); --pk-bg: var(--surface); --mw: 132px; --pl-ink: #fff;
  position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(112px, 42%); gap: 0 12px; align-items: center;
  padding: 10px 12px; margin-bottom: 8px; border-radius: 9px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 7%, var(--surface)), var(--surface) 64%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 15%, var(--line));
  transition: box-shadow .18s, transform .18s var(--ease);
}
.pick:last-child { margin-bottom: 0; }
.pick.is-bear { --c: var(--bear); }
/* the Order Block popup for the pick under the pointer (home-market.js peek): the terminal's own popup in a frame that
   never takes the pointer; the frame is the popup plus room for its shadow. Sized while hidden so the popup can lay out. */
.ob-peek { position: fixed; left: 0; top: 0; width: 448px; height: 560px; border: 0; background: transparent; color-scheme: light;
  pointer-events: none; z-index: 60; opacity: 0; visibility: hidden; transition: opacity .12s, visibility 0s .12s; }
.ob-peek.on { opacity: 1; visibility: visible; transition: opacity .12s; }
.pick:hover { --pk-bg: color-mix(in srgb, var(--c) 3%, var(--surface)); transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 38%, var(--line)), 0 10px 24px -16px color-mix(in srgb, var(--c) 70%, transparent); }
/* the terminal's pick brackets on every corner */
.pick::after { content: ''; position: absolute; inset: 2px; border-radius: 7px; pointer-events: none; --b: color-mix(in srgb, var(--c) 72%, transparent);
  background: linear-gradient(var(--b), var(--b)) 0 0 / 9px 1.5px, linear-gradient(var(--b), var(--b)) 0 0 / 1.5px 9px,
    linear-gradient(var(--b), var(--b)) 100% 0 / 9px 1.5px, linear-gradient(var(--b), var(--b)) 100% 0 / 1.5px 9px,
    linear-gradient(var(--b), var(--b)) 0 100% / 9px 1.5px, linear-gradient(var(--b), var(--b)) 0 100% / 1.5px 9px,
    linear-gradient(var(--b), var(--b)) 100% 100% / 9px 1.5px, linear-gradient(var(--b), var(--b)) 100% 100% / 1.5px 9px;
  background-repeat: no-repeat; }
/* rank: the terminal's badge, pinned to the logo's corner */
.pick .rk { position: absolute; z-index: 1; left: -5px; top: -5px; min-width: 19px; padding: 2px 3px; border-radius: 4px; text-align: center;
  font: 700 9px/1 var(--font-num); letter-spacing: .02em; color: var(--pl-ink); background: var(--c); box-shadow: 0 0 0 2px var(--surface); }
.pick .nm { display: flex; flex-direction: column; min-width: 0; }
.pick .nm > * { max-width: 100%; } /* right-aligned (mirrored) names still truncate */
.pick .t1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pick .tkr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 18px/20px 'Barlow Condensed', var(--font-ui); letter-spacing: .01em; }
.pick .pl { flex: none; padding: 3px 5px 3px 6px; border-radius: 3px; font: 800 8.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  color: var(--pl-ink); background: var(--c); box-shadow: 0 0 12px -3px color-mix(in srgb, var(--c) 75%, transparent); }
.pick .pl-s { display: none; }
.pick .nm em { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: normal; font-size: 11.5px; line-height: 16px; color: var(--ink-3); }
.pick-none { padding: 10px; }
/* logo tile: the initials sit underneath, the logo covers them (a failed logo is removed) */
.pick .lg {
  position: relative; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2);
  font: 700 11px/1 var(--font-ui); letter-spacing: .04em; box-shadow: 0 2px 8px -4px color-mix(in srgb, var(--c) 60%, transparent);
}
.pick .lg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.pick .lg::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
/* the meter (SVG, origin on the left): the size of the move on the shared scale, as stacked order bars with seams and
   a heat gradient; the order block boxed at the tip with a glowing cap, its zone projected faintly to the end */
.obm { display: block; width: var(--mw); max-width: 100%; height: 18px; margin-top: 5px; }
.obm svg { display: block; width: 100%; height: 100%; overflow: visible; }
.obm .tr { fill: color-mix(in srgb, var(--ink) 4.5%, transparent); }
.obm .tk { fill: color-mix(in srgb, var(--ink) 24%, transparent); }
.obm .g0 { stop-color: var(--c); stop-opacity: .3; }
.obm .g1 { stop-color: var(--c); stop-opacity: 1; }
.obm .sm rect { fill: var(--pk-bg); }
.obm .zx { fill: color-mix(in srgb, var(--c) 4%, transparent); stroke: color-mix(in srgb, var(--c) 30%, transparent); stroke-width: 1px; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.obm .zb { fill: color-mix(in srgb, var(--c) 17%, transparent); }
.obm .ze { fill: var(--c); }
.pick.is-bear .obm .ze { transform: translateY(10px); } /* as in the terminal: bullish zones are lit on top, bearish below */
.obm .cap { fill: var(--c); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--c) 75%, transparent)); }
/* the session chart panel (terminal ticket chart) */
.pk-ch { position: relative; height: 64px; border-radius: 7px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, var(--surface)), var(--surface) 80%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 16%, var(--line)); }
.pk-ch.none { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 4%, transparent) 0 1px, transparent 1px 6px); }
.pk-ch svg { position: absolute; left: 4px; top: 4px; width: calc(100% - 8px); height: calc(100% - 8px); overflow: visible; }
.pk-ch path, .pk-ch rect { vector-effect: non-scaling-stroke; }
.pk-ch .gr { fill: none; stroke: var(--line-2); stroke-width: 1px; stroke-dasharray: 1 3; }
.pk-ch .pc { fill: none; stroke: var(--ink-4); stroke-width: 1px; stroke-dasharray: 4 3; }
.pk-ch .zb { fill: color-mix(in srgb, var(--c) 15%, transparent); }
.pk-ch .ze { fill: none; stroke: var(--c); stroke-width: 1px; }
.pk-ch .zc { fill: var(--c); }
.pk-ch .vw { fill: none; stroke: var(--sky); stroke-width: 1.25px; stroke-dasharray: 1 2; opacity: .85; }
.pk-ch .wk { fill: none; stroke-width: 1px; }
.pk-ch .wk.u { stroke: var(--bull); }
.pk-ch .wk.d { stroke: var(--bear); }
.pk-ch .bd.u { fill: var(--bull); }
.pk-ch .bd.d { fill: var(--bear); }
.pk-ch .lt { fill: none; stroke: var(--c); stroke-width: 1px; stroke-dasharray: 3 2; opacity: .9; }
.pk-ch i { position: absolute; left: calc(4px + (100% - 8px) * var(--x)); top: calc(4px + (100% - 8px) * var(--y)); pointer-events: none; }
.ch-ob { transform: translateY(-100%); margin: -2px 0 0 4px; font: 700 8px/1 var(--font-num); font-style: normal; letter-spacing: .08em; color: var(--c);
  padding: 1px 3px; border-radius: 2px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.pick.is-bear .ch-ob { transform: none; margin-top: 2px; }
.ch-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 2px var(--surface), 0 0 10px 1px color-mix(in srgb, var(--c) 70%, transparent); }
.ch-nt { width: 0; height: 0; margin: -4px 0 0 -4px; border: 4px solid transparent; border-left: 0; border-right: 5px solid var(--c); }
/* columns tinted like the terminal's ticket stacks */
.picks.bull { background: linear-gradient(180deg, color-mix(in srgb, var(--bull) 3.5%, transparent), transparent 55%); }
.picks.bear { background: linear-gradient(180deg, color-mix(in srgb, var(--bear) 3.5%, transparent), transparent 55%); }
.picks-h h3 { font: 700 11.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
/* two columns: the card is one order book, both sides grow outward from the centre line like the depth chart */
@media (min-width: 901px) {
  .picks.bear .obm svg { transform: scaleX(-1); } /* each meter fills from its logo side */
  .picks.bear .pick { grid-template-columns: minmax(112px, 42%) minmax(0, 1fr) 38px;
    background: linear-gradient(260deg, color-mix(in srgb, var(--c) 7%, var(--surface)), var(--surface) 64%); }
  .picks.bear .pick .pk-ch { order: 1; }
  .picks.bear .pick .nm { order: 2; text-align: right; align-items: flex-end; }
  .picks.bear .pick .t1 { flex-direction: row-reverse; }
  .picks.bear .pick .lg { order: 3; }
  .picks.bear .pick .rk { left: auto; right: -5px; }
  .picks.bear .picks-h { flex-direction: row-reverse; }
  .picks.bear .pick-none { text-align: right; }
}
/* first paint only: the chart sweeps in left to right, the bars run out from the origin, the order block lands (≤ 800ms) */
.pick.in .pk-ch svg { animation: chIn .7s var(--ease) both; }
.pick.in .pk-ch i { animation: obmFade .3s .55s ease both; }
@keyframes chIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.pick.in .obm .bd { transform-box: view-box; transform-origin: 0 50%; animation: obmIn .55s .1s var(--ease) both; }
.pick.in .obm .ob, .pick.in .obm .zx { animation: obmFade .3s .5s ease both; }
@keyframes obmIn { from { transform: scaleX(0); } }
@keyframes obmFade { from { opacity: 0; } }
/* live session only: a glint runs along the bars, the cap and the last price breathe, the last-price line flows
   (lengths never move); a changed move flashes the order block once */
.pick.live .obm .bd { animation: obmFlow 3.2s ease-in-out var(--ph, 0ms) infinite; }
@keyframes obmFlow { 0%, 20%, 100% { filter: none; } 9% { filter: brightness(1.25) saturate(1.15); } }
.pick.live .obm .cap { animation: obmCap 1.6s ease-in-out var(--ph, 0ms) infinite; }
@keyframes obmCap { 50% { opacity: .55; } }
.pick.live .ch-dot { animation: chDot 1.6s ease-out var(--ph, 0ms) infinite; }
@keyframes chDot { 0% { box-shadow: 0 0 0 2px var(--surface), 0 0 0 2px color-mix(in srgb, var(--c) 60%, transparent); }
  100% { box-shadow: 0 0 0 2px var(--surface), 0 0 0 9px transparent; } }
.pick.live .pk-ch .lt { animation: chLt 1s linear infinite; }
@keyframes chLt { to { stroke-dashoffset: -5; } }
.pick.tk .obm .ob { animation: obmTk 1.2s ease; }
@keyframes obmTk { 0% { filter: drop-shadow(0 0 6px var(--c)); } }
/* narrow columns: drop the rank, a shorter meter and chart (≤330px: phones and the squeezed two-column card) */
@container (max-width: 470px) { .pick .pl-l { display: none; } .pick .pl-s { display: inline; } }
@container (max-width: 420px) { .pick { --mw: 112px; gap: 0 10px; } .pick .tkr { font-size: 17px; } }
@container (max-width: 330px) {
  .pick { --mw: 92px; grid-template-columns: 32px minmax(0, 1fr) minmax(88px, 40%); gap: 0 9px; padding: 9px 10px; }
  .pick .lg { width: 32px; height: 32px; border-radius: 9px; }
  .pick .pl { display: none; }
  .pk-ch { height: 56px; }
  @media (min-width: 901px) { .picks.bear .pick { grid-template-columns: minmax(88px, 40%) minmax(0, 1fr) 32px; } }
}
:root[data-theme=dark] .pick { --pl-ink: #04060A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .pick { --pl-ink: #04060A; } }
/* motion stays on with OS "Reduce motion", as on the Order Block page (owner's decision) */
@media (prefers-reduced-motion: reduce) {
  .dp.enter .dp-side { animation-duration: .68s !important; }
  .dp.enter .dp-n { animation-duration: .45s !important; }
  .dp.enter .dp-lv { animation-duration: .4s !important; }
  .dp.live .dp-flow { animation-duration: 4s !important; }
  .mh .dot.live { animation-duration: 1.8s !important; }
  .pick.in .pk-ch svg { animation-duration: .7s !important; }
  .pick.in .pk-ch i { animation-duration: .3s !important; }
  .pick.in .obm .bd { animation-duration: .55s !important; }
  .pick.in .obm .ob, .pick.in .obm .zx { animation-duration: .3s !important; }
  .pick.live .obm .bd { animation-duration: 3.2s !important; }
  .pick.live .obm .cap, .pick.live .ch-dot { animation-duration: 1.6s !important; }
  .pick.live .pk-ch .lt { animation-duration: 1s !important; }
  .pick.tk .obm .ob { animation-duration: 1.2s !important; }
}
.mh-calm { display: flex; align-items: center; gap: 16px; padding: 22px 24px; }
.mh.quiet .mh-quiet { position: relative; padding: 20px 24px 22px; }
.mh.quiet .mh-status { margin-bottom: 6px; }
.mh.quiet .mh-calm { padding: 8px 0 0; }
.mh-calm b { display: block; font-size: 14.5px; font-weight: 700; }
.mh-calm span:not(.ibadge) { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- side column ---------- */
.home-side { grid-area: side; display: flex; flex-direction: column; gap: 14px; }
.side-card { display: block; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: border-color .18s, transform .18s var(--ease), box-shadow .18s; }
.side-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.sc-h { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.sc-h .go { margin-left: auto; color: var(--ink-4); transition: transform .2s var(--ease), color .2s; }
.side-card:hover .sc-h .go { transform: translateX(3px); color: var(--ink-2); }
.sc-title { display: block; font-size: 14.5px; margin-top: 12px; }
.side-card.is-empty p { margin-top: 4px; }
.m-net { font-size: 28px; font-weight: 650; letter-spacing: -.045em; margin-top: 12px; line-height: 1.15; }
.m-line { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.m-line b { color: var(--ink); font-weight: 600; }
.m-spark { margin: 12px -4px -4px; height: 44px; }

.side-card.learn { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; }
.side-card.learn.done { grid-template-columns: auto 1fr; padding: 16px 18px; }
.lthumb { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sky-soft), var(--brand-soft)), var(--surface-3); }
.lthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lthumb .play { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--sky); box-shadow: var(--shadow-2); transition: transform .2s var(--ease); }
.lthumb .play .ic { width: 13px; height: 13px; margin-left: 2px; }
.side-card.learn:hover .play { transform: scale(1.08); }
.lthumb .dur { position: absolute; right: 5px; bottom: 5px; font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 5px; background: rgba(8, 11, 18, .72); color: #fff; }
.lc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lc em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); }
.lc b { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lprog { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.lprog .bar { flex: 1; height: 4px; }

.shortcuts { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 6px; border-radius: var(--r-lg); background: var(--surface-2); }
.shortcuts a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 11px; min-width: 0; transition: background .15s; }
.shortcuts a:hover { background: var(--surface); box-shadow: var(--shadow-1); }
.shortcuts a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.shortcuts b { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shortcuts em { font-style: normal; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- lower: updates + community ---------- */
.home-lower { grid-area: lower; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.hl-h { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 8px; }
.hl-h h2 { font-size: 15px; }
.hl-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.hl-more:hover { color: var(--brand); }
.hl-empty { font-size: 13px; color: var(--ink-3); padding: 14px 0; display: flex; align-items: center; gap: 6px; }
.hl-empty.link:hover { color: var(--brand); }
.upd { list-style: none; margin: 0; padding: 0; }
.upd li + li { border-top: 1px solid var(--line); }
.upd a { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 8px; margin: 0 -8px; border-radius: 10px; transition: background .15s; }
.upd a:hover { background: var(--surface-3); }
.upd .chip { justify-self: start; margin-top: 1px; }
.ut { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.ut b { font-size: 13.5px; font-weight: 650; }
.ut span { font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.upd time { white-space: nowrap; padding-top: 2px; }
.posts { display: flex; flex-direction: column; }
.posts .post + .post { border-top: 1px solid var(--line); }
.post { display: flex; gap: 12px; padding: 12px 8px; margin: 0 -8px; border-radius: 10px; transition: background .15s; }
.post:hover { background: var(--surface-3); }
.pb { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pm b { font-size: 13px; }
.pm .chip { height: 20px; font-size: 10.5px; padding: 0 7px; }
.ptext { font-size: 13px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pimg { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- sectors now (takes the place of "What's new" while a session has data) ----------
   The Order Block terminal's language on a card: the sector count on each side with a meter (one
   segment per sector); the sector flow (every sector's path from the open fanning out of one origin
   to the NOW spine, the strongest and weakest three lit and threaded to their labels); then order-book
   rows (each stock a bar above or below the line, brighter = bigger move). #sx is the size container. */
.sx { container-type: inline-size; --gl: 16%; --f: .5; --fib: .26; --hal: 5%; --glw: .12; --pl-ink: #fff; }
:root[data-theme=dark] .sx { --gl: 44%; --f: .38; --fib: .3; --hal: 8%; --glw: .2; --pl-ink: #04060A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .sx { --gl: 44%; --f: .38; --fib: .3; --hal: 8%; --glw: .2; --pl-ink: #04060A; } }

.sx-card { --mood: var(--bull); --well: color-mix(in srgb, var(--bg) 55%, var(--surface)); position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.sx-card.m-dn { --mood: var(--bear); }
.sx-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 120px; z-index: -1; pointer-events: none;
  background: radial-gradient(380px 110px at 0% 0%, var(--brand-soft), transparent 70%),
              radial-gradient(320px 110px at 100% 0%, color-mix(in srgb, var(--mood) 10%, transparent), transparent 70%); }

/* counts: sectors up · meter · down (the market card's bullish / bearish counts, per sector) */
.sx-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px 12px; }
.sx-cnt { display: flex; align-items: center; gap: 8px; line-height: 1; white-space: nowrap; }
.sx-cnt b { font: 600 26px/1 var(--font-num); letter-spacing: -.05em; color: var(--ink); }
.sx-cnt > span { display: flex; flex-direction: column; gap: 4px; }
.sx-cnt.dn > span { align-items: flex-end; }
.sx-cnt i { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sx-cnt.up i { color: var(--bull); }
.sx-cnt.dn i { color: var(--bear); }
.sx-cnt em { font: 600 10.5px/1 var(--font-num); font-style: normal; color: var(--ink-3); }
.sx-bar { position: relative; height: 8px; display: flex; gap: 2px; overflow: hidden; border-radius: 2px;
  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--mood) var(--gl), transparent); }
.sx-bar i { flex: 1 1 0; min-width: 1px; border-radius: 1.5px; background: var(--bear); opacity: calc(var(--f) + (1 - var(--f)) * var(--m, 1)); }
.sx-bar i.u { background: var(--bull); }
.sx-bar i.z { background: var(--ink-4); }

/* sector flow: a darker well, green above the line and red below, as in the terminal */
.sx-fw { position: relative; padding: 10px 16px 4px; border-block: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bull) var(--hal), transparent), transparent 42%, transparent 58%, color-mix(in srgb, var(--bear) var(--hal), transparent)), var(--well); }
.sx-fh { display: flex; align-items: center; gap: 10px; height: 16px; margin-bottom: 8px; font-size: 11px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.sx-ttl { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.sx-avg b { font-weight: 600; }
.sx-t { margin-left: auto; }
.sx-fp { display: grid; grid-template-columns: minmax(0, 1fr) 14px max-content; grid-template-rows: 132px 20px; }
.sx-plot { position: relative; grid-area: 1 / 1; }
.sx-svg, .sx-thr { display: block; width: 100%; height: 100%; overflow: visible; }
.sx-svg { position: absolute; inset: 0; }
.sx-svg path, .sx-thr path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; transition: opacity .15s, stroke-opacity .15s, stroke-width .15s; }
.sx-svg .bull, .sx-thr .bull, .sx-end.bull, .sx-lb.bull { --c: var(--bull); }
.sx-svg .bear, .sx-thr .bear, .sx-end.bear, .sx-lb.bear { --c: var(--bear); }
.sx-svg .flat, .sx-thr .flat, .sx-end.flat, .sx-lb.flat { --c: var(--ink-3); }
.sx-svg .gr { stroke: var(--line-2); stroke-width: 1px; stroke-dasharray: 2 4; stroke-linecap: butt; }
.sx-svg .gz { stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-width: 1px; }
.sx-fib path { stroke: var(--c); stroke-width: 1px; stroke-opacity: var(--fib); }
.sx-hi .gl { stroke: var(--c); stroke-width: 7px; stroke-opacity: var(--glw); }
.sx-hi .ln { stroke: var(--c); stroke-width: 1.6px; }
.sx-hi .fl { stroke: var(--c); stroke-width: 2.6px; stroke-dasharray: 16 4000; stroke-dashoffset: 16; opacity: 0; }
.sx-ext path { stroke: var(--c); stroke-width: 1px; stroke-dasharray: 1 4; stroke-opacity: .6; }
.sx-thr { grid-area: 1 / 2; }
.sx-thr path { stroke: var(--c); stroke-width: 1px; stroke-opacity: .6; }
/* the origin every path leaves from, the NOW spine (as on the market card) and each lit path's end */
.sx-org { position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent), 0 0 14px 2px color-mix(in srgb, var(--brand) 55%, transparent); }
.sx-org::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 70%, transparent); opacity: 0; }
.sx-now { position: absolute; top: -6px; bottom: 0; width: 1px; margin-left: -.5px; background: linear-gradient(to bottom, transparent, var(--ink-4) 25%, var(--ink-2)); }
.sx-now::after { content: ''; position: absolute; left: -3px; bottom: -4px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--well); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.sx-end { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 2px var(--well), 0 0 10px color-mix(in srgb, var(--c) 70%, transparent); transition: opacity .15s; }
.sx-yt { position: absolute; left: 12px; font: 500 9.5px/1 var(--font-num); letter-spacing: -.02em; color: var(--ink-3); pointer-events: none; }
.sx-yt.t { top: calc(6% + 4px); }
.sx-yt.b { top: calc(94% - 14px); }
/* labels: terminal sector chips, threaded to their paths */
.sx-lbs { position: relative; grid-area: 1 / 3; min-width: 96px; }
.sx-lb { position: absolute; left: 0; right: 0; transform: translateY(-50%); display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 16px; padding: 0 6px 0 9px; border-radius: 4px; white-space: nowrap; cursor: default;
  background: color-mix(in srgb, var(--c) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); transition: opacity .15s, box-shadow .15s; }
.sx-lb::before { content: ''; position: absolute; left: 3px; top: 4px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--c); box-shadow: 0 0 6px var(--c); }
.sx-lb.sz { position: static; visibility: hidden; height: 0; overflow: hidden; transform: none; box-shadow: none; }
.sx-lb b { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.sx-lb .num { font-size: 10px; font-weight: 600; color: var(--c); }
.sx-ax { position: relative; grid-area: 2 / 1; font: 500 9.5px/1 var(--font-num); letter-spacing: -.02em; color: var(--ink-3); }
.sx-ax span { position: absolute; top: 7px; transform: translateX(-50%); white-space: nowrap; }
.sx-ax .l { transform: none; }
.sx-ax .r { transform: translateX(-100%); }
.sx-ax .now { color: var(--ink); font-weight: 600; }
/* pointing at a row or a label lights its path and dims the rest */
.sx-card.brush .sx-fib path:not(.hot), .sx-card.brush .sx-hi g:not(.hot), .sx-card.brush .sx-ext path:not(.hot),
.sx-card.brush .sx-thr path:not(.hot), .sx-card.brush .sx-end:not(.hot), .sx-card.brush .sx-lb:not(.hot) { opacity: .25; }
.sx-fib path.hot { stroke-opacity: 1; stroke-width: 1.8px; }
.sx-hi g.hot .ln { stroke-width: 2.2px; }
.sx-lb.hot { box-shadow: inset 0 0 0 1px var(--c), 0 0 12px color-mix(in srgb, var(--c) 35%, transparent); }

/* order-book rows: [rank] NAME · stock bars · pill / breadth · lead stock · 15m shift */
.sx-list { display: grid; grid-template-columns: 24px minmax(76px, max-content) minmax(0, 1fr) max-content; column-gap: 10px; row-gap: 5px; padding: 2px 12px 12px; }
.sx-g { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; padding: 9px 2px 1px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sx-g .ic { width: 14px; height: 14px; }
.sx-g.up .ic { color: var(--bull); }
.sx-g.dn .ic { color: var(--bear); }
.sx-g::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.sx-r { --c: var(--ink-4); position: relative; isolation: isolate; overflow: hidden; grid-column: 1 / -1; display: grid; grid-template-columns: subgrid;
  grid-template-rows: 24px 16px; row-gap: 1px; align-items: center; padding: 6px 10px 6px 9px; border-radius: 9px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 8%, var(--surface)), var(--surface) 64%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 15%, var(--line)); transition: box-shadow .18s, transform .18s var(--ease); }
@supports not (grid-template-columns: subgrid) { .sx-r { grid-template-columns: 24px 88px minmax(0, 1fr) 76px; column-gap: 10px; } }
.sx-r.bull { --c: var(--bull); }
.sx-r.bear { --c: var(--bear); }
.sx-r.mid { background: var(--surface); }
.sx-r::before { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: var(--w, 0%); z-index: -1; pointer-events: none;
  background: linear-gradient(270deg, color-mix(in srgb, var(--c) 12%, transparent), transparent); } /* heat behind the pill, growing with the move */
/* the terminal's pick brackets on every corner of the strongest and weakest */
.sx-r.g-up::after, .sx-r.g-dn::after { content: ''; position: absolute; inset: 2px; border-radius: 7px; pointer-events: none; --b: color-mix(in srgb, var(--c) 72%, transparent);
  background: linear-gradient(var(--b), var(--b)) 0 0 / 8px 1.5px, linear-gradient(var(--b), var(--b)) 0 0 / 1.5px 8px,
    linear-gradient(var(--b), var(--b)) 100% 0 / 8px 1.5px, linear-gradient(var(--b), var(--b)) 100% 0 / 1.5px 8px,
    linear-gradient(var(--b), var(--b)) 0 100% / 8px 1.5px, linear-gradient(var(--b), var(--b)) 0 100% / 1.5px 8px,
    linear-gradient(var(--b), var(--b)) 100% 100% / 8px 1.5px, linear-gradient(var(--b), var(--b)) 100% 100% / 1.5px 8px;
  background-repeat: no-repeat; }
.sx-r:hover, .sx-r.hot { transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 38%, var(--line)), 0 10px 24px -16px color-mix(in srgb, var(--c) 70%, transparent); }
.sx-r > * { grid-row: 1; min-width: 0; }
.sx-rk { grid-column: 1; grid-row: 1 / span 2; justify-self: start; min-width: 21px; padding: 3px 4px; border-radius: 4px; text-align: center;
  font: 700 9.5px/1 var(--font-num); letter-spacing: .02em; color: var(--ink-3); background: var(--surface-3); }
.sx-r.g-up .sx-rk, .sx-r.g-dn .sx-rk { color: var(--pl-ink); background: var(--c); box-shadow: 0 0 10px -2px color-mix(in srgb, var(--c) 70%, transparent); }
.sx-nm { grid-column: 2; display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; }
.sx-nm b { font: 700 17px/20px 'Barlow Condensed', var(--font-ui); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
/* BROAD: three in four of its stocks move the sector's way; MIXED: half or fewer do */
.sx-tag { flex: none; padding: 2px 4px 2px 5px; border-radius: 3px; font: 800 8px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.sx-tag.mx { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
/* each stock a bar: up from the line in green, down in red, its length the stock's move (one scale for the card) */
.sx-st { grid-column: 3; justify-self: start; position: relative; display: flex; align-items: stretch; gap: 1px; height: 22px; width: min(100%, 190px, calc(var(--n, 10) * 13px)); }
.sx-st::before { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 1px; margin-top: -.5px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.sx-st i { position: relative; flex: 1 1 0; min-width: 1px; }
.sx-st i::before { content: ''; position: absolute; left: 0; right: 0; height: max(1.5px, calc(var(--m, 0) * 50%)); border-radius: 1px; }
.sx-st i.u::before { bottom: 50%; background: linear-gradient(to top, color-mix(in srgb, var(--bull) 45%, transparent), var(--bull)); }
.sx-st i.d::before { top: 50%; background: linear-gradient(to bottom, color-mix(in srgb, var(--bear) 45%, transparent), var(--bear)); }
.sx-st i.z::before { top: calc(50% - 1px); height: 2px; background: var(--ink-4); }
.sx-pc { grid-column: 4; justify-self: end; padding: 4px 8px; border-radius: 7px; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent);
  text-shadow: 0 0 14px color-mix(in srgb, currentColor var(--gl), transparent); }
.sx-r.mid .sx-pc { background: none; box-shadow: none; text-shadow: none; }
.sx-ln { grid-column: 2 / 4; grid-row: 2; display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 16px; color: var(--ink-3); white-space: nowrap; }
.sx-ct { flex: none; }
.sx-ct b { font-weight: 500; color: var(--ink-2); }
.sx-ld { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; }
.sx-ld::before { content: '·' / ''; margin-right: 3px; color: var(--ink-4); }
.sx-ld b { font-weight: 600; color: var(--ink-2); letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; }
.sx-ld .num { flex: none; }
.sx-lg { position: relative; flex: none; width: 15px; height: 15px; border-radius: 4px; overflow: hidden; display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink-3); font: 700 7px/1 var(--font-ui); letter-spacing: .02em; }
.sx-lg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-lg::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); }
.sx-d { grid-column: 4; grid-row: 2; justify-self: end; display: inline-flex; align-items: center; gap: 4px; padding-right: 2px; font-size: 11px; line-height: 16px; color: var(--ink-3); white-space: nowrap; }
.sx-d em { font-style: normal; font-weight: 500; color: var(--ink-3); margin-right: 1px; }
.sx-d i { width: 7px; height: 6px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sx-d.dn i { transform: rotate(180deg); }
.sx-d.flat i { height: 1.5px; clip-path: none; }
.sx-d .num { color: var(--ink-2); }
.sx-d.faint .num { color: inherit; }
.sx-d.hot .num { color: inherit; text-shadow: 0 0 10px color-mix(in srgb, currentColor var(--gl), transparent); }

/* the fold between the strongest and the weakest doubles as the "every sector" toggle */
.sx-fold { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 4px 2px 0; }
.sx-fold::before, .sx-fold::after { content: ''; flex: 1 1 0; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 3px, transparent 3px 6px); }
.sx-more { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink-2); font: 600 11px/1 var(--font-ui); letter-spacing: .02em; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; }
.sx-more:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface-3); }
.sx-more .ic { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.sx-more[aria-expanded=true] .ic { transform: rotate(180deg); }

/* wide slot (single-column tablet): one line per sector */
@container (min-width: 560px) {
  .sx-list { grid-template-columns: 24px minmax(78px, max-content) minmax(72px, 1fr) max-content minmax(max-content, 1.4fr) max-content max-content; column-gap: 14px; }
  .sx-r { grid-template-rows: 26px; padding: 6px 10px 6px 8px; }
  .sx-rk { grid-row: 1; }
  .sx-ln { display: contents; font-size: 11.5px; }
  .sx-ln > * { grid-row: 1; }
  .sx-ct { grid-column: 4; justify-self: end; }
  .sx-ld { grid-column: 5; }
  .sx-ld::before { content: none; }
  .sx-d { grid-column: 6; grid-row: 1; }
  .sx-pc { grid-column: 7; }
  .sx-fp { grid-template-rows: 150px 20px; }
}
@supports not (grid-template-columns: subgrid) { @container (min-width: 560px) { .sx-r { grid-template-columns: 24px 96px minmax(72px, 1fr) 52px 128px 64px 76px; column-gap: 14px; } } }
/* narrow slots (phones 343px; a 1181px viewport leaves ~250px) */
@container (max-width: 360px) {
  .sx-top, .sx-fw { padding-inline: 14px; }
  .sx-list { padding: 2px 8px 10px; column-gap: 8px; }
  .sx-cnt b { font-size: 22px; }
  .sx-cnt i { font-size: 9.5px; }
}
@container (max-width: 300px) {
  .sx-cnt em, .sx-d em, .sx-ld::before, .sx-avg, .sx-tag { display: none; }
  .sx-fp { grid-template-columns: minmax(0, 1fr); }
  .sx-thr, .sx-lbs { display: none; }
  .sx-list { grid-template-columns: 22px minmax(70px, max-content) minmax(0, 1fr) max-content; }
  .sx-pc { padding: 4px 6px; font-size: 13px; }
}

/* motion: always on, as in the terminal (ui.css's reduced-motion clamp is overridden on purpose), apart
   from what only means something live (the live dot, a value's tick, the 15m arrows, row entrances).
   The --ph-* phases come from the wall clock (home.js), so a minute redraw doesn't restart a loop. */
.sx-hi .fl { animation: sxFlow 5s linear calc(var(--ph-flow, 0s) - var(--o, 0s)) infinite !important; }
@keyframes sxFlow { 0% { stroke-dashoffset: 16; opacity: 0; } 4%, 55% { opacity: 1; } 75%, 100% { stroke-dashoffset: -1400; opacity: 0; } }
.sx-org::after { animation: sxRing 2.6s ease-out var(--ph-ring, 0s) infinite !important; }
@keyframes sxRing { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.sx-flow.enter .sx-fib path, .sx-flow.enter .sx-hi .ln, .sx-flow.enter .sx-hi .gl { stroke-dasharray: 1600; animation: sxDraw 1.2s var(--ease) both !important; }
.sx-flow.enter .sx-end, .sx-flow.enter .sx-lb, .sx-flow.enter .sx-thr path { animation: sxFade .5s .7s var(--ease) both !important; }
@keyframes sxDraw { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }
@keyframes sxFade { from { opacity: 0; } }
.sx.live .dot.live { animation-duration: 1.8s !important; animation-delay: var(--ph-dot, 0s) !important; }
.sx.live .sx-r.in { animation: sxIn .55s var(--ease) calc(var(--i, 0) * 45ms) both !important; }
@keyframes sxIn { from { opacity: 0; transform: translateY(5px); } }
.sx.live .sx-d.hot i { animation: sxUp 2.6s ease-in-out var(--ph-arrow, 0s) infinite !important; }
.sx.live .sx-d.hot.dn i { animation-name: sxDn !important; }
@keyframes sxUp { 50% { transform: translateY(-1.5px); } }
@keyframes sxDn { 50% { transform: rotate(180deg) translateY(-1.5px); } }
.sx.live .tk { animation: sxTk 1.1s ease-out !important; }
@keyframes sxTk { from { opacity: .3; } }

@media (max-width: 1180px) {
  .home { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mkt" "side" "lower"; grid-template-rows: none; }
  .home-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-side .shortcuts { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-side { align-items: start; }
}
@media (max-width: 900px) {
  .mh-top { padding: 16px 16px 8px; }
  .mh-picks { grid-template-columns: minmax(0, 1fr); }
  .picks + .picks { border-left: 0; border-top: 1px solid var(--line); }
  .home-side { grid-template-columns: minmax(0, 1fr); }
  .home-side .shortcuts { grid-template-columns: 1fr 1fr; }
  .home-lower { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .topbar .actions .btn.primary span { display: none; }
  .topbar .actions .btn.primary { width: 38px; padding: 0; }
}
@media (max-width: 420px) {
  .upd a { grid-template-columns: minmax(0, 1fr) auto; }
  .upd .chip { grid-column: 1 / -1; }
}

/* community highlight thumbnail (posts always carry an image) */
.post .pb { flex: 1; min-width: 0; }
.pthumb { position: relative; flex: none; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--surface-3); align-self: center; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.pthumb em { position: absolute; right: 5px; bottom: 5px; font-style: normal; font: 700 10.5px var(--font-num); color: #fff; background: rgba(8, 11, 18, .66); padding: 2px 6px; border-radius: 99px; backdrop-filter: blur(4px); }

/* ---------- a locked preview: the sample market and sector flow as members see them, every name blurred (figures:
   OB.blurFigures, app.css) ---------- */
.home.locked .pick .tkr, .home.locked .pick .nm em, .home.locked .pick .lg, .home.locked .sx-nm b, .home.locked .sx-ld b,
.home.locked .sx-lg, .home.locked .sx-lb b { -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 max(.7em, 6px) currentColor, 0 0 max(.7em, 6px) currentColor, 0 0 max(.7em, 6px) currentColor !important; }
/* the lesson card: its thumbnail as members see it, a lock where the play button would be */
.side-card.learn.locked .play { color: var(--ink-2); }
.side-card.learn.locked .play .ic { width: 14px; height: 14px; margin: 0; }
