/* ── Grok Sources view — "The Narrative Desk" ─────────────────────────
   Three columns: briefing (left), evidence tape (center), telemetry
   (right). Côte d'Azur Midnight ink: teal/crimson strictly for
   sentiment sign, champagne reserved for the few luxury moments
   (needle, divider threads, narrative, posture line). Rounded chips
   ring via inset box-shadow, never 1px borders. */
.sources-view{
  position:absolute;inset:0;display:flex;
  font-family:var(--font-sans);
  /* The house 48px ivory square grid — same texture as the welcome
     page + command center. Panels float over it as frosted glass.
     Base color matches the chart page's price panel (.charts #09090b). */
  background-color:var(--chart-bg);
  background-image:
    linear-gradient(color-mix(in srgb, var(--text-primary) 3.5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text-primary) 3.5%, transparent) 1px, transparent 1px);
  background-size:60px 60px;
}
.sources-view.hidden{display:none;}

/* Calm staggered entrance — every time the user opens Sources */
@keyframes sxFadeUp{
  0%{opacity:0;transform:translateY(10px);}
  100%{opacity:1;transform:translateY(0);}
}
@keyframes sxFadeIn{
  0%{opacity:0;}
  100%{opacity:1;}
}
.sources-view.sx-enter .sx-left,
.sources-view.sx-enter .sx-main{
  animation:sxFadeIn 0.5s ease both;
}
.sources-view.sx-enter .sx-left{animation-delay:0s;}
.sources-view.sx-enter .sx-main{animation-delay:0.08s;}
.sources-view.sx-enter .sx-aside-inner > *,
.sources-view.sx-enter .sx-feed > *{
  animation:sxFadeUp 0.65s var(--ease-out) both;
}
.sources-view.sx-enter .sx-aside-inner > *:nth-child(1){animation-delay:0.10s;}
.sources-view.sx-enter .sx-aside-inner > *:nth-child(2){animation-delay:0.14s;}
.sources-view.sx-enter .sx-aside-inner > *:nth-child(3){animation-delay:0.18s;}
.sources-view.sx-enter .sx-aside-inner > *:nth-child(4){animation-delay:0.22s;}
.sources-view.sx-enter .sx-aside-inner > *:nth-child(5){animation-delay:0.26s;}
.sources-view.sx-enter .sx-aside-inner > *:nth-child(6){animation-delay:0.30s;}
.sources-view.sx-enter .sx-aside-inner > *:nth-child(7){animation-delay:0.34s;}
.sources-view.sx-enter .sx-aside-inner > *:nth-child(8){animation-delay:0.38s;}
.sources-view.sx-enter .sx-aside-inner > *:nth-child(9){animation-delay:0.42s;}
.sources-view.sx-enter .sx-feed > *:nth-child(1){animation-delay:0.28s;}
.sources-view.sx-enter .sx-feed > *:nth-child(2){animation-delay:0.34s;}
.sources-view.sx-enter .sx-feed > *:nth-child(3){animation-delay:0.40s;}
.sources-view.sx-enter .sx-feed > *:nth-child(n+4){animation-delay:0.46s;}

@media (prefers-reduced-motion: reduce){
  .sources-view *,
  .sources-view *::before,
  .sources-view *::after{animation:none !important;transition:none !important;}
}

/* Custom aesthetic scrollbars (only inside Sources view) */
.sources-view *::-webkit-scrollbar{width:0.375rem;height:0.375rem;}
.sources-view *::-webkit-scrollbar-track{background:transparent;}
.sources-view *::-webkit-scrollbar-thumb{
  background:var(--border-default);border-radius:0.25rem;
  transition:background .18s ease;
}
.sources-view *::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb, var(--accent) 40%, transparent);}
.sources-view{scrollbar-width:thin;scrollbar-color:color-mix(in srgb, var(--accent) 22%, transparent) transparent;}

/* App-wide slim scrollbar for the panel scroll wells that were still
   showing the default OS bar (sentiment settings, trade ticket, GRAPHS
   modal, command center activity feed, wallet, health panel, saved chart layouts).
   Same language as the Key Stats dock: transparent gutter, soft padded
   thumb that wakes on hover. */
.trade-scroll,.gtb-modal-body,.cc-activity-feed,
.pf-scroll,.health-panel-inner,.mcl-saved,.wl-scroll,.stock-list,.rs-scroll{
  scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent;
}
.trade-scroll::-webkit-scrollbar,
.gtb-modal-body::-webkit-scrollbar,
.cc-activity-feed::-webkit-scrollbar,.pf-scroll::-webkit-scrollbar,
.health-panel-inner::-webkit-scrollbar,.mcl-saved::-webkit-scrollbar,
.wl-scroll::-webkit-scrollbar,.stock-list::-webkit-scrollbar,
.rs-scroll::-webkit-scrollbar{
  width:8px;height:8px;
}
.trade-scroll::-webkit-scrollbar-track,
.gtb-modal-body::-webkit-scrollbar-track,
.cc-activity-feed::-webkit-scrollbar-track,.pf-scroll::-webkit-scrollbar-track,
.health-panel-inner::-webkit-scrollbar-track,.mcl-saved::-webkit-scrollbar-track,
.wl-scroll::-webkit-scrollbar-track,.stock-list::-webkit-scrollbar-track,
.rs-scroll::-webkit-scrollbar-track{
  background:transparent;
}
.trade-scroll::-webkit-scrollbar-thumb,
.gtb-modal-body::-webkit-scrollbar-thumb,
.cc-activity-feed::-webkit-scrollbar-thumb,.pf-scroll::-webkit-scrollbar-thumb,
.health-panel-inner::-webkit-scrollbar-thumb,.mcl-saved::-webkit-scrollbar-thumb,
.wl-scroll::-webkit-scrollbar-thumb,.stock-list::-webkit-scrollbar-thumb,
.rs-scroll::-webkit-scrollbar-thumb{
  background:var(--border-default);border-radius:99px;
  border:2px solid var(--bg-secondary);background-clip:padding-box;
}
.trade-scroll::-webkit-scrollbar-thumb:hover,
.gtb-modal-body::-webkit-scrollbar-thumb:hover,
.cc-activity-feed::-webkit-scrollbar-thumb:hover,.pf-scroll::-webkit-scrollbar-thumb:hover,
.health-panel-inner::-webkit-scrollbar-thumb:hover,.mcl-saved::-webkit-scrollbar-thumb:hover,
.wl-scroll::-webkit-scrollbar-thumb:hover,.stock-list::-webkit-scrollbar-thumb:hover,
.rs-scroll::-webkit-scrollbar-thumb:hover{
  background:var(--text-xmuted);
  border:2px solid var(--bg-secondary);background-clip:padding-box;
}
/* The sidebar is a gradient (--bg-primary → --bg-sink), not a flat
   --bg-secondary, so the thumb's fake-padding border would halo against it.
   background-clip:padding-box already keeps the border area unpainted, so a
   transparent border gives the same inset with the sidebar showing through. */
.wl-scroll::-webkit-scrollbar-thumb,
.wl-scroll::-webkit-scrollbar-thumb:hover,
.stock-list::-webkit-scrollbar-thumb,
.stock-list::-webkit-scrollbar-thumb:hover,
.rs-scroll::-webkit-scrollbar-thumb,
.rs-scroll::-webkit-scrollbar-thumb:hover{border-color:transparent;}

/* Sticky asides */
.sx-aside{
  flex-shrink:0;
  overflow-y:auto;
  position:relative;
}
/* Side panels float as frosted glass — translucent navy so the grid
   reads through them, softened by the backdrop blur. */
.sx-left{
  width:17.5rem;
  border-right:1px solid var(--border-default);
  background:
    radial-gradient(ellipse at top left, color-mix(in srgb, var(--accent) 5%, transparent), transparent 55%),
    color-mix(in srgb, var(--bg-secondary) 60%, transparent);
  backdrop-filter:blur(16px) saturate(120%);
  -webkit-backdrop-filter:blur(16px) saturate(120%);
}
.sx-aside-inner{padding:2.625rem 1.625rem 2.25rem;}
/* Pull the left aside up so its content meets the floating view dropdown
   at the top instead of leaving a dead band above "X NARRATIVE". */
