/* What's Moving X Today? card (/move/<SYM>): served by fpdash, data from newslive's build_move_cards.py.
   Ported from the 2026-11-12 mockup (claude_tmp/mockups/index.html). Not auto-injected by Dash (assets_path_ignore). */
:root {
  /* Layout idea: the FactorPulse digest's own dark card world. A short brief, then each mockup as a real digest-style card (blue tick, date stamp, finding-as-title), with build notes beside it. Single theme on purpose: these cards ship on the dark site. */
  --page: #101419;
  --card: #151b23;
  --card-2: #1b232d;
  --line: #29333f;
  --ink: #e6ebf1;
  --muted: #95a1b1;
  --faint: #5d6877;
  --accent: #4a9be8;
  --mkt: #3987e5;
  --sty: #c98500;
  --thm: #9085e9;
  --co: #199e70;
  --right: #3cc3cf;
  --wrong: #e8607a;
  --focal: #f2d024;
  --peer: #8e9aab;
  --up: #4cc38a;
  --down: #f06a6a;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
main { max-width: 1000px; margin: 0 auto; padding: 18px 14px 48px; display: grid; gap: 18px; }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.22; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 700; color: var(--accent); border-left: 3px solid var(--accent); padding-left: 12px; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0; max-width: 68ch; }
code { font-family: var(--mono); font-size: 0.85em; background: var(--card-2); padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
header, section { display: grid; gap: 16px; }
.meta { color: var(--muted); font-size: 0.9rem; }

/* idea list */
.ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.idea { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.idea .from { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.idea p { font-size: 0.93rem; }

/* digest-style card */
.fp-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 20px; display: grid; gap: 14px; }
.fp-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tick { width: 26px; height: 4px; border-radius: 2px; background: var(--accent); }
.stamp { font-size: 0.75rem; color: var(--muted); }
.fp-title { font-size: 1.22rem; font-weight: 700; line-height: 1.28; max-width: 34em; }
.fp-sub { font-size: 0.86rem; color: var(--muted); max-width: 62ch; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8rem; color: var(--muted); align-items: center; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.chart-wrap { width: 100%; overflow-x: auto; }
svg text { font-family: var(--body); }
.panel-title { font-size: 0.92rem; font-weight: 600; }

/* neighbour list */
.nb { display: grid; grid-template-columns: minmax(9rem, 19rem) 4.6rem 1fr 4.4rem 4.6rem 4.8rem; gap: 6px 12px; align-items: center; font-size: 0.9rem; }
.nb .hd { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.nb .sym { font-weight: 600; }
.nb .nm { display: block; color: var(--muted); font-size: 0.79rem; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb .focal .sym, .nb .sym.focal { color: var(--ink); }
.nb .rowline { grid-column: 1 / -1; height: 1px; background: var(--line); }
.nb .val { text-align: right; }
.nb svg { display: block; width: 100%; height: 16px; }
.hl { background: rgba(201,133,0,0.08); }
.phone-only { display: none; }
.vg { margin-left: 5px; font-size: 0.8em; color: var(--ink); }
.stamp.asof { color: var(--ink); opacity: 0.8; font-size: 0.8rem; }
.kicker { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.01em; color: var(--focal); margin-bottom: -8px; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8rem; color: var(--muted); }
.legend.tight { gap: 4px 12px; }
details.howto { font-size: 0.84rem; color: var(--muted); }
details.howto summary { cursor: pointer; color: var(--accent); }
details.howto ul { margin: 6px 0 0; padding-left: 1.1em; display: grid; gap: 4px; max-width: 70ch; }
details.howto b { color: var(--ink); font-weight: 600; }
.ech { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; padding: 0 6px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; border: 1px solid currentColor; }
.ech.today { color: var(--page); background: var(--ink); border-color: var(--ink); }
.ech.recent { color: var(--ink); }
.ech.upcoming { color: var(--muted); border-style: dashed; }

.shared .sep { border-top: 1px solid var(--line); height: 0; margin: 2px 0; }
.shared { display: grid; grid-template-columns: minmax(9rem, 12rem) 1fr 4.2rem; gap: 6px 12px; align-items: center; font-size: 0.85rem; }

.notes { background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; display: grid; gap: 8px; }
.notes ul { margin: 0; padding-left: 1.1em; display: grid; gap: 5px; max-width: 76ch; font-size: 0.92rem; }
.notes h3 { font-size: 0.92rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* game */
.game { display: grid; gap: 16px; }
.g-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.g-round { font-size: 0.8rem; color: var(--muted); }
.pips { display: flex; gap: 6px; }
.pip { width: 26px; height: 6px; border-radius: 3px; background: var(--line); }
.pip.ok { background: var(--right); }
.pip.no { background: var(--wrong); }
.pip.now { background: var(--accent); }
.stock { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.stock .tk { font-family: var(--mono); font-size: 2rem; font-weight: 600; letter-spacing: 0.02em; }
.stock .mv { font-family: var(--mono); font-size: 2rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.stock .mv.up { color: var(--right); }
.stock .mv.dn { color: var(--wrong); }
.stock .nm { color: var(--muted); }
.q { font-size: 1.05rem; font-weight: 600; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice { font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--ink); background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 10px; cursor: pointer; display: grid; gap: 4px; justify-items: center; text-align: center; }
.choice small { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.choice:hover:not([disabled]) { border-color: var(--accent); }
.choice:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice[disabled] { cursor: default; opacity: 0.55; }
.choice.picked { opacity: 1; border-width: 2px; }
.choice.picked.ok { border-color: var(--right); }
.choice.picked.no { border-color: var(--wrong); }
.choice.answer { opacity: 1; border-color: var(--right); border-style: dashed; }
.choice .bar { width: 28px; height: 4px; border-radius: 2px; }
.reveal { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.verdict { font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.verdict .badge { font-size: 0.78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; }
.verdict .badge.ok { color: var(--right); }
.verdict .badge.no { color: var(--wrong); }
.wf { display: grid; grid-template-columns: 9rem 1fr 4.4rem; gap: 7px 10px; align-items: center; font-size: 0.88rem; }
.wf svg { display: block; width: 100%; height: 16px; }
.wf .val { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wf .tot { font-weight: 600; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--page); background: var(--accent); border: 0; border-radius: 7px; padding: 9px 16px; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.share { font-family: var(--mono); font-size: 0.95rem; background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; white-space: pre-wrap; }
.hook { font-size: 0.9rem; color: var(--muted); }
.learn { background: var(--card-2); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: 0.94rem; }
.idx { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 0.82rem; color: var(--muted); }
.chip b { color: var(--ink); font-family: var(--mono); margin-right: 4px; }
.chip .num { color: var(--right); margin-left: 4px; }
.reveal p { max-width: 72ch; }
details.key { font-size: 0.88rem; color: var(--muted); }
details.key summary { cursor: pointer; color: var(--accent); }
.tip { position: fixed; pointer-events: none; background: #0b0f14; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font-size: 0.8rem; line-height: 1.4; color: var(--ink); z-index: 10; display: none; max-width: 260px; }
.tip b { font-family: var(--mono); }
@media (max-width: 560px) {
  h1 { font-size: 1.6rem; }
  .choices { grid-template-columns: 1fr; }
  .nb { grid-template-columns: minmax(0, 1fr) 2.9rem 3.4rem 3.6rem; font-size: 0.74rem; gap: 8px 8px; }
  .nb > :nth-child(6n+3), .nb > :nth-child(6n+4) { display: none; }
  .nb .nm { white-space: normal; overflow: visible; }
  .phone-only { display: inline !important; }
  .ind-part { display: none; }
  .ech { font-size: 0.6rem; padding: 0 4px; }
  .nb .hd { font-size: 0.62rem; }
  .legend.tight { font-size: 0.74rem; gap: 4px 10px; }
  .fp-title { font-size: 1.05rem; }
  .shared { grid-template-columns: 7.2rem 1fr 3rem; }
  .wf { grid-template-columns: 6.5rem 1fr 3.8rem; }
  .shared { grid-template-columns: 7.5rem 1fr 3.2rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.mv-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.mv-brand { display: inline-flex; align-items: center; font-family: Lato, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 1.25rem; font-weight: 400; color: #ffffff; text-decoration: none; white-space: nowrap; }
.mv-brand i { color: #00bc8c; font-size: 16px; margin-right: 14px; }   /* the site navbar's chart-line icon */
.mv-brand span { color: inherit; }   /* one word, one colour: FactorPulse */
.mv-links { display: flex; gap: 14px; font-size: 0.85rem; }
.mv-links a { color: var(--accent); }
/* share row: the Home digest's (assets/style.css .share), same look and the same show/hide rules. Share shows only
   where the native sheet exists, Text only on touch devices, and on phones with a share sheet X is left to the sheet */
.mv-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mv-share a, .mv-share button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 36px;
    border-radius: 999px; border: 1px solid #6c757d; background: transparent; color: #e0e0e0; font: inherit;
    font-size: 0.85rem; line-height: 1; text-decoration: none; cursor: pointer; }
.mv-share a:hover, .mv-share button:hover { border-color: #66b0ff; color: #fff; }
.mv-share [data-mv-act="native"] { background: #375a7f; border-color: #375a7f; color: #fff; }
.mv-share [data-mv-act="native"], .mv-share [data-mv-act="sms"] { display: none; }
.fp-can-share .mv-share [data-mv-act="native"], .fp-touch .mv-share [data-mv-act="sms"] { display: inline-flex; }
.fp-can-share.fp-touch .mv-share .social { display: none; }
.mv-share i { font-size: 0.9rem; }
.mv-share a.follow { border: none; border-left: 1px solid #555; border-radius: 0; color: #3498db; padding-left: 10px; margin-left: 2px; }
.mv-share a.follow:hover { color: #66b0ff; text-decoration: underline; }
@media (max-width: 767.98px) { .mv-share a.follow { flex-basis: 100%; border-left: none; margin-left: 0; padding: 2px 11px; min-height: 0; } }
@media (min-width: 768px) {
    .mv-share { gap: 6px; }
    .mv-share a, .mv-share button { min-height: 27px; padding: 4px 9px; gap: 5px; font-size: 0.7rem; }
    .mv-share i { font-size: 0.7rem; }
}
@media (max-width: 420px) { .mv-share { gap: 6px; } .mv-share a, .mv-share button { padding: 6px 10px; gap: 5px; } }
.mv-delayed { color: var(--wrong); font-weight: 600; }
.mv-foot { font-size: 0.78rem; color: var(--muted); }
.mv-foot a { color: var(--muted); }

/* ---- D2 first view (the user's 2026-11-12 rework; copied from the mockup) ---- */
/* D2: reworked card. One loud element (the build-up), everything after it quiet. */
.v2 { gap: 20px; }
.v2 .about { font-size: 0.95rem; color: var(--muted); margin-top: -8px; }
.v2-sec { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.v2-sec > h3 { font-size: 1.05rem; font-weight: 700; }
.v2-sec > p { font-size: 0.93rem; color: var(--muted); max-width: 66ch; }
.v2-sec > p b { color: var(--ink); font-weight: 600; }
.build { display: grid; grid-template-columns: minmax(10rem, 15.5rem) 1fr 4.8rem; gap: 12px 14px; align-items: center; }
.build .lab b { display: block; font-weight: 600; font-size: 0.98rem; }
.build .lab small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.build svg { display: block; width: 100%; height: 24px; }
.build .val { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.98rem; }
.build .rule { grid-column: 1 / -1; height: 1px; background: var(--line); }
.build .tot b, .build .val.tot { font-weight: 700; font-size: 1.08rem; }
.build .cap { grid-column: 2; display: flex; justify-content: space-between; gap: 10px; font-size: 0.8rem; color: var(--muted); margin-top: -8px; }
.build .cap .own { color: var(--co); text-align: right; }
.trait { display: grid; grid-template-columns: 1fr 1fr 4.8rem; gap: 2px 14px; align-items: baseline; font-size: 0.92rem; padding: 7px 0; border-top: 1px solid var(--line); }
.trait.hd { border-top: 0; padding: 0 0 2px; font-size: 0.78rem; color: var(--muted); }
.trait .is small { display: block; color: var(--sty); font-size: 0.78rem; }
.trait .hap { color: var(--muted); }
.trait .val { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.trait.rest .is, .trait.rest .hap { color: var(--muted); }
.trait.sum { font-weight: 700; }
.trait.sum .is { color: var(--sty); }
.fifths { display: grid; grid-template-columns: minmax(9rem, 15.5rem) 1fr 4.8rem; gap: 6px 14px; align-items: center; font-size: 0.88rem; background: var(--card-2); border-radius: 8px; padding: 12px 14px; }
.fifths .ttl { grid-column: 1 / -1; font-weight: 600; font-size: 0.9rem; }
.fifths svg { display: block; width: 100%; height: 14px; }
.fifths .val { text-align: right; font-family: var(--mono); }
.fifths .here { display: block; color: var(--focal); font-size: 0.8rem; }
.prow { display: grid; grid-template-columns: minmax(8rem, 15.5rem) 1fr 4.4rem 4.8rem; gap: 0 14px; align-items: center; font-size: 0.9rem; padding: 5px 8px; margin: 0 -8px; border-radius: 6px; }
.prow.hd { font-size: 0.78rem; color: var(--muted); padding-bottom: 0; }
.prow.me { background: rgba(242, 208, 36, 0.09); }
.prow.me .sym { color: var(--focal); }
.prow > :first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .sym { font-weight: 600; }
.prow .nm { color: var(--muted); font-size: 0.8rem; margin-left: 6px; }
.prow svg { display: block; width: 100%; height: 14px; }
.prow .val { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.map2 { display: block; width: 100%; height: auto; }
.v2-sec > p.mapcap { font-size: 0.88rem; }
.slot { border: 1px dashed var(--faint); border-radius: 6px; padding: 8px 12px; font-size: 0.84rem; color: var(--muted); max-width: 66ch; }
.v2 .learn { max-width: 70ch; }
.v2 .fine { font-size: 0.8rem; color: var(--faint); }
details.deep { border-top: 1px solid var(--line); padding-top: 14px; font-size: 0.9rem; }
details.deep > summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.deep-body { display: grid; gap: 14px; margin-top: 14px; }
.deep-body > .fp-top, .deep-body > .kicker, .deep-body > .fp-title { display: none; }
@media (max-width: 560px) {
  .build { grid-template-columns: 1fr 4.4rem; gap: 3px 8px; }
  .build .lab { grid-column: 1 / -1; margin-top: 8px; }
  .build .lab small { display: inline; margin-left: 4px; }
  .build .lab.tot { margin-top: 0; }
  .build .rule { margin-top: 8px; }
  .build .val.tot { font-size: 0.98rem; }
  .build .cap { grid-column: 1 / -1; margin-top: 2px; }
  .trait { grid-template-columns: 1fr 3.6rem; }
  .trait .hap { grid-column: 1; grid-row: 2; }
  .trait .val { grid-column: 2; grid-row: 1; }
  .trait.hd .hap { display: none; }
  .fifths { grid-template-columns: 6.6rem 1fr 3.4rem; gap: 6px 8px; font-size: 0.8rem; }
  .prow { grid-template-columns: 5.6rem 1fr 3.8rem; gap: 0 8px; font-size: 0.8rem; }
  .prow > :nth-child(3) { display: none; }
  .prow .nm { display: none; }
}
.v2 .about { margin-top: -6px; }
.slot a { color: var(--accent); text-decoration: none; } .slot a:hover { text-decoration: underline; }
h1.fp-title { margin: 0; }
/* earnings flag at the top of the card: loud on a reaction day, quiet otherwise */
.mv-earn { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-bottom: -4px; }
.mv-earn i { font-size: 0.85em; }
.mv-earn.reaction { color: var(--page); background: var(--focal); border-color: var(--focal); }
/* Go deeper: lookback toggle */
.mv-tabs { display: flex; gap: 6px; }
.mv-tabs button { font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 4px 14px; cursor: pointer; }
.mv-tabs button[aria-selected="true"] { color: var(--page); background: var(--accent); border-color: var(--accent); }
.mv-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the peer map's horizon strip: Today / 1M / 3M / 1Y, each with its total and company-specific part; doubles as the tabs */
.mv-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 640px; }
.mv-strip button { font: inherit; text-align: left; display: grid; gap: 1px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.mv-strip .h { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.mv-strip .r { font-family: var(--mono); font-size: 1.02rem; font-weight: 600; }
.mv-strip .c { font-size: 0.74rem; color: var(--muted); }
.mv-strip button[aria-selected="true"] { border-color: var(--accent); background: rgba(74, 155, 232, 0.12); }
.mv-strip button[aria-selected="true"] .h { color: var(--accent); }
.mv-strip button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .mv-strip { gap: 5px; } .mv-strip button { padding: 6px 6px; } .mv-strip .r { font-size: 0.9rem; } .mv-strip .c { font-size: 0.66rem; } }
/* the two numbers at the top: total return and company-specific, green up / red down */
.mv-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: -4px; }
.mv-stats > div { display: grid; gap: 0; }
.mv-stats .k { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.mv-stats .v { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; line-height: 1.15; }
@media (max-width: 560px) { .mv-stats { gap: 20px; } .mv-stats .v { font-size: 1.4rem; } }
.mv-stats .v.vol { color: var(--ink); }
