/* ═══════════════════════════════════════════════════════════════════════════
   Altaha — the Ideas desk (ideas-desk.js)

   The home page. Every colour, font and type size is a token from tokens.css,
   so Ivory and Navy and Midnight and Cognac are the same page in two lights.
   Cognac (--highlight) marks the one thing chosen at each level: the open
   door, the chosen list, the chosen lane, a ★ Select call.

   Layout discipline:
   - Every door, strategy tile, stock row and alert card has dedicated grid
     tracks for its artwork and text so illustrations never overlap copy.
   - Motion is GPU-composited (transform, opacity, stroke-dashoffset) and shuts
     down cleanly under prefers-reduced-motion and html[data-motion="off"].
   ═══════════════════════════════════════════════════════════════════════════ */

#view-ideahub{ --idk-gap:var(--sp-4); }
.idk{ display:grid; gap:var(--sp-4); padding-bottom:var(--sp-6); color:var(--text-primary) }
.idk *{ box-sizing:border-box }
.idk svg{ display:block }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.idk-hero{
  display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:end;
  gap:var(--sp-2) var(--sp-5); padding-top:var(--sp-1)
}
.idk-hero-copy{ display:grid; gap:var(--sp-1); min-width:0 }
.idk-eyebrow, .idk-kicker{
  margin:0; font-size:var(--fs-label); line-height:var(--lh-label); font-weight:600;
  letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--highlight-text)
}
.idk-title{
  margin:0; font-family:var(--font-display); font-weight:500; font-size:var(--fs-h1);
  line-height:var(--lh-h1); letter-spacing:var(--ls-heading); text-wrap:balance
}
.idk-lede{ margin:0; font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-secondary) }
.idk-hero-art{
  display:flex; align-items:center; justify-content:flex-end;
  width:156px; height:52px; flex:none; pointer-events:none
}
.idk-hero-art svg{ width:156px; height:52px; overflow:visible }
.idk-hero-art .ha-grid{ stroke:var(--border); stroke-width:1; fill:none; opacity:.8 }
.idk-hero-art .ha-arc{
  fill:none; stroke:var(--highlight); stroke-width:1.8; stroke-linecap:round;
  stroke-dasharray:180; stroke-dashoffset:0;
  animation:idk-draw-hero 1.1s var(--ease-out) both
}
.idk-hero-art .ha-arc2{
  fill:none; stroke:var(--gain); stroke-width:2; stroke-linecap:round;
  stroke-dasharray:160; stroke-dashoffset:0;
  animation:idk-draw-hero 1.25s var(--ease-out) 120ms both
}
.idk-hero-art .ha-node{ fill:var(--gain); animation:idk-breathe 2.6s var(--ease) infinite; transform-box:fill-box; transform-origin:center }
.idk-hero-art .ha-halo{ fill:none; stroke:var(--gain); stroke-width:1.4; transform-box:fill-box; transform-origin:center; animation:idk-sonar 2.6s var(--ease-out) infinite }
.idk-hero-art .ha-bar{ fill:color-mix(in srgb, var(--highlight) 24%, transparent); transform-box:fill-box; transform-origin:center bottom; animation:idk-bar-breathe 3.4s var(--ease) infinite }
.idk-hero-art .ha-bar.b2{ animation-delay:420ms; fill:color-mix(in srgb, var(--highlight) 42%, transparent) }
.idk-hero-art .ha-bar.b3{ animation-delay:840ms; fill:color-mix(in srgb, var(--gain) 45%, transparent) }
@keyframes idk-draw-hero{ from{ stroke-dashoffset:180; opacity:.2 } to{ stroke-dashoffset:0; opacity:1 } }

/* ── Top Agreement Spotlight ──────────────────────────────────────────── */
#idk-spot:empty{ display:none }
.idk-spot{
  display:grid; gap:var(--sp-3); padding:var(--sp-4) var(--sp-5);
  border-radius:var(--r-card); background:var(--surface);
  border:1px solid color-mix(in srgb, var(--highlight) 38%, var(--border));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--highlight) 7%, transparent)
}
.idk-spot-h{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:var(--sp-2) var(--sp-4) }
.idk-spot-title{ margin:2px 0 0; font-family:var(--font-display); font-weight:500; font-size:var(--fs-h2); line-height:var(--lh-h2); letter-spacing:var(--ls-heading) }
.idk-spot-meta{ margin:0; font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-muted) }
.idk-spot-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:var(--sp-3) }
.idk-spot-card{
  display:grid; gap:var(--sp-2); align-content:start; min-width:0;
  padding:var(--sp-3) var(--sp-4); border-radius:var(--r-control);
  background:var(--surface-raised); border:1px solid var(--border);
  color:inherit; text-decoration:none;
  transition:border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease)
}
.idk-spot-card:hover{ border-color:var(--highlight); transform:translateY(-1px) }
.idk-spot-card:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }
.idk-spot-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:var(--sp-2) }
.idk-spot-id{ display:grid; gap:2px; min-width:0 }
.idk-spot-sym{ font-family:var(--font-mono); font-weight:500; font-size:var(--fs-body); line-height:var(--lh-small); color:var(--text-primary) }
.idk-spot-name{ font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.idk-spot-px{ display:grid; justify-items:end; font-variant-numeric:tabular-nums; flex:none }
.idk-spot-px b{ font-weight:600; font-size:var(--fs-small); line-height:var(--lh-small) }
.idk-spot-px small{ font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-muted) }
.idk-spot-px small.up{ color:var(--gain) } .idk-spot-px small.dn{ color:var(--loss) }
.idk-spot-tags{ display:flex; flex-wrap:wrap; gap:4px }
.idk-spot-tag{
  display:inline-flex; align-items:center; gap:3px; padding:2px var(--sp-2); border-radius:var(--r-pill);
  font-size:var(--fs-label); line-height:var(--lh-label); font-weight:500;
  background:var(--surface); border:1px solid var(--border); color:var(--text-secondary)
}
.idk-spot-tag i{ font-style:normal; color:var(--text-muted) }
.idk-spot-tag.is-fund{ background:var(--highlight-subtle); border-color:transparent; color:var(--highlight-text) }
.idk-spot-tag.is-fund i{ color:var(--highlight-text); opacity:.85 }
.idk-spot-tag.is-live{ background:var(--gain-bg); border-color:transparent; color:var(--gain); font-weight:600 }
.idk-spot-story{ margin:0; font-size:var(--fs-label); line-height:var(--lh-small); color:var(--text-secondary);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
.idk-spot-story b{ font-weight:600; color:var(--gain) }
.idk-spot-story.is-info b{ color:var(--info) }
.idk-spot-warn{ margin:0; font-size:var(--fs-label); line-height:var(--lh-label); font-weight:500; color:var(--warning) }

/* ── The three doors ──────────────────────────────────────────────────── */
.idk-doors{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:var(--sp-3) }
.idk-door{
  all:unset; box-sizing:border-box; cursor:pointer; position:relative; overflow:hidden;
  display:grid; grid-template-rows:auto 1fr auto; gap:var(--sp-2); align-content:start; min-width:0;
  padding:var(--sp-4); border-radius:var(--r-card);
  background:var(--surface-raised); border:1px solid var(--border);
  color:var(--text-primary); font-family:var(--font-sans);
  transition:background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
             box-shadow var(--t) var(--ease), transform var(--t) var(--ease-out)
}
/* Subtle per-door atmospheric tint that stays true to tokens in both themes. */
.idk-door[data-pillar="fundamentals"]{
  background:linear-gradient(135deg, var(--surface-raised) 0%, color-mix(in srgb, var(--highlight) 7%, var(--surface-raised)) 100%)
}
.idk-door[data-pillar="technicals"]{
  background:linear-gradient(135deg, var(--surface-raised) 0%, color-mix(in srgb, var(--gain) 7%, var(--surface-raised)) 100%)
}
.idk-door[data-pillar="intraday"]{
  background:linear-gradient(135deg, var(--surface-raised) 0%, color-mix(in srgb, var(--info) 7%, var(--surface-raised)) 100%)
}
/* Subtle diagonal sheen on hover; clipped cleanly inside the card border. */
.idk-door::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(115deg, transparent 34%, color-mix(in srgb, var(--highlight) 11%, transparent) 50%, transparent 66%);
  transform:translateX(-120%); transition:transform 640ms var(--ease-out)
}
.idk-door:hover::after{ transform:translateX(120%) }
.idk-door:hover{ border-color:var(--border-strong); transform:translateY(-2px); box-shadow:var(--shadow-raised) }
.idk-door:active{ transform:translateY(0) scale(.99) }
.idk-door:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px }
.idk-door.on{
  background:var(--surface); border:1.5px solid var(--highlight);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--highlight) 14%, transparent), var(--shadow-raised);
  padding:calc(var(--sp-4) - .5px)
}