.sx-left .sx-aside-inner{padding-top:0.875rem;}
.sx-eyebrow{
  display:flex;align-items:center;gap:0.5625rem;
  font-family:var(--font-display);
  font-size:max(0.6875rem, var(--fs-floor));font-weight:600;letter-spacing:var(--tr-caps);
  color:var(--text-muted);text-transform:uppercase;margin-bottom:1.125rem;
}
.sx-eyebrow-pulse{
  width:0.375rem;height:0.375rem;border-radius:50%;
  background:var(--accent);box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  animation:sxPulse 2.4s ease-out infinite;
}
@keyframes sxPulse{
  0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);}
  70%{box-shadow:0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent);}
  100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);}
}
.sx-symbol{
  font-family:var(--font-display);font-size:2.25rem;font-weight:700;
  letter-spacing:var(--tr-display);line-height:1;margin-bottom:1.75rem;
  background:linear-gradient(180deg,var(--text-bright) 0%,var(--text-secondary) 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;
}
/* Section eyebrow — just the small-caps label, no rule (the old fading
   champagne hairline was removed). */
.sx-divider{
  display:flex;align-items:center;gap:0.75rem;margin:1.875rem 0 1rem;
}
.sx-divider span{
  font-family:var(--font-display);
  font-size:max(0.625rem, var(--fs-floor));font-weight:600;letter-spacing:var(--tr-caps);
  color:var(--text-xmuted);text-transform:uppercase;flex-shrink:0;
}

/* Posture gauge — hairline track, sign-tinted poles, champagne needle */
.sx-meter{margin-bottom:1.5rem;padding:0 0.25rem;}
.sx-meter-track{
  position:relative;height:0.1875rem;border-radius:1px;
  background:linear-gradient(90deg,color-mix(in srgb, var(--red) 16%, transparent) 0%,color-mix(in srgb, var(--text-primary) 4%, transparent) 50%,color-mix(in srgb, var(--green) 16%, transparent) 100%);
}
.sx-meter-mid{
  position:absolute;left:50%;top:-0.1875rem;bottom:-0.1875rem;width:1px;
  background:var(--border-strong);transform:translateX(-50%);pointer-events:none;
}
.sx-meter-fill{
  position:absolute;top:0;bottom:0;border-radius:1px;
  transition:left .55s var(--ease-out),width .55s var(--ease-out),background .35s ease;
}
.sx-meter-fill.pos{
  background:linear-gradient(90deg,color-mix(in srgb, var(--green) 18%, transparent),var(--green));
  box-shadow:0 0 14px color-mix(in srgb, var(--green) 35%, transparent);
}
.sx-meter-fill.neg{
  background:linear-gradient(90deg,var(--red),color-mix(in srgb, var(--red) 18%, transparent));
  box-shadow:0 0 14px color-mix(in srgb, var(--red) 35%, transparent);
}
.sx-meter-fill.neu{background:color-mix(in srgb, var(--neut) 35%, transparent);}
/* Needle colour tracks the posture value (red ↔ gray ↔ green); --needle /
   --needle-glow are set inline per animation frame in _animatePosture. */
.sx-meter-needle{
  position:absolute;top:-0.4375rem;width:2px;height:1.0625rem;border-radius:1px;
  background:var(--needle, var(--champagne));
  box-shadow:0 0 12px var(--needle-glow, color-mix(in srgb, var(--champagne) 55%, transparent)),0 0 3px var(--needle-glow, color-mix(in srgb, var(--champagne) 80%, transparent));
  transform:translateX(-50%);
  transition:left .55s var(--ease-out);
  pointer-events:none;
}
.sx-meter-needle::before{
  content:'';position:absolute;top:-0.25rem;left:50%;
  width:0.375rem;height:0.375rem;border-radius:50%;
  background:var(--needle, var(--champagne));transform:translateX(-50%);
  box-shadow:0 0 10px var(--needle-glow, color-mix(in srgb, var(--champagne) 60%, transparent));
}
.sx-meter-scale{
  display:flex;justify-content:space-between;margin-top:0.875rem;padding:0 2px;
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));color:var(--text-xmuted);
  letter-spacing:var(--tr-caps);font-weight:600;
}
.sx-meter-scale span:nth-child(2){color:var(--border-strong);letter-spacing:0;}

@keyframes sxPostureIn{
  0%{opacity:0;transform:translateY(6px);}
  100%{opacity:1;transform:translateY(0);}
}
.sx-posture-row{
  display:flex;align-items:baseline;gap:0.875rem;margin-bottom:0;
  padding-top:0.25rem;
}
.sx-posture-num{
  font-family:var(--font-mono);font-size:2rem;font-weight:300;
  font-variant-numeric:tabular-nums;
  color:var(--text-primary);letter-spacing:-0.04em;line-height:1;
  animation:sxPostureIn .6s var(--ease-out) both;
  transition:color .35s ease,text-shadow .35s ease;
}
.sx-posture-num.pos{color:var(--green);text-shadow:0 0 28px color-mix(in srgb, var(--green) 35%, transparent),0 0 8px color-mix(in srgb, var(--green) 12%, transparent);}
.sx-posture-num.neg{color:var(--red);text-shadow:0 0 28px color-mix(in srgb, var(--red) 35%, transparent),0 0 8px color-mix(in srgb, var(--red) 12%, transparent);}
.sx-posture-label{
  font-family:var(--font-display);
  font-size:max(0.6875rem, var(--fs-floor));font-weight:600;color:var(--text-muted);
  text-transform:uppercase;letter-spacing:var(--tr-caps);
  animation:sxPostureIn .6s var(--ease-out) both;
  animation-delay:.05s;
}

/* Center column — the evidence tape */
.sx-main{flex:1;overflow-y:auto;min-width:0;container:sxmain / inline-size;}
.sx-feed{
  padding:1.75rem 1.25rem 5rem;display:flex;flex-direction:column;gap:1.25rem;
}

/* ── Sentiment-over-time number-dot chart (above the timeline) ──── */
/* Mirror the timeline structure (full-width wrapper > centered max-width track
   > content box) so each dot lines up vertically with the rail node below it.
   max-width + margin:auto must NOT sit on the flex item directly — auto margins
   disable flex stretch and collapse it. */
.sx-chart{width:100%;}
.sx-chart-track{max-width:40rem;margin:0 auto;padding:0 1.4rem;}
.sx-chart-inner{position:relative;height:11rem;}
.sx-chart-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;}
/* Reference gridlines: faint at ±1, mid at ±0.5, a touch stronger at 0. */
.sx-chart-grid{stroke:color-mix(in srgb, var(--text-primary) 5%, transparent);stroke-width:1;}
.sx-chart-grid.is-zero{stroke:color-mix(in srgb, var(--text-primary) 12%, transparent);}
.sx-chart-grid.is-bound{stroke:color-mix(in srgb, var(--text-primary) 4%, transparent);}
.sx-chart-axis{
  position:absolute;left:0;transform:translateY(-50%);
  font-family:var(--font-mono);font-size:max(0.5rem, var(--fs-floor));font-weight:500;
  color:var(--text-xmuted);opacity:0.6;pointer-events:none;
  font-variant-numeric:tabular-nums;letter-spacing:-0.02em;
}
.sx-chart-path{
  fill:none;stroke:color-mix(in srgb, var(--text-secondary) 35%, transparent);stroke-width:1.5;
  stroke-dasharray:4 4;stroke-linecap:round;stroke-linejoin:round;
}
/* Number dots — the score printed inside, sign-tinted glass; click to select. */
.sx-chart-dot{
  position:absolute;transform:translate(-50%,-50%);
  -webkit-appearance:none;appearance:none;border:0;cursor:pointer;padding:0;
  width:1.75rem;height:1.75rem;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-mono);font-size:max(0.6rem, var(--fs-floor));font-weight:600;
  font-variant-numeric:tabular-nums;letter-spacing:-0.02em;line-height:1;
  transition:transform var(--dur) var(--ease-out),box-shadow var(--dur) var(--ease-out),background var(--dur) ease;
}
/* Opaque fill (tint composited over the page base) so the dashed connector
   never shows through the circle; the 3px ring hides it up to the edge too. */
.sx-chart-dot.pos{color:var(--green);
  background:linear-gradient(color-mix(in srgb, var(--green) 16%, transparent),color-mix(in srgb, var(--green) 16%, transparent)),var(--bg-primary);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--green) 45%, transparent),0 0 0 3px var(--bg-primary);}
.sx-chart-dot.neg{color:var(--red);
  background:linear-gradient(color-mix(in srgb, var(--red) 16%, transparent),color-mix(in srgb, var(--red) 16%, transparent)),var(--bg-primary);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--red) 45%, transparent),0 0 0 3px var(--bg-primary);}
.sx-chart-dot.neu{color:var(--text-secondary);
  background:linear-gradient(color-mix(in srgb, var(--neut) 18%, transparent),color-mix(in srgb, var(--neut) 18%, transparent)),var(--bg-primary);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--neut) 45%, transparent),0 0 0 3px var(--bg-primary);}
.sx-chart-dot:hover{transform:translate(-50%,-50%) scale(1.12);}
.sx-chart-dot:focus-visible{outline:none;
  box-shadow:inset 0 0 0 1px currentColor;}
.sx-chart-dot.is-active{
  transform:translate(-50%,-50%) scale(1.16);
  /* 5px opaque base sits UNDER the champagne band so the dashed connector is
     masked beneath the whole highlight ring (no line showing through). */
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 25%, transparent),0 0 0 3px var(--bg-primary),
             0 0 0 5px var(--champagne-ring),0 0 0 5px var(--bg-primary),
             0 0 12px 1px color-mix(in srgb, var(--champagne) 30%, transparent);
}

/* Window note — appears only when the API returned more runs than the 7-run
   window draws, so the dot chart never silently implies it is the whole
   history. Same centred track width as the chart above it. */
.sx-window-note{
  width:100%;max-width:40rem;margin:0.35rem auto -0.4rem;padding:0 1.4rem;
  font-family:var(--font-display);font-size:max(0.5625rem, var(--fs-floor));font-weight:600;
  letter-spacing:var(--tr-caps);text-transform:uppercase;
  color:var(--text-xmuted);text-align:center;
}

/* ── Call timeline (vertical) — "now" + newest call at the top, older calls
   below. Posture-tinted dots ride a hairline rail down the left edge; each
   call's clock time over its trigger reason sits to the right of its dot. A
   champagne trail rises from the oldest call (bottom) up to the selected call. */
