/* decisions.css — the results page (event/) and the decision page (event/idea): arm switch,
   returns panel, filters, the expansion's tables.  The card itself is cards.css.
   Colours: red = 涨/赚/做多, green = 跌/亏/做空 (owner decision 2026-07-29, site-wide). */
h2{font-size:17px;margin:18px 0 8px}
/* arm switch */
.arms{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 14px}
.arm{display:flex;flex-direction:column;gap:1px;min-width:150px;padding:8px 12px;border:1px solid #e3e6ea;border-radius:10px;color:#1f2328}
.arm:hover{border-color:#b6c7e3;text-decoration:none}
.arm.on{border-color:#0969da;box-shadow:0 0 0 1px #0969da inset}
.arm b{font-size:14px}.arm .meta{font-size:11.5px;color:#6b7280}
.st{font-size:11px;font-weight:600;width:max-content;border-radius:5px;padding:0 6px}
.st.live{background:#e7f6ec;color:#1a7f37}.st.paused{background:#fff4e0;color:#9a4b00}
.st.retired,.st.legacy{background:#eef1f4;color:#57606a}
/* returns panel */
.returns{border:1px solid #e3e6ea;border-radius:12px;padding:12px 16px;margin-bottom:14px}
.rhead{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.rhead h2{margin:4px 0;flex:1}
.segs{display:inline-flex;border:1px solid #d8dee6;border-radius:8px;overflow:hidden}
.seg{font-size:12.5px;padding:3px 10px;color:#475059;border-left:1px solid #d8dee6}
.seg:first-child{border-left:0}.seg.on{background:#0969da;color:#fff}.seg:hover{text-decoration:none}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0}
.kpi{border:1px solid #eef1f4;border-radius:9px;padding:8px 11px;background:#fbfcfd}
.kpi .v{font-size:19px;font-weight:650;color:#1f2328}.kpi .l{font-size:12px;color:#6b7280}
.kpi .sub{font-size:12px;color:#6b7280;margin-left:6px;font-weight:400}
.kpi.warn .v{color:#9a4b00}
.pos{color:#cf222e}.neg{color:#1a7f37}.flat{color:#57606a}
.chart{margin:4px 0}.curve{width:100%;height:auto;max-height:300px;display:block}
.tview summary{cursor:pointer;font-size:12.5px;color:#57606a}
table.grid{border-collapse:collapse;font-size:12.5px;margin:6px 0}
table.grid th,table.grid td{padding:3px 10px;border-bottom:1px solid #eef1f4;text-align:left}
td.num{text-align:right;font-variant-numeric:tabular-nums}
.method{font-size:12px;color:#6b7280;margin:8px 0 2px;overflow-wrap:anywhere}
/* filters + list */
.filters{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end;margin:4px 0 10px;font-size:12.5px;color:#57606a}
.filters label{display:flex;flex-direction:column;gap:2px}
.filters .grow{flex:1;min-width:180px}
.filters input,.filters select{font:inherit;font-size:13px;padding:4px 7px;border:1px solid #d8dee6;border-radius:7px;color:#1c2128}
.filters button{font:inherit;font-size:13px;font-weight:600;padding:5px 14px;border:0;border-radius:7px;background:#0969da;color:#fff;cursor:pointer}
.conf{font-size:12px;color:#57606a}
/* the return badge of a leg (cardbits.leg_return: the expansion's fills, the board's 速览) */
.ret{font-size:12px;font-weight:600;border-radius:4px;padding:0 6px;background:#f3f5f8;margin-left:6px}
.ret.pos{color:#cf222e}.ret.neg{color:#1a7f37}.ret.waiting{color:#57606a}.ret.overdue{color:#9a4b00;background:#fff4e0}
.ret.error{color:#57606a}.ret.dup{opacity:.6}
.pager{display:flex;gap:16px;margin:12px 0}
/* decision page and the card's expansion */
.tagx{display:inline-block;font-size:11px;font-weight:700;border-radius:5px;padding:0 6px;margin-left:6px;background:#eef4ff;color:#0550ae}
.tagx.stale{background:#fff4e0;color:#9a4b00}.tagx.cur{background:#e7f6ec;color:#1a7f37}
table.kv{border-collapse:collapse;font-size:13px;width:100%}
table.kv th{text-align:left;color:#6b7280;font-weight:500;width:110px;padding:3px 8px 3px 0;vertical-align:top}
table.kv td{padding:3px 0;vertical-align:top}
.rblock{margin:8px 0;font-size:13.5px}.rblock h4{font-size:13.5px;margin:10px 0 4px}.rblock p{margin:4px 0}
.rblock ul,.rblock ol{margin:0;padding-left:20px;font-size:13px}.rblock li{margin:3px 0}
details.rblock summary{cursor:pointer;font-weight:600;font-size:13.5px}
.psim{font-size:11px;background:#f3eefe;color:#5a3ec8;border-radius:4px;padding:0 5px;margin-right:4px}
.warnline{color:#9a4b00}
.pill{font-size:11px;border-radius:4px;padding:0 5px}.pill.ok{background:#e7f6ec;color:#1a7f37}
.pill.warn{background:#fff4e0;color:#9a4b00}.pill.bad{background:#fde8e8;color:#b42318}.pill.none{background:#eef1f4}
.src{font-size:12px;margin-left:6px}
.srctext summary{cursor:pointer;font-size:13px}
.srcbody{font-size:13px;white-space:normal;max-height:70vh;overflow:auto;background:#fbfcfd;border:1px solid #eef1f4;border-radius:8px;padding:10px 12px;margin-top:6px}
.rchain p{font-size:12.5px}.rchain ol{padding-left:20px;font-size:12.5px;color:#475059}.rchain li.current{color:#1f2328}
@media(max-width:820px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* phones: the arm switch is one swipeable row so the board stays on the first screen */
@media(max-width:600px){.arms{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:4px}.arm{flex:0 0 auto;min-width:136px;scroll-snap-align:start}}