.idk-door-top{ display:flex; align-items:center; justify-content:space-between; gap:var(--sp-2) }
.idk-door-num{ font-family:var(--font-display); font-size:var(--fs-h3); line-height:var(--lh-none); color:var(--text-muted) }
.idk-door.on .idk-door-num{ color:var(--highlight-text) }
.idk-door-pill{
  display:inline-flex; align-items:center; gap:6px; white-space:nowrap;
  padding:3px var(--sp-2); border-radius:var(--r-pill); border:1px solid var(--border);
  font-size:var(--fs-label); line-height:var(--lh-label); font-weight:500; color:var(--text-secondary); background:var(--surface)
}
.idk-door-pill.is-live{ color:var(--gain); background:var(--gain-bg); border-color:transparent; font-weight:600 }

/* Dedicated two-column body: copy on the left, bespoke animated picture on the right.
   Zero overlap because the picture owns its own fixed 82px track. */
.idk-door-body{
  display:grid; grid-template-columns:minmax(0, 1fr) 82px;
  align-items:center; gap:var(--sp-3); min-width:0
}
.idk-door-text{ display:grid; gap:4px; min-width:0 }
.idk-door-name{ font-family:var(--font-display); font-weight:500; font-size:var(--fs-h2); line-height:var(--lh-h2); letter-spacing:var(--ls-heading) }
/* Plain clean ampersand so Fraunces never prints an overly curly swash glyph. */
.idk-amp{ font-family:var(--font-sans); font-weight:400; color:var(--text-secondary) }
.idk-short{ display:none }
.idk-door-sub{ font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-secondary) }

/* The bespoke door pictures (82×58), theme-driven and softly animated. */
.idk-door-art{
  width:82px; height:58px; flex:none; display:grid; place-items:center;
  border-radius:var(--r-control);
  background:color-mix(in srgb, var(--surface) 72%, var(--surface-raised));
  border:1px solid color-mix(in srgb, var(--border) 85%, transparent);
  padding:4px; overflow:hidden;
  transition:transform var(--t) var(--ease-out), border-color var(--t-fast) var(--ease)
}
.idk-door:hover .idk-door-art{ transform:scale(1.04); border-color:var(--border-strong) }
.idk-door.on .idk-door-art{ border-color:color-mix(in srgb, var(--highlight) 42%, var(--border)) }
.idk-door-art svg{ width:100%; height:100%; overflow:visible }

/* Door 01 picture: compounding pillars & curve */
.da-pillar{ fill:color-mix(in srgb, var(--border-strong) 65%, transparent); transform-box:fill-box; transform-origin:center bottom; animation:idk-bar-breathe 3.4s var(--ease) infinite }
.da-pillar.p2{ animation-delay:350ms; fill:color-mix(in srgb, var(--highlight) 45%, transparent) }
.da-pillar.p3{ animation-delay:700ms; fill:color-mix(in srgb, var(--highlight) 72%, transparent) }
.da-pillar.p4{ animation-delay:1050ms; fill:color-mix(in srgb, var(--gain) 70%, transparent) }
.da-area{ fill:color-mix(in srgb, var(--gain) 14%, transparent) }
.da-arc{ fill:none; stroke:var(--gain); stroke-width:2.2; stroke-linecap:round; stroke-dasharray:120; stroke-dashoffset:0; animation:idk-draw-arc 1.2s var(--ease-out) both }
.da-beacon{ fill:var(--gain); transform-box:fill-box; transform-origin:center; animation:idk-breathe 2.4s var(--ease) infinite }
.da-ring{ fill:none; stroke:var(--gain); stroke-width:1.4; transform-box:fill-box; transform-origin:center; animation:idk-sonar 2.4s var(--ease-out) infinite }

/* Door 02 picture: consolidation channel & breakout sweep */
.da-box{ fill:color-mix(in srgb, var(--highlight) 12%, transparent); stroke:var(--highlight); stroke-width:1.1; stroke-dasharray:3 2.5 }
.da-vol{ fill:color-mix(in srgb, var(--border-strong) 70%, transparent) }
.da-vol.is-hi{ fill:var(--gain); transform-box:fill-box; transform-origin:center bottom; animation:idk-bar-breathe 2.8s var(--ease) infinite }
.da-vol.is-hi2{ fill:var(--gain); transform-box:fill-box; transform-origin:center bottom; animation:idk-bar-breathe 2.8s var(--ease) 400ms infinite }
.da-break{ fill:none; stroke:var(--gain); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:140; animation:idk-break-trace 3.8s var(--ease-out) infinite }
.da-pivot{ fill:var(--highlight) }

/* Door 03 picture: live market radar & Select star pings */
.da-radar{ fill:none; stroke:var(--border-strong); stroke-width:1; stroke-dasharray:2.5 2.5; opacity:.7 }
.da-radar-in{ fill:none; stroke:var(--border-strong); stroke-width:1; opacity:.5 }
.da-sonar{ fill:none; stroke:var(--gain); stroke-width:1.6; transform-box:fill-box; transform-origin:center; animation:idk-sonar 2.5s var(--ease-out) infinite }
.da-sonar.s2{ stroke:var(--highlight); animation-delay:1.25s }
.da-core{ fill:var(--gain); transform-box:fill-box; transform-origin:center; animation:idk-breathe 2s var(--ease) infinite }
.da-star{ fill:var(--highlight); transform-box:fill-box; transform-origin:center; animation:idk-twinkle 2.4s var(--ease) infinite }
.da-star.s2{ animation-delay:1.1s }
.da-ping{ fill:var(--info); transform-box:fill-box; transform-origin:center; animation:idk-twinkle 2.2s var(--ease) 550ms infinite }
/* Outside market hours the radar rests calmly instead of pulsing live. */
.idk-door-art.is-calm .da-sonar,
.idk-door-art.is-calm .da-core,
.idk-door-art.is-calm .da-star,
.idk-door-art.is-calm .da-ping{ animation:none }
.idk-door-art.is-calm .da-sonar{ opacity:.25 }
.idk-door-art.is-calm .da-core{ fill:var(--text-muted) }

@keyframes idk-bar-breathe{ 0%,100%{ transform:scaleY(.86) } 50%{ transform:scaleY(1.06) } }
@keyframes idk-draw-arc{ from{ stroke-dashoffset:120 } to{ stroke-dashoffset:0 } }
@keyframes idk-break-trace{
  0%{ stroke-dashoffset:140; opacity:.55 }
  45%,82%{ stroke-dashoffset:0; opacity:1 }
  100%{ stroke-dashoffset:0; opacity:.6 }
}
@keyframes idk-sonar{
  0%{ transform:scale(.38); opacity:.85 }
  100%{ transform:scale(1.6); opacity:0 }
}
@keyframes idk-breathe{ 0%,100%{ transform:scale(1); opacity:1 } 50%{ transform:scale(.85); opacity:.7 } }
@keyframes idk-twinkle{ 0%,100%{ opacity:1; transform:scale(1) } 50%{ opacity:.35; transform:scale(.82) } }