.sx-timeline{width:100%;}
.sx-tl-track{
  position:relative;display:flex;flex-direction:column;padding:0.25rem 0;
  --day-w:3.6rem;   /* left gutter that holds each day's date label */
}
/* Date label for the first (newest) call of each calendar day — sits in the
   left gutter, centred on its dot. Timeline content is shifted right by
   --day-w to make room for it. */
.sx-tl-daytag{
  position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:calc(var(--day-w) - 0.85rem);text-align:right;white-space:nowrap;
  font-family:var(--font-display);font-size:max(0.5625rem, var(--fs-floor));font-weight:600;line-height:1.15;
  letter-spacing:var(--tr-caps);text-transform:uppercase;color:var(--text-muted);
  pointer-events:none;
}
/* Each node is a fixed-height row; the time since the previous (older) call
   is encoded as extra margin above it (--gap, set inline, log-compressed in
   JS). align-items:center keeps the dot centred, so the connector geometry
   below stays exact regardless of the gap. */
.sx-tl-node{
  position:relative;display:flex;align-items:center;gap:1.1rem;
  width:100%;min-height:2.4rem;padding-left:var(--day-w);margin-top:var(--gap,0rem);text-align:left;
  -webkit-appearance:none;appearance:none;border:0;background:none;cursor:pointer;
  --dot:var(--text-muted);
}
.sx-tl-node:first-of-type{margin-top:0;}   /* topmost call sits under "now" */
.sx-tl-node.pos{--dot:var(--green);}
.sx-tl-node.neg{--dot:var(--red);}
.sx-tl-node.neu{--dot:var(--text-muted);}
/* vertical rail segment from the dot above down to this dot; the 0.7rem dot
   sits flush-left so its centre is 0.35rem in — the rail rides that column.
   Height = this node (100%) + the gap margin above it, so it bridges the
   full centre-to-centre distance to the previous dot. */
.sx-tl-node::before{
  content:'';position:absolute;z-index:0;left:calc(var(--day-w) + 0.35rem);bottom:50%;
  width:2px;height:calc(100% + var(--gap,0rem));border-radius:2px;transform:translateX(-50%);
  background:color-mix(in srgb, var(--text-primary) 12%, transparent);
  transition:background var(--dur) var(--ease-out);
}
.sx-tl-node:first-of-type::before{display:none;}
.sx-tl-node.is-passed::before{background:var(--champagne);}
/* Day boundary — the connector crossing into a new day is dashed, giving the
   illusion of separate days without a hard horizontal divider. */
.sx-tl-node.is-newday::before{
  background:repeating-linear-gradient(to bottom,
    color-mix(in srgb, var(--text-primary) 34%, transparent) 0 3px, transparent 3px 7px);
}
.sx-tl-node.is-newday.is-passed::before{
  background:repeating-linear-gradient(to bottom,
    var(--champagne) 0 3px, transparent 3px 7px);
}
.sx-tl-dot{
  position:relative;z-index:1;flex:none;
  width:0.7rem;height:0.7rem;border-radius:50%;background:var(--dot);
  box-shadow:0 0 0 2px var(--bg-primary);
  transition:transform var(--dur) var(--ease-out),box-shadow var(--dur) var(--ease-out);
}
/* labels to the right of the dot: clock time over the call reason */
.sx-tl-meta{
  display:flex;flex-direction:column;align-items:flex-start;gap:0.1rem;
  min-width:0;text-align:left;line-height:1.2;pointer-events:none;
}
.sx-tl-time{
  font-family:var(--font-mono);font-size:0.75rem;font-weight:500;
  color:var(--text-secondary);white-space:nowrap;
  font-variant-numeric:tabular-nums;letter-spacing:-0.01em;
}
.sx-tl-reason{
  font-family:var(--font-display);font-size:max(0.5625rem, var(--fs-floor));font-weight:600;line-height:1.25;
  letter-spacing:var(--tr-caps);text-transform:uppercase;color:var(--text-xmuted);
}
.sx-tl-node:hover .sx-tl-dot{transform:scale(1.18);}
.sx-tl-node:hover .sx-tl-time{color:var(--text-primary);}
.sx-tl-node:focus-visible{outline:none;}
.sx-tl-node:focus-visible .sx-tl-dot{box-shadow:inset 0 0 0 1px var(--accent);}
.sx-tl-node.is-active .sx-tl-dot{
  transform:scale(1.35);
  box-shadow:0 0 0 2px var(--bg-primary),0 0 0 4px var(--champagne-ring),0 0 7px 1px var(--dot);
}
.sx-tl-node.is-active .sx-tl-time{color:var(--text-primary);font-weight:600;}
.sx-tl-node.is-active .sx-tl-reason{color:var(--champagne);}
/* "now" — present-moment marker at the top of the rail, aligned over the call
   column (offset past the day-label gutter). */
.sx-tl-nowrow{padding-left:var(--day-w);margin-bottom:0.5rem;}
.sx-tl-now{
  pointer-events:none;
  font-family:var(--font-display);font-size:max(0.5rem, var(--fs-floor));font-weight:600;
  letter-spacing:var(--tr-caps);text-transform:uppercase;color:var(--text-xmuted);
}
/* dense (>8 calls): tighten the row height; the rail scrolls so every label
   stays visible (nothing is hidden). Time-gap spacing still applies on top. */
.sx-tl-track.is-dense .sx-tl-node{min-height:2rem;}

/* Timeline body — lives in the left narrative panel, under the sentiment
   meter (same panel, not its own column). */
.sx-rail-body{margin-top:0.25rem;}

/* ── Selected-call panel (centered, below the timeline) ──── */
.sx-feed-panel{
  width:100%;max-width:40rem;margin:0 auto;
  transition:opacity .36s var(--ease-out),transform .36s var(--ease-out);
}
.sx-feed-panel.is-entering{opacity:0;transform:translateY(12px);}
.sx-feed-head{
  display:flex;align-items:center;flex-wrap:wrap;gap:0.6rem;
  margin-bottom:1.125rem;padding-bottom:0.875rem;
  border-bottom:1px solid var(--border-subtle);
}
/* Responsive: scale the chart down as the centre column narrows. */
@container sxmain (max-width: 560px){
  .sx-chart-track{padding-left:1rem;padding-right:1rem;}
}
@container sxmain (max-width: 440px){
  .sx-chart-track{padding-left:0.65rem;padding-right:0.65rem;}
  .sx-chart-inner{height:8.5rem;}
  .sx-chart-dot{width:1.55rem;height:1.55rem;font-size:max(0.55rem, var(--fs-floor));}
}
@media (prefers-reduced-motion: reduce){
  .sx-tl-dot,.sx-tl-node::before,.sx-feed-panel{transition:none;}
  .sx-feed-panel.is-entering{transform:none;}
}
.sx-empty{
  padding:5rem 2rem;text-align:center;font-size:0.875rem;color:var(--text-muted);line-height:1.7;
}

/* Call group — one Grok call: header bar + its evidence cards.
   Capped width, centered: a readable editorial column on wide screens. */
.sx-call{
  display:flex;flex-direction:column;gap:0.875rem;
  width:100%;max-width:46rem;margin:0 auto;
}
.sx-call:not(:first-child){
  border-top:1px solid var(--border-subtle);
  padding-top:2.125rem;
}
.sx-call-dot{
  display:inline-block;width:0.5rem;height:0.5rem;border-radius:50%;
  background:var(--neut);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--neut) 10%, transparent);
}
.sx-call-dot.pos{background:var(--green);box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent);}
.sx-call-dot.neg{background:var(--red);box-shadow:0 0 0 3px color-mix(in srgb, var(--red) 14%, transparent);}
.sx-call-time{
  font-family:var(--font-mono);color:var(--text-secondary);font-size:0.8125rem;
  font-variant-numeric:tabular-nums;
}
.sx-call-trigger{
  font-family:var(--font-display);
  font-size:max(0.625rem, var(--fs-floor));letter-spacing:var(--tr-caps);text-transform:uppercase;font-weight:600;
  padding:0.1875rem 0.5625rem;border-radius:var(--radius-sm);
  background:color-mix(in srgb, var(--text-primary) 3%, transparent);color:var(--text-muted);
  box-shadow:inset 0 0 0 1px var(--border-default);
}
.sx-call-posture{
  margin-left:auto;font-family:var(--font-mono);font-weight:700;font-size:0.875rem;
  font-variant-numeric:tabular-nums;
}
.sx-call-posture.pos{color:var(--green);}
.sx-call-posture.neg{color:var(--red);}
.sx-call-posture.neu{color:var(--text-muted);}

