/* The OI Tracker's look (oi.html, stock options). */
*{box-sizing:border-box}
[hidden]{display:none!important}
.oi{max-width:1440px;margin:0 auto;padding:20px 24px 40px}
@media (max-width:900px){.oi{padding:14px}}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-lg);padding:18px;min-width:0}
.toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px 20px;padding:14px 18px}
.grp{display:flex;flex-direction:column;gap:6px}
.label{font-size:13px;font-weight:600;color:var(--muted)}
.seg{display:flex;flex-wrap:wrap;gap:4px}
.seg button{font:inherit;font-size:13px;font-weight:600;padding:7px 12px;border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:var(--radius-sm);cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.seg button:disabled{opacity:.4;cursor:not-allowed}
.tc-how{margin:0 0 12px}.tc-how summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--ink);padding:4px 0}.tc-how .tc-rules{margin-top:6px}
#tcCompare tr.cur td{background:#EEF4FB}#tcCompare tr[data-fil]{cursor:pointer}
.num{width:92px;font:inherit;color:var(--ink);background:var(--soft);border:1px solid var(--line);border-radius:var(--radius-sm);padding:7px 10px}
.btn{font:inherit;font-weight:700;font-size:14px;padding:8px 18px;border:0;border-radius:var(--radius-sm);background:var(--accent);color:var(--accent-ink);cursor:pointer}
.btn[disabled]{opacity:.6;cursor:progress}
.check{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--muted);font-weight:500;margin-left:auto;align-self:center}
.seg button:focus-visible,.btn:focus-visible,.num:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.status{margin:14px 2px 18px;color:var(--muted);font-size:14px}
.status b{color:var(--ink)}
.error{background:#FBE9E7;border:1px solid #F0B9B3;color:#7A1F17;padding:10px 12px;border-radius:var(--radius-sm);margin:0 0 16px}
.tables{display:grid;grid-template-columns:1fr;gap:20px}
.tables h2{display:flex;align-items:baseline;gap:10px;margin:0 0 12px;font-size:18px}
.tables h2 .count{font-size:14px;font-weight:600;color:var(--muted)}
.tag{display:inline-block;width:10px;height:10px;border-radius:2px}
.tag.down{background:var(--loss)} .tag.up{background:var(--gain)}
.wrap{overflow:auto;max-height:560px;border:1px solid var(--line);border-radius:var(--radius-sm)}
table{border-collapse:collapse;width:100%;font-size:13.5px;white-space:nowrap}
th,td{padding:7px 10px;text-align:right;border-bottom:1px solid var(--line)}
th{position:sticky;top:0;background:var(--soft);color:var(--muted);font-weight:600;z-index:1}
th:first-child,td:first-child,th.l,td.l{text-align:left}
td.opt b{font-weight:700}
td.opt small{display:block;color:var(--muted);font-size:12px}
td.sel{font-weight:700}
.pos{color:var(--gain)} .neg{color:var(--loss)} .dim{color:var(--muted)}
.pill{display:inline-block;font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;background:var(--soft);border:1px solid var(--line);color:var(--ink)}
.pill.kind-Index{border-color:#C9D3DE}
.empty{padding:18px;color:var(--muted);text-align:center}
.foot{margin-top:18px;color:var(--muted);font-size:13px;max-width:100ch}
/* Trade calls */
.tc{margin-top:20px}
.tc h2{margin:0 0 4px;font-size:19px}
.tc h3{font-size:16px;margin:18px 0 10px}
.tc-sub{margin:0 0 14px;color:var(--muted);font-size:14px;max-width:115ch}
.tc-rules{font-size:13px;color:var(--muted);margin:-6px 0 14px}
/* the space the rules text and the summary take once loaded, kept while they load, so the page doesn't jump */
#tcRules:empty{min-height:98px}#tcPeriod:empty{min-height:21px}.tc-kpis:empty{min-height:87px;background:none;border-color:transparent}
@media (max-width:1200px){#tcRules:empty{min-height:156px}.tc-kpis:empty{min-height:153px}}
@media (max-width:600px){#tcRules:empty{min-height:340px}.tc-kpis:empty{min-height:220px}}
.tc-filters{display:flex;flex-wrap:wrap;gap:12px 18px;margin:0 0 14px}
.tc-filters .grp{display:flex;flex-direction:column;gap:5px}
.dp-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0 8px}.dp-head h3{margin:0}.dp-head .seg{margin-left:auto}
.dp{position:relative;border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;padding:12px 12px 6px}
.dp-plot{position:relative;padding-left:62px}.dp-ax{position:absolute;left:0;top:0;width:56px;height:220px;font-size:11px;color:#5B6B80}.dp-ax span{position:absolute;right:0;transform:translateY(-50%);white-space:nowrap}
.dp svg{display:block;width:100%;height:220px;overflow:visible}.dp .ax{font-size:11px;fill:#5B6B80}.dp .zero{stroke:#1B2A41;stroke-opacity:.3}.dp .grid{stroke:#1B2A41;stroke-opacity:.08}
.dp .up{fill:#1E9E5A}.dp .dn{fill:#D64545}.dp .cum{fill:none;stroke:#1B2A41;stroke-width:2;vector-effect:non-scaling-stroke}.dp .hit{fill:transparent}.dp .hit:hover+rect,.dp rect.on{opacity:.75}
.dp-tip{position:absolute;top:8px;pointer-events:none;background:#1B2A41;color:#fff;font-size:12.5px;padding:7px 10px;border-radius:8px;white-space:nowrap;box-shadow:0 6px 18px rgba(0,0,0,.18)}.dp-tip b{display:block;font-size:14px}
.dp-x{display:flex;justify-content:space-between;font-size:11.5px;color:#5B6B80;margin-top:4px}.dp-empty{margin:0;padding:18px 4px;color:var(--muted)}
.tc-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden;margin-bottom:6px}
.tc-mk{font:inherit;font-size:12.5px;font-weight:600;white-space:nowrap;padding:5px 10px;border:1px solid var(--line);border-radius:7px;background:transparent;color:inherit;cursor:pointer}
.tc-mk:hover{border-color:#E8A317;background:rgba(232,163,23,.12)}
.tc-kpis div{background:#fff;padding:10px 12px}
.tc-kpis .k{display:block;font-size:12.5px;color:var(--muted)}
.tc th small{display:block;font-weight:500;font-size:11.5px}
.tc-kpis b{font-size:18px}
.tc td.l,.tc th.l{text-align:left}
.tc td small{display:block;color:var(--muted);font-size:12px;white-space:normal;max-width:420px}
.st{font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;white-space:nowrap}
.st.open{background:#FDF3DC;color:#7A5300} .st.win{background:#E3F2E9;color:#17643F} .st.loss{background:#FBE7E5;color:#8E2A22}
.side{font-size:12px;font-weight:700;padding:1px 7px;border-radius:4px;border:1px solid var(--line)}
.side.buy{color:#17643F} .side.sell{color:#8E2A22}
.tc td .verdict{white-space:nowrap}
.verdict.good{color:var(--gain);font-weight:700} .verdict.bad{color:var(--loss);font-weight:700} .verdict.few,.verdict.flat{color:var(--muted);font-weight:700}
.foot p{margin:0 0 6px}