.idk-door-foot{
  display:flex; align-items:center; justify-content:space-between; gap:var(--sp-2);
  padding-top:var(--sp-2); border-top:1px solid var(--border);
  font-size:var(--fs-small); line-height:var(--lh-small)
}
.idk-door-count{ color:var(--text-secondary); display:inline-flex; align-items:center; gap:4px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.idk-door-open{ font-weight:600; color:var(--text-muted); white-space:nowrap; transition:transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease) }
.idk-door:hover .idk-door-open{ transform:translateX(2px) }
.idk-door.on .idk-door-open, .idk-door:hover .idk-door-open{ color:var(--highlight-text) }
.idk-st-mini{ color:var(--highlight) }

/* A live dot that breathes. */
.idk-pulse{ width:7px; height:7px; border-radius:50%; background:var(--gain); flex:none; display:inline-block;
  box-shadow:0 0 0 0 color-mix(in srgb, var(--gain) 50%, transparent); animation:idk-pulse 1.8s var(--ease) infinite }
.idk-pulse.is-off{ background:var(--text-muted); animation:none }
@keyframes idk-pulse{ 0%,100%{ box-shadow:0 0 0 0 color-mix(in srgb, var(--gain) 45%, transparent) } 60%{ box-shadow:0 0 0 6px transparent } }

/* Waiting on a figure: a short shimmering bar, never a zero. */
.idk-wait{ display:inline-block; width:22px; height:9px; border-radius:var(--r-xs); vertical-align:middle;
  background:linear-gradient(90deg, var(--wash-strong), var(--wash), var(--wash-strong)); background-size:200% 100%;
  animation:idk-shim 1.2s linear infinite }
@keyframes idk-shim{ to{ background-position:-200% 0 } }

/* ── The workspace ────────────────────────────────────────────────────── */
.idk-panel{ display:grid; gap:var(--sp-4); outline:none; min-width:0 }
.idk-panel.is-enter > *{ animation:idk-rise var(--t-slow) var(--ease-out) both }
.idk-panel.is-enter > *:nth-child(2){ animation-delay:60ms }
.idk-panel.is-enter > *:nth-child(3){ animation-delay:110ms }
.idk-panel.is-enter .idk-strat{ animation:idk-rise var(--t-slow) var(--ease-out) both; animation-delay:calc(var(--i, 0) * 45ms) }
.idk-panel.is-enter .idk-call{ animation:idk-rise var(--t-slow) var(--ease-out) both; animation-delay:calc(var(--i, 0) * 55ms) }
@keyframes idk-rise{ from{ opacity:0; transform:translateY(10px) } to{ opacity:1; transform:none } }

/* ── Strategy cards ───────────────────────────────────────────────────── */
.idk-strats{ display:grid; gap:var(--sp-2) }
.idk-strats.is-three{ grid-template-columns:repeat(3, minmax(0, 1fr)) }
/* Five setups: three over two on desktop so every name, sketch and proof has breathing room. */
.idk-strats.is-five{ grid-template-columns:repeat(6, minmax(0, 1fr)) }
.idk-strats.is-five .idk-strat{ grid-column:span 2 }
.idk-strats.is-five .idk-strat:nth-child(n+4){ grid-column:span 3 }

.idk-strat{
  all:unset; box-sizing:border-box; cursor:pointer; min-width:0; position:relative;
  display:flex; align-items:center; gap:var(--sp-3);
  padding:var(--sp-3) var(--sp-3); border-radius:var(--r-card);
  background:var(--surface); border:1px solid var(--border);
  font-family:var(--font-sans); color:var(--text-primary);
  transition:border-color var(--t-fast) var(--ease), box-shadow var(--t) var(--ease),
             background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease-out)
}
.idk-strat:hover{ border-color:var(--border-strong); transform:translateY(-2px); box-shadow:var(--shadow-raised) }
.idk-strat:active{ transform:translateY(0) scale(.99) }
.idk-strat:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }
.idk-strat.on{
  border-color:var(--highlight); box-shadow:inset 0 0 0 1px var(--highlight);
  background:color-mix(in srgb, var(--highlight-subtle) 55%, var(--surface))
}
.idk-strat-main{ display:grid; gap:2px; min-width:0; flex:1 }
.idk-strat-row{ display:flex; align-items:baseline; justify-content:space-between; gap:var(--sp-2); min-width:0 }
.idk-strat-name{ font-weight:600; font-size:var(--fs-body); line-height:var(--lh-small); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.idk-strat.on .idk-strat-name{ color:var(--highlight-text) }
.idk-hold{
  flex:none; font-size:var(--fs-label); line-height:var(--lh-label); font-weight:500; white-space:nowrap; color:var(--text-muted)
}
.idk-strat-meta{ display:flex; flex-wrap:wrap; align-items:baseline; gap:2px var(--sp-2); font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-muted) }
.idk-count{ color:var(--text-secondary); display:inline-flex; align-items:center; gap:4px }
.idk-strat-meta .idk-proof::before{ content:"·"; margin-right:var(--sp-2); color:var(--text-muted); font-style:normal }
.idk-proof{ font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-secondary); font-variant-numeric:tabular-nums }
.idk-proof b{ font-weight:600; color:var(--text-primary) }
.idk-proof b.up{ color:var(--gain) } .idk-proof b.dn{ color:var(--loss) }
.idk-proof.is-quiet{ color:var(--text-muted) }

/* Framed mini-pictures on both Fundamentals (.idk-fsketch) and Technicals (.idk-sketch).
   Every stroke/fill uses tokens so both Light and Dark themes read cleanly. */
.idk-sketch, .idk-fsketch{
  flex:none; width:54px; height:36px; padding:4px 5px;
  border-radius:var(--r-control);
  background:var(--surface-raised); border:1px solid var(--border);
  overflow:hidden;
  transition:border-color var(--t-fast) var(--ease), transform var(--t) var(--ease-out)
}
.idk-strat:hover .idk-sketch, .idk-strat:hover .idk-fsketch{ transform:scale(1.05); border-color:var(--border-strong) }
.idk-strat.on .idk-sketch, .idk-strat.on .idk-fsketch{
  border-color:color-mix(in srgb, var(--highlight) 45%, var(--border));
  background:var(--surface)
}
.idk-sketch path, .idk-sketch rect.k-box,
.idk-fsketch path{ fill:none; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round }
.idk-sketch .k-gain, .idk-fsketch .k-gain{ stroke:var(--gain) }
.idk-sketch .k-loss, .idk-fsketch .k-loss{ stroke:var(--loss) }
.idk-sketch .k-hl, .idk-fsketch .k-hl{ stroke:var(--highlight) }
.idk-sketch .k-mute, .idk-fsketch .k-mute{ stroke:var(--border-strong) }
.idk-sketch .k-box{ stroke:var(--border-strong); stroke-dasharray:3 3 }
.idk-sketch .k-dash, .idk-fsketch .k-dash{ stroke-dasharray:4 4 }
.idk-sketch .k-dot, .idk-fsketch .k-dot{ fill:var(--surface); stroke:var(--gain); stroke-width:2 }
.idk-sketch .k-bar0, .idk-fsketch .k-bar0{ fill:var(--border-strong) }
.idk-sketch .k-bar1, .idk-fsketch .k-bar1{ fill:var(--highlight) }
.idk-sketch .k-bar2, .idk-fsketch .k-bar2{ fill:var(--gain) }

/* Self-drawing stroke animation when a door opens or a card becomes chosen. */
.idk-panel.is-enter .idk-sketch path.k-gain,
.idk-panel.is-enter .idk-fsketch path.k-gain,
.idk-panel.is-enter .idk-fsketch path.k-hl,
.idk-strat.on .idk-sketch path.k-gain,
.idk-strat.on .idk-fsketch path.k-gain,
.idk-strat.on .idk-fsketch path.k-hl{
  stroke-dasharray:120; stroke-dashoffset:0;
  animation:idk-sketch-draw 850ms var(--ease-out) both
}
.idk-panel.is-enter .idk-sketch .k-bar2,
.idk-panel.is-enter .idk-fsketch .k-bar2,
.idk-strat.on .idk-sketch .k-bar2,
.idk-strat.on .idk-fsketch .k-bar2{
  transform-box:fill-box; transform-origin:center bottom;
  animation:idk-bar-pop 650ms var(--ease-out) both
}
@keyframes idk-sketch-draw{ from{ stroke-dashoffset:120 } to{ stroke-dashoffset:0 } }
@keyframes idk-bar-pop{ from{ transform:scaleY(.25) } to{ transform:scaleY(1) } }