/* Evidence cards — the X posts behind a call */
.sx-posts{display:flex;flex-direction:column;gap:0.625rem;}
.sx-post{
  position:relative;display:block;text-decoration:none;color:inherit;
  padding:1.375rem 1.5rem;
  /* Solid card — fully opaque, no backdrop blur. The grid behind never
     reads through it. */
  background:var(--bg-tertiary);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 8%, transparent);
  border-radius:1.25rem;
  cursor:default;
  transition:transform var(--dur) var(--ease-out),background var(--dur) ease,box-shadow var(--dur) ease;
}
.sx-post:hover{
  transform:translateY(-1px);
  background:var(--bg-elevated);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent),var(--shadow-rail);
}
.sx-post:focus-visible{
  outline:none;
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
.sx-post-head{
  display:flex;align-items:center;gap:0.75rem;margin-bottom:0.875rem;
}
/* Avatar disc — the author's real profile picture once /api/x-media resolves,
   a deterministic jewel-tone monogram until then (or if the image 404s).
   The faint outer ring echoes the social-card's ring-2 avatar. */
.sx-avatar{
  position:relative;overflow:hidden;
  width:2.5rem;height:2.5rem;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--bg-elevated),var(--bg-tertiary));
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 10%, transparent),
             0 0 0 2px color-mix(in srgb, var(--text-primary) 5%, transparent);
}
.sx-avatar-mono{
  font-family:var(--font-display);font-size:0.95rem;font-weight:600;
  color:var(--av,var(--avatar-2));transition:opacity .25s ease;
}
.sx-avatar-img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;transition:opacity .35s ease;
}
.sx-avatar.has-img .sx-avatar-img{opacity:1;}
.sx-avatar.has-img .sx-avatar-mono{opacity:0;}
.sx-post-id{display:flex;flex-direction:column;line-height:1.3;min-width:0;flex:1 1 auto;}
.sx-post-author{
  display:flex;align-items:center;gap:0.3rem;min-width:0;
  font-weight:600;color:var(--text-primary);
  font-family:var(--font-sans);font-size:0.875rem;
}
.sx-author-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sx-verified{flex-shrink:0;display:inline-flex;color:var(--brand-x);}
.sx-verified svg{width:0.875rem;height:0.875rem;display:block;}
.sx-post-handle{
  display:flex;align-items:center;gap:0.3rem;min-width:0;
  color:var(--text-muted);font-size:0.75rem;
}
.sx-handle-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sx-mid-dot{opacity:0.6;flex-shrink:0;}
.sx-post-age{flex-shrink:0;color:var(--text-xmuted);}
.sx-post-text{
  font-size:0.875rem;line-height:1.65;color:var(--text-primary);
  white-space:pre-wrap;word-break:break-word;
}
/* Media — live X thumbnails; photos full-width, videos play inline */
.sx-post-media{
  display:flex;flex-direction:column;gap:0.625rem;margin-top:0.75rem;
}
.sx-media-cell{
  position:relative;overflow:hidden;width:100%;
  border-radius:0.875rem;
  background:color-mix(in srgb, var(--bg-primary) 50%, transparent);
  /* inset ring, not a 1px border — avoids the headless bowtie render trap */
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 8%, transparent),
             var(--shadow-lift);
  transition:box-shadow .3s ease;
}
.sx-media-thumb{display:block;width:100%;}
/* Photos: whole image at full width, height capped so portrait stays sane */
.sx-media-cell.is-photo .sx-media-thumb{
  height:auto;max-height:30rem;object-fit:cover;
  transition:transform .5s cubic-bezier(.4,0,.2,1);
}
.sx-media-cell.is-photo:hover .sx-media-thumb{transform:scale(1.03);}
/* Videos: cinematic 16:9 frame; poster covers, the clip plays letterboxed */
.sx-media-cell.is-video{aspect-ratio:16/9;cursor:pointer;}
.sx-media-cell.is-video .sx-media-thumb{
  height:100%;object-fit:cover;
  transition:transform .5s cubic-bezier(.4,0,.2,1);
}
.sx-media-cell.is-video::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to top, var(--scrim-black), transparent 50%);
  transition:opacity .3s ease;
}
.sx-media-cell.playing{cursor:default;}
.sx-media-cell.playing::after{opacity:0;}
.sx-media-video{display:block;width:100%;height:100%;object-fit:contain;background:var(--media-bg);}
/* Play button — a real <button>, reset down to the glass disc */
.sx-media-play{
  position:absolute;inset:0;margin:auto;z-index:1;
  -webkit-appearance:none;appearance:none;border:0;padding:0;cursor:pointer;
  width:3.5rem;height:3.5rem;border-radius:50%;
  background:color-mix(in srgb, var(--bg-primary) 42%, transparent);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--text-primary) 88%, transparent),
             var(--shadow-lift);
  display:flex;align-items:center;justify-content:center;
  transition:transform .25s ease, background .25s ease;
}
.sx-media-play::before{
  content:"";margin-left:0.24rem;
  border-style:solid;border-width:0.62rem 0 0.62rem 1.05rem;
  border-color:transparent transparent transparent var(--on-accent-bright);
}
.sx-media-cell.is-video:hover{
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 16%, transparent),
             var(--shadow-lift);
}
.sx-media-cell.is-video:hover .sx-media-thumb{transform:scale(1.04);}
.sx-media-cell.is-video:hover .sx-media-play{transform:scale(1.08);background:color-mix(in srgb, var(--bg-primary) 26%, transparent);}
/* Open-on-X — circular icon button at the top-right of the head, mirroring
   the social-card's "more" affordance but doing the useful thing: open the post. */
.sx-post-open{
  flex-shrink:0;align-self:flex-start;
  display:inline-flex;align-items:center;justify-content:center;
  width:2rem;height:2rem;border-radius:50%;text-decoration:none;cursor:pointer;
  color:var(--text-xmuted);
  transition:color .18s ease,background .18s ease,transform .18s ease;
}
.sx-post-open svg{width:0.95rem;height:0.95rem;display:block;}
.sx-post-open:hover{
  color:var(--text-primary);
  background:color-mix(in srgb, var(--text-primary) 6%, transparent);
  transform:translateY(-1px);
}
/* Engagement row — divided from the body. Like / reply / repost cluster on the
   left, views on the right; per-metric hover tints recreate the social-card. */
.sx-post-foot{
  margin-top:1rem;padding-top:0.8rem;
  border-top:1px solid var(--border-subtle);
  display:flex;align-items:center;justify-content:space-between;
  gap:0.75rem;flex-wrap:wrap;row-gap:0.5rem;
}
.sx-eng{display:flex;align-items:center;gap:0.35rem;min-width:0;}
.sx-eng-item{
  -webkit-appearance:none;appearance:none;border:0;background:none;
  display:inline-flex;align-items:center;gap:0.4rem;
  padding:0.3rem 0.55rem;border-radius:999px;
  font-family:var(--font-mono);font-size:0.75rem;font-weight:500;
  font-variant-numeric:tabular-nums;color:var(--text-muted);
  transition:color .18s ease,background .18s ease;
}
.sx-eng-item svg{width:0.95rem;height:0.95rem;opacity:0.9;transition:transform .2s var(--ease-out);}
.sx-eng-n{line-height:1;}
/* Read-only engagement: counts are for viewing only — no hover affordance,
   no pointer cursor, no like toggle. */
.sx-eng-item{cursor:default;}
.sx-eng-item.is-views{color:var(--text-xmuted);}
.sx-no-posts{
  padding:1.125rem 1.25rem;font-size:0.8125rem;color:var(--text-muted);
  background:color-mix(in srgb, var(--text-primary) 1.2%, transparent);
  box-shadow:inset 0 0 0 1px var(--border-subtle);border-radius:var(--radius-sm);
}

/* Add Stock — a centered dashed square holding just the + in the
   rail; morphs into the full-width labelled button as the panel
   flies out. Widths are calc/rem lengths (not %) so they animate. */
/* Sits INSIDE the Watchlist section body, under the rows it adds to (the
   Research header below draws the section's closing line, so no border here). */
/* TWO buttons now (Add Stock + Clear Unlocked, see app.html): a column with a
   gap, so the pair reads as one block of section-level actions instead of two
   unrelated controls. The children keep explicit widths, so `align-items`
   stays at its default and neither button's box changed when this became a
   flex container. */
.add-row{
  width:var(--sidebar-w);
  padding:0.5rem 0.75rem 0.5625rem;
  display:flex;flex-direction:column;gap:0.375rem;
}
.add-row button{
  width:2rem;height:2rem;margin-left:0.25rem;
  background:transparent;
  border:1px dashed color-mix(in srgb, var(--text-primary) 22%, transparent);border-radius:var(--radius);
  color:var(--text-secondary);font-family:var(--font-sans);font-size:max(0.625rem, var(--fs-floor));font-weight:700;
  letter-spacing:0.08em;text-transform:uppercase;
  padding:0;cursor:pointer;
  /* GEOMETRY MORPH 2 of 3 for the rail toggle (--sb-toggle is defined and
     documented in 02-sidebar.css, which loads first). The square→button morph
     stays a layout animation on purpose: the chrome is a 1px DASHED border, so
     scaleX() would stretch the dashes and a clip-path reveal would slice the
     ring's right edge off. It is confined to .add-row's 3-node subtree on a
     fixed-height row, so it dirties no sibling geometry — and .main's push
     (04-header.css) already relayouts the document on every frame of the same
     toggle, so it costs nothing measurable. What it must NOT do is keep its
     own clock: it used to run .3s with NO delay and finished 113-143ms before
     the panel edge did. */
  transition:background .15s var(--ease-out),color .15s var(--ease-out),border-color .15s,
             width var(--sb-toggle),margin-left var(--sb-toggle),
             gap var(--sb-toggle),padding var(--sb-toggle);
  display:flex;align-items:center;justify-content:center;gap:0;
}
:root.sb-open .sidebar .add-row button{
  width:calc(var(--sidebar-w) - 1.5rem);
  margin-left:0;
  gap:0.375rem;
  padding:0 0.75rem;
}
/* The label is the one piece here that MUST keep max-width:0 in the rail: the
   button is a 2rem square with justify-content:center, so a label with width
   would shove the + off the rail's centre line. It rides --sb-toggle with the
   button box it lives in, so the pair still lands with the panel. */
