/* cards.css — the decision card (web/event/cards.py) on the results page and the decision page.
   The look of the retired /event/stream card.  Colours: red = 涨/赚/做多, green = 跌/亏/做空
   (owner decision 2026-07-29, site-wide; the candles are red-up too). */
.cards{display:flex;flex-direction:column;gap:12px;margin:6px 0}
.scard{background:#fff;border:1px solid #e3e6ea;border-radius:12px;padding:14px 16px;box-shadow:0 1px 3px rgba(27,31,35,.04);scroll-margin-top:calc(var(--sitebar-h,64px) + 10px)}
.scard.enter{border-left:4px solid #cf222e}.scard.enter-short{border-left-color:#1a7f37}.scard.enter-mixed{border-left-color:#8250df}
.scard.watch{border-left:4px solid #d4a72c}
/* the Beijing decision day between cards */
.daydiv{display:flex;align-items:baseline;gap:8px;margin:10px 0 -2px;font-size:13px;font-weight:800;color:#33393f;border-bottom:1px solid #e3e6ea;padding-bottom:3px}
.daydiv small{font-size:11px;font-weight:500;color:#8a929c}
.scard.sim-card{border-left-style:dashed}
.scard.muted{padding:9px 14px;background:#fbfcfd}
.scard.avoid .stitle,.scard.watch .stitle,.scard.skipped .stitle{font-weight:550;color:#39414b}
/* header */
.shead{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap;font-size:12.5px;color:#6b7280}
.shead .src{font-weight:700;color:#33393f}
.shead .source-board,.timewarn{background:#fff8e8;color:#7a4b00;border:1px solid #ead6a6;border-radius:6px;padding:0 7px;font-size:11px;font-weight:700}
.shead .armtag{background:#eef4ff;color:#0550ae;border:1px solid #cfe3fb;border-radius:6px;padding:0 7px;font-size:11px;font-weight:700}
.shead .actbadge{color:#fff;border-radius:6px;padding:1px 9px;font-size:11.5px;font-weight:700;background:#cf222e}
.shead .actbadge.short{background:#1a7f37}.shead .actbadge.mixed{background:#8250df}
.shead .market{background:#f6f8fa;color:#33393f;border:1px solid #dfe3e8;border-radius:6px;padding:0 7px;font-size:11px;font-weight:800}
.shead .cat{background:#f0f0f4;color:#57606a;border:1px solid #dfe3e8;border-radius:6px;padding:0 7px;font-size:11px;font-weight:700}
.shead .dupbadge{background:#eef1ff;color:#4b3fd0;border:1px solid #d5d0f5;border-radius:6px;padding:0 7px;font-size:11px;font-weight:700}
.shead .sim-badge{background:#f3e8ff;color:#6b21a8;border:1px solid #d8b4fe;border-radius:10px;padding:0 8px;font-size:11.5px;font-weight:700}
.shead .conf{font-size:12px;color:#57606a}
.shead .permalink{margin-left:auto;font-size:12px;font-weight:600}
.sconc{border-radius:20px;padding:1px 11px;font-weight:700;font-size:12.5px;border:1px solid}
.conc-watch{background:#fff4e0;color:#9a4b00;border-color:#fbe0b3}
.conc-cant{background:#eef1f4;color:#57606a;border-color:#dfe3e8}
.conc-no{background:#f6f8fa;color:#8a929c;border-color:#e3e6ea}
/* time line: 发布 · 抓取 · 决策 */
.stimes{display:flex;align-items:center;gap:4px 6px;flex-wrap:wrap;font-size:12.5px;color:#57606a;margin:6px 0 0;font-variant-numeric:tabular-nums}
.stimes b{color:#1f2328;font-weight:650}
.stimes .dt{font-size:11.5px;color:#0550ae;background:#eef4ff;border-radius:4px;padding:0 4px;margin-left:2px}
.stimes .sep{color:#c4cad1}.stimes .tago{color:#8a929c}
.stimes .tnote{font-size:11px;color:#8a929c;border:1px dashed #d0d7de;border-radius:4px;padding:0 4px}
.stimes .taxis{font-size:11px;font-weight:700;color:#57606a;background:#f2f4f7;border:1px solid #d8dee4;border-radius:4px;padding:0 5px}
.stimes .tsrc{color:#6e7781;font-size:11.5px;margin-left:2px}
/* title, thesis, source strip */
.stitle{font-size:15px;font-weight:650;color:#1c2128;margin:8px 0 6px;line-height:1.55}
h1.stitle{font-size:20px;line-height:1.4}
.stitle a{color:#0969da}.stitle.quiet{font-size:13.5px;font-weight:500;color:#6b7280;margin:2px 0 0}
.sthesis{font-size:13px;color:#414851;margin:0 0 6px}
.mutedline{font-size:13px;color:#57606a;margin:4px 0 0}
.sigtext{font-size:12.5px;color:#3a424c;background:#fbfbf7;border:1px solid #ece9dd;border-left:3px solid #d9c98f;border-radius:8px;padding:7px 11px;margin:6px 0;line-height:1.6}
.sigtext .sighd{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.sigtext .sigtag{color:#8a7a3a;font-weight:700;font-size:11.5px}
.sigby{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:11.5px;color:#9a8c5a}
.sigby .bwho{font-weight:700;color:#6f5f2c}.sigby .bvia{color:#9a8c5a}
.sigby .srclink{font-size:11.5px;font-weight:600;color:#0969da}
.sigtext .sigtitle{font-weight:600;color:#33393f;margin-top:4px}
.sigtext .sigbody{color:#57606a;margin-top:2px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
/* legs */
.scard .leg{background:#f7f9fc;border:1px solid #eef1f5;border-radius:8px;padding:8px 11px;margin:6px 0;font-size:13px;color:#1c2128}
.scard .leg.legenter{background:#fff5f3;border-color:#f3c8c0}
.scard .leg.legenter.legshort{background:#f0faf5;border-color:#bfe6d4}
.scard .leghead{font-size:13px;font-weight:600}
.scard .legrow{font-size:12.5px;color:#3a424c;margin:2px 0;line-height:1.55}
.scard .lk{display:inline-block;min-width:60px;color:#cf222e;font-weight:700;font-size:11.5px;margin-right:6px}
.scard .legshort .lk{color:#1a7f37}
.scard .legreason{color:#6b7280;font-size:12px;margin-top:3px}
.scard .legwhy{font-size:13.5px;font-weight:600;color:#0a6b2e;background:#e6f7ec;border:1px solid #b9e6c9;border-left:3px solid #34c759;border-radius:6px;padding:6px 10px;margin:4px 0 7px;line-height:1.55}
.scard .legwhy .wl{font-weight:800;color:#08551f;margin-right:6px}
.scard .legmore{font-size:12px;color:#6b7280;margin:4px 0}
.tag2{display:inline-block;font-size:11px;border-radius:5px;padding:1px 6px;font-weight:700;vertical-align:middle}
.tag2.p2{background:#eef1f4;color:#57606a}.tag2.watch{background:#fff4e0;color:#9a4b00}
a.tklink{color:#1f6feb;border-bottom:1px dashed #a9c7f5}a.tklink:hover{text-decoration:none;border-bottom-color:#0a5bd0}
/* banner, P&L, chart (ported from decision-outcome.css) */
.do-banner{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 6px}
.do-dec{font-size:10.5px;font-weight:800;letter-spacing:.6px;color:#8a929c;background:#f2f4f7;border:1px solid #e0e5ec;border-radius:4px;padding:1px 5px}
.do-side{font-size:13px;font-weight:800;padding:2px 10px;border-radius:6px;letter-spacing:.5px}
.do-side.do-long{background:#fdecec;color:#cf222e;border:1px solid #f5c2c0}
.do-side.do-short{background:#e7f6ec;color:#0f7a52;border:1px solid #bfe6d4}
.do-name{font-size:17px;font-weight:800;color:#0d1117;line-height:1.2}
a.do-tk{font-size:13px;font-weight:700;color:#1f6feb;background:#eef4ff;border:1px solid #cfe3fb;border-radius:5px;padding:1px 7px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
a.do-tk:hover{background:#dfeaff;text-decoration:none}
.do-flag{font-size:13px;line-height:1}
.do-size{font-size:11.5px;color:#6b7684;background:#f2f4f7;border:1px solid #e0e5ec;border-radius:5px;padding:1px 6px}
.do-block{margin:6px 0 2px}
.do-pnlrow{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 5px}
.do-pnl{font-size:16px;font-weight:850;padding:3px 12px;border-radius:7px;letter-spacing:.3px;background:var(--do-bg);color:var(--do-fg);border:1.5px solid var(--do-bd)}
.do-cardpnl{font-size:13px;font-weight:850;padding:1px 10px;border-radius:6px;background:var(--do-bg);color:var(--do-fg);border:1.5px solid var(--do-bd)}
.do-win{--do-fg:#cf222e;--do-bg:#fdecec;--do-bd:#f5c2c0}
.do-loss{--do-fg:#0f7a52;--do-bg:#e7f6ec;--do-bd:#bfe6d4}
.do-flat{--do-fg:#6b7684;--do-bg:#f2f4f7;--do-bd:#e0e5ec}
.do-na{--do-fg:#8a929c;--do-bg:#f6f8fa;--do-bd:#e3e6ea}
.do-overdue{--do-fg:#9a4b00;--do-bg:#fff4e0;--do-bd:#fbe0b3}
.do-float{--do-bg:#fff;font-weight:750;border-style:dashed}
.do-pnl.do-float{font-size:14px}
.do-dup{opacity:.6}
.do-when{font-size:12px;color:#57606a}
.do-chart{margin:4px 0 0}
.do-svg{width:100%;max-width:640px;height:auto;display:block}
.do-foot{font-size:10.5px;color:#8a929c;margin-top:1px}
.do-chart-empty{font-size:11.5px;color:#8a929c;padding:2px 0}
/* expansion */
details.cdetail{margin-top:8px;border-top:1px dashed #e3e6ea;padding-top:4px}
details.cdetail>summary{cursor:pointer;font-size:12.5px;color:#1f6feb;font-weight:600;list-style:none;padding:3px 0}
details.cdetail>summary::-webkit-details-marker{display:none}
details.cdetail>summary::before{content:"▸ "}details.cdetail[open]>summary::before{content:"▾ "}
.detail-body{font-size:13px;margin:4px 0 2px}
.detail-body[data-state=idle],.detail-body[data-state=loading],.detail-body[data-state=error]{font-size:12.5px;color:#6b7280;background:#fbfcfd;border:1px dashed #d8dee6;border-radius:8px;padding:8px 11px}
.detail-body[data-state=loading]{color:#1f6feb;border-color:#b6d7ff;background:#f6fbff}
.detail-body[data-state=error]{color:#b42318;border-color:#f1b8b4;background:#fff7f7}
.dsec{margin:10px 0 4px}.dsec>h3{font-size:13.5px;margin:12px 0 4px;color:#33393f}
.fill{border:1px solid #eef1f4;border-radius:8px;padding:6px 10px;margin:6px 0}
.fill h4{font-size:13px;margin:2px 0 4px;font-weight:600}
.fside{font-size:11.5px;font-weight:700;border-radius:4px;padding:0 5px}
.fside.long{background:#fdecec;color:#cf222e}.fside.short{background:#e7f6ec;color:#0f7a52}.fside.flat{background:#eef1f4;color:#57606a}
.simk{font-size:12px;font-weight:700;color:#6b21a8;margin:6px 0 2px}
.simpre{white-space:pre-wrap;font-size:12px;background:#fbfcfd;border:1px solid #eef1f4;border-radius:6px;padding:6px 8px;max-height:40vh;overflow:auto;margin:0}
/* dossier: freshness and propagation chain */
.fresh{font-size:12.5px;color:#3a424c;background:#f7faff;border:1px solid #e2ecfb;border-radius:8px;padding:6px 11px;margin:6px 0}
.fresh .risk-high{color:#b42318;font-weight:700}.fresh .risk-medium{color:#9a4b00;font-weight:700}.fresh .risk-low{color:#57606a;font-weight:700}
.pchain ol{list-style:none;margin:0;padding:0}
.pcnode{position:relative;padding:0 0 10px 18px;border-left:2px solid #dbe4f0;font-size:12.5px;color:#3a424c;line-height:1.52}
.pcnode:last-child{padding-bottom:0}
.pcnode::before{content:"";position:absolute;left:-5px;top:4px;width:8px;height:8px;border-radius:50%;background:#1f6feb;border:2px solid #fff;box-shadow:0 0 0 1px #c7d7ee}
.pchead{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pctime{font-family:ui-monospace,Menlo,monospace;color:#0d1117;font-weight:700;background:#eef4ff;border-radius:6px;padding:0 6px}
.pcstage{font-weight:700;color:#1f6feb}.pcsrc{font-weight:650;color:#33393f}
.pcprimary{font-size:11px;color:#57606a;background:#f2f4f7;border-radius:5px;padding:0 5px}.pcprimary.warn{color:#9a4b00;background:#fff4e0}
.pcreact{color:#6b7280}
.ideapage .scard{margin-top:6px}
/* intraday panes (web/event/intraday.py, ADR 0024 §4c): 5-day + entry-day, side by side when wide */
.ic-leg{border:1px solid #eef1f4;border-radius:8px;padding:6px 10px;margin:6px 0}
.ic-head{font-size:13px;margin:2px 0 4px;font-weight:600}
.ic-panes{display:grid;grid-template-columns:1fr;gap:6px 12px}
@media(min-width:1000px){.ic-panes{grid-template-columns:1fr 1fr}}
.ic-pane{margin:0;min-width:0}
.ic-pane figcaption{font-size:11.5px;font-weight:700;color:#57606a;margin:0 0 1px}
.ic-scroll{overflow-x:auto}
.ic-svg{width:100%;height:auto;display:block}
.ic-hit:hover{fill:rgba(31,111,235,.06)}
.ic-status{font-size:12px;color:#57606a;margin:3px 0 0}
.ic-empty{font-size:12px;color:#8a929c;margin:2px 0}
.ic-foot{font-size:10.5px;color:#8a929c;margin:2px 0 0}
.ic-marks{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:2px 14px;font-size:11.5px;color:#3a424c;font-variant-numeric:tabular-nums}
.ic-marks .ic-nomark{color:#8a929c}
.ic-k{display:inline-block;width:12px;height:0;border-top:2px dashed;margin:0 4px 3px 0;vertical-align:middle}
.ic-k-pub{border-color:#8250df}.ic-k-crawl{border-color:#9a6700;border-top-style:dotted}.ic-k-decide{border-color:#1f6feb}
.ic-k-aware{border-color:#1b7c83}.ic-k-entry{border-color:#0550ae;border-top-style:solid}.ic-k-exit{border-color:#57606a}
@media(max-width:720px){.scard{padding:11px 12px}.do-name{font-size:15.5px}.do-pnl{font-size:14.5px}.shead .permalink{margin-left:0}}
/* phones: keep the chart's own text legible (the SVG would shrink to ~0.5x); swipe it sideways */
@media(max-width:600px){.do-chart{overflow-x:auto}.do-svg{min-width:520px}.ic-svg{min-width:540px}}