/* ── Top ranked picks ─────────────────────────────────────────────────── */
.idk-picks{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-card); padding:var(--sp-4) var(--sp-5) var(--sp-4); display:grid; gap:var(--sp-3); min-width:0 }
.idk-picks-h{ display:flex; justify-content:space-between; align-items:flex-end; gap:var(--sp-3); flex-wrap:wrap;
  padding-bottom:var(--sp-3); border-bottom:1px solid var(--border-strong) }
.idk-picks-title{ margin:2px 0 0; font-family:var(--font-display); font-weight:500; font-size:var(--fs-h2); line-height:var(--lh-h2); letter-spacing:var(--ls-heading) }
.idk-picks-meta{ margin:0; font-size:var(--fs-small); color:var(--text-muted) }
.idk-rows{ list-style:none; margin:0; padding:0; display:grid }
.idk-rows > li + li{ border-top:1px solid var(--border) }
.idk-rows.is-fresh > li{ animation:idk-row-in 380ms var(--ease-out) both; animation-delay:calc(var(--r, 0) * 38ms) }
@keyframes idk-row-in{ from{ opacity:0; transform:translateY(6px) } to{ opacity:1; transform:none } }

.idk-row-wrap{ display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:var(--sp-2); min-width:0 }
.idk-row{
  display:grid; align-items:center; gap:var(--sp-4); min-width:0;
  grid-template-columns:28px minmax(150px, 1.15fr) minmax(0, 2fr) 112px 54px minmax(170px, auto);
  padding:var(--sp-3) var(--sp-2); margin:0 0 0 calc(var(--sp-2) * -1); border-radius:var(--r-control);
  color:inherit; text-decoration:none;
  transition:background-color var(--t-fast) var(--ease)
}
.idk-row:hover{ background:var(--surface-raised) }
.idk-row:hover .idk-row-sym{ color:var(--highlight-text) }
.idk-row:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:-2px }
.idk-rank{ font-family:var(--font-display); font-size:var(--fs-h3); color:var(--text-muted); text-align:center }
.idk-rows > li:first-child .idk-rank{ color:var(--highlight-text) }
.idk-row-id{ display:grid; gap:2px; min-width:0 }
.idk-row-top{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; min-width:0 }
.idk-row-sym{ font-family:var(--font-mono); font-weight:500; font-size:var(--fs-body); line-height:var(--lh-small); transition:color var(--t-fast) var(--ease) }
.idk-row-name{ font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-secondary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.idk-fresh{
  display:inline-flex; align-items:center; padding:1px 6px; border-radius:var(--r-pill);
  font-size:var(--fs-label); line-height:var(--lh-label); font-weight:600; font-variant-numeric:tabular-nums;
  background:var(--wash); color:var(--text-secondary); white-space:nowrap
}
.idk-fresh.is-new{ background:var(--highlight-subtle); color:var(--highlight-text) }
.idk-fresh.is-up{ background:var(--gain-bg); color:var(--gain) }
.idk-fresh.is-dn{ background:var(--loss-bg); color:var(--loss) }
.idk-own-pill{
  display:inline-flex; align-items:center; padding:1px 6px; border-radius:var(--r-pill);
  font-size:var(--fs-label); line-height:var(--lh-label); font-weight:600;
  background:var(--info-bg); color:var(--info); white-space:nowrap
}
.idk-row-why{ display:flex; flex-wrap:wrap; align-items:center; gap:4px var(--sp-2); min-width:0; font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-secondary) }
.idk-sector{ font-size:var(--fs-label); line-height:var(--lh-label); font-weight:500; padding:2px var(--sp-2); border-radius:var(--r-pill); border:1px solid var(--border); color:var(--text-secondary); white-space:nowrap }
.idk-sector.is-hl{ border-color:transparent; background:var(--highlight-subtle); color:var(--highlight-text) }
.idk-thesis{ min-width:0 }
.idk-story{
  display:inline-flex; align-items:baseline; gap:4px; max-width:100%;
  padding:2px var(--sp-2); border-radius:var(--r-control);
  font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-primary);
  background:var(--gain-bg); overflow:hidden; text-overflow:ellipsis; white-space:nowrap
}
.idk-story b{ font-weight:600; color:var(--gain); flex:none }
.idk-story.is-info{ background:var(--info-bg) }
.idk-story.is-info b{ color:var(--info) }
.idk-caution{
  display:inline-flex; align-items:center; gap:3px; padding:2px var(--sp-2); border-radius:var(--r-pill);
  font-size:var(--fs-label); line-height:var(--lh-label); font-weight:600; white-space:nowrap;
  background:var(--warning-bg); color:var(--warning)
}
.idk-caution.is-info{ background:var(--wash); color:var(--text-secondary); font-weight:500 }

/* Quick-peek toggle & expandable drawer */
.idk-peek-btn{
  all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; gap:3px;
  min-height:30px; padding:0 var(--sp-2); border-radius:var(--r-pill);
  border:1px solid var(--border); background:var(--surface-raised);
  font-family:var(--font-sans); font-size:var(--fs-label); line-height:var(--lh-label); font-weight:600;
  color:var(--text-secondary); white-space:nowrap;
  transition:border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease)
}
.idk-peek-btn i{ font-style:normal; transition:transform var(--t-fast) var(--ease) }
.idk-peek-btn:hover{ border-color:var(--highlight); color:var(--highlight-text) }
.idk-peek-btn.on{ border-color:var(--highlight); background:var(--highlight-subtle); color:var(--highlight-text) }
.idk-peek-btn.on i{ transform:rotate(180deg) }
.idk-peek-btn:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }
.idk-peek{
  display:grid; gap:var(--sp-3); margin:0 0 var(--sp-3); padding:var(--sp-4);
  border-radius:var(--r-control); background:var(--surface-raised); border:1px solid var(--border)
}
.idk-peek-rail{ display:grid; gap:2px }
.idk-peek-stats{ display:flex; flex-wrap:wrap; gap:6px }
.idk-peek-stats span{
  padding:2px var(--sp-2); border-radius:var(--r-pill); background:var(--surface); border:1px solid var(--border);
  font-size:var(--fs-label); line-height:var(--lh-label); font-weight:500; color:var(--text-primary); font-variant-numeric:tabular-nums
}
.idk-peek-cols{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--sp-4) }
.idk-peek-h{ margin:0 0 var(--sp-2); font-size:var(--fs-label); line-height:var(--lh-label); font-weight:600;
  letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-muted) }
.idk-peek-chips{ display:flex; flex-wrap:wrap; gap:4px; margin-bottom:var(--sp-2) }
.idk-peek-chips span{ padding:2px var(--sp-2); border-radius:var(--r-xs); background:var(--surface); border:1px solid var(--border);
  font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-primary) }
.idk-peek-ev{ list-style:none; margin:0; padding:0; display:grid; gap:6px }
.idk-peek-ev li{ display:grid; gap:1px; font-size:var(--fs-small); line-height:var(--lh-small) }
.idk-peek-ev li span{ color:var(--text-primary); font-weight:500 }
.idk-peek-ev li b{ font-weight:600; color:var(--highlight-text); font-variant-numeric:tabular-nums }
.idk-peek-ev li small{ font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-muted) }
.idk-peek-fact{ margin:0 0 6px; font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-secondary) }
.idk-peek-fact b{ font-weight:600; color:var(--text-primary); margin-right:4px }
.idk-peek-fact a{ color:var(--highlight-text); font-weight:500; text-decoration:underline; text-underline-offset:2px }
.idk-peek-quiet{ margin:0 0 6px; font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-muted) }
.idk-peek-warn{ margin:6px 0 0; padding:var(--sp-2) var(--sp-3); border-radius:var(--r-xs);
  font-size:var(--fs-small); line-height:var(--lh-small); background:var(--warning-bg); color:var(--warning) }