.add-btn-label{
  max-width:0;opacity:0;overflow:hidden;white-space:nowrap;
  transition:max-width var(--sb-toggle), opacity var(--sb-toggle);
}
:root.sb-open .sidebar .add-btn-label{
  max-width:6rem;opacity:1;
  transition:max-width var(--sb-toggle), opacity var(--sb-toggle);
}
.add-row button:hover{
  background:var(--accent-dim);color:var(--accent);border-color:color-mix(in srgb, var(--accent) 40%, transparent);border-style:solid;
}
.add-row button:hover svg{color:var(--accent);}
.add-row button svg{color:var(--text-muted);transition:color .15s var(--ease-out);}

/* ── Clear Unlocked ─────────────────────────────────────────────────────────
   Deliberately NOT a new button style. It is `.add-row button` in full — same
   2rem dashed square in the rail, same width/margin/gap/padding morph, same
   typography, same clocks — because it is the same KIND of thing as Add Stock
   (an action on the list, not on a row) and a second visual language for the
   pair would say otherwise. Everything below is the two-line delta:

   1. The hover swaps accent for --red. Resting state stays identical to Add
      Stock's, so the destructive one is not shouting at you from across the
      sidebar; it only declares itself the moment you reach for it. (The
      confirmation dialog, not the colour, is what actually protects the list.)
   2. The label needs more room. `.add-btn-label`'s expanded cap is 6rem, sized
      for "ADD STOCK"; "CLEAR UNLOCKED" is four characters longer and was
      clipped mid word by the shared `overflow:hidden`. Widened here only, so
      Add Stock's own reveal is untouched — and the rail's `max-width:0` is
      untouched too, so the collapsed square still centres its icon. */
#clear-unlocked-btn:hover{
  background:var(--red-dim);color:var(--red);border-color:color-mix(in srgb, var(--red) 40%, transparent);border-style:solid;
}
#clear-unlocked-btn:hover svg{color:var(--red);}
/* In flight. JS sets [disabled] for the duration of the request, which already
   makes a second click impossible at the event level; this is what says so on
   screen. The hover overrides come after the rule above and match on the same
   id + the attribute, so a pointer resting on the button while it works does
   not light it up as if it were still armed. */
#clear-unlocked-btn[disabled]{opacity:0.5;cursor:default;}
#clear-unlocked-btn[disabled]:hover{
  background:transparent;color:var(--text-secondary);
  border-color:color-mix(in srgb, var(--text-primary) 22%, transparent);border-style:dashed;
}
#clear-unlocked-btn[disabled]:hover svg{color:var(--text-muted);}
:root.sb-open .sidebar #clear-unlocked-btn .add-btn-label{
  max-width:8rem;
  transition:max-width var(--sb-toggle), opacity var(--sb-toggle);
}

/* Symbol search popover — anchored to the RIGHT of #add-btn (left/top set in
   app.js from the button's bounding rect). No backdrop: the app stays visible
   behind it, an outside click or Escape closes it. Speaks the .account-menu /
   .view-menu surface language: flat ink card, a 1px ivory ring painted as an
   INSET box-shadow (rounded 1px borders bowtie in headless captures), a fast
   opacity + translate entrance (transform/opacity only). A direct aside child,
   so it escapes the rail clip in both the expanded and collapsed states. */
.search-pop{
  position:fixed;z-index:500;              /* JS sets left/top from #add-btn */
  width:min(21rem, calc(100vw - 1rem));
  max-height:min(30rem, 70vh);
  display:flex;flex-direction:column;
  padding:1px;                             /* rows sit INSIDE the inset ring */
  border-radius:0.6rem;
  background:var(--bg-primary);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 22%, transparent),
    var(--shadow-lift),
    var(--shadow-modal);
  overflow:hidden;
  opacity:0;
  transform:translateX(-10px) scale(.96);
  transform-origin:left center;
  pointer-events:none;
  /* Base transition = the OUTRO (runs when .open is removed): a quick fade +
     slide back toward the button. The intro gets its own timing below. */
  transition:opacity .12s var(--ease-out), transform .12s var(--ease-out);
}
.search-pop[hidden]{display:none;}
/* Intro: slightly longer than the outro, with a whisper of overshoot so the
   panel pops out of the button instead of drifting in. */
.search-pop.open{
  opacity:1;transform:translateX(0) scale(1);pointer-events:auto;
  transition:opacity .16s var(--ease-out), transform .2s cubic-bezier(.3,1.35,.55,1);
}
@media (prefers-reduced-motion: reduce){
  .search-pop, .search-pop.open{transform:none;transition:opacity .12s ease;}
}
.search-head{
  display:flex;align-items:center;gap:0.5rem;
  padding:0.625rem 0.75rem;
  border-bottom:1px solid color-mix(in srgb, var(--text-primary) 9%, transparent);
}
.search-head svg{color:var(--text-muted);flex-shrink:0;}
.search-head input{
  flex:1;min-width:0;background:none;border:none;outline:none;
  color:var(--text-primary);font-family:var(--font-sans);font-size:0.875rem;font-weight:500;
  caret-color:var(--accent);
}
.search-head input::placeholder{color:var(--text-xmuted);}
.search-close{
  background:none;border:none;color:var(--text-muted);cursor:pointer;
  padding:0.1875rem;border-radius:var(--radius-sm);transition:color .12s ease,background .12s ease;
  display:flex;align-items:center;flex-shrink:0;
}
.search-close:hover{color:var(--text-primary);background:color-mix(in srgb, var(--text-primary) 8%, transparent);}
.search-results{
  flex:1;overflow-y:auto;padding:0.25rem;
  scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent;
}
.search-results::-webkit-scrollbar{width:0.1875rem;}
.search-results::-webkit-scrollbar-thumb{background:var(--border-default);border-radius:2px;}
.sr-item{
  display:flex;align-items:center;gap:0.625rem;
  padding:0.4375rem 0.5rem;border-radius:0.4rem;cursor:pointer;transition:background .1s;
}
.sr-item:hover,.sr-item.active{background:color-mix(in srgb, var(--text-primary) 7%, transparent);}
/* Company logo tile — watchlist .si-logo language, sized to the result row.
   Fixed dimensions so a broken image never shifts the layout: the letter
   fallback drops into the same box. */
.sr-logo{
  width:1.75rem;height:1.75rem;flex:0 0 auto;
  border-radius:0.4375rem;
  background:var(--logo-plate);overflow:hidden;
  box-shadow:0 0 0 0.14rem color-mix(in srgb, var(--text-primary) 90%, transparent), var(--shadow-tile);
  display:flex;align-items:center;justify-content:center;
}
.sr-logo img{width:100%;height:100%;object-fit:cover;transform:scale(1.22);}
.sr-logo.fallback{
  background:var(--bg-elevated);color:var(--text-secondary);
  font-family:var(--font-display);font-weight:700;font-size:0.8125rem;
}
.sr-idcol{display:flex;flex-direction:column;min-width:0;gap:1px;flex:1;}
.sr-sym{font-family:var(--font-display);font-size:0.8125rem;font-weight:700;color:var(--text-primary);line-height:1.2;}
.sr-name{font-size:0.75rem;color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2;}
.sr-meta{display:flex;align-items:center;gap:0.4375rem;flex-shrink:0;}
.sr-type{font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));color:var(--text-muted);padding:2px 0.375rem;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);}
.sr-exch{font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));color:var(--text-muted);}
.sr-empty{padding:1.5rem 1rem;text-align:center;color:var(--text-muted);font-size:0.8125rem;}
.sr-hint{padding:1.25rem 1rem;text-align:center;color:var(--text-muted);font-size:0.8125rem;}
/* Watchlist slot budget line (reserved slots for Screener sync, 2026-10-02). */
.sr-slots{padding:0.5rem 0.875rem;font-size:max(0.75rem, var(--fs-floor));color:var(--text-secondary);font-variant-numeric:tabular-nums;box-shadow:inset 0 1px 0 var(--border-subtle);}
/* Welcome-hero dropdown reuses .sr-item but keeps its symbol/name inline (no
   logo, no idcol) — restore the old fixed symbol column there so the hero
   layout is unchanged. */
.track-stock-results .sr-sym{min-width:4.375rem;}
/* ── Squire free-tier Add panel: the plan gate on a result row ──────────────
   REPLACED the "🔒 Knight" pill + 62%-opacity row (owner call 2026-07-25: the
   pill read as AI slop). What it is now, and why each part:

   • NO pill, NO padlock, NO emoji. The gate is the TIER NAME, set in the micro
     eyebrow this app already uses for every other machine-ish label
     (.sig-tab, .sig-group-label, .cc-signals-lock-cta, .pf-brand .s — mono,
     0.5-0.625rem, 700, uppercase, tracked out). A word in the house type
     belongs to the row; a chip floats on top of it.
   • RIGHT-ALIGNED BEHIND A 1px RULE, at a fixed indent, so consecutive gated
     rows stack their labels into one continuous vertical edge — a ledger
     column, not scattered badges. That rule is what ties the mark to the row's
     typography instead of bolting a glyph onto its right edge.
   • THE ROW DOES NOT DIM. 62% opacity on the whole row said "disabled/broken";
     these tickers are buyable, and the ticker + company name have to stay
     readable to be worth wanting. Only the LOGO desaturates — enough to read as
     "not yours yet" at a glance, with no cost to the text.
   • HOVER/keyboard-active swaps the tier name for "Unlock" IN PLACE and tints
     the rule champagne (the app's money/premium hue, tokens.css). Both words
     share one grid cell, so the swap can never reflow the row however long a
     future tier name is.
   No new hex anywhere: --text-muted / --champagne / --border-default only. */