.idk-peek-warn.is-info{ background:var(--wash); color:var(--text-secondary) }
.idk-peek-warn b{ font-weight:600; margin-right:4px }
.idk-peek-f{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--sp-2);
  padding-top:var(--sp-2); border-top:1px solid var(--border) }
.idk-peek-open{ display:inline-flex; align-items:center; gap:6px; font-size:var(--fs-small); line-height:var(--lh-small);
  font-weight:600; color:var(--highlight-text); text-decoration:none }
.idk-peek-open:hover{ text-decoration:underline; text-underline-offset:3px }

/* Live scoreboard strip */
.idk-live-strip{
  display:flex; flex-wrap:wrap; align-items:center; gap:6px var(--sp-2); margin:0;
  padding:var(--sp-2) var(--sp-3); border-radius:var(--r-control);
  background:var(--surface-raised); border:1px solid var(--border);
  font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-secondary); font-variant-numeric:tabular-nums
}
.idk-live-tag{
  padding:1px var(--sp-2); border-radius:var(--r-pill); font-size:var(--fs-label); line-height:var(--lh-label);
  font-weight:600; background:var(--gain-bg); color:var(--gain)
}

/* Watchlist ("Almost there" bases & live radar) */
.idk-watch{ display:grid; gap:var(--sp-3); padding-top:var(--sp-3); border-top:1px solid var(--border) }
.idk-watch.idk-radar{ padding:var(--sp-4) var(--sp-5); border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface) }
.idk-watch-h{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px var(--sp-3) }
.idk-watch-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:var(--sp-2) }
.idk-watch-chip{
  display:grid; gap:2px; padding:var(--sp-2) var(--sp-3); border-radius:var(--r-control);
  background:var(--surface-raised); border:1px solid var(--border);
  color:inherit; text-decoration:none; transition:border-color var(--t-fast) var(--ease)
}
.idk-watch-chip:hover{ border-color:var(--highlight) }
.idk-watch-chip:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }
.idk-watch-top{ display:flex; align-items:baseline; justify-content:space-between; gap:var(--sp-2) }
.idk-watch-top b{ font-family:var(--font-mono); font-weight:500; font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-primary) }
.idk-watch-away{ font-size:var(--fs-label); line-height:var(--lh-label); font-weight:600; color:var(--highlight-text); font-variant-numeric:tabular-nums }
.idk-watch-away.up{ color:var(--gain) } .idk-watch-away.dn{ color:var(--loss) }
.idk-watch-sub{ font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-secondary); font-variant-numeric:tabular-nums }
.idk-watch-cat{ font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.idk-row-px{ display:grid; justify-items:end; font-variant-numeric:tabular-nums }
.idk-row-px b{ font-weight:600; font-size:var(--fs-body) }
.idk-row-px small{ font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-muted) }
.idk-row-px small.up{ color:var(--gain) } .idk-row-px small.dn{ color:var(--loss) }

/* Animated radial Altaha Score ring (compact, legible on desktop AND phone). */
.idk-row-score{
  position:relative; width:44px; height:44px; margin:0 auto;
  display:grid; place-items:center; font-variant-numeric:tabular-nums
}
.idk-score-svg{ position:absolute; inset:0; width:44px; height:44px; transform:rotate(-90deg) }
.idk-score-track{ fill:none; stroke:var(--border); stroke-width:3 }
.idk-score-arc{
  fill:none; stroke:var(--highlight); stroke-width:3; stroke-linecap:round;
  transition:stroke-dashoffset 750ms var(--ease-out)
}
.idk-row-score.is-hi .idk-score-arc{ stroke:var(--gain) }
.idk-rows.is-fresh .idk-score-arc{ animation:idk-ring-sweep 820ms var(--ease-out) both; animation-delay:calc(var(--r, 0) * 45ms) }
@keyframes idk-ring-sweep{ from{ stroke-dashoffset:100.5 } }
.idk-score-num{ position:relative; font-weight:600; font-size:var(--fs-small); line-height:var(--lh-none); color:var(--text-primary) }
.idk-row-score small{
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%)
}

.idk-row-plan{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px }
.idk-badge{
  display:inline-flex; align-items:center; gap:4px; white-space:nowrap;
  padding:3px var(--sp-2); border-radius:var(--r-control);
  font-size:var(--fs-label); line-height:var(--lh-label); font-weight:600; font-variant-numeric:tabular-nums
}
.idk-badge i{ font-style:normal; font-weight:500; opacity:.85 }
.idk-badge.is-aim, .idk-badge.is-gain{ background:var(--gain-bg); color:var(--gain) }
.idk-badge.is-exit, .idk-badge.is-loss{ background:var(--loss-bg); color:var(--loss) }
.idk-badge.is-info{ background:var(--info-bg); color:var(--info) }
.idk-badge.is-quiet{ background:var(--wash); color:var(--text-secondary) }
/* Subtle metallic sheen on T1 HIT / TARGET HIT badges. */
.idk-badge.is-win{ position:relative; overflow:hidden }
.idk-badge.is-win::after{
  content:""; position:absolute; inset:0; width:45%; pointer-events:none;
  background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent);
  animation:idk-badge-shimmer 3s var(--ease) infinite
}
@keyframes idk-badge-shimmer{ 0%{ transform:translateX(-140%) } 48%,100%{ transform:translateX(260%) } }

.idk-picks-f, .idk-full{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--sp-2) var(--sp-4); margin:0 }
.idk-seeall{
  all:unset; cursor:pointer; display:inline-flex; align-items:center; gap:6px;
  font-family:var(--font-sans); font-size:var(--fs-body); font-weight:600; color:var(--highlight-text)
}
.idk-seeall:hover{ text-decoration:underline; text-underline-offset:3px }
.idk-seeall:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px; border-radius:var(--r-xs) }
.idk-chev{ display:inline-grid }
.idk-chev svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform var(--t-fast) var(--ease) }
.idk-chev.up svg{ transform:rotate(180deg) }
.idk-arrow{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform var(--t-fast) var(--ease) }
.idk-seeall:hover .idk-arrow, .idk-tg:hover .idk-arrow{ transform:translateX(3px) }
.idk-note{ font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-muted) }
.idk-quiet{ margin:0; font-size:var(--fs-body); color:var(--text-secondary) }
.idk-stale{ margin:0; font-size:var(--fs-small); padding:var(--sp-2) var(--sp-3); border-radius:var(--r-control); background:var(--warning-bg); color:var(--warning) }
.idk-retry{ all:unset; cursor:pointer; font-weight:600; color:var(--highlight-text); text-decoration:underline; text-underline-offset:3px }
.idk-skel{ display:block; height:44px; margin:var(--sp-2) 0; border-radius:var(--r-control);
  background:linear-gradient(90deg, var(--wash), var(--wash-strong), var(--wash)); background-size:200% 100%; animation:idk-shim 1.4s linear infinite }

/* ── Intraday: the tape (systematic clearance so stacked dots never collide) ─ */
.idk-tape{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-card); padding:var(--sp-4) var(--sp-5) var(--sp-3); display:grid; gap:var(--sp-3) }
.idk-tape-h{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:var(--sp-2) var(--sp-4) }
.idk-tape-t, .idk-tape-c{ margin:0; display:flex; flex-wrap:wrap; align-items:center; gap:4px var(--sp-2); font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-secondary) }
.idk-tape-c{ display:block }
.idk-tape-t b{ font-family:var(--font-display); font-weight:500; font-size:var(--fs-h3); color:var(--text-primary) }
.idk-tape-c b{ font-weight:600; color:var(--text-primary) }
.idk-tl{ display:grid; gap:var(--sp-3) }
.idk-tl-track, .idk-tl-hours{ display:grid; grid-template-columns:76px minmax(0, 1fr); align-items:center; gap:var(--sp-3) }
.idk-tl-lbl{ display:inline-flex; align-items:center; gap:4px; font-size:var(--fs-label); line-height:var(--lh-label); font-weight:600; color:var(--text-muted); white-space:nowrap }
.is-select > .idk-tl-lbl{ color:var(--highlight-text) }
/* Generous 34px height with baseline at 72% so 3 stacked levels sit cleanly inside their own track without touching the row above. */
.idk-tl-line{ position:relative; height:34px }
.idk-tl-track .idk-tl-line::before{ content:""; position:absolute; left:0; right:0; top:72%; height:2px; margin-top:-1px; border-radius:2px; background:var(--border) }
.idk-tl-band{ position:absolute; top:2px; bottom:2px; border-radius:var(--r-xs); background:color-mix(in srgb, var(--highlight) 8%, transparent) }
.idk-tl-band.is-now{ background:color-mix(in srgb, var(--highlight) 16%, transparent) }
.idk-tl-dot{
  position:absolute; top:72%; width:13px; height:13px; margin:-6.5px 0 0 -6.5px; display:grid; place-items:center;
  transform:translateY(calc(var(--lift, 0) * -9px)); color:var(--info);
  transition:transform var(--t-fast) var(--ease-out)
}
.idk-tl-dot i{ width:8px; height:8px; border-radius:50%; background:currentColor; box-shadow:0 0 0 2px var(--surface) }
.idk-tl-dot .idk-star{ width:13px; height:13px }
.idk-tl-dot.is-won{ color:var(--gain) } .idk-tl-dot.is-lost{ color:var(--loss) }
.idk-tl-dot.is-t1{ color:var(--warning) } .idk-tl-dot.is-flat{ color:var(--text-muted) }
.idk-tl-dot.is-open{ color:var(--info) }
.is-select .idk-tl-dot.is-open{ color:var(--highlight) }
.idk-tl-now{ position:absolute; top:0; bottom:0; width:2px; margin-left:-1px; border-radius:2px; background:var(--highlight) }
.idk-tl-hours .idk-tl-line{ height:14px }
.idk-tl-hours .idk-tl-line span{ position:absolute; top:0; transform:translateX(-50%); font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-muted); font-variant-numeric:tabular-nums }
.idk-tl-hours .idk-tl-line span.is-start{ transform:none } .idk-tl-hours .idk-tl-line span.is-end{ transform:translateX(-100%) }
.idk-star{ fill:currentColor; width:12px; height:12px; flex:none; display:inline-block; vertical-align:-1px }
.idk-swg-ic{ width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none }

/* ── Intraday: the lane switch (single clean row — NEVER wraps to 2 lines) ─ */
.idk-lanes{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--sp-2) var(--sp-4) }
.idk-seg{
  display:inline-flex; flex-wrap:nowrap; align-items:center; gap:4px;
  padding:4px; border-radius:var(--r-pill); background:var(--surface-raised); border:1px solid var(--border);
  max-width:100%
}
.idk-seg-b{
  all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:5px;
  padding:var(--sp-2) var(--sp-4); border-radius:var(--r-pill); border:1px solid transparent;
  font-family:var(--font-sans); font-size:var(--fs-small); line-height:var(--lh-none); font-weight:500; color:var(--text-secondary); white-space:nowrap;
  transition:background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease)
}
.idk-seg-b:hover{ color:var(--text-primary) }
.idk-seg-b:active{ transform:scale(.98) }
.idk-seg-b .idk-star, .idk-seg-b .idk-swg-ic{ color:var(--highlight) }
.idk-seg-b.on{
  background:var(--surface); border-color:var(--highlight); color:var(--text-primary); font-weight:600;
  box-shadow:0 1px 4px color-mix(in srgb, var(--text-primary) 8%, transparent)
}
.idk-seg-b:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }
.idk-seg-n{ color:var(--text-muted); font-weight:500; font-variant-numeric:tabular-nums }
.idk-lane-cap{ margin:0; font-size:var(--fs-small); color:var(--text-muted) }

/* ── Intraday: the calls ──────────────────────────────────────────────── */
.idk-calls{ display:grid; gap:var(--sp-4) }
.idk-call-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--sp-3) }
/* Guest layout: 1 featured finished sample full-width above 2 balanced blurred cards (no awkward empty L-slot). */
.idk-call-grid.is-guest > .idk-call:first-child:not(.is-blur){ grid-column:1 / -1 }
.idk-calls-empty{ padding:var(--sp-5); border:1px dashed var(--border-strong); border-radius:var(--r-card); text-align:center }
.idk-call{
  position:relative; display:grid; gap:var(--sp-3); min-width:0;
  padding:var(--sp-4) var(--sp-4) var(--sp-3); border-radius:var(--r-card);
  background:var(--surface); border:1px solid var(--border);
  transition:border-color var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease-out)
}
.idk-call:not(.is-blur):hover{ border-color:var(--border-strong); transform:translateY(-2px); box-shadow:var(--shadow-raised) }
.idk-call.is-select{ border-left:3px solid var(--highlight); padding-left:calc(var(--sp-4) - 2px) }
.idk-call.is-stopped{ opacity:.8 }
.idk-call-h{ display:flex; flex-wrap:wrap; align-items:center; gap:6px var(--sp-2) }
.idk-call-h .idk-badge{ margin-left:auto }
.idk-call-sym{ font-family:var(--font-mono); font-weight:500; font-size:var(--fs-h3); color:var(--text-primary); text-decoration:none }
.idk-call-sym:hover{ text-decoration:underline; text-underline-offset:3px; color:var(--highlight-text) }
.idk-side{ font-size:var(--fs-label); line-height:var(--lh-label); font-weight:600; letter-spacing:.04em; padding:2px 6px; border-radius:var(--r-xs) }
.idk-side.is-buy{ background:var(--gain-bg); color:var(--gain) } .idk-side.is-sell{ background:var(--loss-bg); color:var(--loss) }
.idk-lane{ display:inline-flex; align-items:center; gap:4px; font-size:var(--fs-label); line-height:var(--lh-label); font-weight:600; padding:2px var(--sp-2); border-radius:var(--r-pill); border:1px solid var(--border); color:var(--text-secondary) }
.idk-lane.is-select{ border-color:transparent; background:var(--highlight-subtle); color:var(--highlight-text) }
.idk-call-m{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px var(--sp-3); font-variant-numeric:tabular-nums }
.idk-call-pnl{ font-weight:600; font-size:var(--fs-h3) }
.idk-call-pnl.up{ color:var(--gain) } .idk-call-pnl.dn{ color:var(--loss) }
.idk-call-ltp{ font-size:var(--fs-small); color:var(--text-primary) }
.idk-call-when{ font-size:var(--fs-small); color:var(--text-muted) }
.idk-call-pair{ margin:0; display:flex; align-items:center; gap:4px; font-size:var(--fs-small); color:var(--highlight-text) }

/* Stop → trigger → half-book → target (smooth animated fill). */
.idk-rail{ position:relative; height:14px; margin:0 6px }
.idk-rail-track{ position:absolute; left:0; right:0; top:6px; height:3px; border-radius:2px;
  background:linear-gradient(90deg, color-mix(in srgb, var(--loss) 45%, transparent), var(--border) 34%, var(--border) 66%, color-mix(in srgb, var(--gain) 45%, transparent)) }