.sr-tier{
  position:relative;display:grid;align-items:center;
  height:1.25rem;padding-left:0.625rem;margin-left:0.125rem;
  font-family:var(--font-mono);font-size:max(0.5625rem, var(--fs-floor));font-weight:700;
  /* 0.1em, inside this app's micro-eyebrow range (.sig-tab .06 → .pf-brand
     .24) and deliberately tighter than a section header: the label annotates a
     row, it does not title a group. Vercel Geist and GitHub Primer both ban
     text-transform on a row badge outright — overruled here only because
     uppercase letterspaced mono IS the house voice for machine labels (the
     rank tag on the account chip says SQUIRE), and because the mark's register
     is TradingView's `D` data-status letter, not a marketing chip. */
  letter-spacing:0.1em;text-transform:uppercase;line-height:1;
}
/* Both words in the SAME grid cell: the column is sized by the wider of the
   two once, so hover is a pure cross-fade with zero layout work. */
.sr-tier > span{
  grid-area:1/1;text-align:right;white-space:nowrap;
  transition:opacity .12s var(--ease-out);
}
.sr-tier-word{color:var(--text-muted);}
.sr-tier-cta{color:var(--champagne);opacity:0;}
.sr-item.sr-locked:hover .sr-tier-word,
.sr-item.sr-locked.active .sr-tier-word{opacity:0;}
.sr-item.sr-locked:hover .sr-tier-cta,
.sr-item.sr-locked.active .sr-tier-cta{opacity:1;}
/* Logo only — see the note above about not dimming the row. */
.sr-item.sr-locked .sr-logo{opacity:.5;filter:grayscale(1);}
.sr-item.sr-locked:hover .sr-logo,
.sr-item.sr-locked.active .sr-logo{opacity:.72;}

/* The one place the gate is EXPLAINED, for Squires only. Per-row marks say
   WHICH rows are gated; this says why and that it is obtainable — once, not
   once per row. Sits OUTSIDE .search-results (app.js appends it to the
   popover), so it cannot scroll away from a long result list.
   Deliberately NOT another mono eyebrow: sentence-case sans for the sentence,
   mono uppercase only for the action, exactly like .cc-signals-lock-sub over
   .cc-signals-lock-cta. */
.sr-foot{
  flex:0 0 auto;                 /* .search-results owns the flex:1 + scroll */
  display:flex;align-items:center;gap:0.625rem;
  padding:0.4375rem 0.5rem 0.4375rem 0.6875rem;
  border-top:1px solid var(--border-subtle);
}
.sr-foot-txt{
  font-family:var(--font-sans);font-size:max(0.6875rem, var(--fs-floor));line-height:1.3;
  color:var(--text-muted);min-width:0;
}
.sr-foot-cta{
  margin-left:auto;flex:0 0 auto;
  font-family:var(--font-mono);font-size:max(0.5625rem, var(--fs-floor));font-weight:700;
  letter-spacing:0.12em;text-transform:uppercase;
  color:var(--champagne);background:none;border:none;cursor:pointer;
  padding:0.25rem 0.4375rem;border-radius:var(--radius-sm);
  transition:background .12s var(--ease-out),box-shadow .12s var(--ease-out);
}
/* Ring is an inset box-shadow, never a 1px border — the app's rounded-border
   bowtie rasterization trap. */
.sr-foot-cta:hover{background:var(--champagne-dim);}
.sr-foot-cta:focus-visible{outline:none;box-shadow:inset 0 0 0 1px var(--champagne);}

/* Fixed at the expanded width — the rail just clips rows, so the
   logo column never moves and text never rewraps mid-animation. */
/* Natural height now; the .wl-scroll wrapper owns flex:1 + scrolling so the
   Research item can sit directly beneath these rows. */
/* Cap the list at 7 rows (each .stock-item is a fixed 4rem); a longer watchlist
   scrolls INSIDE the list, keeping Research + Wallet pinned below it. The bar is
   the same slim GRAPHS-drawer scrollbar (shared rule above — .stock-list is in
   that group), matched to the sidebar gradient via the transparent-border
   override. Rail-collapsed the list is hidden by .sb-body.collapsed, so the cap
   is inert there. */
.stock-list{flex:0 0 auto;padding:0;width:var(--sidebar-w);
  max-height:28rem;overflow-y:auto;overflow-x:hidden;
  transition:max-height .24s var(--ease-out), opacity .18s ease;}
/* Collapsing is owned by the SECTION body (.sb-body.collapsed) now, so the rows
   and Add Stock fold away together — see 02-sidebar.css. */
#rescore-bar{width:var(--sidebar-w);}
/* stock-list scrollbar = the shared slim GRAPHS-drawer bar (added to that group
   above), so the old thin bar that used to live here was removed. */

/* ── Account chip (sidebar bottom) ───────────────────────────────────
   Pinned to the bottom of the sidebar via the flex layout (stock-list
   has flex:1, so this naturally sits after it). Click toggles the
   account-menu above it. */
.account-chip{
  position:relative;
  display:flex;align-items:center;gap:0.5625rem;
  width:var(--sidebar-w);
  padding:0.4375rem 0.875rem 0.4375rem 1.125rem; /* rail: avatar centered */
  border-top:1px solid color-mix(in srgb, var(--text-primary) 5%, transparent);
  cursor:pointer;
  /* --sb-toggle (02-sidebar.css) — the chip's padding used to tuck back on
     .3s/.2s, i.e. it settled ~95ms AFTER the panel edge had already landed. */
  transition:background .12s ease, padding var(--sb-toggle);
  outline:none;
  min-height:2.75rem;
}
:root.sb-open .sidebar .account-chip{
  padding-left:0.875rem;
  transition:background .12s ease, padding var(--sb-toggle);
}

/* Rail expand/collapse toggle — pinned at the very bottom-left of the
   sidebar. Click opens the panel; click again tucks it back. This is the
   ONLY way to expand the rail now (it no longer flies out on hover). The
   icon (a chevron) points right in the collapsed rail and flips to point
   left once expanded; its label follows the same reveal pattern as the
   other rail items (hidden in the rail, slides in when open). */
.sidebar-toggle{
  flex-shrink:0;
  display:flex;align-items:center;gap:0.5rem;justify-content:flex-start;
  width:var(--sidebar-w);height:2.5rem;
  padding:0 0.75rem;box-sizing:border-box;
  border:none;border-top:1px solid color-mix(in srgb, var(--text-primary) 6%, transparent);
  background:transparent;color:var(--text-muted);
  font-family:var(--font-sans);font-size:max(0.625rem, var(--fs-floor));font-weight:700;
  letter-spacing:0.10em;text-transform:uppercase;cursor:pointer;
  transition:color .14s ease,background .14s ease;
}
.sidebar-toggle:hover{
  color:var(--text-primary);
  background:color-mix(in srgb, var(--text-primary) 6%, transparent);
}
.sidebar-toggle .st-icon{flex:0 0 auto;transition:transform var(--sb-toggle);}
:root.sb-open .sidebar .sidebar-toggle .st-icon{transform:rotate(180deg);}
/* Same treatment as .wl-label-text / .research-nav-label (02-sidebar.css): a
   CONSTANT max-width, revealed on opacity + transform only, on --sb-toggle.
   .sidebar-toggle is a fixed --sidebar-w flex-start row and its icon is
   centred in the rail by an explicit transform, so the invisible label's width
   moves nothing. Do NOT reintroduce a max-width animation. */