.idk-rail-fill{
  position:absolute; top:5px; height:5px; border-radius:3px;
  transform-origin:left center; animation:idk-rail-grow 760ms var(--ease-out) both
}
@keyframes idk-rail-grow{ from{ transform:scaleX(0) } to{ transform:scaleX(1) } }
.idk-rail-fill.up{ background:var(--gain) } .idk-rail-fill.dn{ background:var(--loss) }
.idk-rail-tick{ position:absolute; top:2px; width:2px; height:11px; margin-left:-1px; border-radius:1px; background:var(--text-muted) }
.idk-rail-tick.is-sl{ background:var(--loss) } .idk-rail-tick.is-tg{ background:var(--gain) }
.idk-rail-tick.is-t1.hit{ background:var(--warning); width:3px }
.idk-rail-now{
  position:absolute; top:1px; width:12px; height:12px; margin-left:-6px; border-radius:50%;
  border:2px solid var(--surface); box-shadow:0 0 0 1px var(--border-strong);
  animation:idk-dot-pop 540ms var(--ease-out) 180ms both
}
@keyframes idk-dot-pop{ from{ transform:scale(.3); opacity:0 } to{ transform:scale(1); opacity:1 } }
.idk-rail-now.up{ background:var(--gain) } .idk-rail-now.dn{ background:var(--loss) }
.idk-rail-l{ position:relative; height:30px; margin:0 6px; font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-secondary); font-variant-numeric:tabular-nums }
.idk-rail-l span{ position:absolute; top:0; display:grid; justify-items:center; transform:translateX(-50%); white-space:nowrap }
.idk-rail-l span:first-child{ transform:translateX(-6px); justify-items:start }
.idk-rail-l span:last-child{ transform:translateX(calc(-100% + 6px)); justify-items:end }
.idk-rail-l b{ font-weight:600; color:var(--text-muted); letter-spacing:.04em }

/* Signed out: stand-ins that carry nothing, and a way in. */
.idk-call.is-blur{ filter:blur(3px); opacity:.6; pointer-events:none; user-select:none }
.idk-fake{ display:inline-block; height:10px; border-radius:var(--r-xs); background:var(--wash-strong) }
.idk-fake.w1{ width:80px } .idk-fake.w2{ width:52px } .idk-fake.w3{ width:68px }
.idk-fake-rows{ display:flex; justify-content:space-between }
.idk-unlock{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--sp-3) var(--sp-5);
  padding:var(--sp-4) var(--sp-5); border-radius:var(--r-card);
  background:var(--highlight-subtle); border:1px solid color-mix(in srgb, var(--highlight) 40%, transparent)
}
.idk-unlock > div{ display:grid; gap:2px; min-width:0; flex:1 1 280px }
.idk-unlock-t{ margin:0; font-family:var(--font-display); font-weight:500; font-size:var(--fs-h3); line-height:var(--lh-h3); color:var(--text-primary) }
.idk-signin{
  display:inline-flex; align-items:center; justify-content:center; min-height:var(--control-h); padding:0 var(--sp-5);
  border-radius:var(--r-pill); background:var(--accent); color:var(--on-accent); font-weight:600; text-decoration:none; white-space:nowrap;
  transition:background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease)
}
.idk-signin:hover{ background:var(--accent-hover); transform:translateY(-1px) }
.idk-signin:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px }

/* ── More research tools ──────────────────────────────────────────────── */
.idk-tools{ display:grid; gap:var(--sp-3); padding-top:var(--sp-4); border-top:1px solid var(--border) }
.idk-tools-h{ margin:0; font-size:var(--fs-label); line-height:var(--lh-label); font-weight:600; letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-muted) }
.idk-toolrow{ display:flex; flex-wrap:wrap; gap:var(--sp-2) }
.idk-tool{
  all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; gap:var(--sp-2);
  min-height:36px; padding:0 var(--sp-3); border-radius:var(--r-pill); border:1px solid var(--border); background:var(--surface);
  font-family:var(--font-sans); font-size:var(--fs-small); font-weight:500; color:var(--text-primary); text-decoration:none;
  transition:border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease)
}
.idk-tool svg{ width:16px; height:16px; fill:none; stroke:var(--highlight); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; transition:transform var(--t-fast) var(--ease) }
.idk-tool:hover{ border-color:var(--highlight); background:var(--surface-raised); transform:translateY(-1px) }
.idk-tool:hover svg{ transform:scale(1.08) }
.idk-tool:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }
.idk-disc{ margin:0; font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-muted) }

/* ── When the lists were ranked, and running things (the owner) ──────── */
.idk-scanbar{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--sp-2) var(--sp-4); margin-bottom:calc(var(--sp-2) * -1) }
.idk-scan-when{ margin:0; font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-muted) }
.idk-owner-tools{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--sp-2) var(--sp-3) }
.idk-owner{
  display:flex; flex-wrap:wrap; align-items:center; gap:var(--sp-2) var(--sp-3);
  padding:var(--sp-2) var(--sp-3); border-radius:var(--r-card); border:1px dashed var(--border-strong); background:var(--surface-raised)
}
.idk-owner-tag{ font-size:var(--fs-label); line-height:var(--lh-label); font-weight:600; letter-spacing:var(--ls-label); text-transform:uppercase;
  padding:2px var(--sp-2); border-radius:var(--r-xs); background:var(--accent); color:var(--on-accent) }
.idk-owner-state{ display:inline-flex; align-items:center; gap:6px; font-size:var(--fs-small); color:var(--text-secondary) }
.idk-owner-msg{ font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-secondary) }
.idk-ownbtn{
  all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; gap:6px;
  min-height:32px; padding:0 var(--sp-3); border-radius:var(--r-pill);
  background:var(--accent); color:var(--on-accent); font-family:var(--font-sans); font-size:var(--fs-small); font-weight:600; white-space:nowrap
}
.idk-ownbtn:hover{ background:var(--accent-hover) }
.idk-ownbtn.is-quiet{ background:var(--surface); color:var(--text-primary); border:1px solid var(--border-strong) }
.idk-ownbtn.is-quiet:hover{ border-color:var(--highlight) }
.idk-ownbtn:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }
.idk-ownbtn[disabled]{ opacity:.55; cursor:progress }
.idk-run{ width:12px; height:12px; fill:currentColor }
.idk-scan-prog{ position:relative; display:inline-block; width:120px; height:6px; border-radius:3px; background:var(--wash-strong); overflow:hidden }
.idk-scan-prog i{ position:absolute; inset:0 auto 0 0; border-radius:3px; background:var(--highlight); transition:width var(--t) var(--ease) }
.idk-ownerlink{ all:unset; cursor:pointer; margin-left:var(--sp-2); text-decoration:underline; text-underline-offset:2px; color:var(--text-muted) }
.idk-ownerlink:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }
.idk-picks-idea{ margin:2px 0 0; font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-secondary); max-width:62ch }

/* ── Telegram: sleek compact channel strip ────────────────────────────── */
.idk-tg{
  display:flex; align-items:center; gap:var(--sp-3); padding:var(--sp-3) var(--sp-4);
  border-radius:var(--r-card); text-decoration:none; color:var(--text-primary);
  background:color-mix(in srgb, var(--info) 7%, var(--surface)); border:1px solid color-mix(in srgb, var(--info) 28%, var(--border));
  transition:border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease)
}
.idk-tg:hover{ border-color:var(--info); background:color-mix(in srgb, var(--info) 12%, var(--surface)); transform:translateY(-1px) }
.idk-tg:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }
.idk-tg-ic{
  flex:none; width:36px; height:36px; border-radius:50%; display:grid; place-items:center;
  background:var(--info); color:var(--surface); transition:transform var(--t) var(--ease-out)
}
.idk-tg:hover .idk-tg-ic{ transform:translate(2px, -1px) rotate(-6deg) }
.idk-tg-ic svg{ width:18px; height:18px; fill:currentColor; margin-left:-2px }
.idk-tg-t{ display:grid; gap:1px; min-width:0; flex:1 }
.idk-tg-t b{ font-family:var(--font-sans); font-weight:600; font-size:var(--fs-body); line-height:var(--lh-small) }
.idk-tg-t small{ font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-secondary) }
.idk-tg-go{ flex:none; display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:0 var(--sp-3); border-radius:var(--r-pill);
  background:var(--info); color:var(--surface); font-weight:600; font-size:var(--fs-label); white-space:nowrap }
.idk-tg-missing{ margin:0 }

/* ── A narrower desktop ───────────────────────────────────────────────── */
@media (max-width:1180px){
  .idk-door-body{ grid-template-columns:minmax(0, 1fr) 68px; gap:var(--sp-2) }
  .idk-door-art{ width:68px; height:50px }
  .idk-row{ grid-template-columns:28px minmax(130px, 1fr) minmax(0, 1.6fr) 104px 48px; }
  .idk-row-plan{ grid-column:2 / -1; justify-content:flex-start }
}
@media (max-width:960px){
  .idk-hero{ grid-template-columns:minmax(0, 1fr) }
  .idk-hero-art{ display:none }
  .idk-door-body{ grid-template-columns:minmax(0, 1fr) }
  .idk-door-art{ display:none }
  .idk-strats.is-three{ grid-template-columns:repeat(3, minmax(0, 1fr)) }
  .idk-call-grid{ grid-template-columns:minmax(0, 1fr) }
  .idk-call-grid.is-guest > .idk-call:first-child:not(.is-blur){ grid-column:auto }
  .idk-row{ grid-template-columns:24px minmax(0, 1fr) 96px 46px; gap:var(--sp-3) }
  .idk-row-why{ grid-column:2 / -1; grid-row:2 }
  .idk-row-plan{ grid-column:2 / -1; grid-row:3 }
}

/* ── Phones and small tablets ─────────────────────────────────────────── */
@media (max-width:767px){
  .idk{ gap:var(--sp-3); padding-bottom:var(--sp-4) }
  .idk-hero{ padding-top:var(--sp-1) }
  .idk-title{ font-size:var(--fs-h2); line-height:var(--lh-h2) }
  .idk-lede{ display:none }

  /* The three doors become one compact sticky row of three crisp pills. */
  .idk-doors{
    position:sticky; top:var(--sh-chrome-h, 0px); z-index:20;
    grid-template-columns:1.25fr 1fr 1fr; gap:6px;
    margin:0 calc(var(--gutter) * -1); padding:var(--sp-2) var(--gutter);
    background:var(--bg); border-bottom:1px solid var(--border)
  }
  .idk-door, .idk-door.on{
    display:grid; grid-template-rows:auto;
    padding:0 6px; min-height:40px; border-radius:var(--r-pill); justify-content:center; align-content:center;
    box-shadow:none; transform:none; background:var(--surface)
  }
  .idk-door::after{ display:none }
  .idk-door.on{ border-width:1.5px; background:color-mix(in srgb, var(--highlight-subtle) 75%, var(--surface)) }
  .idk-door-top, .idk-door-sub, .idk-door-foot, .idk-door-art, .idk-long{ display:none }
  .idk-door-body{ display:block }
  .idk-short{ display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap }
  .idk-door-name{ font-family:var(--font-sans); font-size:var(--fs-small); line-height:var(--lh-small); font-weight:500; letter-spacing:0; text-align:center }
  .idk-door.on .idk-door-name{ font-weight:600 }

  .idk-strats.is-three, .idk-strats.is-five{ grid-template-columns:minmax(0, 1fr) }
  .idk-strats.is-five .idk-strat, .idk-strats.is-five .idk-strat:nth-child(n+4){ grid-column:auto }
  .idk-strat{ padding:var(--sp-2) var(--sp-3) }
  .idk-strat .idk-sketch, .idk-strat .idk-fsketch{ order:2; width:48px; height:32px }

  .idk-picks{ padding:var(--sp-3) var(--sp-3) var(--sp-3) }
  .idk-spot{ padding:var(--sp-3) }
  .idk-row-wrap{ grid-template-columns:minmax(0, 1fr); gap:0 }
  .idk-peek-btn{ justify-self:end; margin:0 0 var(--sp-2) }
  .idk-story{ white-space:normal }
  .idk-peek{ padding:var(--sp-3) }
  .idk-peek-cols{ grid-template-columns:minmax(0, 1fr) }
  .idk-watch.idk-radar{ padding:var(--sp-3) }
  /* Keep compact score ring visible right beside price on mobile too. */
  .idk-row{ grid-template-columns:20px minmax(0, 1fr) auto 38px; gap:4px var(--sp-2); padding:var(--sp-3) var(--sp-1); margin:0 }
  .idk-row-score{ width:36px; height:36px }
  .idk-score-svg{ width:36px; height:36px }
  .idk-row-why{ grid-column:2 / -1; grid-row:2 }
  .idk-row-plan{ grid-column:2 / -1; grid-row:3 }
  .idk-row-why .idk-thesis{ width:100% }

  .idk-tape{ padding:var(--sp-3) }
  .idk-tg{ flex-wrap:nowrap; gap:var(--sp-2); padding:var(--sp-2) var(--sp-3) }
  .idk-tg-ic{ width:32px; height:32px }
  .idk-tg-t small{ display:none }
  .idk-tg-go{ padding:0 var(--sp-3) }
  .idk-scan-prog{ width:90px }
  .idk-tl-track, .idk-tl-hours{ grid-template-columns:54px minmax(0, 1fr); gap:var(--sp-2) }
  .idk-tl-hours .idk-tl-line span.is-minor{ display:none }
  .idk-lanes{ display:grid; gap:var(--sp-2) }
  /* Three lanes fit cleanly in ONE single horizontal row on 390px phone with zero wrapping. */
  .idk-seg{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); width:100% }
  .idk-seg-b{ padding:var(--sp-2) 4px; font-size:var(--fs-label); gap:3px }
  .idk-call{ padding:var(--sp-3) }
  .idk-call.is-select{ padding-left:calc(var(--sp-3) - 2px) }
  .idk-tools .idk-toolrow{
    flex-wrap:nowrap; overflow-x:auto; padding-bottom:var(--sp-1); scrollbar-width:none;
    margin:0 calc(var(--gutter) * -1); padding-left:var(--gutter); padding-right:var(--gutter);
    -webkit-mask-image:linear-gradient(90deg, transparent, black 14px, black calc(100% - 20px), transparent);
    mask-image:linear-gradient(90deg, transparent, black 14px, black calc(100% - 20px), transparent)
  }
  .idk-tools .idk-toolrow::-webkit-scrollbar{ display:none }
  .idk-tool{ flex:none }
}

/* ── Motion off (strictly honoured under reduced-motion and toggle) ───── */
@media (prefers-reduced-motion:reduce){
  .idk-pulse, .idk-wait, .idk-skel,
  .idk-panel.is-enter > *, .idk-panel.is-enter .idk-strat, .idk-panel.is-enter .idk-call,
  .idk-rows.is-fresh > li, .idk-rows.is-fresh .idk-score-arc,
  .idk-hero-art *, .idk-door-art *, .idk-sketch *, .idk-fsketch *,
  .idk-rail-fill, .idk-rail-now, .idk-badge.is-win::after{ animation:none !important }
  .idk-door, .idk-door:hover, .idk-door::after, .idk-strat, .idk-strat:hover,
  .idk-call, .idk-call:hover, .idk-tg, .idk-tg:hover{ transition:none !important; transform:none !important }
}
html[data-motion="off"] .idk-pulse, html[data-motion="off"] .idk-wait, html[data-motion="off"] .idk-skel,
html[data-motion="off"] .idk-panel.is-enter > *, html[data-motion="off"] .idk-panel.is-enter .idk-strat,
html[data-motion="off"] .idk-panel.is-enter .idk-call,
html[data-motion="off"] .idk-rows.is-fresh > li, html[data-motion="off"] .idk-rows.is-fresh .idk-score-arc,
html[data-motion="off"] .idk-hero-art *, html[data-motion="off"] .idk-door-art *,
html[data-motion="off"] .idk-sketch *, html[data-motion="off"] .idk-fsketch *,
html[data-motion="off"] .idk-rail-fill, html[data-motion="off"] .idk-rail-now,
html[data-motion="off"] .idk-badge.is-win::after{ animation:none !important }
html[data-motion="off"] .idk-door, html[data-motion="off"] .idk-door::after,
html[data-motion="off"] .idk-strat, html[data-motion="off"] .idk-call{ transition:none !important; transform:none !important }