.st-label{
  max-width:7rem;opacity:0;overflow:hidden;white-space:nowrap;
  transform:translateX(-0.375rem);
  transition:opacity var(--sb-toggle), transform var(--sb-toggle);
}
:root.sb-open .sidebar .st-label{
  opacity:1;transform:translateX(0);
  transition:opacity var(--sb-toggle), transform var(--sb-toggle);
}
.account-chip:hover,.account-chip:focus-visible{background:var(--bg-hover);}
.account-avatar{
  width:1.75rem;height:1.75rem;border-radius:50%;
  object-fit:cover;flex-shrink:0;
  background:var(--accent-dim);
  border:1px solid var(--border-default);
}
.account-avatar-fallback{
  display:flex;align-items:center;justify-content:center;
  color:var(--accent);font-family:var(--font-display);font-weight:700;font-size:0.75rem;
}
.account-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;}
.account-name-row{display:flex;align-items:center;gap:0.3125rem;min-width:0;}
.account-name{
  font-family:var(--font-sans);font-size:0.75rem;font-weight:600;color:var(--text-primary);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  flex:0 1 auto;line-height:1.3;
}
.account-role{
  flex-shrink:0;
  font-family:var(--font-sans);font-size:max(0.5rem, var(--fs-floor));font-weight:700;
  letter-spacing:0.08em;text-transform:uppercase;
  padding:1px 0.25rem;border-radius:0.1875rem;line-height:1.5;
}
.account-email{
  font-family:var(--font-sans);font-size:max(0.625rem, var(--fs-floor));color:var(--text-muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3;
}
.account-caret{color:var(--text-muted);flex-shrink:0;transition:transform .15s ease;}
.account-chip[aria-expanded="true"] .account-caret{transform:rotate(180deg);}

/* Account menu — the panel itself is now MPMenu (.mpm-menu, css/lib/menu.css),
   our vanilla port of shadcn/ui's Radix dropdown-menu. It is positioned by
   js/lib/menu.js (position:fixed, computed from #account-chip's box, flipped
   and clamped to the viewport), so the CSS anchoring, the .open class, the
   .view-opt row language and the item stagger that used to live here are all
   gone. Kept a direct <aside> child, outside .sidebar-clip, so the rail's
   clip-path can't swallow it. The chip (the trigger) is still ours, above. */

/* (Rail-state fades for .account-meta/.account-caret live with the
   sidebar hover-rail rules near the top of the SIDEBAR section.) */

/* ── Home top-right account / auth pills ──────────────────────────── */
.home-account{
  position:fixed;top:1.25rem;right:1.5rem;z-index:50;
  display:flex;align-items:center;gap:0.5rem;
}
.home-auth-link{
  padding:0.5rem 0.875rem;
  color:var(--text-secondary);
  font-family:var(--font-sans);
  font-size:0.8125rem;font-weight:500;
  text-decoration:none;
  border-radius:0.5rem;
  transition:color .12s ease,background .12s ease;
}
.home-auth-link:hover{color:var(--text-primary);background:color-mix(in srgb, var(--text-primary) 4%, transparent);}
.home-auth-cta{
  padding:0.5rem 1rem;
  background:var(--accent);color:var(--on-accent);
  font-family:var(--font-sans);
  font-size:0.8125rem;font-weight:500;
  border-radius:0.5rem;
  text-decoration:none;
  transition:background .12s ease,transform .08s ease;
}
.home-auth-cta:hover{background:var(--accent);}
.home-auth-cta:active{transform:translateY(1px);}

.home-account-chip{
  display:flex;align-items:center;gap:0.5rem;
  padding:0.375rem 0.75rem 0.375rem 0.375rem;
  background:color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  border:1px solid var(--border-default);
  border-radius:62.4375rem;
  backdrop-filter:blur(8px);
  text-decoration:none;color:var(--text-primary);
  font-family:var(--font-sans);
  font-size:0.8125rem;font-weight:500;
  transition:border-color .12s ease,background .12s ease;
}
.home-account-chip:hover{border-color:var(--text-muted);background:color-mix(in srgb, var(--bg-elevated) 85%, transparent);}
.home-account-chip img{
  width:1.5rem;height:1.5rem;border-radius:50%;object-fit:cover;
}
.home-account-fallback{
  width:1.5rem;height:1.5rem;border-radius:50%;
  background:var(--bg-elevated);
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--text-secondary);font-weight:600;font-size:max(0.6875rem, var(--fs-floor));
}
.home-account-name{
  max-width:10rem;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
/* Tickers — flush, full-width, separated by 1px lines. The active row
   is marked by a solid, single-opacity background wash alone (the left accent
   bar was removed, and the old right-fading gradient was replaced with an even
   fill so the highlight reads the same weight edge to edge); no border colour
   change, so no layout shift on select. */
.stock-item{
  display:flex;align-items:center;gap:0.5625rem;
  /* extra bottom padding keeps the name row clear of the strip */
  /* Left pad folds in the old 2px accent-bar column so the collapsed-rail icon
     stays aligned — no left border (a transparent one showed the darker rail
     through as a vertical line on hover). */
  padding:0.625rem 0.875rem 0.9375rem calc(0.875rem + 2px);margin:0;
  min-height:4rem;
  cursor:pointer;
  border-bottom:1px solid var(--border-default);   /* sidebar seams all use --border-default */
  transition:background .12s var(--ease-out);
  position:relative;
  /* ── THE CONTROL LANE ────────────────────────────────────────────────────
     .si-lock and .si-rm are position:absolute, so they are OUT OF FLOW and
     reserve no width. .si-info is flex:1 and ran the full way to the row's
     content edge, which put the company name UNDER both buttons: measured at
     the reference width, GS overlapped the padlock by 50px, MA by 38px, NVDA
     by 12px and BB by 10px, and GS's ellipsis fell at the row edge rather than
     before the controls, so the truncated text still collided.
     This is the width those two buttons occupy, derived from the SAME tokens
     that place and size them so the lane cannot drift out of step with them:
       + the lock's own right offset            2.375rem + the --ctl-floor-sub
                                                 correction, verbatim from
                                                 .si-lock's `right` below
       + the lock's width                       the 24px touch floor, or its
                                                 natural 15px glyph + 0.375rem
                                                 padding in the reference
                                                 regime where the floor is 0
       - the row's own right padding            .si-info already stops there
       + a hair of air                          so text never kisses the glyph
     Reserved UNCONDITIONALLY, not on hover: the × and an unlocked padlock
     appear on hover, and re-flowing the name's ellipsis point under the
     pointer would be a layout jump on exactly the frame the user is reading
     it. A locked row shows its padlock at rest anyway, so the lane is occupied
     some of the time no matter what. */
  --si-ctl-lane:calc(
      2.375rem + max(0px, var(--ctl-floor-sub) - 1.5rem + 0.1875rem)
    + max(var(--ctl-floor-sub), 15px + 0.375rem)
    - 0.875rem + 0.25rem);
}
.stock-item:hover{background:var(--bg-hover);}
.stock-item.active{
  background:color-mix(in srgb, var(--accent) 9%, transparent);
}

/* Watchlist section-open entrance: rows fade + rise in with a small per-row
   stagger. Only opacity/transform animate (compositor-friendly). The
   .wl-entering class is added on a GENUINE section open and removed by JS once
   the run settles, so no animation lingers on the rows — a pinned transform
   would block later :hover states, and the 30s data refresh never adds this
   class, so it can't replay on a poll or a node reparent. `backwards` fill
   holds the first frame during each row's stagger delay so nothing flashes in
   ahead of its turn. */
@keyframes wlRowIn{
  from{opacity:0;transform:translateY(6px);}
  to{opacity:1;transform:translateY(0);}
}
.stock-list.wl-entering .stock-item{
  animation:wlRowIn .22s var(--ease-out) both;
}
.stock-list.wl-entering .stock-item:nth-child(1){animation-delay:0ms;}
.stock-list.wl-entering .stock-item:nth-child(2){animation-delay:28ms;}
.stock-list.wl-entering .stock-item:nth-child(3){animation-delay:56ms;}
.stock-list.wl-entering .stock-item:nth-child(4){animation-delay:84ms;}
.stock-list.wl-entering .stock-item:nth-child(5){animation-delay:112ms;}
.stock-list.wl-entering .stock-item:nth-child(6){animation-delay:140ms;}
.stock-list.wl-entering .stock-item:nth-child(n+7){animation-delay:160ms;}
/* Add Stock + Clear Unlocked ride the tail of the same stagger. They are part
   of the section the chevron folds (that is why they live inside #wl-body), so
   arriving fully formed while the rows above them were still rising made them
   read as chrome that had been there all along rather than as the end of the
   list. 180ms puts them one beat after the last staggered row (160ms) and the
   whole run still finishes inside the 440ms after which app.js drops
   .wl-entering, so nothing is left half-animated.
   The `+` reaches past the HTML comment between the two boxes; comments are
   not elements, so this is a real adjacent-sibling match. */
.stock-list.wl-entering + .add-row{
  animation:wlRowIn .22s var(--ease-out) both;
  animation-delay:180ms;
}
@media(prefers-reduced-motion:reduce){
  .stock-list.wl-entering .stock-item{animation:none;}
  .stock-list.wl-entering + .add-row{animation:none;}
}

/* ── ONE ROW ARRIVING / ONE ROW LEAVING ───────────────────────────────────
   Add and remove are the same motion idea as the section entrance above, run
   on a single row. Nothing new is invented for them: arriving reuses wlRowIn
   itself (same .22s, same --ease-out, same 6px rise) with no stagger, and
   leaving is its inverse on the .16s --ease-out clock the drag-reorder magnet
   already uses when neighbours close a gap (see .stock-list.reordering below).
   No colour change, no scale, no bounce — the row that arrives is about to be
   selected and gets the .stock-item.active wash a beat later, so a second
   highlight on top of that would just be noise. */
.stock-item.si-arriving{
  animation:wlRowIn .22s var(--ease-out) both;
}
/* Leaving, in TWO classes on purpose — see _closeStockRow in app.js.
   .si-closing only ARMS the run: it releases min-height (a 4rem floor cannot
   collapse), clips the content and installs the clock. The end state lives in
   .si-closed, which JS adds only after forcing the armed state to be computed;
   folding the two together let the browser batch the whole thing into one style
   change with no interpolable start height, and the row just disappeared.
   Height is the only property here that drives layout, and it is driving it
   deliberately — it IS the gap the surviving rows ride up through. */
.stock-item.si-closing{
  overflow:hidden;
  min-height:0;
  pointer-events:none;
  transition:height .16s var(--ease-out),
             padding-top .16s var(--ease-out),
             padding-bottom .16s var(--ease-out),
             opacity .12s var(--ease-out);
}
.stock-item.si-closed{
  padding-top:0;padding-bottom:0;
  border-bottom-color:transparent;
  opacity:0;
}
@media(prefers-reduced-motion:reduce){
  /* JS detaches the row outright under reduced motion, so these are belt and
     braces for a preference that flips mid-collapse. */
  .stock-item.si-arriving{animation:none;}
  .stock-item.si-closing{transition:none;}
}

/* padding, not margin or a narrower width: the row's hover wash and its active
   fill are painted by .stock-item and must still reach the right edge, so the
   text box shrinks INSIDE a box that still spans the row. box-sizing is
   border-box app-wide (01-base.css), so this comes off the content width and
   the ellipsis lands before the control lane. Both rows are inset, not just
   the name: the buttons are 24px tall against a 15px symbol line, so they
   straddle BOTH text rows, and .si-sym carries an inline sentiment score that
   can push it long too. */
.si-info{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;width:100%;
  padding-right:var(--si-ctl-lane);}
/* Row 1: symbol + inline sentiment score */
.si-sym{
  display:flex;align-items:center;gap:0.375rem;
  font-family:var(--font-display);font-size:0.8125rem;font-weight:700;
  letter-spacing:0.02em;color:var(--text-primary);line-height:1.25;
}
/* Row 2: company name */
.si-name{
  display:flex;align-items:center;justify-content:space-between;gap:0.25rem;
  font-family:var(--font-sans);font-size:max(0.625rem, var(--fs-floor));font-weight:500;
  color:var(--text-muted);line-height:1.3;
}
.si-name>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
/* Company logo box — the image fills the tile edge-to-edge (logos with
   their own dark plates blend in instead of floating in a white ring).
   A knight-white ring (matches the brand lockup) + soft drop shadow
   frame the tile against the dark rail. */
.si-logo{
  width:1.9rem;height:1.9rem;flex-shrink:0;
  border-radius:0.5rem;
  background:var(--logo-plate);
  box-shadow:0 0 0 0.17rem color-mix(in srgb, var(--text-primary) 92%, transparent), var(--shadow-tile);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
/* Same margin-crop as the board tiles (.cc-row-logo img): provider logos have
   a baked-in margin; scaling past the tile lets the clip crop it so the art
   meets the ring. */
.si-logo img{width:100%;height:100%;object-fit:cover;transform:scale(1.22);}
.si-logo.fallback{
  background:var(--bg-elevated);
  color:var(--text-secondary);
  font-family:var(--font-display);font-weight:700;font-size:0.875rem;
}
/* The × and the padlock below it are the two smallest pointer targets in the
   product: 18.2 and 15 CSS px at a 1440 root, both under the 24px floor
   (WCAG 2.2 SC 2.5.8). Neither box is rem sized — they are a glyph plus
   padding — so max() has nothing to floor and a plain min-height would also
   grow them at 3072, where they sit just under the floor. --ctl-floor-sub is
   the mechanism for exactly this case: it is 24px while the root font is still
   scaling and 0 (inert) in the reference regime.

   Growing them is not enough on its own, because they share one absolute lane
   ~2.9px apart and two 24px boxes would OVERLAP — and an overlap here means a
   near-miss on the padlock deletes the row. So the pair is re-spaced in the
   same breath: the × keeps its right offset and the padlock's moves out by the
   width the × gained, both derived from the floor rather than re-guessed, and
   both centred on their glyph so nothing appears to jump. */
.si-rm{
  position:absolute;right:0.875rem;top:0.65rem;
  min-width:var(--ctl-floor-sub);min-height:var(--ctl-floor-sub);
  background:color-mix(in srgb, var(--bg-secondary) 85%, transparent);border:none;color:var(--text-muted);
  font-family:var(--font-sans);font-size:0.875rem;font-weight:400;
  cursor:pointer;padding:0px 0.25rem 1px;border-radius:0.1875rem;line-height:1.4;
  transition:opacity .12s,color .12s,background .12s;opacity:0;
  z-index:2;
}
/* Centring the glyph is only correct once the box has been GROWN past its
   content — above the breakpoint the box is its content and switching it to a
   flex container would move the × by itself. So the layout mode rides the same
   sub-reference threshold the tokens do (--ctl-floor-sub, 01-base.css), stated
   here as a query because `display` has no token form. Caught by the 3072
   pixel proof, which is exactly what that proof is for. */
@media (max-width:2907.98px){
  .si-rm{display:flex;align-items:center;justify-content:center;}
}
.stock-item:hover .si-rm{opacity:1;}
.si-rm:hover{color:var(--red);background:var(--red-dim);}

/* ── Lock toggle ─────────────────────────────────────────────────────────────
   Sits immediately left of the ×, same plate, same clock, same absolute lane —
   the two are one control cluster, so anything that makes them look like two
   different kinds of button is a bug. Its `right` is the ×'s right offset plus
   the ×'s own width, so the pair never overlaps and neither reaches the
   scrollbar.

   ASYMMETRIC VISIBILITY, deliberately. The × is a destructive action nobody
   needs to see until they reach for it, so it hides until the row is hovered.
   The lock is also STATE: "the automation may not evict this one". State you
   cannot see without hovering every row one by one is state you do not have,
   so a LOCKED row keeps its padlock lit permanently, in the accent colour, and
   only the unlocked padlock follows the × and waits for hover. Shape carries
   it too (closed vs open shackle), so it still reads in greyscale. */
.si-lock{
  /* right = the ×'s own right offset (0.875rem) + the ×'s width + a hair of
     air, measured in the browser rather than guessed: at 1.875rem the two
     boxes overlapped by 4px and the × clipped the padlock's corner. top is the
     ×'s 0.65rem nudged down by half their height difference, so the two glyphs
     share a centre line instead of a top edge. */
  position:absolute;top:0.775rem;
  /* 2.375rem exactly in the reference regime (--ctl-floor-sub is 0 there, so
     the whole correction clamps to zero and this is byte-for-byte the old
     value), plus, below it, however much WIDER the floor made the × than its
     natural ~1.5rem box, plus a hair of air. Derived from the same token the
     × is floored with, so the two lanes cannot drift apart. */
  right:calc(2.375rem + max(0px, var(--ctl-floor-sub) - 1.5rem + 0.1875rem));
  min-width:var(--ctl-floor-sub);min-height:var(--ctl-floor-sub);
  background:color-mix(in srgb, var(--bg-secondary) 85%, transparent);border:none;color:var(--text-muted);
  cursor:pointer;padding:1px 0.1875rem;border-radius:0.1875rem;line-height:0;
  display:flex;align-items:center;justify-content:center;
  transition:opacity .12s,color .12s,background .12s;opacity:0;
  z-index:2;
}
.stock-item:hover .si-lock{opacity:1;}
.si-lock:hover{color:var(--text-primary);background:var(--bg-hover);}
/* Locked: always visible, always accented — including on rows nobody is
   hovering. Placed AFTER the two hover rules so the accent and the full opacity
   survive a hover instead of being overwritten by it. */
.si-lock.locked{opacity:1;color:var(--accent);}
.si-lock.locked:hover{color:var(--accent);background:color-mix(in srgb, var(--accent) 16%, transparent);}

/* ── LOCKED ROWS REFUSE THE × (owner, 2026-08-03) ───────────────────────────
   The × still appears on hover and is still focusable and clickable — it
   answers with a toast naming the padlock. What changes is that it stops
   ADVERTISING as armed: no red hover, and it sits back at the muted weight the
   rest of the row's chrome uses, so the row reads "this one is pinned" rather
   than "press here and it goes". `.si-lock.locked ~ .si-rm` works because the
   × is appended after the padlock; nothing else may be inserted between them.
   Not `disabled` and not pointer-events:none — see _paintLock in app.js: a
   control that silently eats the click teaches nothing. */
.si-lock.locked ~ .si-rm{color:var(--text-xmuted);}
.si-lock.locked ~ .si-rm:hover{
  color:var(--text-muted);background:var(--bg-hover);
}
/* The refusal points at the thing that would undo it. One 320ms shake on the
   padlock, replayed by app.js re-adding the class, so a second press repeats
   the answer instead of appearing to do nothing. Transform only, and it never
   runs unprompted. */
@keyframes siLockNudge{
  0%,100%{transform:translateX(0);}
  25%{transform:translateX(-2px);}
  60%{transform:translateX(2px);}
}
.si-lock.si-lock-nudge{animation:siLockNudge .32s var(--ease-out);}
@media(prefers-reduced-motion:reduce){
  .si-lock.si-lock-nudge{animation:none;}
}

/* Whole-row drag-to-reorder (see onRowPointerDown in app.js): no handle — press
   a row and move to drag it. The lifted row gets a shadow; the neighbours slide
   to open a gap. user-select off so a drag doesn't select the row's text. */
.stock-item{user-select:none;-webkit-user-select:none;}
.stock-item.dragging{
  z-index:20;cursor:grabbing;
  background:var(--bg-elevated);border-radius:var(--radius-sm);
  box-shadow:var(--shadow-menu);opacity:0.98;
}
/* Both row buttons vanish while the row is airborne — a lit padlock riding a
   dragged row reads as a drop target. Specificity (0,3,0) beats .si-lock.locked
   (0,2,0), so even a locked row's padlock hides for the duration. */
.stock-item.dragging .si-rm,
.stock-item.dragging .si-lock{opacity:0;}
/* Neighbours slide to open a gap — only while a drag is in progress. */
.stock-list.reordering{cursor:grabbing;}
.stock-list.reordering .stock-item:not(.dragging){
  transition:transform .16s var(--ease-out);
}


/* T9 feel: a symbol being added shows at once, quieted until the server
   confirms it (app.js pickItem); no motion beyond the row's own entrance. */
.stock-item.si-pending{opacity:.55;pointer-events:none;}
